joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402059
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402094
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402090
lea ebx, [ebx]
cmp esi, eax
jae 0x402094
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402080
cmp esi, eax
jb 0x40209a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402190
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push 0
push eax
call fcn.004df7fd
add esp, 8
cmp eax, 0xffffffff
jne 0x402205
push 1
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov ecx, dword [esp + 0x24]
lea eax, [esp]
push eax
lea edx, [esp + 0x10]
push ecx
mov dword [esp + 8], 0xc
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402205
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4021ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
add esp, 0x20
ret
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402225
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
add esp, 0x20
ret

Function at 0x403ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403f5e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x403f2f
cmp eax, 2
jne 0x403f4a
mov eax, dword [esp]
test esi, esi
je 0x403f58
test eax, eax
je 0x403f53
test al, 1
jne 0x403f4a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x403f58
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x405ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x512fe8
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x405f14
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403270
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
setne bl
call fcn.004df755
add esp, 8
test eax, eax
jl 0x405f87
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x405f87
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0xc
ret
push 0x80070057
call fcn.00401ff0
int3

Function at 0x405fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x517445
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00407190
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x18], 0
call fcn.00407190
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x18], 1
call fcn.00407190
lea edx, [esi + 0x48]
push edx
mov byte [esp + 0x18], 2
call fcn.00407190
lea eax, [esi + 0x60]
push eax
mov byte [esp + 0x18], 3
call fcn.00407190
lea ecx, [esi + 0x78]
push ecx
mov byte [esp + 0x18], 4
call fcn.00407190
lea edx, [esi + 0x90]
push edx
mov byte [esp + 0x18], 5
call fcn.00407190
mov byte [esp + 0x14], 6
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406075
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa8], eax
mov byte [esp + 0x14], 7
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4060a6
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xac], eax
mov byte [esp + 0x14], 8
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4060d7
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb0], eax
mov byte [esp + 0x14], 9
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406108
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb4], eax
lea ecx, [esi + 0xb8]
push ecx
mov byte [esp + 0x18], 0xa
call fcn.00407190
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x408d10
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x515b9b
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
push ebx
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x58c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004c57cb
call fcn.004c9368
call fcn.004c91ad
push 0x52bd14
mov ecx, esi
mov dword [eax + 0x7c], 0
call fcn.004c6389
push 0
lea eax, [esi + 0xa8]
push eax
lea ecx, [esi + 0xa4]
push ecx
call sub.gdiplus.dll_GdiplusStartup
push 0
call fcn.004c721d
add esp, 4
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, 1
cmp dword [esp + 0x10], edi
mov ebx, eax
jle 0x408dda
mov eax, dword [ebx + edi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00402480
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408da6
lea ecx, [esp + 0x18]
push ecx
call fcn.0040a460
lea edx, [esp + 0x18]
mov dword [esp + 0x594], 0
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.004c85a7
lea ecx, [esp + 0x18]
mov dword [esp + 0x594], 0xffffffff
call fcn.0040b150
xor eax, eax
mov ecx, dword [esp + 0x58c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x588
ret

Function at 0x409e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004c87df

Function at 0x40a110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp byte [esp + 0x48], 1
mov dword [esp + 0x14], edx
setne cl
lea edx, [esp]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
dec ecx
and ecx, 5
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a181
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x3c
ret
Function at 0x40c8c0
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push ecx
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40c952
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or edx, eax
jge 0x40c8ff
push 0x104
mov ecx, esi
call fcn.00403630
mov eax, dword [esi]
mov ecx, dword [esp]
push edi
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40c926
push ecx
push eax
call fcn.004df755
add esp, 8
test eax, eax
jl 0x40c948
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40c948
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop ecx
ret
push 0x80070057
call fcn.00401ff0
xor eax, eax
pop ecx
ret
Function at 0x40c960
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x514b10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x521658
push 1
push ebx
push 0x521858
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40c9ce
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.00402480
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.004dfd64
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x40ca03
mov eax, esi
jmp 0x40ca09
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402800
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00403060
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ca4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp edi, ebx
je 0x40ca6d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x5217e8
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x40cad2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40cabe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x40ca97
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40cb28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40ce30
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x1a
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40cec5
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x40ce71
push 0x104
mov ecx, esi
call fcn.00403630
mov eax, dword [esi]
push edi
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40ce99
push ecx
push eax
call fcn.004df755
add esp, 8
test eax, eax
jl 0x40cebb
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40cebb
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop ecx
ret
push 0x80070057
call fcn.00401ff0
xor eax, eax
pop ecx
ret

Function at 0x40ced0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x549950]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40cf13
cmp dword [esp + 0x10], 2
jne 0x40cf13
cmp dword [esp + 4], 6
jne 0x40cf13
mov eax, 1
cmp dword [esp + 8], eax
je 0x40cf15
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004df2ac
add esp, 0x118
ret
Function at 0x40d3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.004e5f20
push 0xffffffffffffffff
push 0x5128be
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x549950]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push str.session
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.004c1d4a
push esi
push esi
push 0x600002
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x200c]
push esi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004c29db
mov ecx, dword [ebp + 0x2010]
push esi
push 0x80
push 2
push esi
push 2
push 0xc0000000
mov ebx, eax
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x40d4cb
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004c253e
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x200c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d601
push 0x1ffe
lea edx, [ebp + 2]
xor ecx, ecx
push esi
push edx
mov word [ebp], cx
call fcn.004e57c0
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push 0x1000
lea ecx, [ebp]
push ecx
mov ecx, ebx
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jg 0x40d4e6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.004c253e
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x200c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d54c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d601
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.004df2ac
add ebp, 0x2004
mov esp, ebp
pop ebp
ret
Function at 0x411b50
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x517170
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0xc8
push esi
lea eax, [esi + 0x1ac]
push eax
push 0x50000000
push 0
lea edi, [esi + 0x1ec]
push 0x52c278
mov ecx, edi
call fcn.004d122d
push 0xffffffffffffffff
push 0x54c9dc
push 0
push 0
push 4
push 0x227
push edi
call fcn.004cf8f6
add esp, 0x1c
call fcn.00411d30
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411bdd
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0x404]
mov eax, dword [esi + 0xcc]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004039c0
add esp, 0xc
cmp dword [esi + 0x2c4], 0
je 0x411cdb
mov eax, dword [esi + 0xcc]
push 0
push 0
push 0
push 0
push eax
push str._bLLLL
push 0
push 0
push 1
push 0x68
push edi
call fcn.004cf8f6
add esp, 0x2c
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x3c], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x40], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x44], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x522764
call fcn.00402480
mov byte [esp + 0x44], 4
mov eax, dword [esi + 0x2bc]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00403680
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [esp + 0x40], esp
push str.gg_tool_start_center_fl_show
mov byte [esp + 0x50], 5
call fcn.00402480
mov edi, 0x550b38
mov byte [esp + 0x4c], 0
call fcn.004b9230
mov eax, dword [esi + 0x20c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4125e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5149c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [0x550b44]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [eax + 0x40c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004030e0
push 0xa
push str.typegame
lea ecx, [esp + 0x10]
call fcn.004030e0
mov esi, dword [esp + 8]
push 1
push 0
push 0
push esi
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x4126a0
Capabilities:
Access peb ldr_data
Create process on windows
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x517170
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x550b48]
add eax, 0xfffffff0
push eax
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.004030e0
push 0xd
push str.typegonglue
lea ecx, [esp + 0x14]
call fcn.004030e0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x3c], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x40], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x522764
call fcn.00402480
push ecx
mov byte [esp + 0x44], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x522764
call fcn.00402480
mov byte [esp + 0x44], 4
mov eax, dword [esi + 0x2bc]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov edi, esp
push eax
call fcn.00403680
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [esp + 0x40], esp
push str.gg_gamepack_start_cd09
mov byte [esp + 0x50], 5
call fcn.00402480
mov edi, 0x550b38
mov byte [esp + 0x4c], 0
call fcn.004b9230
mov esi, dword [esp + 0xc]
push 1
push 0
push 0
push esi
push 0x522a50
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret