joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push eax
lea ebx, [esp + 0x14]
call fcn.0040d7f0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 4
cmp esi, eax
jbe 0x40d718
call fcn.00461eec
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov edi, esi
mov edi, edi
mov esi, eax
cmp dword [esp + 0x1c], eax
jbe 0x40d72d
call fcn.00461eec
test ebx, ebx
je 0x40d737
cmp ebx, dword [esp + 0x10]
je 0x40d73c
call fcn.00461eec
cmp edi, esi
je 0x40d7ad
test ebx, ebx
jne 0x40d7a5
call fcn.00461eec
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40d755
call fcn.00461eec
mov eax, dword [edi]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d784
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40d7a9
call fcn.00461eec
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40d799
call fcn.00461eec
mov eax, dword [esp + 0x20]
add edi, 4
jmp 0x40d720
mov eax, dword [ebx]
jmp 0x40d74b
mov eax, dword [ebx]
jmp 0x40d78f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d7be
push eax
call fcn.0046190e
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0046190e
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x40d7f0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x47345b
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebp
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 0x10]
xor ebp, ebp
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
call fcn.0040a3c0
push ebp
push 2
mov dword [esp + 0x27c], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40d925
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40d8a2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ecx, [esp + 0x14]
call fcn.0040eda0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40d898
push eax
call fcn.0046190e
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x40d945
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x58]
push edx
push eax
call fcn.004624c5
add esp, 8
test eax, eax
jne 0x40d90f
mov edx, dword [esp + 0x1c]
cmp edx, ebp
jne 0x40d8c4
xor ecx, ecx
jmp 0x40d8cd
mov ecx, dword [esp + 0x24]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x20]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x40d8eb
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x20], eax
jmp 0x40d90f
mov esi, eax
cmp edx, eax
jbe 0x40d8f6
call fcn.00461eec
mov eax, dword [esp + 0x10]
push esi
push eax
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
call fcn.0040f020
lea ecx, [esp + 0x34]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d8a2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ecx, [esp + 0x14]
call fcn.0040eda0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40d940
push eax
call fcn.0046190e
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0046190e
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00461919
add esp, 0x268
ret
Function at 0x40d990
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x490c8c
push 1
push 0
push 0x490c9c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40da90
test esi, esi
je 0x40d9e5
push 0x499b34
push esi
call fcn.004624c5
add esp, 8
test eax, eax
je 0x40d9e5
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push esi
push eax
call edx
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test edi, edi
je 0x40da2f
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da10
sub eax, edx
sar eax, 1
je 0x40da2f
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x490cac
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40da85
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jge 0x40da79
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add esp, 0xc
ret
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add esp, 0xc
ret

Function at 0x40daa0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x473d72
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0xc], esi
mov word [esi + 4], ax
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x230], eax
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
call fcn.0040a600
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00461919
add esp, 0x220
ret
Function at 0x40db60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x473d72
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0xc], esi
mov word [esi + 4], ax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x228], eax
push 0x104
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dbe0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
call fcn.0040a600
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00461919
add esp, 0x220
ret

Function at 0x40dc20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x473d72
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0xc], esi
mov word [esi + 4], ax
push 1
push 0x17
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x230], eax
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dca0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
call fcn.0040a600
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00461919
add esp, 0x220
ret
Function at 0x40dce0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473d16
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x4e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x54], ax
call fcn.00464050
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x48]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
lea edx, [eax + 2]
jmp 0x40dd70
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dd70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
lea esi, [esp + 0x30]
call fcn.0040a600
push 1
mov ebx, esi
mov dword [esp + 0x260], edi
call fcn.0040a280
mov ecx, dword [esp + 0x40]
sub ecx, eax
lea edx, [eax + 1]
mov eax, esi
dec ecx
push eax
lea esi, [esp + 0x14]
call fcn.00409e00
push 0xffffffffffffffff
push edi
mov ecx, ebx
mov byte [esp + 0x264], 1
call fcn.0040a0f0
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x40dddd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046190e
add esp, 4
push 0x49a18c
mov ebx, 2
xor eax, eax
lea edx, [esp + 0x30]
call fcn.0040a1a0
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov edi, edx
cmp dword [esp + 0x44], esi
jb 0x40de0f
mov eax, dword [esp + 0x30]
push eax
call fcn.0046190e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00461919
add esp, 0x250
ret
Function at 0x40df90
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x472e18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
push ebx
push ebp
call fcn.0046200a
add esp, 8
test eax, eax
jne 0x40e030
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x40e030
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x44], ebx
ja 0x40e007
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x24]
call fcn.0040a570
jmp 0x40e014
mov ebx, edi
lea esi, [esp + 0x1c]
call fcn.0040f100
xor ebx, ebx
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x40e034
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x40e038
push ebx
call fcn.0046190e
add esp, 4
xor eax, eax
jmp 0x40e0a9
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x34], esi
jae 0x40e053
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x497bc8
push eax
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0xa]
movzx edx, byte [eax + 8]
shl cx, 8
movzx esi, cx
movzx ecx, byte [eax + 0xe]
movzx eax, byte [eax + 0xc]
or esi, edx
shl cx, 8
shl esi, 0x10
movzx edx, cx
or esi, edx
or esi, eax
cmp dword [esp + 0x34], 0x10
jb 0x40e0a7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0046190e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00461919
add esp, 0x34
ret

Function at 0x40e130
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
xor edi, edi
push edi
lea eax, [esp + 8]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e18d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e154
mov ecx, dword [esp + 0xc]
sub eax, edx
mov edx, dword [esp + 4]
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e182
lea edi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ecx
ret
Function at 0x40e1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push esi
mov esi, edx
lea edx, [esp + 8]
push edx
push 0xf003f
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e244
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00464050
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push edi
push ecx
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e239
lea ebx, [eax + 1]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e220
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
call fcn.0040a600
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00461919
add esp, 0x214
ret
Function at 0x40e630
Capabilities:
Create directory
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473c28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
xor ebp, ebp
push 0xffffffffffffffff
mov word [esp + 0x1c], ax
mov edi, 7
push ebp
mov eax, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
call fcn.0040a0f0
push 0xb
mov eax, str.StartBarBt
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], ebp
call fcn.0040a010
mov eax, dword [esp + 0x18]
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jae 0x40e6af
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.0046200a
add esp, 8
test eax, eax
je 0x40e6f1
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebx
jae 0x40e6cb
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e6f1
cmp dword [esp + 0x2c], ebx
jb 0x40e6ea
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046190e
add esp, 4
xor eax, eax
jmp 0x40e822
push 0xffffffffffffffff
xor edx, edx
push ebp
mov eax, esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], dx
call fcn.0040a0f0
push 0xd
mov eax, 0x498a10
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 1
call fcn.0040a010
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x38], ax
push ebp
mov eax, esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
call fcn.0040a0f0
push 9
mov eax, str.logo.ico
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 2
call fcn.0040a010
push 9
mov eax, 0x4988d8
lea ecx, [esp + 0x18]
call fcn.0040a010
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebx
jae 0x40e773
lea ecx, [esp + 0x18]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x40e781
lea edi, [esp + 0x34]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], ebx
jae 0x40e78f
lea eax, [esp + 0x50]
push ecx
push 0x497c54
push eax
mov esi, str._StartBarBt
call fcn.0040d990
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], ebx
jae 0x40e7b1
lea eax, [esp + 0x18]
push ebp
push ebp
push ebp
push eax
push str.startpin
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x48], ebx
jb 0x40e7d4
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], ebx
jb 0x40e7fb
mov eax, dword [esp + 0x50]
push eax
call fcn.0046190e
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], cx
cmp dword [esp + 0x2c], ebx
jb 0x40e81d
mov edx, dword [esp + 0x18]
push edx
call fcn.0046190e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00461919
add esp, 0x64
ret
Function at 0x40e850
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov esi, ecx
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x70], cx
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
call fcn.0040a0f0
mov dword [esp + 0x94], 0
cmp dword [esi + 0x14], 0
jbe 0x40e8e8
push 3
mov eax, 0x49a68c
lea ecx, [esp + 0x6c]
call fcn.0040a010
push 0
push esi
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.00409f50
push 0x40
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00464050
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x80], 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0x44
jae 0x40e929
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e95b
push eax
call ebx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e973
push 0x64
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0xc]
push eax
call ebx
cmp dword [esp + 0x80], 8
jb 0x40e98a
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0046190e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00461919
add esp, 0x8c
ret

Function at 0x40e9b0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x473ba2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [esi + 4]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x10], esi
mov word [edi], ax
push 1
push 5
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x234], eax
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea33
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.0040a600
push 0xc
mov eax, 0x49a694
mov ecx, esi
call fcn.0040a010
cmp dword [esi + 0x18], 8
jb 0x40ea64
mov eax, dword [edi]
jmp 0x40ea66
mov eax, edi
push 0
push eax
call fcn.0046200a
add esp, 8
test eax, eax
je 0x40ea86
cmp dword [esi + 0x18], 8
jb 0x40ea7d
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00461919
add esp, 0x220
ret
Function at 0x4144e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x414502
push 0x1c2
push str..PictureResource.cpp
push str.stream
call fcn.00462576
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41454f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41454f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi + 8]
push eax
mov ecx, ebx
call edx
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x417a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417a17
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x417a48
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x417a44
cmp esi, eax
jae 0x417a48
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x417a34
cmp esi, eax
jb 0x417a4e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret