joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2b70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x7911d0
push ecx
call fcn.004bd2f0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004d1b80
test eax, eax
jne 0x4d2ba0
mov ecx, esi
jmp fcn.004d2020
ret
Function at 0x4d3060
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x90
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
mov ebx, dword [ebp + 0x690]
push esi
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [ebx + 0x154]
mov eax, dword [ebx + 0x15c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x14]
push 0
add edx, 4
lea esi, [ebx + 0x15c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x14c], eax
jne 0x4d30f7
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0xc8]
push ecx
call fcn.004909c0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 0x148], edx
mov edx, dword [ebx + 0x14c]
cmp edx, 4
jge 0x4d3132
push str.Received_too_short_packet
push edi
call fcn.004bd3d0
add esp, 8
mov dword [ebx + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d1f2
add esp, 0x90
ret
mov eax, esi
call fcn.004d1d30
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4d314b
jmp dword [eax*4 + 0x4d325c]
cmp edx, 4
jle case.0x4d314b.4
mov eax, esi
call fcn.004d1d40
movzx ecx, word [ebx + 0x40]
inc ecx
cmp cx, ax
jne case.0x4d314b.4
add edx, 0xfffffffc
push edx
mov edx, dword [esi]
add edx, 4
push edx
push 1
push ebp
call fcn.004bd740
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d319e
mov ecx, 5
mov eax, ebx
call fcn.004d2fd0
mov eax, esi
jmp 0x4d3119
mov eax, dword [ebx + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x98], eax
mov ecx, dword [edi + 0x98]
adc dword [edi + 0x9c], edx
mov eax, dword [edi + 0x9c]
push eax
push ecx
push edi
call fcn.004cc510
add esp, 0xc
jmp case.0x4d314b.4
mov ebp, dword [esi]
mov eax, esi
add ebp, 4
lea edi, [edx - 4]
call fcn.004d1d40
movzx edx, ax
mov esi, ebp
mov dword [ebx + 8], edx
call fcn.004d1d50
cmp eax, edi
jae 0x4d3200
mov eax, dword [esp + 0x18]
push ebp
push str.TFTP_error:__s_n
push eax
call fcn.004bd2f0
add esp, 0xc
mov ebp, dword [esp + 0x14]
push ebp
call fcn.004ccf40
add esp, 4
test eax, eax
je 0x4d3117
mov ecx, 5
mov eax, ebx
call fcn.004d2fd0
mov eax, 0x2a
jmp 0x4d3119
mov ecx, dword [esi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push ebx
call fcn.004d1dd0
add esp, 0xc
test eax, eax
je case.0x4d314b.4
jmp 0x4d3119
push str.Internal_error:_Unexpected_packet
push 0x7898b8
push edi
call fcn.004bd3d0
add esp, 0xc
jmp case.0x4d314b.4
Function at 0x4d35e0
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
jge 0x4d3624
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004bd3d0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004d34e0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4d3f50
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x84dfc0]
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.0048d310
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.0048d310
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x138]
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.004d3970
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4d4138
cmp ecx, 0x23
je 0x4d4112
cmp ecx, 0x27
jne 0x4d41ca
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.004c5f00
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4d40a6
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d4037
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4d409b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call fcn.006cef4c
add esp, 0x10
test eax, eax
je 0x4d409b
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.004c5f00
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4d4030
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push str._c_c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.004c5f00
mov ecx, dword [ebx + 0x420]
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 0x4d4105
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.004bd3d0
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4d41b9
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d4120
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x4d4159
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d4143
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.004c5f00
mov edx, dword [ebx + 0x420]
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 0x4d41b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004bd3d0
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.004d3970
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d1f2
add esp, 0x90c
ret
Function at 0x4d43b0
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 + 0x138]
mov dword [esp + 4], eax
jne 0x4d4509
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4d43e7
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d43f2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d43fd
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 0x4d442f
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d443d
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4447
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4451
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d445c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d4467
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.004d3970
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
jge 0x4d44c4
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004bd3d0
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004d41f0
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x4d4506
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004bd3d0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4d9a10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
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 0x4d9a6d
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.004c31d0
add esp, 8
cmp ebx, 0xffffffff
jne 0x4d9a91
push str.Error_accept__ing_server_connect
push edi
call fcn.004bd3d0
add esp, 8
mov eax, 0x1e
jmp 0x4d9b03
push str.Connection_accepted_from_server_n
push edi
call fcn.004bd2f0
push 1
push ebx
mov dword [esi + 0x574], 0
mov dword [esi + 0x424], ebx
call fcn.004e9360
add esp, 0x10
mov dword [esi + 0x5c0], 1
cmp dword [edi + 0x620], 0
je 0x4d9b01
push 1
push edi
call fcn.004bb190
mov ecx, dword [edi + 0x624]
mov edx, dword [edi + 0x620]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.004bb190
add esp, 0x1c
test ebx, ebx
je 0x4d9b01
call fcn.004d9970
mov eax, 0x2a
jmp 0x4d9b03
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d1f2
add esp, 0x88
ret
Function at 0x4dd180
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 0x4dd1ba
push str.Couldnt_set_desired_mode
push edi
call fcn.004bd3d0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4dd1d1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.004bd2f0
add esp, 0xc
cmp ebp, 0x13
jne 0x4dd1e6
push ebx
call fcn.004dd110
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4dd1f7
call fcn.004da640
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4dd20a
mov eax, ebx
call fcn.004dd160
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4dd218
mov eax, ebx
call fcn.004dd170
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e44a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebp, ebp
cmp edi, ebp
je 0x4e44b4
cmp dword [edi], ebp
jne 0x4e44e5
mov esi, dword [esp + 0x24]
cmp esi, ebp
je 0x4e44c0
cmp dword [esi], ebp
jne 0x4e44e9
mov edx, dword [esp + 0x28]
cmp edx, ebp
je 0x4e44cc
cmp dword [edx], ebp
jne 0x4e44ed
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.004e4450
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
jg 0x4e4517
jl 0x4e4507
cmp ecx, ebp
jae 0x4e450d
mov dword [esp + 0xc], ebp
jmp 0x4e4570
cmp eax, ebp
jl 0x4e4568
jg 0x4e4517
cmp ecx, ebp
jbe 0x4e4568
push ebx
push ebp
push 0x3e8
push eax
push ecx
call fcn.004a7a80
push ebp
push 0x3e8
push ebx
push ecx
mov edi, eax
mov esi, edx
call fcn.0048d6e0
cmp esi, ebp
mov dword [esp + 0x18], edx
pop ebx
jl 0x4e4552
jg 0x4e4549
cmp edi, 0x7fffffff
jbe 0x4e4552
mov edi, SysReAllocString
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x4e4570
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp edx, ebp
je 0x4e4578
cmp dword [edx], ebp
jne 0x4e457a
xor edx, edx
cmp esi, ebp
je 0x4e4586
cmp dword [esi], ebp
je 0x4e4586
mov ecx, esi
jmp 0x4e4588
xor ecx, ecx
cmp edi, ebp
je 0x4e4594
cmp dword [edi], ebp
je 0x4e4594
mov eax, edi
jmp 0x4e4596
xor eax, eax
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x4e7100
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 0x4e713f
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 0x4ebed0
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004c6aa0
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 0x4ebf77
lea eax, [esp + 0x10]
push eax
call fcn.004c6aa0
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.004c6b40
add esp, 0x20
test edx, edx
jl 0x4ebf81
jg 0x4ebf4c
test eax, eax
jb 0x4ebf81
test edx, edx
jg 0x4ebf81
jl 0x4ebf59
cmp eax, 0x3e8
ja 0x4ebf81
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 0x4ebf05
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 0x4eff20
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 0x4eff52
push 0x2e
push esi
call fcn.00491800
add esp, 8
test eax, eax
je 0x4eff50
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x4f3380
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 [0x84f470]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f33a5
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 0x4f33ec
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 0x4f33f0
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 0x4f344e
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 0x4f3413
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4f3491
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x79a8fd
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x79a8fe
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 0x4f3460
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4f6940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00490990
mov eax, dword [0x84dfc0]
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 0x4f6987
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0048d1f2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.006cfcfa
add esp, 8
test eax, eax
jl 0x4f6970
mov eax, 8
call fcn.00490990
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004f67b0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4f6970
push 0x790920
push esi
call fcn.00491aaa
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x4f6a81
test dword [esp + 0x4e], 0x2000
je 0x4f6a04
cmp ebx, 0xffffffff
jne 0x4f69ee
mov ebx, 0x800
push 0
push 4
push 0
push edi
call fcn.00490005
add esp, 0x10
jmp 0x4f6a04
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x4f6a12
cmp ebx, 0x400
mov esi, ebx
jl 0x4f6a17
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.0048f1d7
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4f6a65
fild dword [esp + 0x44]
mov eax, 8
call fcn.00490990
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004f67b0
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4f6a00
sub ebx, esi
test ebx, ebx
jg 0x4f6a00
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0048eebb
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.0050d010
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d1f2
mov esp, ebp
pop ebp
ret
Function at 0x502850
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x502882
jmp dword [edx*4 + 0x5029ac]
mov edi, 0xa
cmp ebx, edi
jle case.0x502882.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x502893
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x504ac0
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.00504460
mov edi, eax
add esp, 4
test edi, edi
jne 0x504b66
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004f6240
push 0x79d614
push esi
push 0x79d610
push ebx
push str.fopen_
push 5
call fcn.004f6540
add esp, 0x2c
call fcn.00491c39
cmp dword [eax], 2
je 0x504b45
call fcn.00491c39
cmp dword [eax], 6
je 0x504b45
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004f6240
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.004f6240
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x84f9b4
call fcn.004f92c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x504b88
push edi
call fcn.0048eebb
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004f8d00
push edi
push 1
push 0x6a
push esi
call fcn.004f9060
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x507dc0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0048d310
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
Function at 0x509150
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.0048d310
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x5091b0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.0048d310
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret