joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f46e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416b5b
xor ebx, ebx
cmp dword [0x4348cc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41f543
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41f4ae
xor eax, eax
jmp 0x41f607
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429744
push edi
call esi
cmp eax, ebx
je 0x41f4a7
push eax
call fcn.00416af8
mov dword [esp], 0x429734
push edi
mov dword [0x4348cc], eax
call esi
push eax
call fcn.00416af8
mov dword [esp], 0x429720
push edi
mov dword [0x4348d0], eax
call esi
push eax
call fcn.00416af8
mov dword [0x4348d4], eax
lea eax, [ebp - 8]
push eax
call fcn.004118b4
test eax, eax
pop ecx
pop ecx
je 0x41f511
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00416391
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41f543
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416af8
cmp eax, ebx
pop ecx
mov dword [0x4348dc], eax
je 0x41f543
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416af8
pop ecx
mov dword [0x4348d8], eax
mov eax, dword [0x4348d8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41f5bc
cmp dword [0x4348dc], esi
je 0x41f5bc
push eax
call fcn.00416b64
pop ecx
call eax
cmp eax, ebx
je 0x41f589
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348dc]
call fcn.00416b64
pop ecx
call eax
test eax, eax
je 0x41f589
test byte [ebp - 0x18], 1
jne 0x41f5bc
lea eax, [ebp - 0xc]
push eax
call fcn.004118eb
test eax, eax
pop ecx
je 0x41f5a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00416391
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41f5b3
or dword [ebp + 0x10], 0x200000
jmp 0x41f5ed
or dword [ebp + 0x10], 0x40000
jmp 0x41f5ed
mov eax, dword [0x4348d0]
cmp eax, esi
je 0x41f5ed
push eax
call fcn.00416b64
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41f5ed
mov eax, dword [0x4348d4]
cmp eax, esi
je 0x41f5ed
push dword [ebp - 4]
push eax
call fcn.00416b64
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4348cc]
call fcn.00416b64
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425446
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x430bc4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004253db
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00411bc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x425495
cmp dword [ebp - 0x1c], 5
jb 0x4254ad
jmp 0x4254a9
cmp dword [ebp - 0x10], 1
jne 0x4254ad
cmp dword [ebp - 0x1c], 4
ja 0x4254a9
jne 0x4254ad
cmp dword [ebp - 0x18], 0
jbe 0x4254ad
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42a85c
call fcn.004252cc
test eax, eax
jge 0x4254ce
mov byte [0x434a5c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040fe7a
add ebp, 0x78
leave
ret
Function at 0x4025c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0xc]
push eax
push 1
push 0
push ecx
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402614
lea edx, [esp + 8]
mov dword [esp + 8], 0xfe
push edx
push esi
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.AppPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x402620
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0xc]
push eax
push 1
push 0
push ecx
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402674
lea edx, [esp + 8]
mov dword [esp + 8], 0xfe
push edx
push esi
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.IniPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x402700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x402720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402733
xor al, al
ret
shr eax, 4
and eax, 1
ret

Function at 0x402740
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x5c
push edi
call fcn.00406a90
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40277b
push 0
push edi
mov byte [esi], 0
call ebx
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00406a90
mov esi, eax
add esp, 8
test esi, esi
jne 0x40275e
push 0
push edi
call ebx
test eax, eax
jne 0x402797
push edi
call fcn.00402720
add esp, 4
test al, al
jne 0x402797
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4027a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push esi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, esi
pop esi
ret
Function at 0x428c69
Capabilities:
Create http request

Disassembly:
mov eax, 0x42aff4
call fcn.0040914c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x428ca1
call fcn.0042a332
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x428cc6
push eax
push dword [esi + 4]
call fcn.0042991b
jmp 0x428cd2
push esi
push eax
mov ecx, 0x43c630
call fcn.00428ce3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x428e46
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42b02f
call fcn.0040914c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00424067
mov eax, dword [0x437b9c]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x43c630
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00428ce3
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00423d88
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00406282
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00423d38
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00423c8f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x619936a1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, str.5u
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x353c3cc5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0xc13b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5df000]
push edi
or ebp, 0xffffffff
jmp 0xc13b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc13b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc13b78
mov eax, 1
add ebx, ebx
jne 0xc13b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc13bac
jne 0xc13bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc13bcb
dec eax
add ebx, ebx
jne 0xc13bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc13b90
add ebx, ebx
jne 0xc13bc7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc13c1d
xor ecx, ecx
sub eax, 3
jb 0xc13be3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc13c52
sar eax, 1
mov ebp, eax
jmp 0xc13bee
add ebx, ebx
jne 0xc13bee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc13bbc
inc ecx
add ebx, ebx
jne 0xc13bfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc13bbc
add ebx, ebx
jne 0xc13c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc13bfe
jne 0xc13c1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc13bfe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc13c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc13c2e
jmp 0xc13b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc13c3c
add edi, ecx
jmp 0xc13b7e
pop esi
mov edi, esi
mov ecx, 0x2f54d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc13c5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xc13c5f
lea edi, [esi + 0x80f000]
mov eax, dword [edi]
or eax, eax
je 0xc13cc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81c9cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x81cb48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc13c85
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x81cb4c]
or eax, eax
je 0xc13cc1
mov dword [ebx], eax
add ebx, 4
jmp 0xc13ca2
call dword [esi + 0x81cb5c]
mov ebp, dword [esi + 0x81cb50]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xc13cfb
sub esp, 0xffffff80
jmp 0x9a17b0
Function at 0x407b2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4865a8]
jne 0x407b34
repz ret
jmp fcn.00409ff3

