joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f0e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa4], 0x1c
mov esi, dword [ebp + 0x14]
test edi, edi
jle 0x403f6c
test esi, esi
lea edx, [ebp - 0xa4]
jne 0x403f5c
push eax
lea eax, [ebp - 0x90]
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x1c
pop eax
push eax
lea eax, [ebp - 0x74]
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
pop eax
jmp 0x403f76
mov eax, edi
neg eax
xchg al, ah
mov word [ebp - 0x72], ax
test esi, esi
jne 0x403f80
lea esi, [ebp - 0x90]
lea eax, [ebp - 0xa0]
sub esp, 0xc
lea edi, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
sub esp, 0xc
push esi
push edi
call fcn.004038cd
mov ecx, ebx
add esp, 0x20
call fcn.00403b7e
mov ecx, dword [ebp + 0x18]
cmp ecx, 0x43f6e0
jne 0x403fc1
mov eax, dword [ebx + 4]
mov dword [eax], 0x21215e
add eax, 3
mov dword [ebx + 4], eax
movzx edx, word [ebp - 0x72]
mov eax, edx
xchg al, ah
mov edx, eax
movsx ecx, byte [ecx]
movzx eax, word [esi + 2]
xchg al, ah
push esi
push esi
push dword [0x46d958]
push dword [0x46dba8]
push edx
push ecx
push eax
movzx eax, word [ebp - 0x94]
push edi
push eax
movzx eax, word [ebp - 0x96]
push eax
movzx eax, word [ebp - 0x98]
push eax
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0x9a]
push eax
push ecx
push str._r_n___c_2.2u__2.2u__2.2u:_2.2u:_2.2u___s:_u_c_u___t_d__d_
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_wsprintfA]
add eax, dword [ebx + 4]
lea edx, [ebx + 0x811c]
mov dword [ebx + 4], eax
mov esi, eax
mov eax, dword [ebp + 0x18]
add esp, 0x40
cmp dword [ebp + 0xc], 0
je 0x404045
inc eax
push dword [ebp + 0xc]
push eax
push edx
push esi
call fcn.004296ac
jmp 0x404052
lea ecx, [ebp + 0x1c]
inc eax
push ecx
push eax
push edx
push esi
call fcn.0042961f
sub eax, 2
add esp, 0x10
add dword [ebx + 4], eax
cmp dword [0x46d898], 0
je 0x404076
sub esp, 0xc
push esi
call fcn.00403912
add esp, 0x10
sub eax, 2
mov dword [ebx + 4], eax
test byte [0x46d97d], 0x40
je 0x4040de
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax*4 + 0x42e030]
test eax, eax
je 0x4040de
push edx
push edx
push eax
push esi
call fcn.004034dd
add esp, 0x10
mov edx, eax
test eax, eax
je 0x4040d6
mov eax, dword [ebp - 0xa4]
mov edi, dword [eax*4 + 0x42e030]
cld
xor al, al
xor ecx, ecx
test edi, edi
je 0x4040c8
dec ecx
repne scasb al, byte es:[edi]
inc ecx
not ecx
add ecx, edx
cmp byte [ecx], 0xd
jbe 0x4040d6
inc ecx
mov byte [ecx - 1], 0x2a
jmp 0x4040ca
inc dword [ebp - 0xa4]
jmp 0x404089
lea eax, [ebp - 0xa0]
sub esp, 0xc
mov ecx, ebx
push eax
call fcn.00403bc6
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404403
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push ebx
test byte [0x46d978], 0x10
jne 0x404422
push eax
push eax
push 0x42e260
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edx
pop ecx
mov dword [0x42e4a0], 0
mov dword [0x42e490], 1
call fcn.0040417d
sub esp, 0xc
push dword [0x46d950]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x46d880]
call dword [sym.imp.USER32.dll_DestroyIcon]
add esp, 0xc
call fcn.0042a282
cmp dword [0x46432c], 0
je 0x4044ab
sub esp, 0xc
xor ebx, ebx
push 0x464328
call fcn.0040366a
add esp, 0x10
cmp dword [0x464330], ebx
jle 0x404497
mov eax, dword [0x46432c]
sub esp, 0xc
push dword [eax + ebx*4]
inc ebx
call fcn.0040ac6a
add esp, 0x10
jmp 0x404479
mov dword [0x464330], 0
mov dword [0x464328], 0
call fcn.0040439c
call fcn.004043cf
sub esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [0x47a7fc], 0
je 0x4044da
call fcn.0042516f
sub esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404a6a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [0x46dccc], ebx
mov dword [0x46d948], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
and edx, 0x80000000
mov dword [0x46d974], edx
test eax, eax
js 0x404b25
mov eax, dword [0x42e078]
mov dword [eax], 0xff
push edx
push edx
push eax
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [0x42e078]
pop ecx
pop edx
cmp byte [eax], 0
jne 0x404afa
mov dword [0x42e484], 1
sub esp, 0xc
push 0x42e020
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov edx, eax
add esp, 0xc
xor eax, eax
test edx, edx
jne 0x404b3f
push eax
push eax
push dword [0x435898]
push 0x4644a0
call fcn.0040423a
add esp, 0x10
jmp 0x404b25
add eax, 4
push ecx
push ecx
push str.SYSTEM
push eax
call fcn.004034dd
add esp, 0x10
test eax, eax
jne 0x404ac0
push edx
push edx
push str._service
push ebx
call fcn.004034dd
add esp, 0x10
test eax, eax
jne 0x404ac0
sub esp, 0xc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
mov dword [0x46d764], eax
call fcn.0040477c
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret 0x10
Function at 0x40ab07
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x42e4a4
push 8
push 0xffff
push esi
call ebx
add esp, 0xc
cmp dword [0x464320], 0
je 0x40ab6b
sub esp, 0xc
mov dword [ebp - 0xc], 3
push 4
push 0x464320
push 3
push 6
push esi
call ebx
push 4
push 0x464320
push 0x11
push 6
push esi
call ebx
lea eax, [ebp - 0xc]
push 4
push eax
push 0x10
push 6
push esi
call ebx
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40ab72
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0x464328
call fcn.0040366a
mov eax, dword [0x464330]
mov ecx, 0x464340
mov edx, dword [0x46432c]
mov dword [edx + eax*4], ebx
inc eax
mov dword [0x464330], eax
pop eax
push dword [ebx]
call fcn.0040be94
mov dword [0x464328], 0
mov eax, dword [ebx]
add esp, 0xc
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], eax
leave
jmp fcn.0040ab07

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, ebx
test edi, edi
jle 0x40b3d3
push 0
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40b3d7
sub edi, eax
add esi, eax
jmp 0x40b3b8
mov eax, esi
sub eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40bdd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x10c], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x108], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push 0
push 0
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0xc
leave
ret

