joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507fc0
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 + 0x46cc]
jne 0x50810c
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x507ff5
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x508000
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x50800b
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 ecx, dword [ebp + 0xc]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x50803c
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x508046
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x508050
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x50805a
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x508065
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x508070
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.005078a0
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 0x5080c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ec7d0
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.00507f00
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 0x50810b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ec7d0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x508120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x629960]
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 + 0x46cc]
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.005078a0
mov eax, dword [esi + 0x1eb0]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x5082d9
cmp ecx, 0x23
je 0x5082b6
cmp ecx, 0x27
jne 0x508367
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004f63d0
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x508253
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
jmp 0x5081e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5081e0
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x508241
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.004dbcfe
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 fcn.004f63d0
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x5081d4
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x5d1134
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004f63d0
add esp, 0x14
lea eax, [ebp - 0x904]
add edi, 2
push 0
push edi
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x134]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5082ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004ec7d0
add esp, 0xc
lea eax, [edi - 2]
jmp 0x508354
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5082c1
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x5082fa
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5082e4
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 fcn.004f63d0
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 0x508351
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004ec7d0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.005078a0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x509010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x400]
mov edi, dword [eax]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x5090a1
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004aca30
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x5090d4
push str.Received_too_short_packet
push edi
call fcn.004ec7d0
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.004a16e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x5090f9
jmp dword [edx*4 + 0x509220]
cmp ebx, 4
jle case.0x5090f9.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x5090f9.4
lea eax, [ebx - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push dword [ebp - 0x8c]
call fcn.004ec590
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x509168
push 5
push esi
call fcn.005099e0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.004f4900
jmp 0x5091e3
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x5cb0b4
push edi
mov dword [esi + 8], ecx
call fcn.004ec8e0
jmp 0x5091e3
lea eax, [ebx - 2]
push eax
lea eax, [ecx + 2]
push eax
push esi
call fcn.00508d90
add esp, 0xc
test eax, eax
je case.0x5090f9.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x60f31c
push edi
call fcn.004ec7d0
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.004f4b30
add esp, 4
test eax, eax
je 0x5090c1
push 5
push esi
call fcn.005099e0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x5099e0
Capabilities:
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.0x5099f2
jmp dword [edx*4 + 0x509a48]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005094d0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00509230
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00509bf0
push str.TFTP_finished
push 0x5cb0b4
push eax
call fcn.004ec8e0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x60f31c
push eax
call fcn.004ec7d0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x509ed0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004beb95
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x509f34
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x509f34
lea eax, [ebp - 0x108]
push eax
call dword [0x62ab40]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x50d790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x50d7bc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x50d7ad
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x50d7f0
cmp dword [esi + 8], 0
jne 0x50d7e0
push 0x60f2d8
push dword [eax + 8]
call fcn.004d89da
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x50d7e0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004db0a9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50d812
mov eax, dword [esi + 8]
test eax, eax
je 0x50d80c
push eax
call fcn.004a329d
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 0x50fbb0
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 0x50fbe3
push 0x2e
push edi
call fcn.004c1c60
add esp, 8
test eax, eax
je 0x50fbe1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x5110f0
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 [0x62ab34]
mov edi, eax
add esp, 4
test edi, edi
jne 0x51111d
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 0x511164
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 dword [ebp + 0x10], ebx
jmp 0x51116a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
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 0x5111ca
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
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
dec dword [ebp + 0x10]
jne 0x511190
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x5111f7
nop
mov eax, dword [esi + 4]
push 1
push str.6KGS____Stack_part_of_OpenSSL_1.0.2k__26_Jan_2017
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5d2b17
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5111d0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x529d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x43c], ebx
test edi, edi
jne 0x529d76
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x434]
push eax
push edi
call fcn.005ae957
add esp, 8
test eax, eax
js 0x529d64
push esi
sub esp, 8
lea eax, [ebp - 0x434]
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.00529a90
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
jne 0x529dc1
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push 0x60f2d8
push edi
call fcn.004d89da
add esp, 8
mov dword [ebp - 0x438], eax
test eax, eax
je 0x529e92
test dword [ebp - 0x42e], 0x2000
je 0x529e10
push 0
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push 0
push eax
cmove esi, ecx
call fcn.004a2f3b
mov eax, dword [ebp - 0x438]
add esp, 0x10
lea esp, [esp]
mov edi, 0x400
test esi, esi
jle 0x529e1e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004db0a9
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x529e6d
movd xmm0, ebx
lea eax, [ebp - 0x404]
cvtdq2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push edi
push eax
call fcn.00529a90
add dword [ebp - 0x43c], ebx
add esp, 0x10
mov eax, dword [ebp - 0x438]
test esi, esi
jle 0x529e10
sub esi, edi
test esi, esi
jg 0x529e10
push dword [ebp - 0x438]
call fcn.004a329d
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00401360
mov ebx, dword [ebp - 0x43c]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x52b040
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.004a3440
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x52cbd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor dl, dl
test esi, esi
je 0x52cbf5
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x52cbe6
pop edi
movzx eax, dl
pop esi
pop ebp
ret

Function at 0x52ce60
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x52ced9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x52ced9
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.005ae99d
add esp, 0x10
lea ecx, [ebp - 0x108]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.005ae99d
add esp, 0x10
mov byte [ebp - 5], 0
call fcn.0052cd20
test eax, eax
jle 0x52cf52
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x52cf68
push 0
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x52d4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x52d540
mov al, byte [esi]
test al, al
je 0x52d540
push edi
mov edi, 0x100
lea esp, [esp]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x52d510
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x52f0e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.0052f1e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x52f188
push 0xaf
push str.F:Gitcurllookaside_opensslcrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00529440
push 0x5e62a8
push esi
push 0x5e62ac
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00528be0
add esp, 0x2c
call fcn.004a408d
cmp dword [eax], 2
je 0x52f167
call fcn.004a408d
cmp dword [eax], 6
je 0x52f167
push 0xb8
push str.F:Gitcurllookaside_opensslcrypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00529440
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0xb6
push str.F:Gitcurllookaside_opensslcrypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00529440
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0x62b09c
call fcn.005136a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x52f1aa
push edi
call fcn.004a329d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0
push esi
call fcn.005132d0
push edi
push 1
push 0x6a
push esi
call fcn.00513300
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x53c1c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
sub ecx, 4
jb 0x53c1e7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x53c1ee
add edx, 4
add esi, 4
sub ecx, 4
jae 0x53c1d6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x53c229
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x53c229
cmp ecx, 0xfffffffd
je 0x53c229
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x53c229
cmp ecx, 0xfffffffe
je 0x53c229
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x53c229
cmp ecx, 0xffffffff
je 0x53c229
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x53c244
push str.memcmp_min__max__length____0
push 0x187
push str.F:Gitcurllookaside_opensslcryptox509v3_v3_addr.c
call fcn.0052cf80
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x53c261
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x53c261
inc ecx
inc edx
cmp ecx, ebx
jl 0x53c254
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x53c281
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
cmp byte [eax + esi], 0
jne 0x53c281
cmp byte [eax], 0xff
jne 0x53c281
dec eax
dec edx
jns 0x53c272
cmp ecx, edx
jl case.0x53c2ad.2
jle 0x53c293
pop edi
pop esi
lea eax, [ecx*8]
pop ebx
pop ebp
ret
mov dh, byte [ecx + ebx]
mov bl, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x53c2ad.2
movzx eax, byte [eax + 0x53c320]
jmp dword [eax*4 + 0x53c300]
mov eax, 7
jmp 0x53c2e3
mov eax, 6
jmp 0x53c2e3
mov eax, 5
jmp 0x53c2e3
mov eax, 4
jmp 0x53c2e3
mov eax, 3
jmp 0x53c2e3
mov eax, 2
jmp 0x53c2e3
mov eax, 1
test dl, dh
jne case.0x53c2ad.2
and bl, dl
cmp bl, dl
jne case.0x53c2ad.2
pop edi
pop esi
lea eax, [eax + ecx*8]
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x55f480
Capabilities:
Hash data using sha1

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

Function at 0x55f5c0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.004a3440
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
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
pop esi
pop ebp
ret

Function at 0x55f900
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.004a3440
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
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
pop esi
pop ebp
ret

Function at 0x55fa60
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x5600a0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret