joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101dcfd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x101ea4f0], 0x1626
mov ecx, dword [0x101ea4ec]
add ecx, 0x31
mov dword [0x101ea4ec], ecx
mov dword [ebp - 0x10], eax
call fcn.101dc980
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x101ea4ec], 0xd6b
mov esi, dword [eax + esi + 0x78]
mov dword [0x101ea4ec], 0x12
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x101ea4f0], 0x40a
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x101dd14d
jmp 0x101dd0a2
mov eax, dword [ebp - 0x2c]
add eax, 1
mov cl, byte [ebp - 0x2d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x2e]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], dl
jne 0x101dd0b4
jmp 0x101dd0e6
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x34], edx
jmp 0x101dd0b4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jmp 0x101dd086
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], bh
mov byte [ebp - 0x2e], cl
mov byte [ebp - 0x35], bl
jne 0x101dd056
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], ecx
jne 0x101dd117
mov eax, dword [ebp - 0x48]
add eax, 2
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jb 0x101dd086
jmp 0x101dd146
mov eax, dword [ebp - 0x50]
movzx eax, word [eax]
mov dword [0x101ea4f0], 0x182a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x101ea4ec], 0x274
mov dword [ebp - 0x28], esi
jmp 0x101dd14d
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x101dd14d
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101dd160
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword [0x101ea4f0]
add eax, 0x1c78
mov dword [0x101ea4f0], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101ea4f0], 0x19
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101dd1e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x101dd273
jmp 0x101dd2c7
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1d], cl
mov al, byte [ebp - 0x1d]
test al, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], edx
jne 0x101dd1e8
jmp 0x101dd1fe
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
jne 0x101dd1bd
mov eax, dword [ebp - 0x24]
mov dword [0x101ea4f0], 0x56e
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x101dd2c7
mov dword [0x101ea4ec], 0x582
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101dd2c7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff5
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x61
jne 0x101dd2c7
mov dword [0x101ea4ec], 0x7df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x101dd1a5
jmp 0x101dd2c7
mov dword [0x101ea4ec], 0x91c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x6c
jne 0x101dd2c7
mov dword [0x101ea4f0], 0x153e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x101dd2c7
mov dword [0x101ea4f0], 0x190e
mov eax, 1
mov dword [ebp - 0x30], eax
jmp 0x101dd2d8
mov dword [0x101ea4ec], 0x10e3
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x101dd2d8
mov eax, dword [ebp - 0x30]
add esp, 0x30
pop ebp
ret
Function at 0x101ddbf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov dword [0x101ea4ec], 0x1594
call fcn.10001090
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x101ddd78
lea eax, [esp + 0x28]
mov dword [0x101ea4f0], 0x1aa1
mov dword [0x101ea4ec], 0x17ad
mov dword [esp + 0x20], eax
call fcn.101dd160
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x101ddd70
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.101dd3c0
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x7c], ecx
mov dword [0x101ea4f0], 0x1364
mov dword [esp + 0x54], 0x11c600
mov ecx, dword [0x101ea4d8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x18], eax
lea eax, [0x101dc070]
mov ecx, dword [0x101ea4dc]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x101ea4e0]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x101ea4e4]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x101ea4e8]
mov dword [esp + 0x68], ecx
mov dword [0x101ea4ec], 0x423
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x101ddceb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
je 0x101ddcff
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ddcc4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x28]
mov dword [esp + 0x64], eax
mov dword [0x101ea4f0], 0x2099
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], eax
mov dword [0x101ea4ec], 0xa15
mov eax, dword [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.101dcd00
mov ecx, dword [0x101ea4ec]
add ecx, 0xbd7
mov dword [0x101ea4ec], ecx
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x101ea4ec], 0x1824
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404960
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x434]
sub esp, 0x434
push 0xffffffffffffffff
push 0x4472e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x430], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x43c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4049e6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push esi
push eax
push 0x5c
jmp 0x404a23
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x404a6a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push esi
push eax
push 0x62
push str.install.cpp
lea eax, [ebp + 0x30]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x404a5a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404a5a
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
mov esi, eax
jmp 0x404aee
cmp dword [ebp - 0x18], 3
je 0x404a77
mov esi, 5
jmp 0x404aee
lea eax, [ebp]
push 0
push eax
call fcn.0040e2b0
add esp, 8
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 1
call fcn.00405fb0
push esi
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040d5b0
add esp, 0xc
lea ecx, [ebp + 0x18]
call fcn.00407b10
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.00407b10
cmp dword [ebp - 0x1c], 0
jne 0x404aca
call fcn.004142c0
mov esi, eax
jmp 0x404ae6
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411810
cmp byte [eax + 4], 0
je 0x404ae4
mov esi, dword [eax]
jmp 0x404ae6
xor esi, esi
lea ecx, [ebp - 0x20]
call fcn.004083f0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404b01
cmp eax, 0xffffffff
je 0x404b01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x430]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x434]
pop ebp
ret
Function at 0x4083f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x461054]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [ecx + 4]
mov dword [ecx], vtable.sentrybay::Process.0
test eax, eax
je 0x40847b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40847b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x72
push 0x44b930
lea eax, [esp + 0x1c]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x408472
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408472
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0042cc35
add esp, 0x404
ret
Function at 0x40d5b0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x41c]
sub esp, 0x41c
push 0xffffffffffffffff
push 0x447d65
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x418], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x424]
mov ebx, dword [ebp + 0x428]
mov esi, dword [ebp + 0x42c]
mov dword [ebp - 0x10], edi
mov dword [ebp], 0
push 5
xor eax, eax
mov dword [ebp + 0x10], 0
push 0x44b980
lea ecx, [ebp]
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040ccc0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ecx, ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], ecx
test eax, eax
je 0x40d654
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], vtable.std::_Func_impl_no_alloc_int____stdcall___struct__SHELLEXECUTEINFOW____int__struct__SHELLEXECUTEINFOW__.0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x50], ecx
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
xorps xmm0, xmm0
mov byte [ebp - 4], 2
cmovae eax, dword [ebp]
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x40], eax
jb 0x40d69c
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], ebx
jb 0x40d6a7
mov esi, dword [esi]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x48], 0x440
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40d7b2
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
call dword [eax + 8]
test eax, eax
jne 0x40d72c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push esi
push eax
push 0x46
push 0x44b930
lea eax, [ebp + 0x18]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x40d725
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d725
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov dword [edi], vtable.sentrybay::Process.0
mov dword [edi + 4], eax
test ecx, ecx
je 0x40d757
mov edx, dword [ecx]
lea eax, [ebp - 0x74]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x50], 0
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x40d78d
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d783
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7b7
push edx
push ecx
call fcn.0042c7bf
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x418]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x41c]
pop ebp
ret
call fcn.00415dc0
call fcn.00430d2f
int3
Function at 0x40df50
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x447de5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x414]
mov ecx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, dword [ebp + 0x40c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x40dfbf
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.std::_Func_impl_no_alloc_struct_HRSRC_______stdcall___struct_HINSTANCE_____char_const___char_const____struct_HRSRC_____struct_HINSTANCE_____char_const___char_const__.0
mov dword [ebp - 0x18], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x40dfce
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e063
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x37
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x40e040
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e040
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40e05f
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
jmp 0x40e0d0
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40e085
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
movzx eax, word [ebp + 0x410]
push edi
push dword [ebp - 0x10]
mov byte [ebp - 4], 0
push eax
push ebx
call fcn.00403230
add esp, 0x38
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40e0ce
mov esi, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x404]
pop ebp
ret
Function at 0x40e100
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x447de5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x414]
mov ecx, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [ebp + 0x40c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x40e16f
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.std::_Func_impl_no_alloc_struct_HRSRC_______stdcall___struct_HINSTANCE_____wchar_t_const___wchar_t_const____struct_HRSRC_____struct_HINSTANCE_____wchar_t_const___wchar_t_const__.0
mov dword [ebp - 0x18], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x40e17e
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x37
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x40e1f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e1f0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40e20f
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
jmp 0x40e280
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40e235
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
movzx eax, word [ebp + 0x410]
push edi
push dword [ebp - 0x10]
mov byte [ebp - 4], 0
push eax
push ebx
call fcn.00403230
add esp, 0x38
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40e27e
mov esi, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x404]
pop ebp
ret
Function at 0x40e560
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447e50
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
push 0x104
mov dword [ebp - 0x828], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x828], ecx
test eax, eax
jne 0x40e634
call esi
mov dword [ebp - 0x824], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x824]
push esi
push eax
push 0x47
push 0x44b838
lea eax, [ebp - 0x820]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x40e61c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e61c
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x828]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ecx, ecx
jne 0x40e65d
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], ecx
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x40e755
lea eax, [ebp - 0x218]
push eax
push 0
push 0x44b8a4
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x828], ecx
test eax, eax
jne 0x40e6f8
call esi
mov dword [ebp - 0x824], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x824]
push esi
push eax
push 0x4d
push 0x44b838
lea eax, [ebp - 0x820]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x40e6e6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e6e6
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x828]
test ecx, ecx
jne 0x40e70e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], ecx
jmp 0x40e645
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e717
sub ecx, edx
mov dword [edi], 0
sar ecx, 1
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040ccc0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cc35
mov esp, ebp
pop ebp
ret