joyce8/EMBER2024-capa huggingface dataset:
Function at 0x579a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.005adc18
add esp, 0x18
test eax, eax
je 0x579a52
cmp eax, 0xffffffff
jne 0x579a54
xor eax, eax
pop ebp
ret

Function at 0x57f5f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x138]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x57f648
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.0056db00
add esp, 8
cmp edi, 0xffffffff
jne 0x57f67d
push str.Error_accept__ing_server_connect
push ebx
call fcn.0056d520
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.0056d5c0
push 1
push edi
mov dword [esi + 0x138], edi
call fcn.0058c130
mov dword [esi + 0x140], 1
add esp, 0x10
mov eax, dword [ebx + 0x1a8]
test eax, eax
je 0x57f6e9
push 1
push edi
push dword [ebx + 0x1ac]
call eax
add esp, 0xc
test eax, eax
je 0x57f6e9
push edi
push esi
call fcn.0056db00
add esp, 8
mov dword [esi + 0x138], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059f07a
mov esp, ebp
pop ebp
ret

Function at 0x581ce0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x581d0f
push str.Couldnt_set_desired_mode
push edx
call fcn.0056d520
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x581d26
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.0056d5c0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x581d3d
push edi
call fcn.00581a90
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x581d51
push edi
call fcn.00580a90
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x581d65
push edi
call fcn.00581a70
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x581d75
push edi
call fcn.00581bd0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x585b90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x585bdd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0056d520
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x585c05
shr eax, 8
test al, al
jne 0x585c05
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0056d520
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0059f07a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x134]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5864b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0056d520
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.00585d20
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5865a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x86bc]
jne 0x5866ed
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x5865ea
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x5865ea
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5865ea
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 0xc]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x586653
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x586653
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x586653
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x586653
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x586653
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x586653
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebx + 0x1eb4], eax
lea esi, [ebx + 0x1cb0]
sub eax, esi
mov dword [edi], esi
mov edi, dword [ebp - 4]
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.00585e20
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x134]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5866a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0056d520
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.005864d0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x134]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x5866ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0056d520
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x586850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90c], edi
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x86bc]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
push 0x3c
push ebx
call fcn.00585e20
mov eax, dword [esi + 0x1eb0]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp cl, 0x18
je 0x586a08
cmp cl, 0x23
je 0x5869e4
cmp cl, 0x27
jne 0x586a96
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call sym.adsRise3_yd.exe_curl_msnprintf
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x586983
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x586910
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x586971
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.00565400
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call sym.adsRise3_yd.exe_curl_msnprintf
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x586904
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x61263c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call sym.adsRise3_yd.exe_curl_msnprintf
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x134]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5869de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0056d520
add esp, 0xc
push edi
jmp 0x586a84
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5869f0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x586a29
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x586a13
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call sym.adsRise3_yd.exe_curl_msnprintf
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x134]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x586a80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0056d520
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.00585e20
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x5876d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3c8]
mov ebx, dword [eax]
lea edi, [esi + 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x587763
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.005a3210
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x587796
push str.Received_too_short_packet
push ebx
call fcn.0056d520
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
push edi
call fcn.005872d0
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x5877b1
jmp dword [eax*4 + 0x5878d8]
cmp edx, 4
jle case.0x5877b1.4
push edi
call fcn.005872b0
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x5877b1.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi]
mov edi, dword [ebp - 0x88]
add eax, 4
push eax
push 1
push edi
call fcn.0056d2e0
add esp, 0x10
mov dword [ebp - 0x88], eax
test eax, eax
je 0x58781f
push 5
push esi
call fcn.00588000
mov eax, dword [ebp - 0x88]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.005751b0
add esp, 0xc
jmp 0x5878a3
push edi
call fcn.005872b0
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [edi]
add eax, 4
push eax
push 0x60d194
push ebx
call fcn.0056d5c0
add esp, 0x10
jmp case.0x5877b1.4
lea eax, [edx - 2]
push eax
mov eax, dword [edi]
add eax, 2
push eax
push esi
call fcn.00587480
add esp, 0xc
test eax, eax
je case.0x5877b1.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5f2a5c
push ebx
call fcn.0056d520
add esp, 0xc
mov edi, dword [ebp - 0x88]
push edi
call fcn.00575410
add esp, 4
test eax, eax
je 0x587783
push 5
push esi
call fcn.00588000
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x588000
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x588012
jmp dword [edx*4 + 0x588068]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00587b40
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005878f0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00588210
push str.TFTP_finished
push 0x60d194
push eax
call fcn.0056d5c0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x5f2a5c
push eax
call fcn.0056d520
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x589090
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005b69a8
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x5890f4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x5890f4
lea eax, [ebp - 0x108]
push eax
call dword [0x651d0c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret

Function at 0x589110
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00589090
Function at 0x58d6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 2
jne 0x58d6ca
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x58d6bb
pop edi
pop esi
pop ebp
ret
push dword [ecx + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call eax
jmp 0x58d6fd
mov eax, dword [esi + 8]
test eax, eax
jne 0x58d6ef
push 0x60b588
push dword [ecx + 8]
call fcn.005ada00
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x58d6ef
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005acb23
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x58d71f
mov eax, dword [esi + 8]
test eax, eax
je 0x58d719
push eax
call fcn.005ac294
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x58f070
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x58f0a2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x58f220
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x58f253
push 0x2e
push edi
call fcn.005a54a0
add esp, 8
test eax, eax
je 0x58f251
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x590160
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x651d00]
mov edi, eax
add esp, 4
test edi, edi
jne 0x59018d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x5901d7
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x5901dd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x59023b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x590200
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x590267
mov eax, dword [esi + 4]
push 1
push str.6digit
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x613f27
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x590240
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5a1fa0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x5a1fd8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5a1fd8
cmp dword [esi], 0
jne 0x5a2019
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x5a1fdf
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi], eax
test eax, eax
jne 0x5a1fe2
mov dword [esi + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
jmp 0x5a1fc0
cmp dword [esi + 0x18], 0
lea edi, [esi + 4]
mov eax, 2
mov word [edi], ax
je 0x5a1ff9
movzx eax, word [esi + 0x22]
jmp 0x5a1ffd
movzx eax, word [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov word [esi + 6], ax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 8], eax
jmp 0x5a201c
lea edi, [esi + 4]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x5a2047
mov dword [esi + 0x24], 1
call fcn.005a7a64
pop edi
mov eax, dword [eax]
mov dword [esi + 0x28], eax
or eax, 0xffffffff
pop esi
pop ebp
ret
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x5a202f
pop edi
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x5a20cb
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], 0
mov edx, dword [esi + 0x38]
push edi
mov edi, dword [esi + 0x34]
mov eax, edi
sub eax, edx
cmp eax, ecx
jge 0x5a20f5
lea eax, [edi + ecx]
push eax
push dword [esi + 0x30]
call fcn.005b2abd
mov ecx, dword [esi + 0x40]
add esp, 8
add dword [esi + 0x34], ecx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x44]
cmp ecx, eax
push 0
cmovle eax, ecx
push eax
mov eax, dword [esi + 0x30]
add eax, edx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 0x48], eax
pop edi
test eax, eax
jns 0x5a212b
call fcn.005a7a64
cmp dword [eax], 4
jne 0x5a2125
xor eax, eax
jmp 0x5a212d
or eax, 0xffffffff
pop esi
pop ebp
ret
je 0x5a2141
sub dword [esi + 0x40], eax
add dword [esi + 0x3c], eax
add dword [esi + 0x38], eax
mov eax, 1
cmp dword [esi + 0x40], 0
jne 0x5a2146
mov eax, 2
pop esi
pop ebp
ret
Function at 0x5a2150
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5a216f
mov eax, dword [esi + 0x38]
xor ecx, ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], 0
jmp 0x5a2172
mov ecx, dword [esi + 0x3c]
push 0
push eax
mov eax, dword [esi + 0x30]
add eax, ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x48], eax
test eax, eax
jg 0x5a219b
call fcn.005a7a64
cmp dword [eax], 4
je 0x5a21a7
or eax, 0xffffffff
pop esi
pop ebp
ret
sub dword [esi + 0x40], eax
add dword [esi + 0x3c], eax
cmp dword [esi + 0x40], 0
jne 0x5a21af
mov eax, 2
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret

Function at 0x5bf097
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bef0d
Function at 0x10002ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0
push edx
mov edi, ecx
push 1
lea ecx, [ebp - 0x38]
call fcn.100012b4
or esi, 0xffffffff
jmp 0x10002f32
push 0
lea ecx, [ebp - 0x38]
call fcn.1000147e
push 8
xor esi, eax
pop ecx
mov eax, esi
and eax, 1
neg eax
and eax, 0xedb88320
shr esi, 1
xor esi, eax
dec ecx
jne 0x10002f1f
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
shr ecx, 0x18
add ecx, dword [eax + 0x14]
sub ecx, dword [ebp - 0xc]
jne 0x10002f10
not esi
mov dword [edi], esi
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x10003238
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
test ebx, ebx
jle 0x100033c5
push esi
mov eax, 0x102
push edi
cmp ebx, eax
lea edi, [ebx - 3]
cmovle edi, ebx
cmp ebx, 0x104
cmovg edi, eax
mov eax, dword [0x10075644]
sub ebx, edi
push 2
mov dword [ebp + 8], ebx
pop ecx
or ebx, 0xffffffff
cmp eax, 1
cmove eax, ecx
push 0x1d
mov dword [0x10075644], eax
pop ecx
mov eax, dword [0x1007561c]
mov dword [0x10075620], eax
lea eax, [ecx + ebx]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, esi
imul eax, eax, 0xc
cmp edi, dword [eax + 0x1006bf1c]
jge 0x100032ab
mov ecx, esi
jmp 0x10003286
cmp edi, dword [eax + 0x1006bf20]
jle 0x100032b7
mov ebx, esi
jmp 0x10003286
imul esi, esi, 0xc
add esi, 0x1006bf18
mov ecx, 0x117
movzx eax, word [esi]
cmp ax, cx
mov ecx, dword [ebp - 4]
cwde
mov ecx, dword [ecx]
jg 0x100032df
movzx eax, byte [eax*2 + 0x1006bfe0]
push 7
jmp 0x100032e8
movzx eax, byte [eax + 0x1006c188]
push 8
push eax
call fcn.100013d9
mov eax, dword [0x1007561c]
mov dword [0x10075620], eax
movzx eax, word [esi + 2]
test ax, ax
je 0x10003311
sub edi, dword [esi + 4]
cwde
push eax
push edi
mov edi, dword [ebp - 4]
mov ecx, dword [edi]
call fcn.100013d9
mov dword [ebp - 0xc], 0xf
or edi, 0xffffffff
call dword [0x1005e264]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push 0x1e
mov dword [ecx*4 + 0x10075618], eax
pop ecx
lea eax, [ecx + edi]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, esi
imul eax, eax, 0xc
cmp ebx, dword [eax + 0x1006c07c]
jge 0x1000334c
mov ecx, esi
jmp 0x10003331
cmp ebx, dword [eax + 0x1006c080]
jle 0x10003358
mov edi, esi
jmp 0x10003331
imul esi, esi, 0xc
mov dword [ebp - 0xc], 0x10
add esi, 0x1006c078
call dword [0x1005e264]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov dword [ecx*4 + 0x10075618], eax
movsx eax, word [esi]
mov ecx, dword [edi]
movzx eax, byte [eax*8 + 0x1006c1e0]
push 5
push eax
call fcn.100013d9
movzx eax, word [esi + 2]
mov ebx, dword [ebp + 8]
test ax, ax
je 0x100033ac
mov ecx, dword [edi]
cwde
push eax
mov eax, dword [ebp - 8]
sub eax, dword [esi + 4]
push eax
call fcn.100013d9
xor dword [0x10075620], 0xfffff0e9
mov eax, 0x102
test ebx, ebx
jg 0x10003257
pop edi
pop esi
pop ebx
leave
ret