joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41be1e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x41be46
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
pop ebp
ret
mov eax, dword [0x4fb87c]
cmp eax, 0xffffffff
je 0x41be6a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x41be6a
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x41be3c
push esi
push 1
call fcn.0041c295
pop ecx
pop ecx
test eax, eax
jne 0x41be8a
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x41be3f
push ebx
lea ebx, [esi + 0x10cc]
mov eax, ebx
call fcn.0041888d
cmp dword [esi + 0x10f0], ebp
jne 0x41bf3f
cmp dword [esi + 0x110c], ebp
jne 0x41bf43
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
pop edi
cmp dword [esi + 0x1110], ebp
je 0x41bf2c
cmp dword [esi + 0x1114], ebp
je 0x41bf2c
cmp dword [esi + 0x1118], ebp
je 0x41bf2c
cmp eax, ebp
jne 0x41bf43
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x41bf81
push ebx
push 1
push 0x41c3a4
push fcn.0041c383
push 0x41c358
push 0x41c331
push 0x41c2cf
push 0x41c2ca
push 0x41c2c5
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x41ccc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x41ccda
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047eaad
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41ccef
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41cd73
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x41cd5f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
test esi, 0x100
ja 0x41cd51
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0xc
Function at 0x41e6ce
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x41e716
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e700
push str.version1.0_encodingutf_16
lea ecx, [esp + 0x18]
call fcn.0040285b
push dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call fcn.0040285b
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 1
call fcn.0041233c
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x41e767
call fcn.004028f4
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e779
call fcn.004028f4
cmp dword [esp + 0x4c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x41e799
lea ecx, [esp + 0x48]
call fcn.00411d38
mov eax, ebx
jmp 0x41e702
push 0x4d74ec
lea ecx, [esp + 0x18]
call fcn.0040285b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 5
call fcn.00411cbb
mov byte [esp + 0x68], 7
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e7d1
call fcn.004028f4
cmp dword [esp + 0x40], ebx
mov esi, dword [ebp + 8]
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e800
cmp dword [esp + 0x3c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e800
lea ecx, [esi + 8]
lea edx, [esp + 0x38]
call fcn.0041e94e
push str.Plugin_AfterSetup
lea ecx, [esp + 0x18]
call fcn.0040285b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 8
call fcn.00411cbb
mov byte [esp + 0x68], 0xa
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e838
call fcn.004028f4
cmp dword [esp + 0x30], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e864
cmp dword [esp + 0x2c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e864
lea ecx, [esi + 0x20]
lea edx, [esp + 0x28]
call fcn.0041e94e
push str.Plugin_BeforeUninstall
lea ecx, [esp + 0x18]
call fcn.0040285b
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 0xb
call fcn.00411cbb
mov byte [esp + 0x68], 0xd
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e89c
call fcn.004028f4
cmp dword [esp + 0x20], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e8c8
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e8c8
lea ecx, [esi + 0x38]
lea edx, [esp + 0x18]
call fcn.0041e94e
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.004029ac
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.004029ac
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.004029ac
xor ebx, ebx
inc ebx
jmp 0x41e789
Function at 0x420b6f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5964
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
call fcn.004212fe
push 0x4d7730
lea ecx, [esp + 0x10]
call fcn.0040285b
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041fc04
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x420bdc
call fcn.004028f4
lea eax, [esp + 0x10]
call fcn.0041104d
test al, al
je 0x420c03
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420bfc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x420c90
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x420be9
xor esi, esi
test eax, eax
jle 0x420c7a
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00411b49
mov byte [esp + 0x38], 3
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x420c6c
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x420c6c
push edi
lea ecx, [esp + 0x20]
call fcn.00420dd4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004029ac
inc esi
cmp esi, dword [esp + 0xc]
jl 0x420c15
jmp 0x420c7a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004029ac
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420c8d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x42114b
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jle 0x42122c
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [esp + 0x10]
lea esi, [edi + 4]
call fcn.00421273
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
je 0x42121a
cmp dword [edi + 0x1c], 0
je 0x421211
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4211b4
push 4
lea ecx, [eax + 0x14]
push ecx
push 4
jmp 0x4211c5
cmp ecx, 1
jne 0x4211cd
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx - 0xc]
add esi, esi
push esi
push ecx
push 1
push dword [eax + 8]
push edx
push dword [eax]
jmp 0x42120d
cmp ecx, 2
jne 0x42121a
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x14]
push edi
call dword [eax + 8]
lea eax, [esp + 0x430]
push eax
call fcn.00475ebe
pop ecx
add eax, eax
push eax
lea eax, [esp + 0x434]
push eax
push 1
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call ebx
jmp 0x42121a
push edx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x421188
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0047549a
mov esp, ebp
pop ebp
ret 4
Function at 0x421c0e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x28], esi
je 0x421c25
lea edi, [ebx + 0xc]
call fcn.004222f1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
jne 0x421c52
xor eax, eax
jmp 0x421cfa
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
mov dword [ebp - 4], eax
jge 0x421cce
cmp dword [ebp - 0xc], esi
jne 0x421cce
add eax, 4
push eax
call fcn.0047759d
mov edi, eax
pop ecx
cmp edi, esi
je 0x421cce
mov eax, dword [ebp - 4]
add eax, 4
push eax
push esi
push edi
call fcn.00475420
add esp, 0xc
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00421d8e
push edi
mov dword [ebp - 0x10], 1
call fcn.0047710c
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.0042353e
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 8
Function at 0x4232d8
Capabilities:
Check if file exists
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp dword [eax - 0xc], ebx
jne 0x423314
mov eax, 0xffffd8ee
jmp 0x423462
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42330a
mov eax, dword [esi + 0x1c]
push ebx
push 1
push 3
push ebx
push 7
push SysReAllocStringLen
push eax
mov dword [esp + 0x28], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x423450
cmp eax, 0xffffffff
je 0x423446
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x423446
mov edi, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [esp + 0x44]
push ebx
sub edi, edx
mov eax, edi
mov edi, dword [esi + 4]
push eax
push ebx
push 4
push dword [esp + 0x20]
sub edi, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x423438
add edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x42342e
lea eax, [esp + 0x4c]
push eax
push dword [esi + 8]
push edi
call fcn.0040d1d7
push 0x10
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00478214
add esp, 0x18
test eax, eax
je 0x4233df
mov dword [esp + 0xc], 0xffffd8ee
jmp 0x42342e
push dword [esi + 8]
call fcn.0047759d
mov edi, eax
pop ecx
cmp edi, ebx
je 0x42330a
push dword [esi + 8]
push dword [esp + 0x24]
push edi
call fcn.00479960
push dword [esp + 0x20]
mov eax, dword [esi + 8]
push dword [esp + 0x28]
mov ecx, dword [esi + 0x1c]
cdq
push edx
push eax
push edi
push ecx
call fcn.0047337e
push edi
mov esi, eax
call fcn.0047710c
add esp, 0x28
cmp esi, ebx
jl 0x42342e
mov dword [esp + 0xc], 1
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x42345e
push dword [esp + 0xc]
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047549a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423920
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4f3bd0]
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.004272c0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00427360
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0047549a
add esp, 0x68
ret
Function at 0x423a90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x4d77a4
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423c21
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423b23
cmp dword [esp + 0x14], 1
jne 0x423c08
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x423c08
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x423b68
cmp dword [esp + 0x14], 1
jne 0x423c08
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x423c08
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x423b9f
cmp dword [esp + 0x14], 1
jne 0x423c08
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x423c08
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x423c08
cmp dword [esp + 0x14], 3
jne 0x423c08
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x423c08
lea eax, [esi + 0xc]
call fcn.00423990
test eax, eax
je 0x423c08
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
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, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x424010
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x68], eax
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.00426000
add esp, 8
test eax, eax
jne 0x42407b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0047549a
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x424090
push esi
lea ecx, [esp + 0x14]
call fcn.004272c0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.00427360
test edi, edi
je 0x4240ae
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
xor ecx, esp
mov eax, 1
call fcn.0047549a
add esp, 0x6c
ret

Function at 0x4240f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004261f0
add esp, 4
test eax, eax
jne 0x42414e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0047549a
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.00427360
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0047549a
add esp, 0x64
ret

Function at 0x424170
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x4f3bd0]
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.004262d0
add esp, 8
test eax, eax
jne 0x4241ef
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0047549a
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.004270b0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0047549a
add esp, 0x74
ret

Function at 0x424b70
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 0x424b9b
push 0x4d3260
mov eax, 0x4d3260
call fcn.00427dc0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x424bb4
push 0x4d3260
call fcn.00427e30
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x425450
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4f3bd0]
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 0x425483
mov dword [esp + 0x10], 0xffffffff
jmp 0x425489
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 0x4254b7
push 0x4d3260
mov eax, 0x4d3260
call fcn.00427dc0
add esp, 4
jmp 0x425597
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 0x4254e7
push 0x4d3260
mov eax, 0x4d3260
call fcn.00427dc0
add esp, 4
jmp 0x425597
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x425509
mov eax, 1
push 0x4d3260
call fcn.00427e30
add esp, 4
jmp 0x425597
cmp dword [esp + 0x40], ebx
je 0x425545
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x42552b
mov eax, 5
push 0x4d3260
call fcn.00427e30
add esp, 4
jmp 0x425597
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 0x42558f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x425553
mov ebx, esi
jmp 0x425517
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 0x42557c
push 0x4d3260
mov eax, 0x4d3260
call fcn.00427dc0
add esp, 4
jmp 0x425597
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.00424b70
test eax, eax
je 0x425597
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4255a1
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.0047549a
add esp, 0x28
ret
Function at 0x425e80
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 0x425ec6
push 0x4d3260
mov eax, 0x4d3260
call fcn.00427dc0
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 0x425f58
jg 0x425eee
cmp ebx, ecx
jb 0x425f58
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 0x425f1d
push 0x4d3260
mov eax, 0x4d3260
call fcn.00427dc0
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.00424b70
test eax, eax
je 0x425f13
mov eax, dword [esp + 0x20]
test eax, eax
je 0x425f3e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x425f65
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 0x425f65
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret