joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcc50
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x56fe2a
call fcn.004e718f
mov edi, ecx
and dword [ebp - 4], 0
lea esi, [edi + 4]
cmp dword [esi + 0x14], 8
jb 0x4bcc6f
mov eax, dword [esi]
jmp 0x4bcc71
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x4bccc1
mov ebx, 0x58aa60
push ebx
call fcn.004d2a7b
pop ecx
push eax
push ebx
lea ecx, [edi + 0x34]
call fcn.00419cc0
and dword [ebp - 0x18], 0
xor eax, eax
mov ebx, 0x575d04
mov dword [ebp - 0x14], 7
push ebx
mov word [ebp - 0x28], ax
call fcn.004d2a7b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00419cc0
mov byte [ebp - 4], 1
jmp 0x4bcd1c
lea esi, [edi + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x4bccce
mov eax, dword [esi]
jmp 0x4bccd0
mov eax, esi
push eax
call ebx
test eax, eax
je 0x4bcdb9
mov ebx, 0x58aa6c
push ebx
call fcn.004d2a7b
pop ecx
push eax
push ebx
lea ecx, [edi + 0x34]
call fcn.00419cc0
and dword [ebp - 0x18], 0
xor eax, eax
mov ebx, 0x575d04
mov dword [ebp - 0x14], 7
push ebx
mov word [ebp - 0x28], ax
call fcn.004d2a7b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00419cc0
mov byte [ebp - 4], 2
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0x28]
push ebx
push esi
call fcn.0041e800
mov esi, 0x575d08
push esi
call fcn.004d2a7b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0041e910
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e800
push 8
pop esi
cmp dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004bcbb4
test eax, eax
lea eax, [ebp - 0x28]
jne 0x4bcd95
cmp dword [ebp - 0x14], esi
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push ebx
push eax
call fcn.004b3842
cmp dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.OpenUrlBySelfBrowser_OpenSysUserBrowser__s_
call fcn.004b76c4
add esp, 0x18
jmp 0x4bcda9
cmp dword [ebp - 0x14], esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.OpenUrlBySelfBrowser_CreateRunProcess__s_
call fcn.004b76c4
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00430390
xor esi, esi
inc esi
jmp 0x4bcdbd
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00430390
mov eax, esi
call fcn.004e7139
ret 0x1c
Function at 0x4bcdde
Capabilities:
Get disk information

Disassembly:
push 0x4e0
mov eax, 0x56fe5a
call fcn.004e718f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4e0]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
xor eax, eax
mov dword [ebp - 0x4ec], edi
push 0x571908
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], edi
mov word [ebp - 0x4e0], ax
call fcn.00419cc0
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4bcf14
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4bcf14
mov dword [ebp - 0x4e4], edi
cmp word [ebp - 0x4c8], di
je 0x4bcf14
and dword [ebp - 0x4e8], 0
lea edi, [ebp - 0x4c8]
push 0x58aa78
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4bcee8
push 0x58aa80
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4bcee8
mov ax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e8]
push 0x64
mov ax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4bcf92
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push ebx
call fcn.004d65eb
add esp, 0xc
test eax, eax
je 0x4bcf3a
mov eax, dword [ebp - 0x4e4]
lea edi, [ebp - 0x4c8]
add eax, 4
mov dword [ebp - 0x4e4], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4e8], eax
xor eax, eax
cmp word [edi], ax
jne 0x4bce6a
xor edi, edi
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.0043cf36
push edi
push 1
lea ecx, [ebp - 0x4e0]
call fcn.00430390
mov eax, esi
call fcn.004e7139
ret 8
cmp word [ebp - 0x18], 0
jne 0x4bcf45
xor eax, eax
jmp 0x4bcf4f
lea eax, [ebp - 0x18]
push eax
call fcn.004d2a7b
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.0041e910
lea edi, [ebx + edi*2]
xor ebx, ebx
cmp word [edi], bx
jne 0x4bcf6d
mov eax, ebx
jmp 0x4bcf74
push edi
call fcn.004d2a7b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4e0]
call fcn.0041e910
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.0043cf36
push ebx
jmp 0x4bcf23
xor ecx, ecx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [esi], ax
push ecx
jmp 0x4bcf23

Function at 0x4da102
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d9f81

Function at 0x4dbf60
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dbc20
Function at 0x4fc420
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.00437c60
mov eax, dword [0x5da2b4]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push ebx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x10], eax
sub eax, edi
mov dword [esp + 0x14], eax
cmp esi, edi
jae 0x4fc486
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call fcn.0050d530
add esp, 0xc
cmp edi, 0x40
jbe 0x4fc4a2
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call fcn.0050d530
add esp, 0xc
lea eax, [esp + 0x28]
neg eax
lea ebp, [esp + 0x28]
and eax, 0x3f
add ebp, eax
lea eax, [edi + 0x100]
cmp esi, eax
jbe 0x4fc4c5
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, dword [esp + 0x14]
div edi
push edi
mov esi, edx
push 0
push ebp
mov dword [esp + 0x2c], esi
call fcn.004bf1c0
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp ebx, dword [esp + 0xbc]
jae 0x4fc57f
mov eax, dword [esp + 0xb4]
mov edx, ebx
mov esi, dword [esp + 0x10]
sub edx, esi
mov edi, esi
mov dword [esp + 0x10], edx
sub edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
sub esi, ebx
nop dword [eax + eax]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ebx, edx
mov edi, dword [esp + 0x1c]
not edx
sar edx, 0x1f
not ebx
not dl
sar ebx, 0x1f
mov al, byte [edi + eax]
mov edi, dword [esp + 0xb8]
and dl, al
and dl, bl
or byte [ecx + ebp], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc ecx
mov eax, ecx
inc edx
sub eax, edi
mov dword [esp + 0x10], edx
sar eax, 0x1f
and ecx, eax
mov dword [esp + 0x18], ecx
sub esi, 1
jne 0x4fc530
mov esi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
je 0x4fc5ae
mov edx, dword [esp + 0x24]
nop dword [eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebp]
movzx eax, byte [esi + ebp]
inc esi
mov byte [edx + ecx], al
mov eax, esi
sub eax, edi
inc ecx
sar eax, 0x1f
and esi, eax
cmp ecx, edi
jb 0x4fc590
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437c42
add esp, 0x9c
ret
Function at 0x4fceb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, dword [edx]
inc ebp
push edi
cmp eax, 0x302
jge 0x4fcedb
cmp eax, 0x100
je 0x4fcedb
mov esi, dword [esp + 0x14]
cmp ebp, dword [esi + 4]
jbe 0x4fcef8
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx + ebp]
mov edi, dword [esi + 4]
cmp eax, edi
ja 0x4fced5
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edi, ecx
mov dword [esi + 4], edi
test dword [edx + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x4fcf3d
cmp dword [edx + 0x88], 0
jne 0x4fcf3d
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x4fcf30
cmp dword [eax + 0xc], 0
jne 0x4fcf30
test bl, 1
jne 0x4fcf30
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x4fcf3d
test ebx, ebx
je 0x4fcf3d
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call fcn.00513210
add esp, 4
test eax, 0x200000
je 0x4fcf66
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, dword [esi + 4]
mov ecx, 0xff
mov edx, edi
mov dword [esp + 0x20], edi
sub edx, ebx
sub edx, ebp
not edx
lea eax, [edi - 1]
sar edx, 0x1f
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4fcfc7
mov ebp, dword [esp + 0x20]
mov edi, ebx
dec ebp
add ebp, dword [esi + 0xc]
mov esi, ecx
nop dword [eax]
mov eax, edi
lea ebp, [ebp - 1]
not eax
dec edi
sar eax, 0x1f
movzx ecx, al
movzx eax, byte [ebp + 1]
xor eax, ebx
and ecx, eax
not ecx
and edx, ecx
sub esi, 1
jne 0x4fcfa0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 4
and edx, eax
mov eax, edx
shr eax, 2
and edx, eax
lea eax, [ebx + 1]
pop ebx
lea ecx, [edx + edx]
and ecx, edx
shl ecx, 0x1e
sar ecx, 0x1f
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
ret
Function at 0x4fd7a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00437c60
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
push edi
call fcn.004eb6e0
add esp, 0xc
test eax, eax
je 0x4fd7fb
nop dword [eax]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x24]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004eb6e0
add esp, 0xc
test eax, eax
jne 0x4fd7d0
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov edi, dword [esp + 0x60]
cmp esi, 1
mov ebp, dword [esp + 0x58]
mov esi, 0
cmovne esi, dword [esp + 0x54]
push edi
push 0
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], esi
call fcn.004bf1c0
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004eb6e0
add esp, 0x18
test eax, eax
je 0x4fd976
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x4fd952
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4fd983
push edi
push ebx
push dword [esp + 0x54]
and esi, 1
push dword [esp + 0x54]
add esi, dword [esp + 0x28]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x84]
push esi
push ecx
call fcn.004fd9b0
add esp, 0x3c
test eax, eax
je 0x4fd9a1
add esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x4fd94e
cmp edi, 0x20
jb 0x4fd92b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x4fd8e1
cmp edx, ebx
jae 0x4fd92b
mov eax, edi
and eax, 0x8000001f
jns 0x4fd8ef
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x4fd900
cmp ecx, edi
jge 0x4fd94e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4fd940
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.004eb6e0
add esp, 0xc
test eax, eax
jne 0x4fd850
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.0050a210
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x50a6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00437c60
mov eax, dword [0x5da2b4]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x50a725
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00437c42
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.004d3e5f
add esp, 8
test eax, eax
js 0x50a70e
mov eax, 8
call fcn.00437c60
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.0050a820
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x50a70e
push 0x573004
push edi
call fcn.004c6c10
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x50a801
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x50a78e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.004c6df3
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x50a7e2
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.00437c60
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.0050a820
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x50a780
sub esi, edi
test esi, esi
jg 0x50a780
push dword [esp + 0x40]
call fcn.004c69a1
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.004012d0
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437c42
mov esp, ebp
pop ebp
ret
Function at 0x50d3f0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10c
call fcn.00437c60
mov eax, dword [0x5da2b4]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x50d463
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x50d463
mov esi, dword [esp + 0x114]
call fcn.004318a0
lea ecx, [esp + 0x118]
add eax, 8
push ecx
push 0
push esi
push eax
call fcn.0041a030
push dword [eax + 4]
push dword [eax]
call fcn.004c52cb
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00437c42
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.0041a030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004c5390
add esp, 0x1c
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x50d500
call fcn.0050d2b0
test eax, eax
jle 0x50d500
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
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 [esp + 0x108]
xor ecx, esp
call fcn.00437c42
add esp, 0x10c
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.00437c42
add esp, 0x10c
ret

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

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.00500da0
add esp, 8
test esi, esi
jg 0x50d6c7
je 0x50d6a9
cmp esi, 0xffffffff
jne 0x50d6c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0050d8d0
add esp, 4
test eax, eax
je 0x50d6c7
push 0xa
push edi
call fcn.00501490
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x513d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.00437c60
mov eax, dword [0x5da2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513d95
push 0
sub ecx, edx
mov dword [ebp - 0x1c], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x513e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x513df3
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x513e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x513e7c
lea eax, [esi + esi]
call fcn.004e7870
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x1c]
push 0xfde9
call esi
test eax, eax
je 0x513edb
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513e30
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x513edb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.004c6bf9
mov esi, eax
add esp, 8
test esi, esi
jne 0x513e8e
call fcn.004c67bc
cmp dword [eax], 2
je 0x513e7e
call fcn.004c67bc
cmp dword [eax], 9
jne 0x513edb
push ebx
push edi
call fcn.004c6c10
mov esi, eax
add esp, 8
test esi, esi
je 0x513edb
push 0x5de528
call fcn.00501160
mov edi, eax
add esp, 4
test edi, edi
jne 0x513eaf
push esi
call fcn.004c69a1
add esp, 4
jmp 0x513f43
push 0
push edi
call fcn.00500da0
push esi
push 1
push 0x6a
push edi
call fcn.00500dd0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0050a210
push 0x594a7c
push ebx
push 0x5aafd0
push edi
push str.fopen_
push 5
call fcn.005097f0
add esp, 0x2c
call fcn.004c67bc
cmp dword [eax], 2
jne 0x513f2b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x513f37
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0050a210
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437c42
mov esp, ebp
pop ebp
ret
Function at 0x516570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00437c60
mov eax, dword [0x5da2b4]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.0050ffb0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0050fe10
add esp, 0xc
test eax, eax
je 0x516672
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0050fb00
add esp, 0xc
test eax, eax
je 0x516672
lea eax, [esp + 0x20]
push eax
call fcn.0050fd50
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x516690
push edi
call fcn.00504cd0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00517ce0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x516672
push esi
call fcn.005182e0
add esp, 4
test eax, eax
jle 0x516672
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00517a90
add esp, 0x18
test eax, eax
jle 0x516672
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00518200
add esp, 0x14
test eax, eax
jle 0x516672
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00517c80
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00437c42
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x5166a8
cmp dword [edi], edx
je 0x5166d2
inc eax
add ecx, 4
cmp eax, 4
jl 0x516695
push 0x7f
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.0050a210
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00437c42
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x516706
push 0x85
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.0050a210
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00437c42
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437c42
add esp, 0x6c
ret
Function at 0x51e670
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00437c60
mov eax, dword [0x5da2b4]
xor eax, esp
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov edx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
test edi, edi
je 0x51e6ba
mov dword [esi], edi
jmp 0x51e6bc
mov edi, dword [esi]
xor eax, eax
test edx, edx
setne al
test ecx, ecx
je 0x51e846
push edi
call fcn.005135b0
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x51e6f2
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.0050d530
add esp, 0xc
mov ebx, dword [esp + 0xa8]
cmp ebp, ebx
jge 0x51e74a
push dword [esp + 0x10]
lea ebp, [esi + 4]
push edi
push ebp
call fcn.0050fba0
add esp, 0xc
test eax, eax
je 0x51e842
push ebx
push dword [esp + 0x18]
push ebp
call fcn.0050fd40
add esp, 0xc
test eax, eax
je 0x51e842
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 4]
push eax
call fcn.0050fb00
add esp, 0xc
test eax, eax
je 0x51e842
jmp 0x51e781
test ebx, ebx
js 0x51e756
cmp ebx, 0x80
jle 0x51e76a
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.0050d530
add esp, 0xc
push ebx
push dword [esp + 0x18]
lea eax, [esi + 0x50]
push eax
call fcn.004bec40
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x51e7a4
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004bf1c0
add esp, 0xc
mov ebp, dword [esp + 0x10]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x51e7b0
push ebp
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.0050fba0
add esp, 0xc
test eax, eax
je 0x51e842
push edi
call fcn.005135b0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0050fd40
add esp, 0x10
test eax, eax
je 0x51e842
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x51e7f0
push ebp
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.0050fba0
add esp, 0xc
test eax, eax
je 0x51e842
push edi
call fcn.005135b0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0050fd40
add esp, 0x10
test eax, eax
je 0x51e842
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0050fe10
add esp, 8
test eax, eax
jne 0x51e84f
xor eax, eax
jmp 0x51e854
test eax, eax
je 0x51e82e
jmp 0x51e7a8
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00437c42
add esp, 0x8c
ret