joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442fb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x443000
mov eax, esi
call fcn.0042ae84
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x443000
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x443000
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x44313f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x443040
cmp eax, 0x108
ja 0x443040
mov eax, esi
call fcn.0042ae84
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x443136
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x44313f
jmp 0x443136
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44311f
cmp eax, 0x20a
ja 0x44311f
test byte [esi + 0x50], 0x80
jne 0x443072
sub eax, 0x203
je 0x44306f
sub eax, 3
je 0x44306f
sub eax, 3
jne 0x443072
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x443086
dec eax
je 0x44309b
dec eax
je 0x4430b8
dec eax
je 0x44309b
jmp 0x4430bf
mov ecx, ebx
mov eax, dword [0x44efbc]
mov eax, dword [eax]
mov edx, esi
call fcn.004345c8
jmp 0x443136
cmp byte [esi + 0x5d], 1
jne 0x4430b1
mov eax, esi
mov si, 0xffed
call fcn.00403674
jmp 0x44313f
or word [esi + 0x54], 1
jmp 0x443136
and word [esi + 0x54], 0xfffe
jmp 0x443136
mov eax, dword [0x450c64]
cmp byte [eax + 0x20], 0
je 0x443136
mov eax, dword [0x450c64]
cmp dword [eax + 0x1c], 0
je 0x443136
mov eax, dword [ebx]
mov edx, dword [0x450c64]
cmp eax, dword [edx + 0x1c]
jne 0x443136
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0042adc8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403674
jmp 0x44313f
cmp eax, 0xb00b
jne 0x443136
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044191c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4465c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4465dc
cmp dword [esi + 4], 0
je 0x446609
test byte [ebx + 0x55], 1
jne 0x4465fb
mov eax, ebx
call fcn.004451cc
test eax, eax
jne 0x4465fb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x446719
mov edx, esi
mov eax, ebx
call fcn.004460e4
jmp 0x446719
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x446712
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00448430
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00442ee8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004465c0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00448430
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446719
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44cb28
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44f118]
cmp byte [eax + 0xc], 0
je 0x44cc95
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44cc8e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x450cb8], 0
jne 0x44cb7c
push 0x44cc9c
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x44cca4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cb8], eax
cmp dword [0x44ed34], 0
jne 0x44cc77
push 0x44ccb4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44ed34], eax
cmp dword [0x44ed34], 0
je 0x44cc77
push 0x44ccc0
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cbc], eax
push 0x44ccd0
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cc0], eax
push 0x44cce4
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cc4], eax
push 0x44ccfc
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cc8], eax
push 0x44cd14
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450ccc], eax
push 0x44cd28
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cd0], eax
push 0x44cd40
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cd4], eax
push 0x44cd58
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cd8], eax
push 0x44cd74
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450cdc], eax
push 0x44cd80
mov eax, dword [0x44ed34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450ce0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cc95
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov ecx, eax
lea edx, [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [edx], eax
jmp 0x44d2af
cmp ecx, eax
je 0x44d2b8
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x44d2a5
mov eax, dword [edx]
cmp dword [eax + 0x18], 0
jne 0x44d2c4
xor eax, eax
jmp 0x44d314
mov ecx, dword [edx]
mov ecx, dword [ecx]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov ecx, dword [edx]
mov ecx, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, dword [edx]
mov ecx, dword [ecx + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov dword [eax], ecx
mov ecx, dword [edx]
mov ecx, dword [ecx + 8]
mov dword [ecx + 4], eax
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
mov dword [eax], ecx
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x3c]
mov eax, dword [edx]
mov eax, dword [eax + 0x40]
mov dword [eax], ecx
mov edx, dword [edx]
mov edx, dword [edx + 0x3c]
mov dword [edx + 4], eax
mov al, 1
pop ecx
pop ecx
pop ebp
ret
Function at 0x100014a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100014bf
push 0
push 0
push dword [ebp + 8]
push 0x10001230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10009cd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jb 0x10009cee
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10009d14
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10009d00
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10009c50
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10009d34
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
push esi
push edi
push 0x40
lea eax, [esp + 0x1c]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0xf8
lea eax, [esp + 0x68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
or eax, edx
mov ecx, dword [esi + 4]
movlpd qword [esp + 8], xmm0
je 0x1000c946
mov eax, dword [ecx + 0x4c]
lea edi, [esp + 8]
push edi
push 0x40
lea edi, [esp + 0x20]
mov ecx, dword [eax + 8]
push edi
mov edi, dword [ebp + 8]
push edx
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x1000c946
mov eax, 0x5a4d
cmp word [esp + 0x18], ax
jne 0x1000c946
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
cdq
mov esi, eax
movlpd qword [esp + 0x10], xmm0
add esi, edi
mov ecx, esi
adc edx, dword [ebp + 0xc]
or ecx, edx
je 0x1000c946
mov eax, dword [esp + 8]
lea edi, [esp + 0x10]
push edi
push 0xf8
lea edi, [esp + 0x60]
mov eax, dword [eax + 0x4c]
push edi
push edx
push esi
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x1000c946
cmp dword [esp + 0x58], 0x4550
jne 0x1000c946
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000cc50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
sub esp, 0x18
mov dword [esp + 0x30], ecx
mov ecx, esp
call fcn.10009f10
lea ecx, [esp + 0x34]
call fcn.1000a5c0
xor ecx, ecx
add esp, 0x18
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x34], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], eax
cmp edx, 8
jb 0x1000cce4
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ccda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000ccda
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov edi, dword [esp + 0x48]
lea ebx, [esp + 0x34]
mov esi, dword [esp + 0x34]
cmp edi, 8
mov eax, dword [esp + 0x44]
mov edx, 0x811c9dc5
cmovae ebx, esi
xor ecx, ecx
add eax, eax
je 0x1000cd1c
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1000cd07
mov edi, dword [esp + 0x48]
xor edx, dword [ebp + 0xc]
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0xc]
call fcn.1000dad0
cmp dword [eax + 4], 0
je 0x1000cd51
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0xc]
call fcn.1000d0f0
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
cmp edi, 8
jb 0x1000cd87
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1000cd7d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000cd7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.10035360
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d0f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
jb 0x1000d10c
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x1000d128
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x1000d117
mov edi, dword [edx + 0x18]
lea eax, [ebp - 0x10]
mov ebx, dword [ebp - 8]
xor edi, esi
push edi
push edx
push eax
mov ecx, ebx
call fcn.1000dad0
mov esi, dword [eax + 4]
test esi, esi
je 0x1000d1a5
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x1000d16c
cmp eax, esi
jne 0x1000d164
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1000d174
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1000d174
cmp eax, esi
jne 0x1000d174
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [ebx + 8]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi + 8]
call fcn.1000df10
push 0x2c
push esi
call fcn.10035360
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d880
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100371a5
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov esi, edi
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x1000d8b0
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x1000d8d4
mov edi, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1000d8c0
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x18]
mov ecx, ebx
xor eax, edx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.1000dad0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1000d90c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x5d1745d
jne 0x1000d920
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.10035016
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [esi + 8]
push edi
call fcn.100076d0
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, edi
addsd xmm0, qword [eax*8 + 0x10044610]
cvtdq2pd xmm1, xmm1
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10044610]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1000d9fc
divss xmm0, xmm3
call fcn.10001690
call fcn.100363b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x1000d9dd
cmp edi, 0x200
jae 0x1000d9db
shl edi, 3
cmp edi, ecx
jae 0x1000d9dd
mov edi, ecx
push edi
mov ecx, ebx
call fcn.1000dd10
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.1000dad0
mov edx, dword [eax]
jmp 0x1000da02
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, edi
mov ecx, dword [ebx + 0xc]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx + 4]
jne 0x1000da2e
mov dword [ecx + eax*8], esi
jmp 0x1000da40
cmp edi, edx
jne 0x1000da37
mov dword [ecx + eax*8], esi
jmp 0x1000da44
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1000da44
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f0c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037263
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
push edi
mov dword [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
lea ecx, [ebx + 0x54]
mov byte [ebp - 4], 4
call fcn.10010760
lea ecx, [ebx + 0x74]
mov byte [ebp - 4], 5
call fcn.10010760
xor eax, eax
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 7
mov word [ebx + 0x94], ax
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0xc0], 7
mov word [ebx + 0xac], ax
lea edi, [ebx + 0xc4]
mov dword [ebp - 0x14], edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 9
push 0x44
mov dword [ebp - 0x18], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.10035016
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f400
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
test eax, eax
je 0x1000f422
jle 0x1000f41c
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], 0
mov eax, dword [edi + 4]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000f441
jle 0x1000f43a
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x1000f452
jle 0x1000f44c
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 0x34]
test eax, eax
je 0x1000f469
jle 0x1000f462
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [edi + 0x34], 0
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x94]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
cmp ecx, esi
je 0x1000f497
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000f48e
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.100078a0
mov byte [edi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x1000f4a3
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 7
push 0x120089
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x1000f4d6
test ecx, ecx
jle 0x1000f4d2
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov ecx, eax
test ecx, ecx
jle 0x1000f5bb
push 0
push 0
push 0
push 0x1000002
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x1000f50b
test ecx, ecx
jle 0x1000f506
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov ecx, eax
push 0
push 0
push 0
test ecx, ecx
jle 0x1000f51b
mov byte [edi + 0xc], 0
jmp 0x1000f54e
push 2
push 0
push dword [edi]
mov byte [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x1000f544
test ecx, ecx
jle 0x1000f53f
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov ecx, eax
test ecx, ecx
jle 0x1000f582
push 0
push 0
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea eax, [ebp + 8]
cmp eax, ebx
je 0x1000f576
mov eax, dword [ebx]
cmp esi, eax
je 0x1000f582
test eax, eax
jle 0x1000f572
push eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call eax
mov dword [ebx], esi
jmp 0x1000f582
test esi, esi
jle 0x1000f582
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call eax
cmp dword [ebx], 0
je 0x1000f5bb
push 0
mov ecx, edi
call fcn.1000f760
test eax, eax
js 0x1000f5c7
cmp byte [ebp + 0xc], 0
jne 0x1000f5c7
cmp dword [edi + 0xa8], 8
lea eax, [edi + 0x94]
jb 0x1000f5ab
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.100103f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x100103f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100372cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x430
push esi
push edi
push 0x200
lea eax, [ebp - 0x240]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
lea esi, [edi + 0x38]
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov ecx, edi
movups xmmword [ebp - 0x3c], xmm0
push esi
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x3c], 0x20
call fcn.100105e0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100105c5
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x10010553
push 0x200
push ecx
lea eax, [ebp - 0x440]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x240]
push eax
push 0
push str.ImageManifest
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x100104ca
mov eax, 0xc0150002
jmp 0x100105c7
push 0
push 0
push 4
push 0
push 0
push 0x120116
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jle 0x10010545
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x240]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010527
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
lea ecx, [edi + 0xac]
jmp 0x1001057f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
jmp 0x100105c7
movzx eax, word [esi]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x94]
mov dword [ebp - 0x34], ecx
lea ecx, [edi + 0xac]
mov dword [ebp - 0x38], 8
cmp ecx, eax
je 0x10010585
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x1001057e
mov eax, dword [eax]
push edx
push eax
call fcn.100078a0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov ecx, dword [edi + 0x34]
mov esi, eax
cmp esi, ecx
je 0x100105a8
test ecx, ecx
jle 0x100105a3
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [edi + 0x34], esi
mov ecx, esi
test ecx, ecx
jg 0x100105c5
mov eax, dword fs:[0x18]
cmp dword [eax + 0xbf4], 0xc0000022
jne 0x10010545
mov dword [edi + 0x38], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4