Function at 0x408aef
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4865a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405840
and dword [ebp - 0x14], 0
cmp dword [0x48a4cc], 0
mov dword [ebp - 0x18], eax
jne 0x408ba2
push 0x4022d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408c4a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4022c4
push ebx
call edi
test eax, eax
je 0x408c4a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4022b4
push ebx
mov dword [0x48a4cc], eax
call edi
push eax
call esi
push 0x4022a0
push ebx
mov dword [0x48a4d0], eax
call edi
push eax
call esi
push 0x402284
push ebx
mov dword [0x48a4d4], eax
call edi
push eax
call esi
mov dword [0x48a4dc], eax
test eax, eax
je 0x408ba2
push 0x40226c
push ebx
call edi
push eax
call esi
mov dword [0x48a4d8], eax
mov eax, dword [0x48a4d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408bfb
cmp dword [0x48a4dc], ecx
je 0x408bfb
push eax
call esi
push dword [0x48a4dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408bfb
test ebx, ebx
je 0x408bfb
call edi
test eax, eax
je 0x408bf2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408bf2
test byte [ebp - 8], 1
jne 0x408bfb
or dword [ebp + 0x10], 0x200000
jmp 0x408c2e
mov eax, dword [0x48a4d0]
cmp eax, dword [ebp - 0x18]
je 0x408c2e
push eax
call esi
test eax, eax
je 0x408c2e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408c2e
mov eax, dword [0x48a4d4]
cmp eax, dword [ebp - 0x18]
je 0x408c2e
push eax
call esi
test eax, eax
je 0x408c2e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48a4cc]
call esi
test eax, eax
je 0x408c4a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408c4c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407b2a
leave
ret
Function at 0x46adb0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1424
call fcn.0040b1d0
cmp dword [0x22c3480], 0x37
jne 0x46ae75
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403290
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea ecx, [esp + 0x828]
push ecx
push 0x403298
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [esp + 4]
push edx
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea eax, [esp + 0xc24]
push eax
push 0
push 0x403350
push 0x40338c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x403394
push 0x4033a8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov ecx, dword [0x22c3484]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x48f5e4]
mov byte [ecx + esi], al
add esp, 0x1424
ret

Function at 0x46aeb0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov edx, dword [0x486e20]
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
push ebx
push ebp
mov ebp, dword [0x486e24]
mov dword [esp + 0x1c], edx
mov edx, dword [0x486e28]
push esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [0x486e2c]
mov ecx, 0xc6ef3720
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ebx, 0x20
jmp 0x46af08
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, eax
shr edx, 5
add edx, dword [esp + 0x1c]
mov edi, eax
shl edi, 4
add edi, dword [esp + 0x20]
add eax, ecx
xor edx, edi
xor edx, eax
sub esi, edx
mov edx, esi
shl edx, 4
mov dword [0x22c2404], 0
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x22c3480], 0x1be
lea edi, [ecx + esi]
jne 0x46af5d
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, esi
shr ecx, 5
add ecx, ebp
xor ecx, edi
xor dword [esp + 0x10], ecx
mov dword [0x22c2408], 0xff6b3619
mov dword [0x22c240c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
lea eax, [esp + 0x18]
call fcn.0046aea0
dec ebx
jne 0x46af00
cmp dword [0x22c3480], 0x8d4
jne 0x46afc4
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405870
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0xc8
test eax, eax
push ebx
mov ebx, dword [esp + 0xd0]
push esi
mov esi, ecx
mov word [ebx], 2
je 0x4058e6
mov eax, dword [esp + 0xd8]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x4058c8
add esi, 0x14
push esi
call sub.WS2_32.dll_WSAGetLastError
push eax
lea ecx, [esp + 0x10]
push str._d_is_the_error._Make_sure__s_is_listed_in_the_hosts_file.
push ecx
call fcn.0040dbca
add esp, 0x10
xor eax, eax
pop esi
pop ebx
add esp, 0xc8
ret 0x10
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
push edi
lea edi, [ebx + 4]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x4058ed
mov dword [ebx + 4], 0
mov ecx, dword [esp + 0xdc]
push ecx
call sub.WS2_32.dll_htons
mov word [ebx + 2], ax
pop esi
mov eax, 1
pop ebx
add esp, 0xc8
ret 0x10

Function at 0x405910
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1e0
mov eax, dword [esp + 0x1e4]
push esi
mov esi, ecx
lea ecx, [esp + 0x54]
push ecx
push 0x101
mov dword [esi + 4], eax
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x405949
push eax
lea edx, [esp + 8]
push str._d_is_the_err
push edx
call fcn.0040dbca
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x1e0
ret 4

Function at 0x405960
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
mov esi, ecx
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x43c], eax
jne 0x405985
xor al, al
pop esi
add esp, 0x10
ret 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 1
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.00405870
test eax, eax
jne 0x4059b6
mov eax, dword [esi + 0x43c]
push eax
call sub.WS2_32.dll_closesocket
xor al, al
pop esi
add esp, 0x10
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x43c]
push 0x31
push 0x401
push ecx
push edx
call sub.WS2_32.dll_WSAAsyncSelect
test eax, eax
je 0x4059f8
lea eax, [esi + 0x14]
push str._d__0x_x_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x43c]
add esp, 8
push ecx
call sub.WS2_32.dll_closesocket
xor al, al
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi + 0x43c]
lea edx, [esp + 4]
push 0x10
push edx
push eax
call sub.WS2_32.dll_connect
mov al, 1
pop esi
add esp, 0x10
ret 8

Function at 0x405a20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
mov al, 1
ret 0xc