Function at 0x40be08
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp + 8]
lea edi, [ebp - 0x11c]
push ebx
sub esp, 0x128
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x11c], 2
push eax
mov dword [ebp - 0x118], ebx
push 0
push 0
push edi
push 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0xc
test eax, eax
je 0x40be60
dec eax
jle 0x40be4f
mov eax, esi
jmp 0x40be60
push eax
push eax
push edi
push esi
call sub.WS2_32.dll___WSAFDIsSet
pop edx
pop ecx
test eax, eax
jne 0x40be4b
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40bf84
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x94
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80], 0x1c
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004038cd
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
pop ecx
test eax, eax
jne 0x40c101
movzx eax, word [ebp - 0x72]
xchg al, ah
cmp dword [0x46df38], 0
mov word [ebp - 0x72], ax
mov byte [ebp - 0x7c], 0
je 0x40c029
cmp word [edi + 0x10], 0x17
mov eax, dword [edi + 0x14]
jne 0x40bffe
cmp dword [edi + 0x18], 0
jne 0x40c029
cmp dword [edi + 0x1c], 0
jne 0x40c029
cmp dword [edi + 0x20], 0xffff0000
jne 0x40c029
mov eax, dword [edi + 0x24]
xchg al, ah
rol eax, 0x10
xchg al, ah
sub esp, 0xc
push eax
call fcn.00414238
add esp, 0x10
test eax, eax
je 0x40c029
push edx
push eax
lea eax, [ebp - 0x7c]
push 0x44097c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [0x46d97a], 0x20
mov edx, 0x44096e
mov eax, 0x440975
mov esi, dword [edi + 0x2c]
cmovne eax, edx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x8c], eax
jne 0x40c05e
lea eax, [edi + 0x88]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push edi
push esi
push eax
call fcn.0040e15e
movzx edx, word [ebp - 0x72]
mov ecx, eax
mov eax, dword [ebx + 0x10]
lea edi, [eax + 1]
mov dword [ebx + 0x10], edi
pop edi
push dword [ebp - 0x98]
push esi
push dword [ebp - 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push ecx
push edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x58]
push edx
push eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 4]
push str._tr_valigncenter__td__font_size2_classf2__u___b__s_s__td__td_aligncenter__font_size2_classf2__b__u__b___font___td__td_alignleft__font_size2_classf2__d__font___td__td_alignleft__font_size2_classf2__u____u__font___td__td_alignleft__font_size2_classf2__s..__font___td__td_alignleft_bgcolorff8040__font_size2_classf2__form_methodGET_action___admin__break__input_typehidden_namen_value_u__input_typehidden_namet_value_u__input_type_s_valueBreak___form___font___td___tr_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add eax, dword [ebx + 0xc]
mov dword [ebx + 0xc], eax
add esp, 0x40
cmp eax, 0x4000
jle 0x40c101
push edx
mov ecx, dword [ebx]
push edx
push eax
push dword [ebx + 4]
call fcn.0042d768
pop ecx
pop esi
test eax, eax
jg 0x40c0fa
mov dword [0x46dd50], 0
or eax, 0xffffffff
jmp 0x40c104
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 0xc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x40dcb8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [0x42e4a0], 0
mov eax, dword [esi*4 + 0x46d660]
test eax, eax
jle 0x40dcea
sub esp, 0xc
push eax
call fcn.0040bf04
add esp, 0x10
inc esi
cmp esi, 0x3e
jne 0x40dcd3
sub esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
add esp, 0xc
cmp dword [0x46dba8], ebx
jle 0x40dd43
inc dword [0x46dd50]
xor ebx, ebx
cmp dword [0x46d98c], ebx
jle 0x40dd3e
mov eax, dword [0x46d75c]
mov eax, dword [eax + ebx*4]
cmp eax, 1
jbe 0x40dd3b
mov eax, dword [eax]
test eax, eax
jle 0x40dd3b
push edx
push edx
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
pop ecx
pop eax
inc ebx
jmp 0x40dd13
call fcn.0040aaf3
sub esp, 0xc
push 0x64
call esi
add esp, 0xc
cmp dword [0x47a7fc], 0
je 0x40dd5b
call fcn.0042516f
call fcn.0040439c
mov dword [0x46e1c0], 0x44
push eax
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [0x46e1ec], 0x81
push 0x46e1c0
mov word [0x46e1f0], 1
push 0
push 0
push 0x20
push 1
push 0x42e458
push 0x42e458
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edx
pop ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00404403
Function at 0x40e2f9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 0xc]
push 0x46de04
call fcn.0040366a
call fcn.0040e16b
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40e349
mov dword [esi + 0x64], eax
mov eax, dword [0x46d758]
lea edi, [eax + ebx*4]
push eax
push eax
push 0x46d4e0
push 0
push esi
push dword [ebp + 8]
push 0x5000
push 0x42e458
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
pop edx
pop ecx
mov dword [0x46de04], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e35d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push 0x46de04
call fcn.0040366a
call fcn.0040e16b
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40e3ad
mov eax, dword [0x46d758]
lea esi, [eax + ebx*4]
push eax
push eax
mov eax, dword [ebp + 8]
push 0x46d4e0
or eax, ebx
push 0
push eax
push 0x40b58a
push 0x5000
push 0x42e458
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edx
pop ecx
mov dword [0x46de04], 0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x40e491
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0xa
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], 0
cdq
idiv esi
mov ebx, dword [edx*4 + 0x46db80]
mov esi, edx
lea edx, [ebp - 0x74]
mov ecx, 0x1c
xor eax, eax
mov edi, edx
test edi, edi
je 0x40e4ca
jecxz 0x40e4ca
cld
rep stosb byte es:[edi], al
test ebx, ebx
je 0x40e4dc
push eax
push eax
push edx
push ebx
call fcn.0040e3c0
add esp, 0x10
mov ebx, eax
mov eax, dword [esi*4 + 0x42e688]
xchg al, ah
mov word [ebp - 0x72], ax
test ebx, ebx
je 0x40e4f6
cmp word [ebp - 0x74], 0x17
je 0x40e4fc
jmp 0x40e56b
cmp dword [ebp + 8], 7
jle 0x40e56b
push eax
push 6
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
pop eax
test edi, edi
jns 0x40e55a
mov eax, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [eax*4 + 0x42e688]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x84], ecx
call edx
sub esp, 0xc
push eax
call fcn.004037a9
mov edx, dword [ebp - 0x80]
mov edi, eax
call edx
mov ecx, dword [ebp - 0x84]
mov dword [esp], ecx
push edi
push eax
push str.IPv6_socket_error__d__s__port__u_
push 0x4644a0
call fcn.0040423a
add esp, 0x20
jmp 0x40e56b
cmp dword [ebp + 8], 7
mov word [ebp - 0x74], 0x17
jle 0x40e59c
inc dword [ebp - 0x7c]
jmp 0x40e59c
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
pop eax
cmp edi, 0xffffffff
jne 0x40e596
sub esp, 0xc
push dword [0x4357e4]
call fcn.004037d5
add esp, 0x10
jmp 0x40e68f
mov word [ebp - 0x74], 2
sub esp, 0xc
push 4
push 0x42e4a4
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
mov edx, 0x1c
cmp word [ebp - 0x74], 2
mov eax, 0x10
cmovne eax, edx
push edx
lea edx, [ebp - 0x74]
push eax
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
inc eax
pop ecx
jne 0x40e625
lea edx, [ebp - 0x74]
push eax
push eax
push edx
lea edx, [ebp - 0x58]
push edx
call fcn.004038cd
movzx eax, word [ebp - 0x72]
xchg al, ah
lea edx, [ebp - 0x58]
push eax
push edx
push str.Could_not_bind_socket_to__s:_u
push 0x4644a0
call fcn.0040423a
add esp, 0x20
cmp word [ebp - 0x74], 0x17
je 0x40e510
call fcn.0040e453
test eax, eax
jne 0x40e5b7
sub esp, 0xc
push edi
call fcn.0040bf04
jmp 0x40e674
cmp dword [0x46de0c], 1
jne 0x40e652
mov dword [0x46de0c], 2
movzx eax, word [ebp - 0x72]
xchg al, ah
push ecx
push eax
push str.Successfully_bind_to_:_u__second_time_
push 0x4644a0
call fcn.0040423a
add esp, 0x10
push eax
push eax
push 3
push edi
call dword [sym.imp.WS2_32.dll_listen]
imul eax, dword [ebp - 0x7c], 0xa
push edx
add eax, esi
mov dword [eax*4 + 0x46d660], edi
shl eax, 0x10
push eax
call fcn.0040e35d
add esp, 0x10
test ebx, ebx
je 0x40e688
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 4
jle 0x40e4b5
mov edi, dword [esi*4 + 0x42e464]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f1d5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
cmp dword [0x46db44], 0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
je 0x40f1f4
test byte [0x46d97d], 0x80
je 0x40f1f4
jmp fcn.0040f0c4
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.0040ee84

Function at 0x40f201
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test edi, edi
jne 0x40f225
push edx
push esi
push ebx
push dword [ebp + 0x14]
call fcn.00403603
pop ecx
jmp 0x40f248
push eax
push edi
push 0
push dword [ebp + 0x18]
call fcn.0040bdd0
add esp, 0x10
mov edx, eax
or eax, 0xffffffff
test edx, edx
jle 0x40f248
push 0
push esi
push ebx
push edi
call dword [sym.imp.WS2_32.dll_recv]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40f2f8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
push dword [ebx]
push 0
push dword [ebx + 0x38]
call fcn.0040be08
add esp, 0x10
test eax, eax
jle 0x40f365
cmp esi, eax
jne 0x40f343
push 0
push 0x8000
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40f365
push edx
mov ecx, ebx
push edx
push eax
push edi
call fcn.0042d768
pop ecx
pop edx
jmp 0x40f361
push ecx
push 0x8000
push edi
push ebx
call dword [ebx + 8]
add esp, 0x10
test eax, eax
jle 0x40f365
push edx
push eax
push edi
push esi
call fcn.0040b3a7
add esp, 0x10
test eax, eax
jg 0x40f309
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40f5d8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, dword [ebp + 8]
sub esp, 0xc
push dword [0x42e594]
call fcn.0042d5c4
add esp, 0x10
lea ebx, [esi + eax + 1]
mov al, byte [ebx]
test al, al
je 0x40f615
cmp al, 0x5c
jne 0x40f612
mov byte [ebx], 0
push eax
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebx], 0x5c
pop edx
pop ecx
inc ebx
jmp 0x40f5f5
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ee84
add esp, 0x10
mov ebx, eax
test eax, eax
jle 0x40f677
push 0
push 0xa
push str.nINSTREAM_n
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40f6bb
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x21c], 0
call edi
push 0
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
push 4
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
push esi
push ebx
push 0x1e
push 0x1e
call fcn.0040bdd0
add esp, 0x10
test eax, eax
jle 0x40f7cf
lea esi, [ebp - 0x218]
push 0
push 0x1f4
push esi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40f7cf
mov edx, dword [0x464464]
mov byte [ebp + eax - 0x218], 0
mov dword [ebp - 0x230], edx
call edi
mov edx, dword [ebp - 0x230]
sub eax, dword [ebp - 0x22c]
push esi
push eax
push str._r_nAV___ums_:_s
push edx
call fcn.0040423a
pop edx
pop ecx
push str.FOUND
push esi
mov dword [ebp - 0x21c], 0
call fcn.004034dd
add esp, 0x10
test eax, eax
je 0x40f7cf
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0042d5c4
add esp, 0xc
mov dword [ebp - 0x21c], eax
add eax, 0xc
push eax
push 8
push dword [0x452048]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [ebp + 0xc]
mov edx, eax
lea edi, [eax + 4]
test edi, edi
je 0x40f7b7
test esi, esi
je 0x40f7b7
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x40f7b1
mov eax, dword [0x46de10]
mov dword [edx], eax
pop eax
mov dword [0x46de10], edx
mov dword [ebp - 0x21c], 1
sub esp, 0xc
push ebx
call fcn.0040bf04
mov eax, dword [ebp - 0x21c]
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x411913
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x20
push edi
call fcn.0040ed80
add esp, 0x10
mov esi, eax
call fcn.004113c5
movsx ecx, byte [edi]
mov edx, eax
mov eax, esi
xor eax, edx
rol eax, cl
mov dword [ebp - 0x20], eax
lea eax, [esi - 1]
movsx ecx, byte [edi + 1]
sub eax, edx
ror eax, cl
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x20]
push 8
push 0
push eax
call fcn.0042d520
add esp, 0x10
test eax, eax
jne 0x41192f
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str._8.8XZ_8.8X
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add eax, ebx
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x411ac2
Capabilities:
Create directory

Disassembly:
push ebp
lea eax, [ecx + 5]
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x130
push 0x100
push 0
push eax
call fcn.0042d520
mov ecx, ebx
inc eax
mov dword [esp], eax
call fcn.00411322
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0xc
mov esi, eax
push 0x42e458
push eax
call edi
add esp, 0x18
test byte [ebx + 4], 1
je 0x4113bd
lea ebx, [ebp - 0x130]
push eax
push esi
push str._.255smbox
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
pop edx
pop ecx
push 0x42e458
push ebx
call edi
pop ebx
pop esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ecx + 4], 0xd
je 0x411acd
jmp 0x411358
ret

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

Disassembly:
push ebp
lea eax, [ecx + 0x88]
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x220
push dword [ecx + 0x4c]
push 0x4417ec
push eax
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x21c], eax
call eax
movzx eax, word [ebx + 0x36]
pop edx
pop ecx
and eax, 7
movzx eax, byte [eax + 0x42fa0c]
push eax
push dword [ebx + 0x4c]
call fcn.0040f1d5
add esp, 0x10
mov esi, eax
test eax, eax
js 0x411d1e
lea edi, [ebp - 0x218]
push eax
push 0
push edi
push esi
call fcn.00419594
add esp, 0xc
mov eax, dword [ebp - 0x21c]
push dword [ebx + 0x48]
push str.USER__.64s_r_n
push edi
call eax
mov edx, dword [sym.imp.WS2_32.dll_send]
push 0
push eax
mov dword [ebp - 0x220], edx
push edi
push esi
call edx
add esp, 0xc
push 0
push edi
push esi
call fcn.00419594
add esp, 0xc
mov eax, dword [ebp - 0x21c]
push dword [ebx + 0x50]
push str.PASS__.64s_r_n
push edi
call eax
push 0
mov edx, dword [ebp - 0x220]
push eax
push edi
push esi
call edx
mov eax, dword [ebp + 8]
push dword [ebx + 0x4c]
add eax, 5
push eax
mov eax, dword [ebp - 0x21c]
push str.X_PROXY:_login_in__.64s__to__.64s__r_n
push edi
call eax
lea eax, [ebx + 0x10]
add esp, 0x14
push str.__r_n_.4000s
push eax
push dword [ebx]
push edi
push 0x4644a0
call fcn.00403f0e
add esp, 0x20
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x4125b3
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
shl eax, 3
cmp esi, eax
jge 0x41261d
mov edi, esi
xor ebp, ebp
lea esi, [esi + 6]
mov ecx, dword [esp + 0x18]
mov edx, edi
add ebp, ebp
shr edx, 3
movzx edx, byte [ecx + edx]
mov ecx, edi
inc edi
not ecx
and ecx, 7
sar edx, cl
and edx, 1
or ebp, edx
cmp esi, edi
jne 0x4125cf
mov edx, 0x2f
cmp ebp, 0x3f
je 0x412618
mov edx, 0x2b
cmp ebp, 0x3e
je 0x412618
lea edx, [ebp - 4]
cmp ebp, 0x33
jg 0x412618
lea edx, [ebp + 0x41]
cmp ebp, 0x19
jle 0x412618
lea edx, [ebp + 0x47]
mov byte [ebx], dl
inc ebx
jmp 0x4125c4
mov esi, 6
cdq
mov edi, ebx
idiv esi
mov al, 0x3d
mov ecx, edx
rep stosb byte es:[edi], al
mov byte [edi], 0
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret