joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426bf1
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00413940
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x430d4c]
je 0x426d3f
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x426c61
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x426c68
cmp ebx, ebx
jne 0x426c68
xor eax, eax
jmp 0x426d42
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x426c75
mov byte [esi + 0x20], bl
jmp 0x426c89
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.004124c4
test eax, eax
je 0x426cb0
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004125ab
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x426cb5
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004124c4
test eax, eax
je 0x426cdd
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004125ab
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x426ce7
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.004124c4
test eax, eax
je 0x426d0f
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004125ab
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x426d19
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x426d2b
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x426d3f
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42795e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x43b630]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, pe_nt_image_headers32
cmp ebx, eax
ja 0x4279b1
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jne 0x4279b1
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4279b9
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138fe
leave
ret 8

Function at 0x428682
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b630]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x4286d3
push edi
call fcn.0042aeb1
mov esi, eax
test esi, esi
je 0x4286f7
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4286f7
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x430d20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138fe
leave
ret 0xc

Function at 0x429bfd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43b630]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x429c2d
push 0x430690
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x429c3f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429c71
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00413e78
add esp, 0x10
cmp eax, 0xffffffff
je 0x429c71
cmp eax, esi
jae 0x429c71
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x429c73
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004138fe
leave
ret
Function at 0x429c96
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x43b630]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x43073c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x429d40
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x429e42
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x429df0
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysFreeString
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429e43
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429de5
cmp dword [ebp - 0x34], 1
jne 0x429de5
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x4306ac
push eax
call fcn.00413ee8
add esp, 0xc
cmp eax, 1
jne 0x429de5
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x429e43
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x429e43
lea ecx, [ebp - 0x28]
push ecx
push 0x429c80
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x429e43
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x429e68
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.00429bfd
cmp eax, ebx
pop ecx
jne 0x429e6a
inc edi
cmp edi, esi
jl 0x429e52
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138fe
leave
ret 4
Function at 0x429e7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x43acf4
je 0x429f37
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429f1f
mov esi, dword [ebx + 4]
jmp 0x429f19
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429f09
cmp dword [ebp - 0xc], 4
jne 0x429f09
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x429f01
or dword [eax + 0x9c], ecx
jmp 0x429f09
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x429ecd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x429eb0
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42a2fa
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42d4d4
call fcn.004139a0
sub esp, 0x228
mov eax, dword [0x43b630]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x42a408
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x42a3dc
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00408ec9
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0042a2fa
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401260
test bl, bl
jne 0x42a3dc
or dword [ebp - 4], 0xffffffff
jmp 0x42a347
cmp esi, 0x103
je 0x42a3ec
cmp esi, 0x3f2
jne 0x42a3fc
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138fe
leave
ret 8
Function at 0x42a7dc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42a811
cmp edi, dword [esi + 0xc]
jge 0x42a811
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42a811
cmp edi, dword [eax + 8]
jge 0x42a811
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42a813
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42a917
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42a94b
jmp fcn.0041fab0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42a9bc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42aab5
cmp eax, dword [edi + 0xc]
jge 0x42aab5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42aa0d
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42aa9e
cmp dword [ebp + 0xc], ebx
je 0x42aa9e
jmp 0x42aa37
push 0x10
call fcn.0042a6a8
cmp eax, ebx
je 0x42aa23
mov ecx, eax
call fcn.0042a90e
mov esi, eax
jmp 0x42aa25
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42aa4e
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42aa5e
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42aa70
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041fab0
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00413940
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42aab0
cmp ecx, dword [esi + 8]
jge 0x42aab0
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42aab6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42ab74
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42aba2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42abc0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042aade
jmp 0x42abc0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42abc0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042aade
test edi, edi
mov eax, edi
jne 0x42abaa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43e584]
test ecx, ecx
je 0x42ac73
jmp 0x42ab73
ret 8
Function at 0x10f48
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
jbe 0x10f7a
mov ecx, dword [ebp + 8]
movzx ecx, byte [eax + ecx]
xor ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x1a4e8]
inc eax
mov dword [ebp + 0x10], edx
cmp eax, dword [ebp + 0xc]
jb 0x10f54
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x12c76
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x12d6f
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x12d6f
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x12d6f
mov dword [ecx], ebx
mov dword [eax], ebx
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
jne 0x12d6f
push esi
push 0x18
pop esi
push ebx
push ebx
push 0x20
push 1
push 7
push 0x80
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x80000000
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x12d6a
push 5
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x12d61
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
cmp eax, ebx
jbe 0x12d61
mov edi, 0x64777355
push edi
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
je 0x12d61
push ebx
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push esi
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jl 0x12d59
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov bl, 1
jmp 0x12d61
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
pop esi
jmp 0x12d71
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x1530c
Capabilities:
Parse pe header

Disassembly:
push 0x230
push 0x1bae8
call fcn.00019c18
mov edi, edx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
and dword [ebp - 4], 0
test edi, edi
je 0x154e2
test ecx, ecx
je 0x154e2
test eax, eax
je 0x154e2
push eax
push 0x100
lea eax, [ebp - 0x21c]
push eax
call fcn.00018dec
lea eax, [ebp - 0x21c]
push eax
call fcn.00016478
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x154e2
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x154e2
mov ebx, dword [edi + 0x3c]
add ebx, edi
mov dword [ebp - 0x234], ebx
cmp dword [ebx], 0x4550
jne 0x154e2
lea eax, [ebx + 0x80]
cmp dword [eax + 4], 0
je 0x154e2
push edi
push ebx
push dword [eax]
call fcn.000163ae
mov esi, eax
mov dword [ebp - 0x220], esi
cmp esi, ebx
je 0x154e2
mov eax, dword [esi + 0xc]
test eax, eax
je 0x154e2
push edi
push ebx
push eax
call fcn.000163ae
test eax, eax
je 0x154e2
push 0x20
push dword [ebp - 0x240]
push eax
call fcn.00018cd2
test al, al
jne 0x15400
add esi, 0x14
mov dword [ebp - 0x220], esi
jmp 0x153c8
xor edi, edi
and dword [ebp - 0x230], edi
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax + 0x7c]
test ecx, ecx
jbe 0x15427
mov edi, dword [eax + 0x78]
add edi, edx
add ecx, edi
mov dword [ebp - 0x230], ecx
cmp dword [esi + 4], 0
jne 0x15432
mov eax, dword [esi + 0x10]
jmp 0x15434
mov eax, dword [esi]
push dword [ebp - 0x228]
push ebx
push eax
call fcn.000163ae
mov dword [ebp - 0x224], eax
mov esi, dword [esi + 0x10]
add esi, dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
mov eax, dword [ebp - 0x224]
mov eax, dword [eax]
test eax, eax
je 0x154c3
jns 0x15479
and eax, 0xffff
push eax
push dword [ebp - 0x22c]
call fcn.000164ea
mov dword [esi], eax
jmp 0x154b7
push dword [ebp - 0x228]
push ebx
push eax
call fcn.000163ae
add eax, 2
push eax
push dword [ebp - 0x22c]
call fcn.000164ea
mov dword [esi], eax
push dword [ebp - 0x230]
push edi
push eax
call fcn.00016276
test al, al
je 0x154b7
mov ebx, dword [esi]
call fcn.0001523c
mov dword [esi], eax
mov ebx, dword [ebp - 0x234]
add dword [ebp - 0x224], 4
add esi, 4
jmp 0x15450
add dword [ebp - 0x220], 0x14
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x228]
jmp 0x153c8
mov dword [ebp - 4], 0xfffffffe
call fcn.00019c60
ret 4
Function at 0x155dc
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1bb08
call fcn.00019ddc
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x1567f
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x1567f
mov esi, dword [eax + 0x50]
push 0x64777355
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1567f
push dword [ebp + 0xc]
push edi
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0x40
push 0x3000
push esi
push ebx
push dword [ebp + 8]
call fcn.00016a5a
mov esi, eax
cmp esi, ebx
je 0x1567f
mov edi, dword [edi + 0x3c]
add edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x1c]
call fcn.00015520
mov dword [edi + 0x34], esi
push dword [ebp - 0x1c]
push esi
push dword [ebp + 8]
call fcn.000151cc
test al, al
je 0x1567f
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [edi + 0x28]
add eax, esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x15698
cmp dword [ebp - 0x1c], ebx
je 0x156ab
push 0x64777355
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], ebx
setne al
call fcn.00019e21
ret 0x10
Function at 0x15eee
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1d830]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, edi
shr eax, 6
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x48], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
test eax, eax
jbe 0x15f55
mov esi, eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
call fcn.000157aa
add dword [ebp - 0x54], 0x40
dec esi
jne 0x15f36
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov esi, edi
and esi, 0x3f
lea eax, [esi + 8]
push esi
push dword [ebp - 0x54]
cmp eax, 0x3f
lea eax, [ebp - 0x44]
push eax
jbe 0x15fae
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
mov byte [ebp + esi - 0x44], 0x80
call fcn.000157aa
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.ntoskrnl.exe_memset
jmp 0x15fb8
call sub.ntoskrnl.exe_memcpy
mov byte [ebp + esi - 0x44], 0x80
mov eax, edi
shl eax, 3
mov dword [ebp - 0xc], eax
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
call fcn.000157aa
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
pop edi
pop esi
mov dword [ebx + 0xc], eax
xor ecx, ebp
pop ebx
call fcn.00019ba6
leave
ret 0xc

Function at 0x16360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + 0x14]
push esi
movzx esi, word [ecx + 6]
lea eax, [eax + ecx + 0x18]
push edi
xor ecx, ecx
xor edi, edi
cmp cx, si
jae 0x163a1
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x16389
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [ebp + 8], edx
jb 0x16398
add edx, ecx
cmp dword [ebp + 8], edx
jb 0x163a3
inc edi
add eax, 0x28
cmp di, si
jb 0x1637f
xor eax, eax
pop edi
pop esi
pop ebp
ret 8