joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xec]
mov ecx, 0x3b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x448bcf
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
cmp esi, esp
call fcn.00407923
jmp 0x448ce1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
cmp esi, esp
call fcn.00407923
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp + 0x10], 0
jl 0x448c89
jg 0x448c09
cmp dword [ebp + 0xc], 0
jbe 0x448c89
cmp dword [ebp - 0x24], 0
jl 0x448c89
jg 0x448c17
cmp dword [ebp - 0x28], 0
jbe 0x448c89
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x24]
jg 0x448c35
jl 0x448c29
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x28]
jae 0x448c35
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00407923
push eax
call fcn.00405484
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x28]
mov esi, esp
push eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp esi, esp
call fcn.00407923
cmp dword [ebp + 0x10], 0
jl 0x448cd5
jg 0x448c97
cmp dword [ebp + 0xc], 0
jbe 0x448cd5
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x448cd5
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00407923
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0xec
cmp ebp, esp
call fcn.00407923
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46d280
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x664]
mov ecx, 0x199
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x639704]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x660], 0
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov esi, esp
push 0x200
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.00407923
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.004023fb
mov ecx, dword [ebp - 0x660]
or ecx, 1
mov dword [ebp - 0x660], ecx
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x46d344]
call fcn.00407e46
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c44
add esp, 0x664
cmp ebp, esp
call fcn.00407923
mov esp, ebp
pop ebp
ret 4

Function at 0x46d5f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x664]
mov ecx, 0x199
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x639704]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x660], 0
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov esi, esp
push 0x200
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.00407923
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.004023fb
mov ecx, dword [ebp - 0x660]
or ecx, 1
mov dword [ebp - 0x660], ecx
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x46d6b4]
call fcn.00407e46
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c44
add esp, 0x664
cmp ebp, esp
call fcn.00407923
mov esp, ebp
pop ebp
ret 4

Function at 0x46d830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x664]
mov ecx, 0x199
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x639704]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x660], 0
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov esi, esp
push 0x200
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.00407923
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.004023fb
mov ecx, dword [ebp - 0x660]
or ecx, 1
mov dword [ebp - 0x660], ecx
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x46d8f4]
call fcn.00407e46
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c44
add esp, 0x664
cmp ebp, esp
call fcn.00407923
mov esp, ebp
pop ebp
ret 4
Function at 0x49ee90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040aa83
shl eax, 1
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp + 0xc]
call fcn.004083d7
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp + 8]
call fcn.004083d7
mov dword [ebp - 0xd8], eax
mov esi, esp
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xd8]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp esi, esp
call fcn.00407923
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.00407923
mov esp, ebp
pop ebp
ret 0xc

Function at 0x52d620
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x639704]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x6446d6
call fcn.00407621
mov dword [ebp - 0x2c], 0x63d9f8
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x52d67a
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x24]
push edx
call fcn.00409ffc
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c44
mov esp, ebp
pop ebp
ret
Function at 0x5358a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb300
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x639704]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, 0x6447c9
call fcn.00407621
push 0
call fcn.004011f4
add esp, 4
mov dword [ebp - 0x10], 0
call fcn.00409b92
mov dword [ebp - 0x20], eax
push 0x5f899c
lea ecx, [ebp - 0x40]
call fcn.00401c67
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00402db0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00406e4c
cmp dword [ebp - 0x14], 0
je 0x53596b
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
push 0
push 0x100000
push 0x1000
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
push 0
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x535969
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x5359b7
mov dword [ebp - 0x18], 0
push 1
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0040a80d
add esp, 8
test eax, eax
je 0x53598b
mov dword [ebp - 0x18], 4
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call fcn.0040ae0c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x57b140
Capabilities:
Check for debugger via api
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x639704]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, 0x644c44
call fcn.00407621
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
je 0x57b183
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
call fcn.00409b79
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x20], eax
je 0x57b183
mov ecx, dword [ebp - 0xc]
call fcn.00403ed1
jmp 0x57b19d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
call fcn.00409b79
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x20], eax
jne 0x57b19d
xor eax, eax
jmp 0x57b22f
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 4]
call fcn.0040b406
mov ecx, eax
call fcn.00403544
cmp dword [eax], 2
jne 0x57b1c2
mov eax, 0xc0000024
jmp 0x57b22f
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
call fcn.00403fcb
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 8], 1
jne 0x57b1e5
mov eax, 0xc0000718
jmp 0x57b22f
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x57b1f5
mov eax, 0xc0000129
jmp 0x57b22f
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x40118b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x57b224
mov dword [ebp - 0x10], 0
jmp 0x57b22c
call fcn.0040ae0c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c44
mov esp, ebp
pop ebp
ret
Function at 0x402e04
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x444008], 0x8088405
inc edx
mov dword [ebx + 0x444008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4035a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x444024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403638
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403618
xor eax, eax
push ebp
push 0x403611
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403654
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403618
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x444024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x444024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404210
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a804c], 0
je 0x404271
cmp word [0x4a8220], 0xd7b2
jne 0x404239
cmp dword [0x4a8228], 0
jbe 0x404239
mov eax, 0x4a821c
call dword [0x4a8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x444098
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404298
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x444030], 0
jne 0x40428d
push 0
push 0x444090
push 0x444098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405fb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40601a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404614
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e20
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406004
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406021
lea eax, [ebp - 0x10]
call fcn.00404394
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404840
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407f15
test al, 0x10
je 0x407f19
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c0cc
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x4a87b8
mov eax, ebx
mov edx, 8
test al, 1
je 0x40c0e8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c0ea
shr eax, 1
dec edx
jne 0x40c0db
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x40c0d4
pop ebx
ret

Function at 0x40d2d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, dword [esp]
inc eax
cmp eax, 5
jge 0x40d2ed
xor eax, eax
jmp 0x40d375
mov cl, byte [esi]
and cl, 0xff
and ecx, 0xff
mov eax, ecx
mov ebx, 9
cdq
idiv ebx
mov dword [esp + 4], edx
mov eax, ecx
mov ecx, 9
cdq
idiv ecx
mov ecx, eax
mov eax, ecx
mov ebx, 5
cdq
idiv ebx
mov dword [esp + 8], edx
mov eax, ecx
mov ecx, 5
cdq
idiv ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
xor eax, eax
mov ecx, eax
shl ecx, 3
lea edx, [eax + 1]
mov dl, byte [esi + edx]
and dl, 0xff
and edx, 0xff
shl edx, cl
add ebx, edx
inc eax
cmp eax, 4
jne 0x40d332
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.0040ce94
test al, al
jne 0x40d36c
xor eax, eax
jmp 0x40d375
mov edx, ebx
mov eax, edi
call fcn.0040ce44
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x40e4c0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4a8c08
call fcn.004073e0
dec eax
jne 0x40e4e1
push 0x4a8c0c
mov dl, 2
mov al, 2
call fcn.00406550
push eax
call sub.wsock32.dll_WSAStartup
ret

Function at 0x40e85c
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
cmp dword [ebx], 0xffffffff
je 0x40e8bf
mov byte [esp], 0
push 1
lea eax, [esp + 4]
push eax
push 0xff7f
push 0xffff
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_setsockopt
mov word [esp + 2], 1
mov word [esp + 4], 0
push 4
lea eax, [esp + 6]
push eax
push 0x80
push 0xffff
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_closesocket
inc eax
sete al
mov dword [ebx], 0xffffffff
pop ecx
pop edx
pop ebx
ret

Function at 0x40e914
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e9df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404394
xor eax, eax
push ebp
push 0x40e9c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404840
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e9b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x40e9aa
test ebx, ebx
jne 0x40e982
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.0040459c
jmp 0x40e9a9
push dword [esi]
push 0x40e9f8
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.0040459c
push dword [ebp - 0xc]
mov eax, esi
mov edx, 3
call fcn.00404700
inc ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax + ebx*4]
test edi, edi
jne 0x40e96c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9c9
ret
Function at 0x40eca4
Capabilities:
Get networking parameters

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffff92c
mov ebx, eax
mov eax, ebx
call fcn.00404394
mov dword [esp], 0x16d0
push esp
lea eax, [esp + 8]
push eax
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
jne 0x40ecee
cmp byte [esp + 0x114], 0
je 0x40ecee
mov eax, ebx
lea edx, [esp + 0x114]
mov ecx, 0x10
call fcn.00404614
add esp, 0x16d4
pop ebx
ret
Function at 0x40f1fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404830
xor eax, eax
push ebp
push 0x40f3a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a8d9c
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x40f364
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4442f4], 0
je 0x40f25e
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x4442f0]
cmp eax, 0x927c0
jb 0x40f337
mov eax, 0x4442f4
call fcn.00404394
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040f02c
mov edx, 0x40f3c0
mov eax, dword [ebp - 0xc]
call fcn.0040e628
mov edi, eax
test edi, edi
jle 0x40f337
mov ebx, 1
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov edx, 0x40f3c0
mov eax, dword [ebp - 0xc]
call fcn.0040e718
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040e5d0
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
mov edx, 0x40f3c0
mov eax, dword [ebp - 0xc]
call fcn.0040e718
mov eax, dword [ebp - 0x18]
call fcn.0040e558
mov esi, eax
mov ecx, 0x40f3cc
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040ea04
test al, al
je 0x40f32f
push dword [ebp - 0x10]
push 0x40f3e0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00407948
push dword [ebp - 0x1c]
push 0x40f3ec
push dword [0x4442f4]
mov eax, 0x4442f4
mov edx, 5
call fcn.00404700
mov edx, 0x40f3ec
mov eax, dword [0x4442f4]
call fcn.0040e628
cmp eax, 3
jl 0x40f32f
call sub.kernel32.dll_GetTickCount_1
mov dword [0x4442f0], eax
jmp 0x40f337
inc ebx
dec edi
jne 0x40f28f
mov edx, 0x40f3ec
mov eax, dword [0x4442f4]
call fcn.0040e628
cmp eax, 3
jge 0x40f35a
push 0x1d4c0
call sub.kernel32.dll_Sleep
jmp 0x40f23f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f36e
push 0x4a8d9c
call sub.kernel32.dll_LeaveCriticalSection_1
mov eax, dword [ebp - 8]
mov edx, dword [0x4442f4]
call fcn.004043e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3b0
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004043b8
lea eax, [ebp - 4]
call fcn.00404394
ret
Function at 0x413cf4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x413d1e
cmp dword [ebx + 0x64], 0
jne 0x413d1e
cmp dword [ebx + 0x6c], 0
jne 0x413d1e
mov esi, edi
jmp 0x413db6
cmp esi, 0xffffffff
jne 0x413d29
dec esi
jmp 0x413db6
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x413db6
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.0040f580
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
mov dword [esp], edx
sub dword [esp], 2
mov edx, dword [esp]
movzx edx, word [edx]
cmp edi, edx
ja 0x413d76
sub dx, di
mov ecx, dword [esp]
mov word [ecx], dx
jmp 0x413d7e
mov edx, dword [esp]
mov word [edx], 0
dec eax
test eax, eax
jne 0x413d5d
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
mov dword [esp], edx
sub dword [esp], 2
mov edx, dword [esp]
movzx edx, word [edx]
cmp edi, edx
ja 0x413da7
sub dx, di
mov ecx, dword [esp]
mov word [ecx], dx
jmp 0x413daf
mov edx, dword [esp]
mov word [edx], 0
dec eax
test eax, eax
jne 0x413d8e
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x413e14
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00413a24
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x413dff
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x413e14
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x413cfe
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret