joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4860
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a4892
pop esi
or eax, eax
pop ebx
add esp, 0x30
ret
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, 2
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [esp + 0x50]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0xffff
xor ecx, ecx
push ebx
mov dword [esp + 0x30], eax
mov word [esp + 0x2e], cx
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4a4a1a
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4a4a1a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a4a1a
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4a4a1a
push 0
push 1
push 2
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4a4a1a
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4a4a1a
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4a4a1a
push edi
push 0x5375cc
lea edx, [esp + 0x30]
push 0xc
push edx
call fcn.004a3770
lea eax, [esp + 0x38]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a4995
mov ecx, dword [edi]
sub eax, edx
push 0
mov esi, eax
push esi
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4a4a1a
mov eax, dword [edi + 4]
push 0
push 0xc
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4a4a1a
mov eax, esi
lea ecx, [esp + 0x34]
lea ebp, [esp + 0x28]
cmp esi, 4
jb 0x4a49f5
jmp 0x4a49e0
mov edx, dword [ebp]
cmp edx, dword [ecx]
jne 0x4a4a1a
sub eax, 4
add ecx, 4
add ebp, 4
cmp eax, 4
jae 0x4a49e0
test eax, eax
je 0x4a4a39
mov dl, byte [ecx]
cmp dl, byte [ebp]
jne 0x4a4a1a
cmp eax, 1
jbe 0x4a4a39
mov dl, byte [ecx + 1]
cmp dl, byte [ebp + 1]
jne 0x4a4a1a
cmp eax, 2
jbe 0x4a4a39
mov al, byte [ecx + 2]
cmp al, byte [ebp + 2]
je 0x4a4a39
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
mov ecx, dword [edi]
push ecx
call esi
mov edx, dword [edi + 4]
push edx
call esi
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret
Function at 0x4a4b00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004d8e98
add esp, 0x18
test eax, eax
je 0x4a4b23
cmp eax, 0xffffffff
jne 0x4a4b25
xor eax, eax
ret

Function at 0x4a4d60
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x5f8], 2
jne 0x4a4d76
mov dword [esp + 4], eax
jmp fcn.004a4d10
mov eax, 1
ret
Function at 0x4a7a00
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.004d9310
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a7ae0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a7ac1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a7ac1
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4a7ac0
cmp esi, dword [esp + 0xc]
jb 0x4a7ac0
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4a7acf
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a7ae0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret

Function at 0x4a9f50
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x54ae70]
mov edi, eax
add esp, 8
test edi, edi
je 0x4a9f18
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4a9f30
cmp esi, ebx
je 0x4a9f30
cmp esi, 0x8000
ja 0x4a9f30
cmp esi, ebx
jb 0x4a9f29
push esi
push edi
call dword [0x54ae70]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a9ee0
push ebp
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x4a9ec0
Function at 0x4aeef0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x519618
push ecx
call fcn.00499d70
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004adfc0
test eax, eax
jne 0x4aef20
mov eax, esi
jmp fcn.004ae3f0
ret
Function at 0x4af3d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [ebx]
push esi
mov esi, dword [ebx + 0x7c8]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4af44a
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004d9440
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov eax, dword [esi + 0x14c]
cmp eax, 4
jge 0x4af477
push str.Received_too_short_packet
push ebp
call fcn.00499e40
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
mov edx, dword [esi + 0x15c]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4af49c
jmp dword [ecx*4 + 0x4af5f8]
cmp eax, 4
jle case.0x4af49c.4
mov ecx, dword [esi + 0x15c]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x40]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x4af49c.4
mov edx, dword [esi + 0x15c]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.0049a200
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4af50e
mov eax, 5
mov ecx, esi
call fcn.004af350
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebp + 0x98], eax
mov ecx, dword [ebp + 0x98]
adc dword [ebp + 0x9c], edx
mov eax, dword [ebp + 0x9c]
push eax
push ecx
push ebp
call fcn.004a8aa0
add esp, 0xc
jmp case.0x4af49c.4
mov edi, dword [esi + 0x15c]
lea ebx, [eax - 4]
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebx
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call fcn.004d8000
add esp, 0xc
test eax, eax
je 0x4af588
sub eax, edi
cmp eax, ebx
jae 0x4af588
push edi
push str.TFTP_error:__s_n
push ebp
call fcn.00499d70
add esp, 0xc
mov ebx, dword [esp + 0x98]
push ebx
call fcn.004a94a0
add esp, 4
test eax, eax
je 0x4af46a
mov eax, 5
mov ecx, esi
call fcn.004af350
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x84
ret
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004ae130
add esp, 0xc
test eax, eax
je case.0x4af49c.4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
push str.Internal_error:_Unexpected_packet
push 0x51c22c
push ebp
call fcn.00499e40
add esp, 0xc
jmp case.0x4af49c.4
Function at 0x4af970
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4af9b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00499e40
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004af870
add esp, 4
pop esi
pop ecx
ret
Function at 0x4b0190
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x904
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x99]
push 0
push eax
mov byte [esp + 0xa0], 0
call fcn.004d9310
push 0x7f
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x2c], 0
call fcn.004d9310
mov ebx, dword [esp + 0x930]
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x140]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.004afbc0
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4b0368
cmp ecx, 0x23
je 0x4b0345
cmp ecx, 0x27
jne 0x4b03fa
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x128]
push 0x800
push eax
call fcn.004a3770
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4b02d9
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b0267
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4b02cb
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x98]
push edx
push str._127_____127s
push ebx
call fcn.004d61e1
add esp, 0x10
test eax, eax
je 0x4b02cb
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x9c]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x12c]
push eax
call fcn.004a3770
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4b0260
mov ebx, dword [esp + 0x918]
push 0xf0
push 0xff
mov ecx, 0x800
push str._c_c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x124]
push edx
call fcn.004a3770
mov ecx, dword [ebx + 0x420]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0338
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.00499e40
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4b03e9
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b0350
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x4b0389
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b0373
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x134]
push 0x800
push eax
call fcn.004a3770
mov edx, dword [ebx + 0x420]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b03e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.00499e40
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x11e]
call fcn.004afbc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
Function at 0x4b0680
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x140]
mov dword [esp + 4], eax
jne 0x4b07d7
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4b06b7
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b06c2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b06cd
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4b06ff
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b070d
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0717
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0721
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b072c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0737
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.004afbc0
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4b0792
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00499e40
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004b0410
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jns 0x4b07d4
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00499e40
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4b5f40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov esi, eax
mov ebp, dword [esi + 0x424]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b5f8f
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.004a1020
add esp, 8
cmp ebx, 0xffffffff
jne 0x4b5fbc
push str.Error_accept__ing_server_connect
push edi
call fcn.00499e40
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x84
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.00499d70
push 1
push ebx
mov dword [esi + 0x574], 0
mov dword [esi + 0x424], ebx
call fcn.004c6380
add esp, 0x10
mov dword [esi + 0x5c0], 1
cmp dword [edi + 0x628], 0
je 0x4b6035
push 1
push edi
call fcn.00497a10
mov ecx, dword [edi + 0x62c]
mov edx, dword [edi + 0x628]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.00497a10
add esp, 0x1c
test ebx, ebx
je 0x4b6035
call fcn.004b5ea0
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
Function at 0x4b9ae0
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x4b9b1a
push str.Couldnt_set_desired_mode
push edi
call fcn.00499e40
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4b9b31
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.00499d70
add esp, 0xc
cmp ebp, 0x13
jne 0x4b9b46
push ebx
call fcn.004b9a60
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4b9b57
call fcn.004b6b70
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4b9b70
push 0xd
push 1
push ebx
call fcn.004b8d10
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4b9b84
push 0xe
push 1
push ebx
call fcn.004b8d10
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4c1220
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ebx, eax
je 0x4c1232
cmp dword [ebx], eax
jne 0x4c1261
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x4c123e
cmp dword [ecx], eax
jne 0x4c1265
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x4c124a
cmp dword [edx], eax
jne 0x4c1269
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.004c11d0
add esp, 8
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
lea esi, [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, eax
jg 0x4c1295
jl 0x4c1285
cmp edi, eax
jae 0x4c128b
mov dword [esp + 0xc], eax
jmp 0x4c1307
cmp esi, eax
jl 0x4c12ff
jg 0x4c1295
cmp edi, eax
jbe 0x4c12ff
push ebp
push eax
push 0x3e8
push esi
push edi
call fcn.004dd100
push 0
push 0x3e8
push edx
push eax
mov ebp, eax
mov ebx, edx
call fcn.004dcf80
push 0
sub edi, eax
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.004dcf80
mov dword [esp + 0x18], edx
test ebx, ebx
jl 0x4c12e6
jg 0x4c12d9
cmp ebp, 0x7fffffff
jbe 0x4c12e6
mov ebp, SysReAllocString
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
xor eax, eax
pop ebp
jmp 0x4c1307
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x4c130f
cmp dword [edx], eax
jne 0x4c1311
xor edx, edx
cmp ecx, eax
je 0x4c1319
cmp dword [ecx], eax
jne 0x4c131b
xor ecx, ecx
cmp ebx, eax
je 0x4c1325
cmp dword [ebx], eax
je 0x4c1325
mov eax, ebx
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4c8460
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004a4b70
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
add esp, 4
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4c84fd
lea eax, [esp + 0x10]
push eax
call fcn.004a4b70
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004a4c10
add esp, 0x20
test edx, edx
ja 0x4c8507
jb 0x4c84df
cmp eax, 0x3e8
ja 0x4c8507
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4c8495
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4ccb30
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4ccbce
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x20]
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.004ccaa0
mov ecx, esi
push 8
push ecx
call fcn.004d2fd0
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4ccbd5
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
add esp, 0x20
ret
mov eax, dword [ebp]
mov edx, dword [esp + 8]
push edx
mov dword [edi], eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop ebp
add esp, 0x20
ret

Function at 0x4ce250
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4ce282
push 0x2e
push esi
call fcn.004d6220
add esp, 8
test eax, eax
je 0x4ce280
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x4d3020
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d3066
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0049cf70
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x4d30c3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push eax
push 2
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x4d30d3
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4d30e4
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret