joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068f0
Capabilities:
Create process on windows
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ea40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push str.http:__update.iteny.net_OutAd.txt
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
call fcn.0041b560
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x4c84]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 0x18], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x2a50]
test eax, eax
je 0x406989
push str.NULL
push edx
call fcn.00424290
add esp, 8
test eax, eax
jne 0x406989
mov ecx, dword [ebp - 0x18]
push 1
push eax
push ecx
push str.iexplore.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x517]
mov byte [ebp - 0x518], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x118]
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._scrollad.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
lea eax, [ebp - 0x118]
and ecx, 3
push eax
push str.http:__update.iteny.net_ScrollAd.txt
rep movsb byte es:[edi], byte [esi]
call fcn.00411110
add esp, 0x10
lea ecx, [ebp - 0x118]
lea edx, [ebp - 0x518]
push ecx
push 0x1002
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ebx, [ebp - 0x518]
cmp byte [ebx], 0
mov eax, dword [ebp - 0x14]
je 0x406ab3
lea esi, [eax + 0x4d84]
mov ecx, 0x40
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x118]
push ecx
push 0x104
push esi
push 0x4b8c40
push str.Name
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2a54]
test ecx, ecx
jne 0x406ab3
push esi
lea ecx, [eax + 0x1f4]
call fcn.00404040
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebx + ecx + 1]
jmp 0x406a3d
mov ecx, dword [eax + 0x2a54]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x406ad4
push 0x4ade84
lea ecx, [eax + 0x1f4]
call fcn.00404040
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406cc0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x300
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x5d8]
lea ecx, [esp + 0x10]
xor eax, 0x7dd
push eax
push 0x4ac1a4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x110], 6
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x314]
xor esi, esi
push 0
lea ecx, [esp + 0x114]
push 0x200
push ecx
push edi
call ebx
cmp eax, 0xffffffff
jne 0x406d7b
push 0x32
call ebp
inc esi
cmp esi, 3
jl 0x406d58
jmp 0x406d80
cmp esi, 3
jl 0x406d87
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x300
ret 4

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

Disassembly:
sub esp, 0x300
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x5d8]
lea ecx, [esp + 0x10]
xor eax, 0x7dd
push eax
push 0x4ac1a4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x110], 5
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x314]
xor esi, esi
push 0
lea ecx, [esp + 0x114]
push 0x200
push ecx
push edi
call ebx
cmp eax, 0xffffffff
jne 0x406e5b
push 0x32
call ebp
inc esi
cmp esi, 3
jl 0x406e38
jmp 0x406e60
cmp esi, 3
jl 0x406e67
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x300
ret 4
Function at 0x409ba0
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c70]
test eax, eax
je 0x409bcd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x4c70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c70], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x409bef
push 0
push 0
push esi
push 0x405310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c70], eax
pop esi
ret 4
Function at 0x409c00
Capabilities:
Set tcp connection state

Disassembly:
push 0xffffffffffffffff
push 0x48eb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4afd08]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x10]
push 1
push ecx
push esi
mov dword [esp + 0x1c], esi
call sub.iphlpapi.dll_GetTcpTable
cmp eax, 0x7a
jne 0x409dd2
mov edx, dword [esp + 0x10]
push edx
call fcn.00423dab
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edi
push 1
push eax
push edi
call sub.iphlpapi.dll_GetTcpTable
test eax, eax
jne 0x409db1
mov eax, dword [edi]
mov dword [esp + 0x14], esi
cmp eax, esi
jle 0x409db1
add edi, 0xc
mov ebp, dword [edi + 4]
mov esi, str.127.0.0.1
push ebp
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409cb3
test cl, cl
je 0x409caf
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409cb3
add eax, 2
add esi, 2
test cl, cl
jne 0x409c8f
xor eax, eax
jmp 0x409cb8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409d93
push ebp
mov esi, str.0.0.0.0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409cf0
test cl, cl
je 0x409cec
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409cf0
add eax, 2
add esi, 2
test cl, cl
jne 0x409ccc
xor eax, eax
jmp 0x409cf5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409d93
mov eax, dword [edi - 8]
lea esi, [edi - 8]
cmp eax, 5
jne 0x409d93
mov ax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx + 0x4c64]
and eax, 0xffff
cmp eax, ecx
jb 0x409d93
mov cx, word [edi]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx + 0x4c68]
and eax, 0xffff
cmp eax, ecx
ja 0x409d93
mov dx, word [edi]
push edx
call dword [sym.imp.WS2_32.dll_htons]
and eax, 0xffff
push eax
push ebp
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebx + 0x5108]
push eax
call fcn.00417b00
cmp eax, dword [ebx + 0x4c6c]
jb 0x409d93
cmp dword [ebx + 0x4c60], 2
jne 0x409d87
push ebp
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebx + 0x26ec]
call fcn.004127c0
jmp 0x409d93
push esi
mov dword [esi], 0xc
call sub.iphlpapi.dll_SetTcpEntry
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x14
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x409c80
mov edi, ecx
xor esi, esi
mov ecx, dword [ebx + 0x5108]
call fcn.00417e70
push edi
call fcn.00423cc2
add esp, 4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409c2d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409c2d
Function at 0x409fa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ebb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x4afd08]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004245de
mov eax, dword [ebp + 0x2a08]
add esp, 4
cmp eax, ebx
je 0x40a1b7
cmp dword [ebp + 0x4c78], 0x1f40
jb 0x40a1b7
mov ecx, dword [ebp + 0x454]
push esi
push edi
mov dword [ebp + 0x4c78], ebx
mov dword [ebp + 0x4c7c], ebx
call fcn.00418960
mov ecx, dword [ebp + 0x5d8]
push ebx
lea edx, [esp + 0x18]
push 4
mov dword [esp + 0x1c], ecx
push edx
push 0x22200c
mov ecx, ebp
call fcn.00406050
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x4ae458
push ecx
call fcn.0047a92c
add esp, 0xc
lea ecx, [esp + 0x10]
push ebx
call fcn.004813de
push eax
lea ecx, [ebp + 0x1f4]
call fcn.00404040
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x4ac1a4
push eax
call fcn.0047a92c
mov ecx, dword [ebp + 0x55c]
add esp, 0xc
push ebx
push ebx
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
mov esi, eax
push ebx
lea edi, [ebp + 0x540]
push edx
push esi
push 1
mov ecx, edi
call fcn.0047b2ce
push 0x4ae450
push 1
push esi
mov ecx, edi
call fcn.0047b39e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call esi
lea ebx, [ebp + 0x378]
call fcn.004245eb
cdq
mov ecx, 0xea60
idiv ecx
mov ecx, ebx
lea eax, [edx + 0x400]
push eax
mov dword [ebp + 0x5d8], eax
call fcn.0040d720
test eax, eax
jne 0x40a103
mov ecx, dword [ebp + 0x454]
call fcn.00418960
push 0x3e8
call esi
jmp 0x40a0ca
lea ecx, [esp + 0x11c]
call fcn.00419b20
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
mov byte [esp + 0x228], 1
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._setting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x5d8]
push ecx
push str.DLQPORT
push str.SYSPORT
lea ecx, [esp + 0x12c]
call fcn.00419c30
mov edx, dword [ebp + 0x5d8]
push 0
push edx
push 0x400
mov ecx, ebx
call fcn.004809fa
lea ecx, [esp + 0x11c]
mov byte [esp + 0x228], 0
call fcn.00419b50
pop edi
pop esi
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call fcn.0048105e
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40a1f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48ebd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x4afd08]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004245de
mov eax, dword [ebp + 0x2a08]
add esp, 4
cmp eax, ebx
je 0x40a407
cmp dword [ebp + 0x4c7c], 0xbb8
jb 0x40a407
mov ecx, dword [ebp + 0x454]
push esi
push edi
mov dword [ebp + 0x4c78], ebx
mov dword [ebp + 0x4c7c], ebx
call fcn.00418960
mov ecx, dword [ebp + 0x5d8]
push ebx
lea edx, [esp + 0x18]
push 4
mov dword [esp + 0x1c], ecx
push edx
push 0x22200c
mov ecx, ebp
call fcn.00406050
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x4ae494
push ecx
call fcn.0047a92c
add esp, 0xc
lea ecx, [esp + 0x10]
push ebx
call fcn.004813de
push eax
lea ecx, [ebp + 0x1f4]
call fcn.00404040
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push 0x4ac1a4
push eax
call fcn.0047a92c
mov ecx, dword [ebp + 0x55c]
add esp, 0xc
push ebx
push ebx
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
mov esi, eax
push ebx
lea edi, [ebp + 0x540]
push edx
push esi
push 1
mov ecx, edi
call fcn.0047b2ce
push 0x4ae48c
push 1
push esi
mov ecx, edi
call fcn.0047b39e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
lea ebx, [ebp + 0x378]
call fcn.004245eb
cdq
mov ecx, 0xea60
idiv ecx
mov ecx, ebx
lea eax, [edx + 0x400]
push eax
mov dword [ebp + 0x5d8], eax
call fcn.0040d720
test eax, eax
jne 0x40a353
mov ecx, dword [ebp + 0x454]
call fcn.00418960
push 0x1f4
call esi
jmp 0x40a31a
lea ecx, [esp + 0x11c]
call fcn.00419b20
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
mov byte [esp + 0x228], 1
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._setting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x5d8]
push ecx
push str.DLQPORT
push str.SYSPORT
lea ecx, [esp + 0x12c]
call fcn.00419c30
mov edx, dword [ebp + 0x5d8]
push 0
push edx
push 0x400
mov ecx, ebx
call fcn.004809fa
lea ecx, [esp + 0x11c]
mov byte [esp + 0x228], 0
call fcn.00419b50
pop edi
pop esi
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call fcn.0048105e
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40b530
Capabilities:
Create raw socket
Get hostname
Receive data
Receive data on socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x1014c
call fcn.00424180
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
xor ebx, ebx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov esi, 1
push 3
push 2
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
mov dword [esp + 0x1c], esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 0xffff
push ebp
call esi
lea ecx, [esp + 0x10]
push 4
push ecx
push 2
push ebx
push ebp
call esi
lea edx, [esp + 0x5c]
push 0x80
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40b5f5
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x40b5f5
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
cmp eax, ebx
je 0x40b5f5
mov edx, dword [eax]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x270f
mov word [esp + 0x28], 2
call dword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [esp + 0xdc]
mov word [esp + 0x26], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x24]
push 0x10
push edx
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_bind]
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x40]
push 0x28
push ecx
lea edx, [esp + 0x30]
push 4
push edx
push 0x98000001
push ebp
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x160]
push 0xffff
push eax
push ebp
call esi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fcomp dword [0x49433c]
fnstsw ax
test ah, 1
je 0x40b69c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b653
lea ecx, [esp + 0x15c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0040b6b0
jmp 0x40b653

Function at 0x40b810
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c74]
test eax, eax
je 0x40b83d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x4c74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c74], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x40b860
push 0
push 0
push 0
push 0x405380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c74], eax
pop esi
ret 4
Function at 0x40bec0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x80
mov ebp, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40bf4d
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40bf4d
xor ebx, ebx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ebx]
test eax, eax
je 0x40bf4d
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
add ebx, 4
jmp 0x40bef5
mov eax, dword [ebp + 0x220]
push 0
push 0
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret

Function at 0x40bf70
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x80
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40c02a
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40c02a
xor ebp, ebp
mov ebx, 0x2c60
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ebp]
test eax, eax
je 0x40c02a
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0048150a
test eax, eax
je 0x40bff8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40bffa
xor eax, eax
lea edx, [ebx + eax]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
add ebp, 4
rep movsb byte es:[edi], byte [esi]
jmp 0x40bfb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret

Function at 0x40c040
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push 0
test eax, eax
push 0
je 0x40c058
mov eax, dword [esp + 0xc]
push eax
push 0x40b890
jmp 0x40c062
mov ecx, dword [esp + 0xc]
push ecx
push 0x40b8c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c077
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 8
Function at 0x40d720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48edc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x118]
call fcn.00419b20
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov dword [esp + 0x224], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4afd08]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 1
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str._setting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xdc]
call fcn.004188b0
mov esi, dword [esp + 0x22c]
mov ecx, dword [ebp + 0xdc]
push esi
call fcn.004188d0
cmp eax, ebx
jne 0x40d82d
call fcn.0048150a
cmp eax, ebx
je 0x40d7ed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40d7ef
xor eax, eax
push 0x4af0f0
lea ecx, [eax + 0x1f4]
call fcn.00404040
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], bl
call fcn.0048105e
lea ecx, [esp + 0x118]
mov dword [esp + 0x224], 0xffffffff
call fcn.00419b50
xor eax, eax
jmp 0x40d958
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push eax
push esi
push str.PORT
push str.SYSPORT
call fcn.00419c30
mov eax, dword [ebp + 0x148]
lea edi, [ebp + 0x260]
cmp eax, ebx
je 0x40d8c0
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push ecx
push 0x4af0d4
push edx
call fcn.0047a92c
add esp, 0xc
call fcn.0048150a
cmp eax, ebx
je 0x40d882
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
jmp 0x40d884
xor esi, esi
push ebx
lea ecx, [esp + 0x14]
call fcn.004813de
push eax
lea ecx, [esi + 0x1f4]
call fcn.00404040
call fcn.0048150a
cmp eax, ebx
je 0x40d8ac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40d8ae
xor eax, eax
push ebx
push 4
push edi
push 0x22200c
mov ecx, eax
call fcn.00406050
jmp 0x40d92c
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push eax
push 0x4af0b8
push ecx
call fcn.0047a92c
add esp, 0xc
call fcn.0048150a
cmp eax, ebx
je 0x40d8e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
jmp 0x40d8eb
xor esi, esi
push ebx
lea ecx, [esp + 0x14]
call fcn.004813de
push eax
lea ecx, [esi + 0x1f4]
call fcn.00404040
call fcn.0048150a
cmp eax, ebx
je 0x40d913
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40d915
xor eax, eax
push ebx
push 4
push edi
push 0x222010
mov ecx, eax
call fcn.00406050
mov ecx, ebp
call fcn.0040d980
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], bl
call fcn.0048105e
lea ecx, [esp + 0x118]
mov dword [esp + 0x224], 0xffffffff
call fcn.00419b50
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret 4