joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017060
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100215b0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x40
lea eax, [ebp - 0x74]
push 0
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x78], 0
call sub.MSVCR110.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x100170f3
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10001ff0
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0xffffffff
jne 0x10017111
push dword [esi - 8]
push esi
call dword [sym.imp.MSVCR110.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x10017258
cmp eax, dword [esi - 8]
jg 0x10017258
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x10017258
cmp eax, ecx
jg 0x10017258
cmp word [esi + eax*2], 0x5c
je 0x10017157
push 1
push 0x10028f48
lea ecx, [ebp - 0x10]
call fcn.10001d80
push 0x32
push str.sysnative_rundll32.exe_iSafeKrnlCall64.dll_Install
lea ecx, [ebp - 0x10]
call fcn.10001d80
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x78], 0x44
call fcn.100130b0
mov byte [ebp - 4], 1
mov esi, dword [eax]
mov eax, dword [ebp - 0x10]
lea edi, [eax - 0x10]
mov edx, edi
cmp dword [edx + 0xc], 1
jle 0x1001719c
push dword [edx + 4]
lea ecx, [ebp - 0x10]
call fcn.10002060
mov eax, dword [ebp - 0x10]
lea edi, [eax - 0x10]
mov edx, edi
dec dword [edx + 0xc]
mov ecx, dword [edx + 0xc]
mov ebx, 0xffffffff
cmove ecx, ebx
mov dword [edx + 0xc], ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100171f3
mov ecx, dword [eax]
push dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0xc]
test eax, eax
jns 0x10017208
inc eax
mov ecx, eax
mov eax, 1
cmove ecx, eax
mov dword [edi + 0xc], ecx
test esi, esi
je 0x1001722d
push 0xea60
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10017244
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100022b0
int3
Function at 0x10017690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100216b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
push str.iSafeKrnlR3.sys
lea ecx, [ebp - 0x10]
call fcn.10001b40
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100176f7
push dword [ebp - 0x10]
push str.iSafeKrnlR3.sys
push str._Failed_to_find__s_from__s.
call fcn.10019db0
add esp, 0xc
xor esi, esi
jmp 0x1001774a
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10001020
test eax, eax
je 0x1001773a
push 0
push 1
push 1
push 0
push str.YAC_Ring3_Driver
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push str.iSafeKrnlR3
call fcn.10001610
test eax, eax
je 0x1001773a
mov esi, 1
jmp 0x1001773c
xor esi, esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001774a
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1001776e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100216b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
push str.iSafeKrnlKit.sys
lea ecx, [ebp - 0x10]
call fcn.10001b40
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100177f7
push dword [ebp - 0x10]
push str.iSafeKrnlKit.sys
push str._Failed_to_find__s_from__s.
call fcn.10019db0
add esp, 0xc
xor esi, esi
jmp 0x1001784d
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10001020
test eax, eax
je 0x1001783d
push 0
push 1
push 1
push str.Base
push str.YAC_Kit_Driver
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push str.iSafeKrnlKit
call fcn.10001610
test eax, eax
je 0x1001783d
mov esi, 1
jmp 0x1001783f
xor esi, esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001784d
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10017871
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100185f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100214b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x18], 0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1001865e
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10001ff0
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0xffffffff
jne 0x1001867c
push dword [esi - 8]
push esi
call dword [sym.imp.MSVCR110.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x10018759
cmp eax, dword [esi - 8]
jg 0x10018759
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x10018759
cmp eax, ecx
jg 0x10018759
cmp word [esi + eax*2], 0x5c
je 0x100186c5
push 1
push 0x10028f48
lea ecx, [ebp - 0x10]
call fcn.10001d80
mov esi, dword [ebp - 0x10]
cmp dword [0x10032b38], 0
mov dword [ebp - 0x14], 0
jne 0x100186f5
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10032b38], eax
test eax, eax
je 0x10018752
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x10032b38]
cmp dword [ebp - 0x14], 0
je 0x10018752
push str.sysnativeDRIVERS_
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.10001b40
add esi, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1001873f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.system32DRIVERS_
jmp 0x10018711
push 0x80070057
call fcn.100022b0
int3
Function at 0x10018a30
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021488
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push str.SYSTEMCurrentControlSetServices_s
push eax
mov dword [ebp - 4], 0
call fcn.10002500
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 3
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10018aa7
xor ebx, ebx
jmp 0x10018af8
test edi, edi
je 0x10018ac4
push 4
push dword [ebp + 8]
push 4
push 0
push 0x10028980
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10018ae6
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10028980
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
sete bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10018b19
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018f00
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov edx, 0x10022fd0
lea esp, [esp]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018f15
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10018f10
push esi
push 0x10022fd0
push 7
push 0
push str.DependOnGroup
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10019070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push str.path
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100190e3
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100190b1
cmp eax, 2
jne 0x100190cd
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x100190dd
test ecx, ecx
je 0x100190d8
test cl, 1
jne 0x100190cd
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100190dd
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100191e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [0x10032278], 0x40000000
je 0x100191ff
push dword [ebp + 8]
call fcn.100191a0
add esp, 4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x10019220
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x1003227c]
test ecx, ecx
je 0x10019392
cmp eax, ecx
jbe 0x10019392
mov edx, dword [0x10032280]
push ebx
push esi
test edx, edx
je 0x1001933b
cmp edx, ecx
jae 0x1001933b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
sub eax, edx
push eax
push edi
call esi
push dword [0x10032280]
call fcn.1001b722
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10019292
push 2
push eax
push eax
push edi
call esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10032280]
xor esi, esi
test eax, eax
je 0x100192c4
lea ecx, [ecx]
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019314
add esi, dword [ebp - 4]
mov eax, dword [0x10032280]
cmp esi, eax
jb 0x100192a0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call eax
push 2
lea edx, [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], 0xfeff
call fcn.100191e0
add esp, 4
lea eax, [ebp - 4]
push 0
push eax
push dword [0x10032280]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, dword [0x10032280]
jae 0x100192c4
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
push 2
push 0
push 0
push edi
call eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test dword [0x10032278], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x1001936f
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x1001936f
cmp al, 0x5a
je 0x1001936f
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100193a0
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10032270], 0
push ebx
push edi
mov edi, edx
mov ebx, ecx
je 0x100194c2
push esi
push 0x80
push 0x100322ac
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x100322ac
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100194c1
mov ecx, dword [0x10032278]
and ecx, ebx
test cl, 7
je 0x10019406
mov ecx, esi
call fcn.10019220
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10019463
test dword [0x10032278], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x1001944d
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x1001944d
cmp al, 0x5a
je 0x1001944d
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 8], 0
call ebx
test edi, edi
jne 0x1001946b
xor ecx, ecx
jmp 0x10019481
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019470
sub ecx, edx
sar ecx, 1
add ecx, ecx
test dword [0x10032278], 0x40000000
je 0x100194a8
push ecx
mov edx, edi
mov ecx, esi
call fcn.100191a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edi
push esi
mov dword [ebp - 8], 0
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100194d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
lea ecx, [ebp - 0x20c]
add esp, 0xc
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019506
sub ecx, esi
sar ecx, 1
mov eax, 0x5c
je 0x10019558
lea esp, [esp]
cmp word [ebp + edx*2 - 0x20c], 0x2f
jne 0x10019533
mov word [ebp + edx*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
inc edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10019540
sub eax, esi
sar eax, 1
cmp edx, eax
mov eax, 0x5c
jb 0x10019520
mov edi, dword [sym.imp.MSVCR110.dll_wcsstr]
lea eax, [ebp - 0x206]
push 0x10028f48
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x100195ac
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea esp, [esp]
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, 0x5c
mov word [esi], ax
lea eax, [esi + 2]
push 0x10028f48
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10019580
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1001b732
mov esp, ebp
pop ebp
ret
Function at 0x1001a190
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0
push 0
push 0x20
push 1
push 1
push 0x80
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x120089
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0xffffffff
call dword [sym.imp.ntdll.dll_ZwCreateFile]
test eax, eax
js 0x1001a2c3
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x1001a2c3
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
mov esi, eax
cmp dword [ebx], 0
jne 0x1001a23d
push esi
call fcn.1001b722
add esp, 4
mov dword [ebx], eax
push esi
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebx]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a27c
push edi
push str.Image_Verifier__Read_File___s__False
call fcn.10019db0
add esp, 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x1001a2a7
push eax
push esi
push edi
push str.Image_Verifier__File__s__Size__u__Not_Equal___u_
call fcn.10019db0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push edi
push str.Image_Verifier__Create_File___s__False__Status__0x_08X
call fcn.10019db0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001a2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x1001a302
push str.Image_Verifier__Image_Not_Dos_Signature
call fcn.10019db0
add esp, 4
xor eax, eax
pop ecx
pop ebp
ret 4
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0x44]
cmp dword [ebp + 8], eax
jae 0x1001a321
push str.Image_Verifier__Image_Size_Not_Valid__Less_NT_Header_Size
call fcn.10019db0
add esp, 4
xor eax, eax
pop ecx
pop ebp
ret 4
cmp dword [edx + ecx], 0x4550
je 0x1001a33e
push str.Image_Verifier__Image_Not_NT_Signature
call fcn.10019db0
add esp, 4
xor eax, eax
pop ecx
pop ebp
ret 4
mov eax, 1
pop ecx
pop ebp
ret 4
Function at 0x1001a350
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.100025a0
add esp, 4
lea edx, [ebp - 0x64]
mov ecx, esi
call fcn.10002670
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.1001b732
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001a710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push 0x80000002
mov dword [ebp - 8], 1
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001a769
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
push 0
push str.path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001a777
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001dd80
Capabilities:
Access peb ldr_data

Disassembly:
sub ecx, dword [ecx - 4]
jmp 0x1001dd80
push 0xffffffffffffffff
push 0x1001f729
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10030034]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 4], 0
add ecx, 0xffffffd8
mov dword [esp + 0x28], 0x100268cc
mov dword [esp + 0x30], vtable.boost::exception_detail::clone_base.0
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
mov dword [esp + 8], 1
call fcn.1001c680
mov eax, dword [esp + 0x28]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.0
mov dword [esp + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.1.0
mov eax, dword [eax + 4]
push 0x1002bb18
mov dword [esp + eax + 0x2c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.2.0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x28], 0
lea eax, [esp + 0xc]
push eax
call sub.MSVCR110.dll__CxxThrowException
int3