joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a5e0
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 [0x6f0020]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45a605
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 0x45a64c
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 0x45a650
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
je 0x45a6ac
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
dec ebp
jne 0x45a673
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x45a6e8
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x67ca14
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x67ca15
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 0x45a6b7
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4b1c65
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b1cbf
cmp dword [ebp + 0x10], 1
je 0x4b1ca4
cmp dword [ebp + 0x10], 2
je 0x4b1ca4
push 0xd
pop eax
jmp 0x4b1cbf
mov eax, dword [ebp - 4]
test edi, edi
je 0x4b1cbb
test eax, eax
je 0x4b1cb8
cmp byte [eax + edi - 1], 0
je 0x4b1cbb
jmp 0x4b1c9f
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4b1cf7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [ecx + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 5
je 0x4b1d3c
cmp byte [ebp + 0x18], 0
je 0x4b1d3c
test eax, eax
je 0x4b1d3c
push 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004b547f
push 0x6e8b3c
lea eax, [ebp - 0x3c]
push eax
call fcn.004beb93
leave
ret 0x14

Function at 0x4b21cb
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
lea eax, [ecx + 4]
sub esp, 0x3c
cmp dword [eax + 0x14], 0x10
jb 0x4b21dc
mov eax, dword [eax]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4b2207
cmp eax, 2
je 0x4b2207
push 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004b547f
push 0x6e8b3c
lea eax, [ebp - 0x3c]
push eax
call fcn.004beb93
leave
ret
Function at 0x4b2ce1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x66fee9
call fcn.004c5428
sub esp, 0x50
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
push edi
mov esi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.004b27e8
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push eax
call fcn.004b291a
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub eax, edi
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], ebx
je 0x4b2d4e
push str._Default_
push dword [ebp + 0xc]
call fcn.004c4f23
pop ecx
pop ecx
test eax, eax
jne 0x4b2d4e
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
jmp 0x4b2d5b
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x4b2d73
cmp edi, ebx
jne 0x4b2da6
cmp eax, ebx
jne 0x4b2db7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.004b291a
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub eax, edi
cmp eax, dword [ebp + 0x10]
jne 0x4b2da3
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4b2da6
push 8
pop eax
cmp eax, ebx
jne 0x4b2db7
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4b2ddf
cmp eax, 5
je 0x4b2dd9
cmp byte [ebp + 0x14], bl
je 0x4b2dd9
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004b547f
push 0x6e8b3c
lea eax, [ebp - 0x5c]
push eax
call fcn.004beb93
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], ebx
push edi
lea ecx, [esi + 4]
call fcn.004b2aa8
lea ecx, [ebp - 0x20]
call fcn.004b2510
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4b3241
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x140]
mov esi, ecx
push eax
push dword [esi + 0x20]
mov dword [ebp - 4], pe_nt_image_headers32
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, edi
jne 0x4b3295
mov ecx, esi
cmp dword [ebp - 4], edi
jne 0x4b3284
push str._Default_
jmp 0x4b328b
lea eax, [ebp - 0x140]
push eax
call fcn.0040189f
inc dword [esi + 0x20]
jmp 0x4b32a6
cmp eax, 0x103
jne 0x4b32ac
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004019fe
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push eax
lea ecx, [ebp - 0x40]
call fcn.004b547f
push 0x6e8b3c
lea eax, [ebp - 0x40]
push eax
call fcn.004beb93
int3
Function at 0x4b32c5
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x66ff37
call fcn.004c5428
sub esp, 0x148
push ebx
push esi
lea eax, [ebp - 0x54]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x154]
mov esi, ecx
push eax
push dword [esi + 0x24]
mov dword [ebp - 0x10], pe_nt_image_headers32
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x4b331b
lea eax, [ebp - 0x154]
push eax
lea ecx, [esi + 0x28]
call fcn.0040189f
inc dword [esi + 0x24]
mov byte [esi + 0x64], bl
jmp 0x4b335b
cmp eax, 0x103
jne 0x4b336b
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x28]
call fcn.004019fe
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.004b31bd
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004010ac
mov byte [esi + 0x64], 1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.004b547f
push 0x6e8b3c
lea eax, [ebp - 0x4c]
push eax
call fcn.004beb93
int3

Function at 0x4b3a5c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004bee40
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
sbb eax, eax
inc eax
leave
ret
Function at 0x4bec6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6f33d4]
jne 0x4bec77
repz ret
jmp fcn.004d0c23

Function at 0x4e2b27
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004ce0df
and dword [ebp - 0x14], 0
cmp dword [0x6f76b4], 0
mov dword [ebp - 0x18], eax
jne 0x4e2bda
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4e2c82
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x68e03c
push ebx
call edi
test eax, eax
je 0x4e2c82
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x6f76b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6f76b8], eax
call edi
push eax
call esi
push 0x68dffc
push ebx
mov dword [0x6f76bc], eax
call edi
push eax
call esi
mov dword [0x6f76c4], eax
test eax, eax
je 0x4e2bda
push 0x68dfe4
push ebx
call edi
push eax
call esi
mov dword [0x6f76c0], eax
mov eax, dword [0x6f76c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4e2c33
cmp dword [0x6f76c4], ecx
je 0x4e2c33
push eax
call esi
push dword [0x6f76c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4e2c33
test ebx, ebx
je 0x4e2c33
call edi
test eax, eax
je 0x4e2c2a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4e2c2a
test byte [ebp - 8], 1
jne 0x4e2c33
or dword [ebp + 0x10], 0x200000
jmp 0x4e2c66
mov eax, dword [0x6f76b8]
cmp eax, dword [ebp - 0x18]
je 0x4e2c66
push eax
call esi
test eax, eax
je 0x4e2c66
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4e2c66
mov eax, dword [0x6f76bc]
cmp eax, dword [ebp - 0x18]
je 0x4e2c66
push eax
call esi
test eax, eax
je 0x4e2c66
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6f76b4]
call esi
test eax, eax
je 0x4e2c82
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4e2c84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bec6d
leave
ret
Function at 0x4ecf00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x54c
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x48], 0
cmp dword [ebp + 0xc], 0
jne 0x4ecf2b
xor eax, eax
jmp 0x4ed128
push 0x6743f8
mov eax, dword [ebp + 8]
push eax
call fcn.005495a0
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4ecf75
push 0x62
push str.crypto_rand_randfile.c
push 0x79
push 0x6f
push 0x24
call fcn.004e9ee0
add esp, 0x14
mov ecx, dword [ebp + 8]
push ecx
push 0x68e650
push 2
call fcn.004eaf40
add esp, 0xc
or eax, 0xffffffff
jmp 0x4ed128
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.004c566e
add esp, 4
push eax
call fcn.004bba48
add esp, 8
test eax, eax
jge 0x4ecfce
push 0x69
push str.crypto_rand_randfile.c
push 0x71
push 0x6f
push 0x24
call fcn.004e9ee0
add esp, 0x14
mov ecx, dword [ebp + 8]
push ecx
push 0x68e650
push 2
call fcn.004eaf40
add esp, 0xc
mov edx, dword [ebp - 0x44]
push edx
call fcn.004be878
add esp, 4
or eax, 0xffffffff
jmp 0x4ed128
cmp dword [ebp + 0xc], 0
jge 0x4ecfee
movzx eax, word [ebp - 0x3a]
and eax, 0x8000
je 0x4ecfe7
mov ecx, dword [ebp - 0x2c]
mov dword [ebp + 0xc], ecx
jmp 0x4ecfee
mov dword [ebp + 0xc], pe_nt_image_headers32
push 0
mov edx, dword [ebp - 0x44]
push edx
call fcn.00663646
add esp, 8
cmp dword [ebp + 0xc], 0
jle 0x4ed02b
cmp dword [ebp + 0xc], 0x500
jg 0x4ed016
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54c], eax
jmp 0x4ed020
mov dword [ebp - 0x54c], 0x400
mov ecx, dword [ebp - 0x54c]
mov dword [ebp - 4], ecx
jmp 0x4ed032
mov dword [ebp - 4], 0x500
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x548]
push ecx
call fcn.004bf153
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x44]
push edx
call fcn.0066361e
add esp, 4
test eax, eax
je 0x4ed07c
call fcn.004bf527
cmp dword [eax], 4
jne 0x4ed07c
mov eax, dword [ebp - 0x44]
push eax
call fcn.006635eb
add esp, 4
cmp dword [ebp - 8], 0
jne 0x4ed07c
jmp 0x4ecffc
cmp dword [ebp - 8], 0
jne 0x4ed084
jmp 0x4ed0cc
fild dword [ebp - 8]
mov eax, 8
call fcn.004c03f0
fstp qword [esp]
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x548]
push edx
call fcn.004ecd70
add esp, 0x10
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0xc], 0
jle 0x4ed0c7
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], 0
jg 0x4ed0c7
jmp 0x4ed0cc
jmp 0x4ecffc
push 0x500
lea edx, [ebp - 0x548]
push edx
call fcn.0051c1a0
add esp, 8
mov eax, dword [ebp - 0x44]
push eax
call fcn.004be878
add esp, 4
call fcn.004eced0
test eax, eax
jne 0x4ed125
push 0xa6
push str.crypto_rand_randfile.c
push 0x76
push 0x6f
push 0x24
call fcn.004e9ee0
add esp, 0x14
mov ecx, dword [ebp + 8]
push ecx
push 0x68e650
push 2
call fcn.004eaf40
add esp, 0xc
or eax, 0xffffffff
jmp 0x4ed128
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret
Function at 0x4ed2a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28
call fcn.004c03f0
mov eax, dword [0x6f33d4]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], str.RANDFILE
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ed33e
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], str.HOME
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ed33e
mov dword [ebp - 0x14], str.USERPROFILE
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ed33e
mov dword [ebp - 0x14], str.SYSTEMROOT
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ed3d1
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004beec0
mov dword [ebp - 0x24], esp
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
jae 0x4ed3d1
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4ed3d1
mov eax, dword [ebp - 0x1c]
call fcn.004beec0
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4ed3d1
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x4ed3e1
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x4ed3e8
xor eax, eax
jmp 0x4ed470
mov eax, dword [ebp - 8]
push eax
call fcn.004be330
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4ed41e
mov ecx, dword [ebp - 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0xc]
jb 0x4ed40c
xor eax, eax
jmp 0x4ed470
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2080
add esp, 8
jmp 0x4ed46d
push str..rnd
call fcn.004be330
add esp, 4
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 2]
cmp edx, dword [ebp + 0xc]
jb 0x4ed43b
xor eax, eax
jmp 0x4ed470
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c2080
add esp, 8
push 0x6e62ac
mov edx, dword [ebp + 8]
push edx
call fcn.004c2090
add esp, 8
push str..rnd
mov eax, dword [ebp + 8]
push eax
call fcn.004c2090
add esp, 8
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004bec6d
mov esp, ebp
pop ebp
ret
Function at 0x506260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.004c03f0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005495a0
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
push 0x62
mov edx, dword [ebp + 0xc]
push edx
call fcn.004bb280
add esp, 8
test eax, eax
jne 0x5062a2
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x50632e
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004e9ee0
add esp, 0x14
push 0x67f138
mov ecx, dword [ebp + 0xc]
push ecx
push 0x690fa8
mov edx, dword [ebp + 8]
push edx
push str.fopen_
push 5
call fcn.004eaf40
add esp, 0x18
call fcn.004bf527
cmp dword [eax], 2
je 0x5062fb
call fcn.004bf527
cmp dword [eax], 6
jne 0x506315
push 0x4f
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004e9ee0
add esp, 0x14
jmp 0x50632a
push 0x51
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004e9ee0
add esp, 0x14
xor eax, eax
jmp 0x50637c
call fcn.005063e0
push eax
call fcn.004ef670
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x506355
mov eax, dword [ebp - 8]
push eax
call fcn.004be878
add esp, 4
xor eax, eax
jmp 0x50637c
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004efab0
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x6a
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f0320
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x50dfc0
Capabilities:
Hash data using sha224

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

Function at 0x50e040
Capabilities:
Hash data using sha256

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

Function at 0x51c210
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x51c243
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x51c22b
neg eax
shr eax, 0x1f
pop edi
pop esi
ret
Function at 0x546740
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 ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x367cd507
mov dword [ecx + 0xc], 0x629a292a
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x3070dd17
mov dword [edx + 0x14], 0x9159015a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0xffc00b31
mov dword [ecx + 0x24], 0x67332667
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0x68581511
mov dword [edx + 0x2c], 0x8eb44a87
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0xbefa4fa4
mov dword [ecx + 0x3c], 0x47b5481d
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xd4], 0x30
mov eax, 1
pop ebp
ret

Function at 0x546810
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 ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x84caa73b
mov dword [ecx + 0xc], 0xbb67ae85
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xfe94f82b
mov dword [edx + 0x14], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0xade682d1
mov dword [ecx + 0x24], 0x510e527f
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0x2b3e6c1f
mov dword [edx + 0x2c], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x137e2179
mov dword [ecx + 0x3c], 0x5be0cd19
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xd4], 0x40
mov eax, 1
pop ebp
ret