joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
test edx, edx
push esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0
je 0x401997
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018f5
sub eax, esi
mov dword [esp + 0x14], eax
je 0x401997
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401952
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call ebp
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
je 0x401957
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push eax
push 0
push 0
push edi
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x401983
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov eax, esi
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov eax, 0x57
pop esi
add esp, 8
ret

Function at 0x4019b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push esi
push edi
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
xor esi, esi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4019f7
cmp dword [esp + 0x18], 2
jne 0x4019f7
cmp dword [esp + 0xc], 5
mov eax, 1
jae 0x4019f9
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401d20
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov eax, 0x1520
call fcn.00412890
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
je 0x401ed2
mov cl, byte [edi + 4]
test cl, cl
lea ebx, [edi + 4]
je 0x401ed2
mov ecx, dword [esp + 0x152c]
test ecx, ecx
je 0x401ed2
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401d81
pop edi
xor eax, eax
pop ebx
add esp, 0x1520
ret 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x401ec7
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401ec0
cmp eax, 0x4c4b40
jbe 0x401e2a
lea edx, [esp + 0x28]
mov eax, ebx
sub edx, ebx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401dd0
lea edi, [esp + 0x28]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401de0
mov ax, word [0x41f3f8]
lea ecx, [esp + 0x28]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
call ebp
mov edi, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ec7
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1538]
test eax, eax
mov edi, str._d__02d__02d__02d:_02d:_02d._03d___x_:__.4096s_r_n
jne 0x401e53
mov edi, str._d__02d__02d__02d:_02d:_02d._03d___x_:__.4096s
mov ecx, dword [esp + 0x1534]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edx, word [esp + 0x2a]
movzx ecx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x2c]
push edx
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
movzx edx, word [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x150]
push edi
push eax
call fcn.00412696
add esp, 0x2c
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x138]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebp
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x1520
ret 8
Function at 0x402380
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push eax
push 0x202
mov dword [esi], 0xffffffff
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4023a9
or eax, 0xffffffff
add esp, 0x1a0
ret
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4023cc
call fcn.0040e8f2
mov eax, 0xfffffffe
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1a8]
test ecx, ecx
je 0x40240d
lea ecx, [esp + 0x1a8]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x40240d
mov edx, dword [esi]
push edx
call sub.WS2_32.dll_closesocket
call fcn.0040e8f2
mov dword [esi], 0xffffffff
mov eax, 0xfffffffe
add esp, 0x1a0
ret
cmp dword [esp + 0x1a4], 1
jne 0x4024b3
mov eax, dword [esp + 0x1b4]
push eax
mov word [esp + 4], 2
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x1b0]
push ecx
mov word [esp + 6], ax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x402448
xor eax, eax
push 0x10
lea edx, [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esi]
push edx
push eax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x40247f
mov ecx, dword [esi]
push ecx
call sub.WS2_32.dll_closesocket
call fcn.0040e8f2
mov dword [esi], 0xffffffff
mov eax, 0xfffffff9
add esp, 0x1a0
ret
mov edx, dword [esp + 0x1ac]
mov eax, dword [esi]
push edx
push eax
call sub.WS2_32.dll_listen
cmp eax, 0xffffffff
jne 0x4024b3
mov ecx, dword [esi]
push ecx
call sub.WS2_32.dll_closesocket
call fcn.0040e8f2
mov dword [esi], 0xffffffff
mov eax, 0xfffffff8
add esp, 0x1a0
ret
xor eax, eax
add esp, 0x1a0
ret
Function at 0x402540
Capabilities:
Connect socket
Get socket status
Resolve dns

Disassembly:
sub esp, 0x120
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x124], 1
push esi
push edi
mov dword [esp + 0x10], 0x10
jne 0x40263f
mov edi, dword [esp + 0x144]
test edi, edi
je 0x40278d
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call sub.WS2_32.dll_accept
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x402782
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x402631
mov eax, dword [esp + 0x134]
test eax, eax
jle 0x402774
lea edx, [esp + 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll___WSAFDIsSet
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x402766
lea edx, [esp + 0x24]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x402766
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.WS2_32.dll_accept
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x402782
pop edi
mov eax, 0xfffffff6
pop esi
add esp, 0x120
ret
mov eax, dword [esp + 0x138]
test eax, eax
mov word [esp + 0x14], 2
je 0x402670
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40266a
pop edi
mov eax, 0xfffffffc
pop esi
add esp, 0x120
ret
mov dword [esp + 0x18], eax
jmp 0x4026b2
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x40278d
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x402697
pop edi
mov eax, 0xfffffffb
pop esi
add esp, 0x120
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x140]
push ecx
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x130]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x402782
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x40270d
cmp eax, 0x2735
je 0x40270d
cmp eax, 0x2748
je 0x402782
pop edi
mov eax, 0xfffffffa
pop esi
add esp, 0x120
ret
mov eax, dword [esp + 0x134]
test eax, eax
jle 0x402774
lea edx, [esp + 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll___WSAFDIsSet
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x402766
lea edx, [esp + 0x24]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x402782
pop edi
mov eax, 0xfffffff1
pop esi
add esp, 0x120
ret
pop edi
mov eax, 0xfffffff7
pop esi
add esp, 0x120
ret
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret
pop edi
mov eax, 0xfffffffd
pop esi
add esp, 0x120
ret
Function at 0x4027a0
Capabilities:
Check mutex on windows
Send data
Send data on socket

Disassembly:
sub esp, 0x424
push ebx
mov ebx, dword [esp + 0x434]
push ebp
push esi
xor esi, esi
cmp ebx, 0x400
lea eax, [ebx + 8]
lea ebp, [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
jle 0x4027eb
push eax
call fcn.004131d5
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x4027eb
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x424
ret
mov esi, dword [esp + 0x438]
mov ecx, ebx
shr ecx, 0x10
mov byte [ebp + 5], cl
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 4], al
mov ecx, ebx
mov eax, ecx
push edi
mov edx, ebx
shr ecx, 2
shr edx, 8
mov byte [ebp + 7], bl
mov ebx, dword [esp + 0x1c]
mov byte [ebp], 0x4a
mov byte [ebp + 1], 0x5e
mov byte [ebp + 2], 0x7a
mov byte [ebp + 3], 4
mov byte [ebp + 6], dl
lea edi, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
mov esi, 0x40000000
jle 0x402909
mov eax, ebx
sub eax, edi
cmp eax, esi
jle 0x402852
mov eax, esi
mov edx, dword [esp + 0x438]
push 0
push eax
lea ecx, [edi + ebp]
push ecx
push edx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x4028cb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2747
jne 0x4028a2
sar esi, 1
cmp esi, 0x400000
jle 0x402890
mov esi, 0x400000
mov dword [esp + 0x14], 0
jmp 0x4028f7
cmp esi, 0x100
jl 0x4028c1
mov dword [esp + 0x14], 0
jmp 0x4028f7
cmp eax, 0x2733
jne 0x4028c1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x14], eax
jle 0x4028f7
mov dword [esp + 0x10], 0xfffffff4
jmp 0x402909
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], ecx
jne 0x4028ef
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x18], eax
jg 0x4028c1
jmp 0x4028f7
jle 0x402901
add edi, eax
mov dword [esp + 0x18], ecx
cmp edi, ebx
jl 0x402848
jmp 0x402909
mov dword [esp + 0x10], 0xffffff9d
lea eax, [esp + 0x2c]
cmp ebp, eax
je 0x40291a
push ebp
call fcn.004130bd
add esp, 4
test edi, edi
jle 0x4029a2
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push str.KASC_STAT_MUTEX
push ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40296b
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
jmp 0x40296f
mov ebp, dword [esp + 0x1c]
mov ebx, 0x428a38
mov eax, 0x428a08
call fcn.004022f0
mov ecx, dword [0x428a08]
add ecx, edi
test esi, esi
mov dword [0x428a08], ecx
je 0x4029a2
test ebp, ebp
jne 0x40299b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x404650
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWARERAdmin_v3.0ServerParametersRadmin_Security
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404687
mov ecx, dword [esp]
push 0x41f5b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp]
test eax, eax
je 0x404695
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x429078]
test eax, eax
je 0x4046c8
push 4
push 0x429080
push 3
push str.NTAuthEnabled
push str.SOFTWARERAdmin_v3.0ServerParameters
push reloc.WS2_32.dll_bind
mov dword [0x429078], 0
call fcn.0040a2a0
add esp, 0x18
mov eax, dword [0x42907c]
test eax, eax
je 0x4046fb
push 4
push 0x4263a0
push 3
push str.Port
push str.SOFTWARERAdmin_v3.0ServerParameters
push reloc.WS2_32.dll_bind
mov dword [0x42907c], 0
call fcn.0040a2a0
add esp, 0x18
xor eax, eax
pop ecx
ret
Function at 0x4054d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
xor eax, eax
mov dword [esp + 0x10], 0x94
mov dword [esp + 0x14], 0
mov ecx, 0x23
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x405557
mov edi, dword [ebp + 8]
push edi
call fcn.004050b0
mov esi, eax
add esp, 4
test esi, esi
je 0x405529
cmp esi, 0xfffffff2
je 0x405529
cmp esi, 0xfffffff1
jne 0x40554f
cmp dword [esp + 0x14], 5
jb 0x40554f
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], 0
call fcn.0040e720
add esp, 8
cmp eax, 1
jne 0x40554f
mov esi, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call fcn.00404c00
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405790
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call fcn.004054d0
add esp, 4
cmp eax, 0xffffffec
mov dword [esp + 4], eax
jl 0x4057ce
test eax, eax
jg 0x4057ce
mov eax, 1
add esp, 0xc
ret
push esi
push edi
lea edx, [esp + 8]
push edx
push 0x404f30
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x405806
xor esi, esi
test eax, eax
jne 0x405806
cmp esi, 0x19
jge 0x405806
push 0xa
call edi
mov eax, dword [esp + 0x10]
inc esi
test eax, eax
je 0x4057f4
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jne 0x405826
push 0x1f4
mov dword [esp + 0xc], eax
call edi
pop edi
mov eax, 2
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x405830
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
mov ecx, 0x42
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x405994
cmp byte [eax], 0
je 0x405994
push 0x104
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00412010
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405884
sub eax, edx
mov cl, byte [esp + eax + 0x14]
cmp cl, 0x2e
lea eax, [esp + eax + 0x18]
jne 0x4058b9
mov cl, byte [eax - 3]
or cl, 0x20
cmp cl, 0x65
jne 0x4058b9
mov dl, byte [eax - 2]
or dl, 0x20
cmp dl, 0x78
jne 0x4058b9
mov al, byte [eax - 1]
or al, 0x20
cmp al, cl
je 0x4058d9
lea edi, [esp + 0x18]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4058c0
mov ecx, dword [str..exe]
mov dl, byte [0x41f8dc]
mov dword [edi], ecx
mov byte [edi + 4], dl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405790
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x405950
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push 0xf060
push 0x112
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40592d
push 0
push 0
push 0x10
push esi
call edi
push 0x32
call ebx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405989
push 0
push 0
push 2
push esi
call edi
push 0x32
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x405989
lea edx, [esp + 0x18]
push edx
call fcn.004054d0
add esp, 4
cmp eax, ebx
jbe 0x405989
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x405989
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a60
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x1000
call fcn.00412890
push esi
mov esi, dword [esp + 0x100c]
cmp esi, 0xffffffff
jne 0x405a81
or eax, esi
pop esi
add esp, 0x1000
ret
push ebx
mov ebx, dword [esp + 0x100c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
push ebp
push edi
mov edi, dword [ebx + 4]
add eax, edi
cmp eax, ecx
jle 0x405afb
cmp edi, 0x1000
jbe 0x405b11
push edi
call fcn.004131d5
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x405af4
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov esi, dword [ebx + 0xc]
sub ecx, eax
mov edx, ecx
shr ecx, 2
add esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
sub ecx, edi
add ecx, eax
sub edi, eax
mov eax, ecx
shr ecx, 2
add edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1018]
test ebp, ebp
mov edi, dword [ebx + 4]
jne 0x405b17
mov ecx, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
push 0
push edi
add ecx, ebp
push ecx
push esi
call sub.WS2_32.dll_send
mov esi, eax
jmp 0x405b34
lea ebp, [esp + 0x10]
jmp 0x405ab0
push 0
push edi
push ebp
push esi
call sub.WS2_32.dll_send
lea edx, [esp + 0x10]
cmp ebp, edx
mov esi, eax
je 0x405b34
push ebp
call fcn.004130bd
add esp, 4
cmp esi, 0xffffffff
je 0x405b60
mov eax, dword [ebx + 8]
add eax, esi
cdq
idiv dword [ebx]
mov ebp, dword [ebx + 4]
mov ecx, dword [ebx + 0x10]
sub ebp, esi
add ecx, esi
cmp esi, edi
mov dword [ebx + 4], ebp
mov dword [ebx + 0x10], ecx
mov dword [ebx + 8], edx
jge 0x405b60
sub edi, esi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x1000
ret

Function at 0x406460
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1a4
push esi
mov esi, dword [esp + 0x1ac]
xor eax, eax
test esi, esi
je 0x406523
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0xb]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1a]
push edx
lea eax, [esp + 0x28]
push eax
push str._d_c_d_c_d_c_d
push esi
call fcn.004134e0
add esp, 0x24
cmp eax, 7
jl 0x4064d5
mov cl, byte [esp + 6]
mov al, 0x2e
cmp cl, al
jne 0x4064d5
cmp byte [esp + 5], al
jne 0x4064d5
cmp byte [esp + 7], al
jne 0x4064d5
push esi
call fcn.004140b3
add esp, 4
pop esi
add esp, 0x1a4
ret
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x406519
push esi
call sub.WS2_32.dll_gethostbyname
mov edi, eax
call fcn.0040e8f2
test edi, edi
je 0x406519
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
call fcn.004140b3
add esp, 4
pop edi
pop esi
add esp, 0x1a4
ret
push esi
call fcn.004140b3
add esp, 4
pop edi
pop esi
add esp, 0x1a4
ret
Function at 0x4066a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x124
xor ecx, ecx
mov dword [esp + 8], ecx
push esi
lea edx, [esp + 8]
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push edx
mov word [esp + 0xd], ax
push 0x4d000001
xor esi, esi
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], al
mov byte [esp + 0x20], cl
mov dword [esp + 0xc], ecx
call fcn.00402e50
lea eax, [esp + 0x18]
push eax
push 1
call fcn.00402e50
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00402e50
add esp, 0x18
push 0xff
lea eax, [esp + 0x2c]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x40685e
lea ecx, [esp + 0x28]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40672b
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.00402e50
mov eax, dword [esp + 0x134]
push 0x11
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x2c], 2
call fcn.004027a0
add esp, 0x14
test eax, eax
je 0x406763
mov eax, 0xe40001
pop esi
add esp, 0x124
ret
push ebx
push ebp
lea ecx, [esp + 0x24]
push edi
push ecx
or ebx, 0xffffffff
call fcn.0041283f
add esp, 4
xor ebp, ebp
jmp 0x406780
mov esi, dword [esp + 0x140]
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call fcn.004029c0
add esp, 0x10
test eax, eax
jne 0x406825
mov esi, dword [esp + 0x10]
push esi
call fcn.00402e20
add esp, 4
cmp eax, 0x4d000003
jne 0x406803
lea edx, [esi + 4]
push edx
call fcn.00402e20
add esi, 8
push esi
mov edi, eax
call fcn.00402e20
mov ecx, dword [esp + 0x144]
add esp, 8
cmp edi, ecx
jne 0x406803
cmp eax, 0x1000f
jne 0x4067ea
mov ebx, 1
jmp 0x4067fe
cmp eax, 0x10001
jne 0x4067f5
xor ebx, ebx
jmp 0x4067fe
cmp eax, 0x2bad2bad
jne 0x406803
mov ebx, eax
mov ebp, 1
mov eax, dword [esp + 0x10]
push eax
call fcn.00402de0
add esp, 4
test ebp, ebp
je 0x406780
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
cmp eax, 0xfffffff4
je 0x406818
cmp eax, 0xfffffff5
je 0x406818
cmp eax, 0xffffff9d
je 0x406818
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041283f
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
add esp, 4
cmp edx, esi
jle 0x406780
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
or eax, 0xffffffff
pop esi
add esp, 0x124
ret