joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406950
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3608
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ebx, [ecx + 0x30]
push 0x64
mov ecx, ebx
call fcn.00462910
mov ecx, eax
call fcn.004612c0
push eax
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x14], esp
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x4069b7
cmp ecx, dword [esi]
jne 0x4069b7
lock inc dword [eax]
jmp 0x4069e5
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x406a60
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi]
inc eax
push eax
push dword [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00406510
add esp, 0x10
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0043da20
add esp, 0xc
push dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00462fe0
test eax, eax
jne 0x406a26
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004623d0
test eax, eax
jne 0x406a26
xor edi, edi
jmp 0x406a28
mov edi, dword [eax]
mov esi, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406a4a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00407740
int3

Function at 0x407750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4077a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4077a9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40779a
cmp esi, edx
jae 0x4077a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407788
cmp esi, edx
jae 0x4077a9
cmp word [esi], 0
je 0x4077a9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4096d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
push edi
jb 0x4096eb
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x409707
movzx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x4096f6
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + esi]
add edx, esi
cmp dword [edx + 4], eax
jne 0x409740
cmp ecx, eax
jne 0x409738
mov ecx, dword [ebx + 4]
mov dword [edx], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [esi + edx + 4], ecx
jmp 0x409748
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x409748
cmp ecx, eax
jne 0x409748
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
lea ecx, [ebx + 4]
mov edi, dword [eax]
push eax
mov dword [edx], edi
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
dec dword [ecx + 4]
call fcn.0040b900
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40bfd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x40bfec
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x40c011
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40c000
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and eax, edx
mov edx, dword [ebp - 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [edx + 4]
mov dword [ebp + 0xc], edx
mov edi, dword [ecx + eax*4]
inc eax
mov dword [ebp - 8], edi
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp edi, edx
jne 0x40c03f
mov eax, edx
jmp 0x40c043
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x40c0b1
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40c051
mov eax, dword [ebx]
cmp dword [esi + 0x1c], 8
lea edi, [esi + 8]
jb 0x40c05d
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x18]
cmp edx, dword [ebx + 0x10]
jne 0x40c0a4
test edx, edx
je 0x40c081
sub edi, eax
nop dword [eax + eax]
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x40c0a4
add eax, 2
sub edx, 1
jne 0x40c070
mov ecx, dword [ebp - 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.00409cc0
mov ecx, dword [ebp + 0xc]
test al, al
mov eax, dword [ebp + 8]
pop edi
cmove ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x40c037
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c110
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3c39
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x40c286
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x40c290
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [eax + 0x10]
mov dword [esi + 4], ecx
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x40c1ee
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004075f0
mov ecx, dword [esi + 4]
cmp dword [ecx - 0xc], 0
jne 0x40c268
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.HaloDesktopData
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c24b
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.004075f0
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 - 0x10]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004064e0
push 0x80004005
call fcn.004064e0
int3
Function at 0x40c2a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3c78
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
mov edi, dword [ebp + 8]
push 0
push dword [edi]
push str.CoreFuncCount
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x40c355
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
inc ebx
mov dword [ebp - 4], 0
push ebx
lea eax, [ebp + 8]
push 0x604320
push eax
call fcn.00407c80
add esp, 0xc
push dword [esi + 4]
mov esi, dword [ebp + 8]
push esi
push dword [edi]
push str.CoreFuncCount
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c341
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004064e0
int3

Function at 0x40c3e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3cab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], edi
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 4]
push 0x104
push eax
push 0x603f94
push str.LastOpenStatisticTime
push str.search
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x40c4ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
mov ecx, edi
test eax, 0xffff0000
jne 0x40c488
movzx eax, ax
push eax
call fcn.00406df0
jmp 0x40c48e
push eax
call fcn.004075f0
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.004da36e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004064e0
int3
Function at 0x40d510
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp eax, 6
je 0x40d6cf
cmp eax, 0x113
jne 0x40d6df
mov eax, dword [ebp + 0xc]
cmp eax, 0x7d0
jne 0x40d621
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [edi + 0x318], 0
mov dword [edi + 0x324], 0
je 0x40d6df
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x34]
push eax
push dword [edi + 0x314]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [edi + 0x318]
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40d603
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov eax, dword [edi + 0x31c]
sub eax, 0x10
push eax
call fcn.00407c20
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040d7c0
test eax, eax
je 0x40d6df
push 0
push 0x12c
push 0x7d1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi + 0x318], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x7d1
jne 0x40d6df
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x314]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [edi + 0x318]
test ecx, ecx
je 0x40d6df
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x40d6df
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x7d1
push dword [edi + 4]
call esi
push 1
push 0
mov ecx, edi
mov dword [edi + 0x318], 0
call fcn.004690c0
push 0x7d0
push dword [edi + 4]
call esi
push 0x7d1
push dword [edi + 4]
call esi
mov dword [edi + 0x324], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
cmp ax, word [ebp + 0xc]
jne 0x40d6df
push 1
push eax
call fcn.004690c0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004da36e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4142b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004da5e0
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.005c5370
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4143a6
test edi, edi
je 0x4143a6
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4143a6
cmp eax, 0x3fff
ja 0x4143a6
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4143a6
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x604f20
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4143a6
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.005c5370
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x604f24
lea eax, [esi - 1]
push eax
push edi
call fcn.00415a60
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004da36e
mov esp, ebp
pop ebp
ret
Function at 0x414ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4486
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x414f6c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x414f6c
call fcn.00413f00
mov edi, eax
jmp 0x41508b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x414f8f
call fcn.00413f00
jmp 0x41507e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x414fad
call fcn.00413f00
jmp 0x41507e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x414fce
mov edi, 0x8007000e
jmp 0x415080
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4150c4
jb 0x414fec
cmp eax, 0xffffffff
ja 0x4150c4
cmp eax, 0x400
jbe 0x415001
push eax
lea ecx, [ebp - 0x418]
call fcn.00413d80
jmp 0x415027
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x415027
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41503e
mov edi, 0x8007000e
jmp 0x415080
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41505e
call fcn.00413f00
jmp 0x41507e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00414d20
mov edi, eax
test esi, esi
je 0x41508b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4150a4
lea ecx, [ebp - 0x418]
call fcn.004142a0
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 - 0x14]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004064e0
int3
Function at 0x4162b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x416321
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x416321
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x416321
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x416321
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41631b
push esi
push ebx
push edi
call fcn.005c4870
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41631b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ed80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x41ed94
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
lea eax, [esi + 8]
push eax
push dword [ebp + 8]
push esi
push 0x42d140
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.005cbfd8
mov dword [esi + 4], eax
add esp, 0x18
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
mov edx, 0xfffffffd
cmove eax, edx
pop esi
pop ebp
ret 0xc
Function at 0x420270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5363
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420457
push 0
push str.Halo_Desktop_Wnd_class
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420457
push 2
push 0xf
push 0
lea ecx, [ebp - 0x58]
call fcn.00444ca0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp dword [eax - 4], 1
jle 0x4202fc
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004067e0
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x420315
sub edx, edi
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.004167f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.00444c00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00409b00
xor eax, eax
lea ecx, [ebp - 0x58]
cmp dword [ebp + 0xc], eax
push 4
setne al
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00444bb0
push esi
call fcn.00421f00
mov ecx, eax
call fcn.0042fb10
call fcn.0045c630
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42043f
push 0x3d
push str.d:jenkins.jenkinsworkspacehalodeskhalosearchmainwnd.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.00411900
push 3
push 0x604a04
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00411900
mov byte [ebp - 4], 4
call fcn.0045c630
mov edi, eax
lea ecx, [ebp - 0xf0]
push 0xe8e
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040edb0
mov esi, eax
push str.Search_ExecuteFile_
push esi
mov byte [ebp - 4], 5
call fcn.0040fca0
mov ecx, dword [ebp + 8]
mov edx, 0x6048f4
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.0040dd40
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.0040fe30
lea ecx, [ebp - 0x28]
call fcn.0040f7c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f7c0
lea eax, [ebp - 0x58]
push eax
call fcn.00421f00
mov ecx, eax
call fcn.0042fcd0
lea ecx, [ebp - 0x58]
call fcn.00444d70
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420479
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004da36e
mov esp, ebp
pop ebp
ret 8
Function at 0x4204a0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f53a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [edi]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4204f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004167f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0041f9a0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x29], al
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x420562
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420555
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42063d
push edx
push ecx
call fcn.004da0c6
mov al, byte [ebp - 0x29]
add esp, 8
test al, al
jne 0x42061f
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4205e5
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00407c20
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4205c4
cmp dword [esi - 4], 1
jle 0x4205b0
push dword [esi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.004067e0
mov esi, dword [ebp - 0x30]
push 5
push 0
push 0
push esi
push 0x6053a0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420608
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x420608
push dword [ebp + 0xc]
push ecx
mov esi, esp
mov dword [ebp - 0x30], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00407c20
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00420270
call fcn.00421de0
mov ecx, eax
call fcn.0040c380
test eax, eax
je 0x42061f
mov ecx, ebx
call fcn.0041ed00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret 8
call fcn.005c8d19
int3