joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487542
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x487716
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4e3600]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x487716
test cl, 0x48
je 0x4875ad
cmp byte [eax + 5], 0xa
je 0x4875ad
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4875ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4875e7
call fcn.0047dee2
mov dword [eax], 9
call fcn.0047deeb
mov dword [eax], esi
jmp 0x4875f7
cmp eax, 0x6d
je 0x487716
push eax
call fcn.0047def4
pop ecx
or eax, 0xffffffff
jmp 0x487718
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x487711
test eax, eax
je 0x487626
cmp byte [ebx], 0xa
jne 0x487626
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x48762f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x48770b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4876fb
cmp al, 0xd
je 0x487661
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4876ed
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48767b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x487676
add dword [ebp + 0x10], 2
jmp 0x4876cf
mov dword [ebp + 0x10], eax
jmp 0x4876e9
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4876a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4876e9
cmp dword [ebp - 0xc], 0
je 0x4876e9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4876c4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4876cf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4876ec
cmp ebx, dword [ebp + 0xc]
jne 0x4876d4
cmp byte [ebp - 1], 0xa
jne 0x4876d4
mov byte [ebx], 0xa
jmp 0x4876ec
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00488673
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4876ed
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x487645
jmp 0x48770b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x48770b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x487718
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x489379
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4e34d0], ebx
push esi
push edi
jne 0x4893f9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x489434
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b59dc
push edi
call esi
test eax, eax
mov dword [0x4e34d0], eax
je 0x489434
push 0x4b59cc
push edi
call esi
push 0x4b59b8
push edi
mov dword [0x4e34d4], eax
call esi
cmp dword [0x4e30f8], 2
mov dword [0x4e34d8], eax
jne 0x4893f9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4e34e0], eax
je 0x4893f9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4e34dc], eax
mov eax, dword [0x4e34dc]
test eax, eax
je 0x48943e
call eax
test eax, eax
je 0x489425
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4e34e0]
test eax, eax
je 0x489425
test byte [ebp - 8], 1
jne 0x48943e
cmp dword [0x4e3104], 4
jb 0x489438
or byte [ebp + 0x12], 0x20
jmp 0x48945d
xor eax, eax
jmp 0x48946d
or byte [ebp + 0x12], 4
jmp 0x48945d
mov eax, dword [0x4e34d4]
test eax, eax
je 0x48945d
call eax
mov ebx, eax
test ebx, ebx
je 0x48945d
mov eax, dword [0x4e34d8]
test eax, eax
je 0x48945d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4e34d0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x489551
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x48957f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x489586
cmp ebx, dword [eax + 4]
jae 0x489586
xor eax, eax
jmp 0x489776
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x489597
xor eax, eax
inc eax
jmp 0x489775
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4895ad
cmp ecx, edx
jae 0x4896f2
cmp dword [eax + 4], 0
je 0x4895b6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x48959e
cmp dword [ebp + 8], 0
je 0x4895d8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4896f2
cmp eax, esi
jae 0x4896f2
mov eax, dword [0x4e34e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4895fd
cmp dword [esi*4 + 0x4e34f0], edi
je 0x4896f6
inc esi
cmp esi, eax
jl 0x4895eb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x489772
cmp dword [ebp - 8], 0x1000000
jne 0x489772
test byte [ebp - 0xc], 0xcc
je 0x48967b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x489772
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x489772
cmp word [eax + 0x18], 0x10b
jne 0x489772
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x489772
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x48967b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x48967b
test byte [ecx + 0x27], 0x80
jne 0x4896f2
push 1
push 0x4e3530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x48958f
mov ecx, dword [0x4e34e8]
test ecx, ecx
mov edx, ecx
jle 0x4896af
lea eax, [ecx*4 + 0x4e34ec]
cmp dword [eax], edi
je 0x4896af
dec edx
sub eax, 4
test edx, edx
jg 0x4896a3
test edx, edx
jne 0x4896e0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4896bc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4896d4
lea eax, [edx*4 + 0x4e34f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4896c2
cmp ecx, 0x10
jge 0x4896e0
inc ecx
mov dword [0x4e34e8], ecx
push 0
push 0x4e3530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x48958f
xor eax, eax
jmp 0x489775
test esi, esi
jle 0x48958f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4e3530
call ebx
test eax, eax
jne 0x48958f
cmp dword [esi*4 + 0x4e34f0], edi
je 0x48974c
mov eax, dword [0x4e34e8]
lea esi, [eax - 1]
test esi, esi
jl 0x48973a
cmp dword [esi*4 + 0x4e34f0], edi
je 0x489736
dec esi
jns 0x48972a
test esi, esi
jge 0x48974a
cmp eax, 0x10
jge 0x489745
inc eax
mov dword [0x4e34e8], eax
lea esi, [eax - 1]
jmp 0x48974c
je 0x489764
xor ecx, ecx
test esi, esi
jl 0x489764
lea eax, [ecx*4 + 0x4e34f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x489752
push 0
push 0x4e3530
call ebx
jmp 0x48958f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49019f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4901d7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e26d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e245
jmp 0x4901e3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49188d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4918cf
call fcn.0049720f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4918cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4918c6
xor eax, eax
jmp 0x4918d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004918dd
pop edi
pop esi
pop ebx
ret 4

Function at 0x49773f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49776d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49778b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004976a5
jmp 0x49778b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49778b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004976a5
test edi, edi
mov eax, edi
jne 0x497775
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4029b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [0x40b06c]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [0x40b058]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [0x40b054]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x402a14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x402a07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404a00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00404a00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [0x40b050]
test eax, eax
je 0x402b70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404f60
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x402abe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x402a75
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00404a60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404f60
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [0x40b04c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [0x40b068]
test eax, eax
je 0x402b70
push ebx
call dword [0x40b064]
push dword [ebp - 4]
call dword [0x40b060]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00404a00
lea eax, [ebp - 0x508]
push 0x40d0f0
push eax
call fcn.00404f60
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404da0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404f60
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [0x40b098]
lea eax, [ebp - 0x108]
push eax
call dword [0x40b094]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408953
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408978
mov edx, edi
add edi, edi
xor dword [ecx], ebx
add ecx, 1
cmp ecx, eax
jne fcn.00408953
sub edx, 0xd8aa2a9
ret
Function at 0x403730
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9dc8
push eax
mov dword fs:[0], esp
sub esp, 0x448
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x40376b
lea eax, [ebp - 0x454]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x403758
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ebx, dword [ebp - 0x10]
xor esi, esi
call edi
cmp esi, 0x2b259d
jle 0x403792
cmp ebx, 0x785074d5
jne 0x40379b
inc esi
cmp esi, 0x1c1b
jl 0x403780
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x4037cd
inc esi
cmp esi, 0x4f6a4
jl 0x4037b0
cmp dword [0x8fb080], 0x400
jne 0x403810
push 0
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x30]
call fcn.004038a0
push 0
mov dword [ebp - 4], 0
call fcn.00403bd4
add esp, 4
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004038c0
mov edx, dword [0x4dc13c]
mov eax, dword [0x4dc110]
mov dword [0x8fb080], edx
mov dword [0x8fb084], eax
call fcn.004033f0
mov ebx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40384a
cmp ebx, 0x785074d5
jne 0x403853
inc esi
cmp esi, 0x11915
jl 0x403836
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
nop
cmp dword [0x8fb080], 0x51f
jne 0x403872
lea ecx, [ebp - 0x54]
push ecx
call esi
sub edi, 1
jne 0x403860
mov eax, dword [0x8f9fd4]
mov dword [0x8fa614], eax
call eax
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404540
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4db0c8]
jne 0x40454a
repz ret
jmp fcn.00406cae
Function at 0x40f590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f5b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f5a8
mov eax, 1
add ebx, ebx
jne 0x40f5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f5c0
jne 0x40f5dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f5c0
xor ecx, ecx
sub eax, 3
jb 0x40f5f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f662
mov ebp, eax
add ebx, ebx
jne 0x40f5fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f608
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f62c
inc ecx
add ebx, ebx
jne 0x40f618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f60d
jne 0x40f629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f60d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f64c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f63d
jmp 0x40f5ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f64c
add edi, ecx
jmp 0x40f5ae
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f66a
cmp byte [edi], 5
jne 0x40f66a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f66f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f6de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10710]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x107c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f69c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x107c8]
or eax, eax
je 0x40f6d8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f6b9
call dword [esi + 0x107d8]
mov ebp, dword [esi + 0x107cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f712
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x658604cc
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x57b7677
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219