joyce8/EMBER2024-capa huggingface dataset:
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 [0x46cccc], ebx
mov dword [0x46c948], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
and edx, 0x80000000
mov dword [0x46c974], 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 [0x435878]
push 0x4634a0
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 [0x46c764], eax
call fcn.0040477c
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret 0x10
Function at 0x407970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x818]
push ebx
sub esp, 0xc14
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
push edi
push ebx
call fcn.00401256
add esp, 0x10
test eax, eax
jle 0x4079ca
lea ebx, [ebp - 0xc18]
push eax
push eax
push ebx
push dword [ebp + 0x10]
call fcn.00401256
pop eax
pop edx
push esi
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push 0x20
push 1
push 0x42e458
push 0x42e458
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x4079ed
push edi
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x20
push 1
push 0x42e458
push 0x42e458
push ebx
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
ret
Function at 0x40aacf
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 [0x463320], 0
je 0x40ab33
sub esp, 0xc
mov dword [ebp - 0xc], 3
push 4
push 0x463320
push 3
push 6
push esi
call ebx
push 4
push 0x463320
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 0x40ab3a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0x463328
call fcn.0040366a
mov eax, dword [0x463330]
mov ecx, 0x463340
mov edx, dword [0x46332c]
mov dword [edx + eax*4], ebx
inc eax
mov dword [0x463330], eax
pop eax
push dword [ebx]
call fcn.0040bdfc
mov dword [0x463328], 0
mov eax, dword [ebx]
add esp, 0xc
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], eax
leave
jmp fcn.0040aacf

Function at 0x40b369
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 0x40b395
push 0
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40b399
sub edi, eax
add esi, eax
jmp 0x40b37a
mov eax, esi
sub eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40bd38
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 0x40bd70
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 0x40bdc8
dec eax
jle 0x40bdb7
mov eax, esi
jmp 0x40bdc8
push eax
push eax
push edi
push esi
call sub.WS2_32.dll___WSAFDIsSet
pop edx
pop ecx
test eax, eax
jne 0x40bdb3
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40beec
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 0x40c069
movzx eax, word [ebp - 0x72]
xchg al, ah
cmp dword [0x46cf38], 0
mov word [ebp - 0x72], ax
mov byte [ebp - 0x7c], 0
je 0x40bf91
cmp word [edi + 0x10], 0x17
mov eax, dword [edi + 0x14]
jne 0x40bf66
cmp dword [edi + 0x18], 0
jne 0x40bf91
cmp dword [edi + 0x1c], 0
jne 0x40bf91
cmp dword [edi + 0x20], 0xffff0000
jne 0x40bf91
mov eax, dword [edi + 0x24]
xchg al, ah
rol eax, 0x10
xchg al, ah
sub esp, 0xc
push eax
call fcn.004141a4
add esp, 0x10
test eax, eax
je 0x40bf91
push edx
push eax
lea eax, [ebp - 0x7c]
push 0x43f95c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [0x46c97a], 0x20
mov edx, 0x43f94e
mov eax, 0x43f955
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 0x40bfc6
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.0040e0c6
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 0x40c069
push edx
mov ecx, dword [ebx]
push edx
push eax
push dword [ebx + 4]
call fcn.0042d3ac
pop ecx
pop esi
test eax, eax
jg 0x40c062
mov dword [0x46cd50], 0
or eax, 0xffffffff
jmp 0x40c06c
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 0x40dc20
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 + 0x46c660]
test eax, eax
jle 0x40dc52
sub esp, 0xc
push eax
call fcn.0040be6c
add esp, 0x10
inc esi
cmp esi, 0x3e
jne 0x40dc3b
sub esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
add esp, 0xc
cmp dword [0x46cba8], ebx
jle 0x40dcab
inc dword [0x46cd50]
xor ebx, ebx
cmp dword [0x46c98c], ebx
jle 0x40dca6
mov eax, dword [0x46c75c]
mov eax, dword [eax + ebx*4]
cmp eax, 1
jbe 0x40dca3
mov eax, dword [eax]
test eax, eax
jle 0x40dca3
push edx
push edx
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
pop ecx
pop eax
inc ebx
jmp 0x40dc7b
call fcn.0040aabb
sub esp, 0xc
push 0x64
call esi
add esp, 0xc
cmp dword [0x4797fc], 0
je 0x40dcc3
call fcn.00424fcf
call fcn.0040439c
mov dword [0x46d1c0], 0x44
push eax
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [0x46d1ec], 0x81
push 0x46d1c0
mov word [0x46d1f0], 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 0x40e266
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 0xc]
push 0x46ce04
call fcn.0040366a
call fcn.0040e0d8
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40e2b6
mov dword [esi + 0x64], eax
mov eax, dword [0x46c758]
lea edi, [eax + ebx*4]
push eax
push eax
push 0x46c4e0
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 [0x46ce04], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e2ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push 0x46ce04
call fcn.0040366a
call fcn.0040e0d8
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40e31a
mov eax, dword [0x46c758]
lea esi, [eax + ebx*4]
push eax
push eax
mov eax, dword [ebp + 8]
push 0x46c4e0
or eax, ebx
push 0
push eax
push 0x40b54c
push 0x5000
push 0x42e458
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edx
pop ecx
mov dword [0x46ce04], 0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x40e3fe
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 + 0x46cb80]
mov esi, edx
lea edx, [ebp - 0x74]
mov ecx, 0x1c
xor eax, eax
mov edi, edx
test edi, edi
je 0x40e437
jecxz 0x40e437
cld
rep stosb byte es:[edi], al
test ebx, ebx
je 0x40e449
push eax
push eax
push edx
push ebx
call fcn.0040e32d
add esp, 0x10
mov ebx, eax
mov eax, dword [esi*4 + 0x42e688]
xchg al, ah
mov word [ebp - 0x72], ax
test ebx, ebx
je 0x40e463
cmp word [ebp - 0x74], 0x17
je 0x40e469
jmp 0x40e4d8
cmp dword [ebp + 8], 7
jle 0x40e4d8
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 0x40e4c7
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 0x4634a0
call fcn.0040423a
add esp, 0x20
jmp 0x40e4d8
cmp dword [ebp + 8], 7
mov word [ebp - 0x74], 0x17
jle 0x40e509
inc dword [ebp - 0x7c]
jmp 0x40e509
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 0x40e503
sub esp, 0xc
push dword [0x4357c4]
call fcn.004037d5
add esp, 0x10
jmp 0x40e5fc
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 0x40e592
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 0x4634a0
call fcn.0040423a
add esp, 0x20
cmp word [ebp - 0x74], 0x17
je 0x40e47d
call fcn.0040e3c0
test eax, eax
jne 0x40e524
sub esp, 0xc
push edi
call fcn.0040be6c
jmp 0x40e5e1
cmp dword [0x46ce0c], 1
jne 0x40e5bf
mov dword [0x46ce0c], 2
movzx eax, word [ebp - 0x72]
xchg al, ah
push ecx
push eax
push str.Successfully_bind_to_:_u__second_time_
push 0x4634a0
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 + 0x46c660], edi
shl eax, 0x10
push eax
call fcn.0040e2ca
add esp, 0x10
test ebx, ebx
je 0x40e5f5
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 4
jle 0x40e422
mov edi, dword [esi*4 + 0x42e464]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f141
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 [0x46cb44], 0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
je 0x40f160
test byte [0x46c97d], 0x80
je 0x40f160
jmp fcn.0040f030
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.0040edf0

Function at 0x40f16d
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 0x40f191
push edx
push esi
push ebx
push dword [ebp + 0x14]
call fcn.00403603
pop ecx
jmp 0x40f1b4
push eax
push edi
push 0
push dword [ebp + 0x18]
call fcn.0040bd38
add esp, 0x10
mov edx, eax
or eax, 0xffffffff
test edx, edx
jle 0x40f1b4
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 0x40f264
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.0040bd70
add esp, 0x10
test eax, eax
jle 0x40f2d1
cmp esi, eax
jne 0x40f2af
push 0
push 0x8000
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40f2d1
push edx
mov ecx, ebx
push edx
push eax
push edi
call fcn.0042d3ac
pop ecx
pop edx
jmp 0x40f2cd
push ecx
push 0x8000
push edi
push ebx
call dword [ebx + 8]
add esp, 0x10
test eax, eax
jle 0x40f2d1
push edx
push eax
push edi
push esi
call fcn.0040b369
add esp, 0x10
test eax, eax
jg 0x40f275
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40f544
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.0042d208
add esp, 0x10
lea ebx, [esi + eax + 1]
mov al, byte [ebx]
test al, al
je 0x40f581
cmp al, 0x5c
jne 0x40f57e
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 0x40f561
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40f5b8
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.0040edf0
add esp, 0x10
mov ebx, eax
test eax, eax
jle 0x40f5e3
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 0x40f627
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.0040bd38
add esp, 0x10
test eax, eax
jle 0x40f73b
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 0x40f73b
mov edx, dword [0x463464]
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 0x40f73b
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0042d208
add esp, 0xc
mov dword [ebp - 0x21c], eax
add eax, 0xc
push eax
push 8
push dword [0x451048]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [ebp + 0xc]
mov edx, eax
lea edi, [eax + 4]
test edi, edi
je 0x40f723
test esi, esi
je 0x40f723
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x40f71d
mov eax, dword [0x46ce10]
mov dword [edx], eax
pop eax
mov dword [0x46ce10], edx
mov dword [ebp - 0x21c], 1
sub esp, 0xc
push ebx
call fcn.0040be6c
mov eax, dword [ebp - 0x21c]
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41187f
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.0040ecec
add esp, 0x10
mov esi, eax
call fcn.00411331
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.0042d164
add esp, 0x10
test eax, eax
jne 0x41189b
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 0x411a2e
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.0042d164
mov ecx, ebx
inc eax
mov dword [esp], eax
call fcn.0041128e
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 0x411329
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 0x411a39
jmp 0x4112c4
ret

Function at 0x411ba2
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 0x4407cc
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.0040f141
add esp, 0x10
mov esi, eax
test eax, eax
js 0x411c8a
lea edi, [ebp - 0x218]
push eax
push 0
push edi
push esi
call fcn.00419500
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.00419500
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 0x4634a0
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 0x41251f
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 0x412589
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 0x41253b
mov edx, 0x2f
cmp ebp, 0x3f
je 0x412584
mov edx, 0x2b
cmp ebp, 0x3e
je 0x412584
lea edx, [ebp - 4]
cmp ebp, 0x33
jg 0x412584
lea edx, [ebp + 0x41]
cmp ebp, 0x19
jle 0x412584
lea edx, [ebp + 0x47]
mov byte [ebx], dl
inc ebx
jmp 0x412530
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
Function at 0x412bab
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
push 0
push dword [ebp + 8]
call fcn.0040357d
pop edi
pop edx
test eax, eax
jle 0x412d35
mov edi, eax
push ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
lea eax, [eax + 8]
push esi
push eax
mov dword [ebp - 0x1c], ecx
call fcn.0042d128
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x412d48
mov ecx, dword [ebp - 0x1c]
add eax, ecx
cmp eax, dword [0x46ccd0]
jbe 0x412c03
mov dword [0x46ccd0], eax
lea esi, [ebx + 1]
mov byte [ebx], 0x20
push edx
push ecx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call fcn.00403603
mov ecx, dword [ebp - 0x1c]
mov byte [ebx + ecx + 1], 0
mov ebx, esi
push ecx
push ecx
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
add esp, 0xc
movsx eax, byte [ecx]
cmp al, 0x20
je 0x412cd1
jg 0x412c5a
cmp al, 0xa
jg 0x412c51
cmp al, 8
jg 0x412cc8
test al, al
je 0x412c96
jmp 0x412cf7
cmp al, 0xd
je 0x412cc8
jmp 0x412cf7
cmp al, 0x23
je 0x412c6b
cmp al, 0x60
je 0x412cbc
cmp al, 0x22
je 0x412cbc
jmp 0x412cf7
cmp ecx, esi
je 0x412c7a
mov al, byte [ecx - 1]
test al, 0xdf
je 0x412c7a
cmp al, 0xa
jne 0x412cf7
mov byte [ebx], 0x20
inc ebx
push eax
push eax
push 0xa
push ecx
call fcn.004033de
add esp, 0x10
mov ecx, eax
test eax, eax
jne 0x412d01
jmp 0x412d4d
sub esp, 0xc
mov byte [ebx], 0
mov ebx, dword [0x46ce80]
push esi
call fcn.00412d5c
add esp, 0x10
cmp dword [0x46c4bc], 0
mov dword [0x46ce80], ebx
jne 0x412d31
jmp 0x412d07
test edi, edi
je 0x412cf5
cmp eax, edi
jne 0x412cf7
xor edi, edi
jmp 0x412cf7
test edi, edi
jne 0x412cf7
mov byte [ecx], 0x20
jmp 0x412cd5
test edi, edi
jne 0x412cf7
mov al, byte [ecx + 1]
lea edi, [eax - 0x3b]
and edi, 0xfd
je 0x412cff
cmp al, 0x20
je 0x412cff
mov al, byte [ebx - 1]
xor edi, edi
sub eax, 0x3b
test al, 0xfd
je 0x412d01
jmp 0x412cc4
mov edi, eax
mov al, byte [ecx]
inc ebx
mov byte [ebx - 1], al
jmp 0x412d01
xor edi, edi
inc ecx
jmp 0x412c2f
sub esp, 0xc
push dword [ebp + 8]
call fcn.0042d208
add eax, 2
mov dword [esp], eax
call fcn.0042d128
add esp, 0x10
mov dword [0x46c4bc], eax
test eax, eax
je 0x412d31
mov edx, dword [ebp + 8]
call fcn.0041238c
xor eax, eax
jmp 0x412d54
push 0x10
push dword [ebp + 8]
push dword [0x433c50]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x412d54
mov al, byte [pe_dos_header]
ud2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret