joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4310a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, eax
test edi, edi
je 0x431172
xor eax, eax
cmp eax, 0x4b0e6c
je 0x431172
cmp dword [ebp + 8], eax
je 0x431172
push esi
push 0x4b0e6c
push 0x6e
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4310e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4310f0
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00401020
test al, al
je 0x43114b
push 0
lea edx, [ebp - 8]
push edx
push esi
push ebx
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43115c
lea esi, [ebp - 4]
call fcn.00401000
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], esi
lea esi, [ebp - 4]
jne 0x43114e
call fcn.00401000
pop ebx
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x431180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x4311b2
cmp dword [eax + 0x18], 8
jb 0x431192
mov esi, dword [eax + 4]
jmp 0x431195
lea esi, [eax + 4]
test esi, esi
je 0x4311b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4311b6
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4311ba
xor eax, eax
pop esi
ret
test al, 0x10
je 0x4311b2
mov eax, 1
pop esi
ret

Function at 0x4311d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0047e260
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00477b1d
mov esp, ebp
pop ebp
ret
Function at 0x432fe0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a958
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [0x4ecefa], bl
je 0x43309e
mov edx, str.Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
lea esi, [ebp - 0x24]
call fcn.004317c0
mov edx, str.__user_agent
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004317c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 0x24]
push edx
mov edx, esi
push edx
call eax
mov eax, dword [ebp - 0x14]
mov esi, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov dword [ebp - 0x18], esi
cmp eax, ebx
je 0x433077
cmp byte [ebp - 0x10], bl
je 0x433071
push eax
call sub.libcef.dll_cef_string_utf16_clear
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00477b12
add esp, 8
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], bl
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
cmp eax, ebx
je 0x43309e
cmp byte [ebp - 0x1c], bl
je 0x433098
push eax
call sub.libcef.dll_cef_string_utf16_clear
mov edx, dword [ebp - 0x20]
push edx
call fcn.00477b12
add esp, 8
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4330bd
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x439b90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bb08
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x4c17d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x439c95
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x439c95
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
push eax
call edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x439c77
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp byte [ebp + 8], 0
mov edi, eax
je 0x439c52
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xa8]
sub ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0xa4]
sub edx, dword [esi + 0x9c]
push 0x76
push ecx
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
push 0x185
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x439c74
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x96
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x439c95
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
mov edx, dword [eax + ecx + 4]
lea ecx, [eax + ecx + 4]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x43a6b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499f58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c17d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x110]
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ecx
call fcn.0045d9e0
lea ebx, [esi + 0xf4]
mov dword [esp + 0x30], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc], eax
jbe 0x43a711
call fcn.00478cdf
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
cmp edi, dword [ebx + 0x10]
jbe 0x43a724
call fcn.00478cdf
mov esi, dword [ebx]
test esi, esi
je 0x43a730
cmp esi, dword [esp + 0x1c]
je 0x43a735
call fcn.00478cdf
cmp edi, dword [esp + 0x14]
je 0x43a7b6
test esi, esi
jne 0x43a77a
call fcn.00478cdf
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x43a750
call fcn.00478cdf
mov ecx, dword [edi + 8]
cmp ecx, dword [ebp + 8]
jne 0x43a760
mov edx, dword [edi + 0xc]
cmp edx, dword [ebp + 0xc]
je 0x43a782
test esi, esi
jne 0x43a77e
call fcn.00478cdf
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x43a775
call fcn.00478cdf
add edi, 0x50
jmp 0x43a726
mov eax, dword [esi]
jmp 0x43a746
mov eax, dword [esi]
jmp 0x43a76b
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
push eax
call fcn.00415c20
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x30]
push ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0x1c
call fcn.00415c20
push edi
push esi
lea edi, [esp + 0x24]
mov esi, ebx
call fcn.0043c2f0
mov bl, 1
jmp 0x43a7ba
mov bl, byte [esp + 0x13]
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x18]
call fcn.0045d9f0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4495d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x4495e3
lea eax, [esi + 0xd]
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4495f0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x449b40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [ebp - 0x218]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x214]
mov esi, eax
cmp esi, edi
jne 0x449bc1
xor eax, eax
cmp ecx, edi
je 0x449ba9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x210], edi
mov esi, eax
mov dword [ebp - 0x214], ecx
cmp eax, edi
je 0x449bcf
cmp ecx, edi
je 0x449c90
push ecx
jmp 0x449c8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x449c50
nop
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
call fcn.00449b40
mov dword [ebp - 0x218], eax
cmp eax, edi
jne 0x449ca5
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x214]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], pe_nt_image_headers32
call esi
test eax, eax
je 0x449c00
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x449c67
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], edi
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x449c90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x214]
cmp ecx, edi
je 0x449c92
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477b1d
mov esp, ebp
pop ebp
ret 4
Function at 0x44a7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499d96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4c17d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
cmp edi, ebx
jne 0x44a830
call fcn.0040fba0
mov esi, eax
jmp 0x44a93c
mov eax, dword [ebp - 0x41c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x44a84f
call fcn.0040fba0
jmp 0x44a933
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, ebx
jne 0x44a86b
call fcn.0040fba0
jmp 0x44a933
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x41c], eax
cmp ecx, eax
jae 0x44a8ae
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x44a899
lea eax, [ebp - 0x418]
call fcn.00448f20
lea esi, [ebp - 0x424]
call fcn.00449620
mov eax, 0x8007000e
jmp 0x44a962
mov eax, ecx
lea esi, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00448f60
mov dword [ebp - 4], 1
jmp 0x44a8dd
mov ecx, dword [ebp - 0x418]
cmp ecx, ebx
jne 0x44a8ee
mov esi, 0x8007000e
jmp 0x44a935
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x428]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x44a912
call fcn.0040fba0
jmp 0x44a933
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x418]
push eax
lea edx, [ebp - 0x430]
call fcn.0044a660
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x44a960
lea eax, [ebp - 0x418]
call fcn.00448f20
jmp 0x44a960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00477b1d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4506c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
jne 0x4506ce
xor al, al
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x4506a0
push 0
push 0
mov dword [ebp - 4], 0
call fcn.0047875d
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x4506f9
test esi, esi
jne 0x450700
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4565f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0045a1c0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.0045a260
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00477b1d
add esp, 0x68
ret
Function at 0x456760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0x20119
xor edi, edi
push edi
push str.SOFTWARE360MachineSignature
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4568f3
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x20]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4567f5
cmp dword [esp + 0x18], 1
jne 0x4568da
mov eax, dword [esp + 0x14]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x4568da
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x45683a
cmp dword [esp + 0x18], 1
jne 0x4568da
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4568da
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x456871
cmp dword [esp + 0x18], 1
jne 0x4568da
mov eax, dword [esp + 0x14]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4568da
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x4568da
cmp dword [esp + 0x18], 3
jne 0x4568da
mov eax, dword [esp + 0x14]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x4568da
lea eax, [esi + 0xc]
call fcn.00456660
test eax, eax
je 0x4568da
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x456cf0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
mov ebx, dword [esp + 0x78]
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00458cf0
add esp, 8
test eax, eax
jne 0x456d61
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00477b1d
add esp, 0x6c
ret
mov eax, dword [esp + 0x78]
test eax, eax
jbe 0x456d76
push esi
lea ecx, [esp + 0x14]
call fcn.0045a1c0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.0045a260
test edi, edi
je 0x456d94
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00477b1d
add esp, 0x6c
ret

Function at 0x456dd0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x6c]
xor eax, eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x10]
mov edi, ecx
push eax
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00458ee0
add esp, 4
test eax, eax
jne 0x456e34
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00477b1d
add esp, 0x64
ret
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.0045a260
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00477b1d
add esp, 0x64
ret

Function at 0x456e60
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.00458fc0
add esp, 8
test eax, eax
jne 0x456edf
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00477b1d
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.00459dc0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00477b1d
add esp, 0x74
ret

Function at 0x457850
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45787b
push 0x4a3cf0
mov eax, 0x4a3cf0
call fcn.0045acc0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x457894
push 0x4a3cf0
call fcn.0045ad30
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x458140
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4c17d0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x458173
mov dword [esp + 0x10], 0xffffffff
jmp 0x458179
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4581a7
push 0x4a3cf0
mov eax, 0x4a3cf0
call fcn.0045acc0
add esp, 4
jmp 0x458287
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4581d7
push 0x4a3cf0
mov eax, 0x4a3cf0
call fcn.0045acc0
add esp, 4
jmp 0x458287
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x4581f9
mov eax, 1
push 0x4a3cf0
call fcn.0045ad30
add esp, 4
jmp 0x458287
cmp dword [esp + 0x40], ebx
je 0x458235
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x45821b
mov eax, 5
push 0x4a3cf0
call fcn.0045ad30
add esp, 4
jmp 0x458287
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x45827f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x458243
mov ebx, esi
jmp 0x458207
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x45826c
push 0x4a3cf0
mov eax, 0x4a3cf0
call fcn.0045acc0
add esp, 4
jmp 0x458287
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00457850
test eax, eax
je 0x458287
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x458291
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00477b1d
add esp, 0x28
ret
Function at 0x458b70
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x458bb6
push 0x4a3cf0
mov eax, 0x4a3cf0
call fcn.0045acc0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x458c48
jg 0x458bde
cmp ebx, ecx
jb 0x458c48
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x458c0d
push 0x4a3cf0
mov eax, 0x4a3cf0
call fcn.0045acc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.00457850
test eax, eax
je 0x458c03
mov eax, dword [esp + 0x20]
test eax, eax
je 0x458c2e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x458c55
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x458c55
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret