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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x628960]
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.00506820
mov eax, dword [esi + 0x1eb0]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x507259
cmp ecx, 0x23
je 0x507236
cmp ecx, 0x27
jne 0x5072e7
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004f5370
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x5071d3
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
jmp 0x507160
mov al, byte [ecx]
inc ecx
test al, al
jne 0x507160
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x5071c1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.004dac3e
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.004f5370
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x507154
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x5d0134
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004f5370
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 0x50722e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004eb740
add esp, 0xc
lea eax, [edi - 2]
jmp 0x5072d4
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x507241
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x50727a
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x507264
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.004f5370
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 0x5072d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004eb740
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.00506820
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x507f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x628960]
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 0x508021
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004abb00
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x508054
push str.Received_too_short_packet
push edi
call fcn.004eb740
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.004a0676
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.0x508079
jmp dword [edx*4 + 0x5081a0]
cmp ebx, 4
jle case.0x508079.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.0x508079.4
lea eax, [ebx - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push dword [ebp - 0x8c]
call fcn.004eb500
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5080e8
push 5
push esi
call fcn.00508960
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
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.004f3890
jmp 0x508163
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 0x5ca0b4
push edi
mov dword [esi + 8], ecx
call fcn.004eb850
jmp 0x508163
lea eax, [ebx - 2]
push eax
lea eax, [ecx + 2]
push eax
push esi
call fcn.00507d10
add esp, 0xc
test eax, eax
je case.0x508079.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x60e3d4
push edi
call fcn.004eb740
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.004f3ac0
add esp, 4
test eax, eax
je 0x508041
push 5
push esi
call fcn.00508960
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x508960
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.0x508972
jmp dword [edx*4 + 0x5089c8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00508450
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005081b0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00508b70
push str.TFTP_finished
push 0x5ca0b4
push eax
call fcn.004eb850
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x60e3d4
push eax
call fcn.004eb740
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x508e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004bdb70
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x508eb4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x508eb4
lea eax, [ebp - 0x108]
push eax
call dword [0x629b50]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x50c710
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 0x50c73c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x50c72d
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 0x50c770
cmp dword [esi + 8], 0
jne 0x50c760
push 0x60e39c
push dword [eax + 8]
call fcn.004d7928
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x50c760
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.004d9fe9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c792
mov eax, dword [esi + 8]
test eax, eax
je 0x50c78c
push eax
call fcn.004a229f
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 0x50eb30
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 0x50eb63
push 0x2e
push edi
call fcn.004c0c20
add esp, 8
test eax, eax
je 0x50eb61
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x510070
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 [0x629b44]
mov edi, eax
add esp, 4
test edi, edi
jne 0x51009d
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 0x5100e4
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 0x5100ea
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 0x51014a
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 0x510110
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x510177
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 0x5d1b17
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x510150
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x528cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x628960]
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 0x528cf6
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x434]
push eax
push edi
call fcn.005ad8f7
add esp, 8
test eax, eax
js 0x528ce4
push esi
sub esp, 8
lea eax, [ebp - 0x434]
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.00528a10
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
jne 0x528d41
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push 0x60e39c
push edi
call fcn.004d7928
add esp, 8
mov dword [ebp - 0x438], eax
test eax, eax
je 0x528e12
test dword [ebp - 0x42e], 0x2000
je 0x528d90
push 0
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push 0
push eax
cmove esi, ecx
call fcn.004a1f3d
mov eax, dword [ebp - 0x438]
add esp, 0x10
lea esp, [esp]
mov edi, 0x400
test esi, esi
jle 0x528d9e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.004d9fe9
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x528ded
movd xmm0, ebx
lea eax, [ebp - 0x404]
cvtdq2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push edi
push eax
call fcn.00528a10
add dword [ebp - 0x43c], ebx
add esp, 0x10
mov eax, dword [ebp - 0x438]
test esi, esi
jle 0x528d90
sub esi, edi
test esi, esi
jg 0x528d90
push dword [ebp - 0x438]
call fcn.004a229f
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.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x529fc0
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.004a2440
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 0x52bb50
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 0x52bb75
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 0x52bb66
pop edi
movzx eax, dl
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x628960]
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 0x52be59
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x52be59
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.005ad93d
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.004a0676
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.005ad93d
add esp, 0x10
mov byte [ebp - 5], 0
call fcn.0052bca0
test eax, eax
jle 0x52bed2
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x52bee8
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.004a0676
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.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x52c470
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 0x52c4c0
mov al, byte [esi]
test al, al
je 0x52c4c0
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 0x52c490
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 0x52e060
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.0052e160
mov edi, eax
add esp, 8
test edi, edi
jne 0x52e108
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.005283a0
push 0x5e52a8
push esi
push 0x5e52ac
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00527b40
add esp, 0x2c
call fcn.004a3031
cmp dword [eax], 2
je 0x52e0e7
call fcn.004a3031
cmp dword [eax], 6
je 0x52e0e7
push 0xb8
push str.F:Gitcurllookaside_opensslcrypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.005283a0
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.005283a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0x62a0ac
call fcn.00512600
mov esi, eax
add esp, 4
test esi, esi
jne 0x52e12a
push edi
call fcn.004a229f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0
push esi
call fcn.00512230
push edi
push 1
push 0x6a
push esi
call fcn.00512260
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x53b110
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 0x53b137
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x53b13e
add edx, 4
add esi, 4
sub ecx, 4
jae 0x53b126
xor edi, edi
cmp ecx, 0xfffffffc
je 0x53b179
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x53b179
cmp ecx, 0xfffffffd
je 0x53b179
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x53b179
cmp ecx, 0xfffffffe
je 0x53b179
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x53b179
cmp ecx, 0xffffffff
je 0x53b179
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x53b194
push str.memcmp_min__max__length____0
push 0x187
push str.F:Gitcurllookaside_opensslcryptox509v3_v3_addr.c
call fcn.0052bf00
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x53b1b1
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x53b1b1
inc ecx
inc edx
cmp ecx, ebx
jl 0x53b1a4
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x53b1d1
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
cmp byte [eax + esi], 0
jne 0x53b1d1
cmp byte [eax], 0xff
jne 0x53b1d1
dec eax
dec edx
jns 0x53b1c2
cmp ecx, edx
jl case.0x53b1fd.2
jle 0x53b1e3
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.0x53b1fd.2
movzx eax, byte [eax + 0x53b270]
jmp dword [eax*4 + 0x53b250]
mov eax, 7
jmp 0x53b233
mov eax, 6
jmp 0x53b233
mov eax, 5
jmp 0x53b233
mov eax, 4
jmp 0x53b233
mov eax, 3
jmp 0x53b233
mov eax, 2
jmp 0x53b233
mov eax, 1
test dl, dh
jne case.0x53b1fd.2
and bl, dl
cmp bl, dl
jne case.0x53b1fd.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 0x55e3e0
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.004a2440
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 0x55e520
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.004a2440
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 0x55e860
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.004a2440
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 0x55e9c0
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 0x55f000
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
Function at 0x570d70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
test esi, esi
jle 0x570e5d
push edi
mov edi, dword [ebp + 0xc]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x570dee
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
jmp 0x570e3f
shl edx, 0x10
cmp esi, 2
jne 0x570dfe
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x570e2b
lea ecx, [esi + 0x3c]
jmp 0x570e38
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x570d90
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
pop ebp
ret