joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3da0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4d3dd5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004c2150
add esp, 0xc
jmp 0x4d3e0e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x4d3e00
shr eax, 8
test al, al
jne 0x4d3e00
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00499a1c
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004c2150
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00499a1c
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [esi + 0x1a8]
mov al, byte [esp + 8]
push edi
mov edi, dword [esi]
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
jge 0x4d3fe4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004c2150
add esp, 0xc
mov edx, dword [esp + 0xc]
mov ecx, dword [esi]
mov eax, ebx
mov edi, str.SENT
call fcn.004d3ea0
pop edi
pop ecx
ret
Function at 0x4d4910
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.004a0660
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.004a0660
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x154]
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.004d4330
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4d4af8
cmp ecx, 0x23
je 0x4d4ad2
cmp ecx, 0x27
jne 0x4d4b8a
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.004c9bd0
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4d4a66
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d49f7
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4d4a5b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call fcn.004f64a8
add esp, 0x10
test eax, eax
je 0x4d4a5b
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0xa0]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x130]
push eax
call fcn.004c9bd0
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4d49f0
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push 0x5edc28
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.004c9bd0
mov ecx, dword [ebx + 0x1a8]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4d4ac5
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.004c2150
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4d4b79
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d4ae0
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x4d4b19
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d4b03
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 + 0x138]
push 0x800
push eax
call fcn.004c9bd0
mov edx, dword [ebx + 0x1a8]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4d4b73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004c2150
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.004d4330
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00499a1c
add esp, 0x90c
ret
Function at 0x4d4d70
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 + 0x154]
mov dword [esp + 4], eax
jne 0x4d4ec9
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4d4da7
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4db2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4dbd
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 0x4d4def
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4dfd
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4e07
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4e11
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4e1c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4e27
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.004d4330
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
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
jge 0x4d4e84
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004c2150
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004d4bb0
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x4d4ec6
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004c2150
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4d5960
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x1ac]
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 0x4d59bd
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.004c87c0
add esp, 8
cmp ebx, 0xffffffff
jne 0x4d59e1
push str.Error_accept__ing_server_connect
push edi
call fcn.004c2150
add esp, 8
mov eax, 0x1e
jmp 0x4d5a53
push str.Connection_accepted_from_server_n
push edi
call fcn.004c2070
and dword [esi + 0x294], 0xfffff7ff
push 1
push ebx
mov dword [esi + 0x1ac], ebx
call fcn.004f0b10
add esp, 0x10
mov dword [esi + 0x1bc], 1
cmp dword [edi + 0x610], 0
je 0x4d5a51
push 1
push edi
call fcn.004c51e0
mov ecx, dword [edi + 0x614]
mov edx, dword [edi + 0x610]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.004c51e0
add esp, 0x1c
test ebx, ebx
je 0x4d5a51
call fcn.004d5890
mov eax, 0x2a
jmp 0x4d5a53
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00499a1c
add esp, 0x88
ret
Function at 0x4d9160
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 0x4d919a
push str.Couldnt_set_desired_mode
push edi
call fcn.004c2150
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4d91b1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.004c2070
add esp, 0xc
cmp ebp, 0x13
jne 0x4d91c6
push ebx
call fcn.004d90f0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4d91d7
call fcn.004d6570
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4d91ea
mov eax, ebx
call fcn.004d9140
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4d91f8
mov eax, ebx
call fcn.004d9150
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e2fc0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004af496
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4e3025
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4e3025
lea edx, [esp]
push edx
call dword [0x659f48]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00499a1c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00499a1c
add esp, 0x108
ret
jmp 0x4e2fc0

Function at 0x4e3040
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004af496
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4e3025
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4e3025
lea edx, [esp]
push edx
call dword [0x659f48]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00499a1c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00499a1c
add esp, 0x108
ret
jmp 0x4e2fc0

Function at 0x4e5f00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4e5f3f
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret
Function at 0x4e6f50
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x4e7101
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x4e70df
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4e6fad
lea ebx, [eax + 0xe]
jmp 0x4e6fb9
cmp eax, 0x17
jne 0x4e7058
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x4e7058
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x4e7058
cmp eax, ebx
jb 0x4e7058
push 0x20
call dword [0x659f3c]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4e7065
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x659f3c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x4e706f
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call fcn.004a26d0
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x4e703f
push eax
call dword [0x659f48]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x4e7083
cmp dword [esp + 0x10], ebp
jne 0x4e7049
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4e7054
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x4e6fa0
jmp 0x4e709f
mov dword [esp + 0x14], 8
jmp 0x4e709f
push esi
mov dword [esp + 0x18], 8
call dword [0x659f40]
add esp, 4
jmp 0x4e709f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x659f40]
push esi
call dword [0x659f40]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x4e70b0
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x4e70d9
mov eax, dword [esp + 8]
push eax
call fcn.004e6f10
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x4e70f2
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x4e74b0
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.00499f36
add esp, 0x18
test eax, eax
je 0x4e74d3
cmp eax, 0xffffffff
jne 0x4e74d5
xor eax, eax
ret
Function at 0x4e7dc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x669380], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x4e7df7
call fcn.004e7db0
test eax, eax
je 0x4e7e0f
mov dword [0x669380], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.00499a1c
add esp, 0x1b8
ret
mov eax, dword [esi + 0x9c0]
test eax, eax
je 0x4e7e30
push 0x400
push eax
call fcn.004fbdd0
add esp, 8
call fcn.004e7db0
test eax, eax
jne 0x4e7df7
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x4e7e50
lea eax, [esp + 0x34]
push eax
call fcn.004e2e10
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.004c27a0
add esp, 8
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.004a0810
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.004e2e10
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.004e2e10
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.004a0810
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.004e2e10
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.004e2e10
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
sub dword [esp + 0x20], 1
jne 0x4e7e50
fld qword [0x5f1140]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.004fbc40
add esp, 0x10
call fcn.004e7db0
test eax, eax
je 0x4e7e33
lea ecx, [esp + 0xc4]
push 0x100
push ecx
mov byte [esp + 0xcc], 0
call fcn.004fbf30
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x4e7fa7
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.004fbdd0
add esp, 8
call fcn.004e7db0
test eax, eax
jne 0x4e7df7
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.004c2070
add esp, 8
call fcn.004e7db0
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.00499a1c
add esp, 0x1b8
ret

Function at 0x4f1e60
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 0x4f1e92
push 0x2e
push esi
call fcn.004a6380
add esp, 8
test eax, eax
je 0x4f1e90
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x4f4a60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x659f3c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f4a85
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4f4acc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4f4ad0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x4f4b2e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x4f4af3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4f4b71
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x5f344c
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x5f344d
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x4f4b40
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4fbdd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004a0d90
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x4fbe17
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00499a1c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.005d7444
add esp, 8
test eax, eax
jl 0x4fbe00
mov eax, 8
call fcn.004a0d90
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004fbc40
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4fbe00
push 0x63bad4
push esi
call fcn.004f5ed8
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x4fbf11
test dword [esp + 0x4e], 0x2000
je 0x4fbe94
cmp ebx, 0xffffffff
jne 0x4fbe7e
mov ebx, 0x800
push 0
push 4
push 0
push edi
call fcn.0049d1ce
add esp, 0x10
jmp 0x4fbe94
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x4fbea2
cmp ebx, 0x400
mov esi, ebx
jl 0x4fbea7
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.0049e9fd
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4fbef5
fild dword [esp + 0x44]
mov eax, 8
call fcn.004a0d90
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004fbc40
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4fbe90
sub ebx, esi
test ebx, ebx
jg 0x4fbe90
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0049d529
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.005105e0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00499a1c
mov esp, ebp
pop ebp
ret
Function at 0x509290
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00508c00
mov edi, eax
add esp, 4
test edi, edi
jne 0x509336
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004fb700
push 0x5f6190
push esi
push 0x5f618c
push ebx
push str.fopen_
push 5
call fcn.004fb9d0
add esp, 0x2c
call fcn.0049e0be
cmp dword [eax], 2
je 0x509315
call fcn.0049e0be
cmp dword [eax], 6
je 0x509315
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004fb700
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004fb700
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x65a5ec
call fcn.004fd880
mov esi, eax
add esp, 4
test esi, esi
jne 0x509358
push edi
call fcn.0049d529
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004fd2c0
push edi
push 1
push 0x6a
push esi
call fcn.004fd620
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x50d310
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004a0660
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret