joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d5a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x14], 0
mov eax, dword [esi + 4]
jne 0x101d5a80
push edi
mov edi, dword [esi]
sub edi, eax
je 0x101d5a7a
push dword [esi + 0xc]
push edi
push 1
push eax
call fcn.100fc451
add dword [esi + 0x10], eax
add esp, 0x10
cmp eax, edi
mov eax, dword [esi + 4]
mov dword [esi], eax
je 0x101d5a76
mov byte [esi + 0x14], 1
pop edi
pop esi
pop ebp
ret
pop edi
mov dword [esi], eax
pop esi
pop ebp
ret
mov dword [esi], eax
pop esi
pop ebp
ret

Function at 0x101d6530
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xb0]
push 0xaa
push 0
push eax
call fcn.100e6b10
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0x55
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 2
lea eax, [ebp - 0xb4]
push eax
push 0x20001004
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x101d65c7
push 0x10
call fcn.100f426e
mov esi, eax
add esp, 4
test esi, esi
je 0x101d660e
push dword [ebp - 0xb4]
push str.CP_u
push esi
call fcn.101d48d0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
push 0x2e
push esi
call fcn.101d82d0
mov esi, eax
add esp, 8
test esi, esi
je 0x101d661d
inc esi
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101d65e0
sub ecx, edx
push edi
lea eax, [ecx + 3]
push eax
call fcn.100f426e
mov edi, eax
add esp, 4
test edi, edi
je 0x101d660b
push esi
push str.CP_s
push edi
call fcn.101d48d0
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100e40d6
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x100266c
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x100267d
call fcn.0100263e
cmp eax, 2
jne 0x10026bb
test byte [esp + 4], 4
jne 0x10026a0
push 4
push 0x40
push 0
push 0x1001254
push 0x522
push 0
call fcn.010038f9
cmp eax, 6
jne 0x10026bb
cmp word [0x100aa64], 0
jne 0x10026b6
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10026bb
call fcn.010018ed
ret 4

Function at 0x1002a61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor edi, edi
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1002aca
cmp dword [ebp + 0xc], edi
je 0x1002aca
cmp ebx, edi
je 0x1002aaa
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1002aae
xor eax, eax
jmp 0x1002acc
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1002edc
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f1f
cmp dword [0x100b490], ebp
jne 0x1002f1f
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002efa
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f80
cmp dword [0x100b884], ebp
jne 0x1002f80
cmp dword [0x100b490], ebp
jne 0x1002f80
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f6b
lea eax, [esp + 0xc]
push eax
call fcn.01005b9e
push 0x1001288
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01001cb7
cmp word [0x100aa64], 1
je 0x1002f97
cmp dword [0x100b880], ebp
je 0x1002f97
call fcn.0100197e
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret

Function at 0x1003525
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1003560
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1003547
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1003558
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1003562
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100353d
xor eax, eax
pop edi
pop esi
ret
Function at 0x1003dc7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.010034f5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.010034aa
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.010034f5
pop ecx
push eax

Function at 0x1004c45
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x3fffff8
test dword [eax], eax
stc
invalid

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005c0a
xor eax, eax
jmp 0x1005c12
shr eax, 4
not eax
and eax, 1
ret 4

Function at 0x1005e40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1005e76
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005e7a
xor eax, eax
jmp 0x1005e90
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4
Function at 0x10070a8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070e3
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x10070c0
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070ff
dec esi
je 0x10070f8
dec esi
jne 0x1007104
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x402ac0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov dword [ebx], 0
mov dword [eax], 0
mov eax, dword [esi + 0x14]
push edi
cmp eax, 1
jne 0x402af7
mov edx, dword [esi]
push 0
push 2
call dword [edx + 0x58]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret 8
mov eax, dword [esi]
mov ecx, esi
xor ebp, ebp
mov byte [esp + 0x14], 0
call dword [eax + 0x38]
test al, al
jne 0x402b25
mov edi, dword [esi]
mov ecx, esi
call dword [edi + 0x2c]
push eax
mov ecx, esi
call dword [edi + 0x40]
mov ebp, eax
test ebp, ebp
jne 0x402bc7
mov byte [esp + 0x14], 1
mov ecx, dword [esi + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402b49
mov edx, dword [esi]
mov ebp, 8
push 0
push ebp
mov ecx, esi
call dword [edx + 0x58]
jmp 0x402bb9
push edi
call fcn.00406f96
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax], edi
mov eax, dword [ebx]
test eax, eax
je 0x402baa
test edi, edi
jbe 0x402bb9
mov edx, dword [ebx]
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x402b9a
mov edx, dword [esi]
mov ebp, 4
push 1
push ebp
mov ecx, esi
call dword [edx + 0x58]
test al, al
je 0x402bb9
xor ebp, ebp
mov eax, dword [esp + 0x18]
sub edi, eax
test eax, eax
je 0x402bb9
test edi, edi
ja 0x402b64
jmp 0x402bb9
mov eax, dword [esi]
mov ebp, 7
push 0
push ebp
mov ecx, esi
call dword [eax + 0x58]
cmp byte [esp + 0x14], 1
jne 0x402bc7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 8

Function at 0x402f60
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4171e8]
push 0
push 0x402fa0
push 0
push 0x65
push eax
call dword [sym.imp.USER32.DLL_CreateDialogParamA]
push 1
push eax
mov dword [0x4171d8], eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ecx, dword [0x4171d8]
push ecx
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
mov eax, dword [0x4171d8]
ret
Function at 0x4032a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ff01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push esi
lea ecx, [esp + 0xc]
call fcn.00401ca0
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x1ac], ebx
call fcn.00401ca0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 1
call fcn.00401ca0
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 0x20]
push eax
push str.SKU_d
push ecx
mov byte [esp + 0x1b8], 2
call fcn.00407265
mov ecx, dword [esp + 0x1c8]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00401550
test al, al
je 0x403489
lea ecx, [esp + 0x10]
push ecx
push 0x41409c
push ebx
lea ecx, [esp + 0x18]
call fcn.00402180
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
mov esi, eax
call fcn.00401d50
push esi
push ebx
lea ecx, [esp + 0x10]
call fcn.00401d80
lea ecx, [esp + 8]
call fcn.00401f70
cmp byte [eax], 0x20
jne 0x403380
push 1
push ebx
lea ecx, [esp + 0x10]
call fcn.00401d80
lea ecx, [esp + 8]
call fcn.00401f70
cmp byte [eax], 0x20
je 0x403366
lea eax, [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push 0x20019
push ebx
call fcn.00401f70
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
cmp eax, ebx
jne 0x403489
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
push str.InstallPath
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
cmp eax, ebx
jne 0x403489
cmp dword [esp + 0x18], 1
jne 0x403489
lea edx, [esp + 0xa0]
push 0x5c
push edx
lea esi, [esp + 0xa8]
call fcn.00406510
add esp, 8
cmp eax, ebx
je 0x403415
lea esi, [eax + 1]
push 0x5c
push esi
call fcn.00406510
add esp, 8
cmp eax, ebx
jne 0x403403
cmp esi, ebx
je 0x40341b
mov byte [esi], bl
mov eax, dword [esp + 0x1b8]
mov edx, dword [esp + 0x1b4]
lea ecx, [esp + 0xa0]
push eax
push ecx
push edx
call fcn.00406c00
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 1
call fcn.00401cb0
lea ecx, [esp + 8]
mov byte [esp + 0x1ac], bl
call fcn.00401cb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00401cb0
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
add esp, 0x1a8
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 1
call fcn.00401cb0
lea ecx, [esp + 8]
mov byte [esp + 0x1ac], bl
call fcn.00401cb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00401cb0
mov ecx, dword [esp + 0x1a4]
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x4034e0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
push 1
push eax
push 0x104
push ecx
mov ebx, 2
call fcn.004032a0
add esp, 0x10
cmp al, 1
jne 0x4035bd
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
push esi
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jb 0x403594
mov edi, str.patches.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40358d
lea edx, [esp + 0x114]
push edx
push esi
call ebp
test eax, eax
je 0x40358d
lea eax, [esp + 0x114]
push eax
push esi
call ebp
test eax, eax
jne 0x40357e
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [esp + 0x258]
mov eax, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push 0x104
push edx
inc ebx
call fcn.004032a0
add esp, 0x10
cmp al, 1
je 0x403516
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x404880
Capabilities:
Shutdown system
Terminate process

Disassembly:
sub esp, 0xb0
lea eax, [esp]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.DLL_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 2
call dword [sym.imp.USER32.DLL_ExitWindowsEx]
test eax, eax
jne 0x404917
lea ecx, [esp + 0x34]
push 0x80
push ecx
push 6
push eax
call dword [sym.imp.USER32.DLL_LoadStringA]
push 0
lea edx, [esp + 0x38]
push 0x4140cc
push edx
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 0
call fcn.00407075
mov esi, dword [sym.imp.USER32.DLL_GetMessageA]
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x40495d
push ebx
mov ebx, dword [sym.imp.USER32.DLL_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.DLL_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
test eax, eax
jne 0x40493c
pop edi
pop ebx
pop esi
add esp, 0xb0
ret

Function at 0x404c10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x358
push ebx
push ebp
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [esp + 0x36c]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [ebx + 0x100]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 0x44
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x200]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x404ce6
push eax
lea eax, [esp + 0x26c]
push 0x100
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x300], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 0x304], edx
mov dword [ebx + 0x308], eax
mov dword [ebx + 0x30c], ecx
pop ebp
mov al, 1
pop ebx
add esp, 0x358
ret
Function at 0x404d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ff80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp]
call fcn.00401ca0
mov ecx, dword [esp + 0x20]
lea eax, [esp]
push eax
push 0x4142ec
mov dword [esp + 0x20], 0
call fcn.00401550
test al, al
jne 0x404dc2
lea ecx, [esp]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401cb0
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00401ca0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00401ca0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00401ca0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
push ecx
push 0x41409c
push 0
lea ecx, [esp + 0x18]
call fcn.00402180
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push 0x41409c
push eax
call fcn.00402180
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401d50
push esi
push 0
lea ecx, [esp + 0x18]
call fcn.00401d80
lea ecx, [esp + 0x14]
call fcn.00401f70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x100]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00401f70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401f70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x200]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x24], 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00401cb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.00401cb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00401cb0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x404fc0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40ffb1
push eax
mov eax, 0x110c
mov dword fs:[0], esp
call fcn.00407850
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [str.48BC11BD_C4D7_466b_8A31_C6ABBAD47B3E]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
cmp eax, ebx
mov dword [esi], eax
je 0x4051a7
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
cmp eax, 0xb7
je 0x4051a7
push ebx
push str.Conquer.dat
lea ecx, [esp + 0x34]
call fcn.00402680
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1128], ebx
call fcn.004027b0
test al, al
je 0x405193
lea ecx, [esp + 0x2c]
call fcn.00402c90
push ebx
push eax
push ebx
lea ecx, [esp + 0x2c]
push 4
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x405186
call edi
cmp eax, 0xb7
je 0x405186
mov edx, dword [esi + 4]
push ebx
push ebx
push ebx
push ebx
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
mov ebp, eax
cmp ebp, ebx
je 0x405193
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00402ac0
cmp dword [esp + 0x10], ebx
je 0x40517d
cmp dword [esp + 0x14], ebx
jbe 0x40517d
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00405280
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push 0x40
push eax
mov byte [esp + 0x112c], 1
call fcn.00402570
mov byte [esp + 0x88], bl
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1124], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x90]
call fcn.00405640
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebp
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.004057a0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004077de
add esp, 4
lea ecx, [esp + 0x88]
mov byte [esp + 0x1124], 1
call fcn.00405630
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x1124], bl
cmp ecx, ebx
mov dword [esp + 0x18], 0x4112e4
je 0x40517d
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [esp + 0x1c], ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x405193
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 4], ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1124], 0xffffffff
call fcn.00402710
mov ecx, dword [esp + 0x111c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1118
ret