joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b014
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414f78]
call fcn.00404a8c
xor eax, eax
push ebp
push 0x46b158
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x493fcc], 0
jne 0x46b067
mov ecx, dword [0x495044]
mov dl, 1
mov eax, dword [0x407560]
call fcn.0040c020
call fcn.00403b3c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d9c
mov eax, ebx
call fcn.0040493c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46b168
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405ba0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040494c
test eax, eax
jle 0x46b0ff
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46b0f8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404388
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404370
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004083b8
test eax, eax
jne 0x46b0f8
mov ebx, 0x15
jmp 0x46b104
mov ebx, 0x10
jmp 0x46b104
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x493fcc]
call fcn.0046af6c
mov eax, dword [ebp - 8]
call fcn.0046af6c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405bb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b15f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404124
lea eax, [ebp - 0x10]
mov edx, dword [0x414f78]
call fcn.00404b5c
ret

Function at 0x46bfe8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46c059
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x493ffc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x46c043
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0046bfd8
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46bde4]
call fcn.0046c080
mov dword [0x494060], eax
mov eax, dword [ebp - 4]
call fcn.0046bf88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c060
lea eax, [ebp - 8]
call fcn.00405ba0
ret
Function at 0x4010d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
mov dword [esi], vtable.mania::Thread.0
je 0x4010f9
push 0x1388
call fcn.004011c0
test eax, eax
je 0x4010f9
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test byte [esp + 8], 1
je 0x401109
push esi
call fcn.00420c40
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x401110
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
mov dword [esi], vtable.mania::Thread.0
je 0x401139
push 0x1388
call fcn.004011c0
test eax, eax
je 0x401139
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x401140
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi + 8], ebx
jne 0x401158
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push 8
call fcn.0042192f
add esp, 4
push 0
push 0
mov edi, eax
push 1
push 0
mov dword [edi], esi
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x401185
pop edi
pop esi
pop ebx
ret 8
cmp dword [esp + 0x14], 1
jne 0x401199
mov ecx, dword [esi + 4]
lea eax, [esi + 0xc]
push eax
push 4
push edi
push ecx
jmp 0x4011a4
mov eax, dword [esi + 4]
lea edx, [esi + 0xc]
push edx
push 0
push edi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
xor eax, eax
cmp dword [esi + 0x10], eax
pop edi
pop esi
setne al
pop ebx
ret 8

Function at 0x4011c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x401216
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40121c
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0
mov eax, 1
pop esi
ret 4

Function at 0x401240
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
ret 4
Function at 0x401a40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4331c2
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x43d76c]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
mov eax, dword [0x43d76c]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x43c]
mov edi, dword [esp + 0x440]
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
call fcn.004212e0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
add esp, 0xc
mov word [esi + 4], cx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x438], ecx
push 0x104
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x401b23
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x21c]
push eax
push ecx
push edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b04
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x220]
push eax
mov ecx, esi
call fcn.004055e0
mov eax, esi
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00421275
add esp, 0x42c
ret

Function at 0x401b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, word [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push eax
push ecx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401b77
pop esi
pop ebx
ret
push edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
jne 0x401b9c
pop edi
pop esi
xor eax, eax
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00426130
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x433178
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43d76c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d76c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [esp + 0x4c]
push eax
movzx eax, word [esp + 0x58]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x20], ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x401c66
xor ecx, ecx
mov eax, 0x4370c4
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401c45
sub eax, edx
sar eax, 1
push eax
push 0x4370c4
mov ecx, esi
call fcn.004055e0
jmp 0x401d43
push edi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov ebx, eax
push 0
mov dword [esp + 0x1c], ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebx, ebx
jne 0x401c9a
push 0x4370c4
mov ecx, esi
call fcn.00403990
jmp 0x401d43
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [ebp + 2]
push ebx
mov dword [esp + 0x1c], eax
call fcn.00420a12
push ebx
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.004212e0
mov edx, dword [esp + 0x28]
push ebp
push edx
push edi
call fcn.00426130
add esp, 0x1c
xor eax, eax
mov word [esp + 0x20], ax
mov ebp, 7
mov eax, edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ce2
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.004055e0
push edi
mov dword [esp + 0x48], ebx
call fcn.004212d5
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x24]
xor edx, edx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004043c0
cmp dword [esp + 0x34], 8
jb 0x401d43
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00420c40
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.00421275
add esp, 0x34
ret
Function at 0x401e30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43313b
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.00422200
mov eax, dword [0x43d76c]
xor eax, esp
mov dword [esp + 0x201c], eax
push esi
mov eax, dword [0x43d76c]
xor eax, esp
push eax
lea eax, [esp + 0x2028]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2038]
xor esi, esi
cmp eax, esi
jne 0x401e80
xor eax, eax
jmp 0x401f91
push 0x400
lea ecx, [esp + 0x1028]
push ecx
push 0x400
lea edx, [esp + 0x1830]
push edx
push 0x400
lea ecx, [esp + 0x38]
push ecx
push 0x400
lea edx, [esp + 0x840]
push edx
push eax
call fcn.00422ccc
add esp, 0x24
xor eax, eax
mov word [esp + 0xc], ax
lea eax, [esp + 0x824]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401ed7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x828]
push ecx
lea ecx, [esp + 0x10]
call fcn.004055e0
mov dword [esp + 0x2030], esi
lea eax, [esp + 0x24]
cmp word [esp + 0x24], si
je 0x401f26
lea ebx, [ebx]
cmp word [eax], 0x2f
jne 0x401f1e
mov edx, 0x5c
mov word [eax], dx
add eax, 2
cmp word [eax], si
jne 0x401f10
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401f30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004054c0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x401f5d
lea eax, [esp + 0xc]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0x50
je 0x401f76
cmp eax, 0xb7
je 0x401f76
cmp eax, esi
jne 0x401f7b
mov esi, 1
cmp dword [esp + 0x20], 8
jb 0x401f8f
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00420c40
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2028]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x201c]
xor ecx, esp
call fcn.00421275
add esp, 0x202c
ret
Function at 0x401fc0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43313b
mov eax, dword fs:[0]
push eax
mov eax, 0x2020
call fcn.00422200
mov eax, dword [0x43d76c]
xor eax, esp
mov dword [esp + 0x201c], eax
push esi
mov eax, dword [0x43d76c]
xor eax, esp
push eax
lea eax, [esp + 0x2028]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2038]
xor esi, esi
cmp eax, esi
jne 0x402010
xor eax, eax
jmp 0x40210e
push 0x400
lea ecx, [esp + 0x1028]
push ecx
push 0x400
lea edx, [esp + 0x1830]
push edx
push 0x400
lea ecx, [esp + 0x38]
push ecx
push 0x400
lea edx, [esp + 0x840]
push edx
push eax
call fcn.00422ccc
add esp, 0x24
xor eax, eax
mov word [esp + 0xc], ax
lea eax, [esp + 0x824]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402067
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x828]
push ecx
lea ecx, [esp + 0x10]
call fcn.004055e0
mov dword [esp + 0x2030], esi
lea eax, [esp + 0x24]
cmp word [esp + 0x24], si
je 0x4020b6
lea ebx, [ebx]
cmp word [eax], 0x2f
jne 0x4020ae
mov edx, 0x5c
mov word [eax], dx
add eax, 2
cmp word [eax], si
jne 0x4020a0
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4020c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004054c0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4020ed
lea eax, [esp + 0xc]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x40210c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00420c40
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2028]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x201c]
xor ecx, esp
call fcn.00421275
add esp, 0x202c
ret

Function at 0x402260
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebp
mov ebp, dword [esp + 0x28]
push edi
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x40], 0
call edi
test eax, eax
je 0x4022ea
cmp dword [esp + 0x2c], 4
jne 0x4022ea
push 0
lea edx, [esp + 0x30]
push edx
push 8
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x4022ea
cmp dword [esp + 0x2c], 8
jne 0x4022ea
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0xc], ecx
je 0x4022f5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push esi
call ebx
test eax, eax
jne 0x402288
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 8
test ebp, ebp
je 0x40231b
push 1
lea edx, [esp + 0x1c]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
test eax, eax
je 0x4022ea
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 8
Function at 0x402330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4334bb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
push ebx
push esi
push edi
mov eax, dword [0x43d76c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, esi
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402374
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.004055e0
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x4023e5
push ebx
push 0x20686431
mov eax, edi
call fcn.00402260
test eax, eax
je 0x4023de
push ebx
lea eax, [esp + 0x18]
push eax
push 0x200
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4023ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call fcn.00402d80
test eax, eax
je 0x4023de
lea edx, [esp + 0x14]
push edx
push 0x6673746f
mov eax, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00402260
push esi
test eax, eax
je 0x402436
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403520
Capabilities:
Accept command line arguments

Disassembly:
push edi
push esi
mov dword [esi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x18]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x437148
push eax
call fcn.00420c65
add esp, 8
test eax, eax
je 0x403571
push str.w_ccsUNICODE
push str.launcher.log
push edi
call fcn.0042219e
add esp, 0xc
test eax, eax
mov eax, esi
je 0x403573
mov dword [edi], 0
pop edi
ret
mov eax, esi
pop edi
ret

Function at 0x4035b0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x200c
call fcn.00422200
mov eax, dword [0x43d76c]
xor eax, esp
mov dword [esp + 0x2008], eax
push edi
mov edi, dword [esp + 0x2014]
cmp dword [edi + 0x1c], 0
jne 0x4035e0
cmp dword [edi + 0x18], 0
je 0x4036e0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jge 0x4035ff
fadd dword [0x437310]
fdiv qword [0x437308]
sub esp, 8
lea edx, [esp + 0x18]
fstp qword [esp]
push str._.3f_X
call fcn.004070d0
lea eax, [esp + 0x1c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403623
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0xc]
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403640
lea ecx, [esp + 0x2020]
push ecx
mov ecx, dword [esp + 0x2020]
push ecx
sub eax, esi
mov ecx, 0x1000
sub ecx, edx
sar eax, 1
push ecx
lea edx, [esp + eax*2 + 0x1c]
push edx
call fcn.004223ae
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x4036be
lea eax, [esp + 0x10]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403690
push 0
sub eax, esi
lea ecx, [esp + 0xc]
push ecx
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0x18]
pop esi
test eax, eax
je 0x4036d9
lea edx, [esp + 0xc]
push edx
push 0x437194
push eax
call fcn.00422eec
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x200c]
pop edi
xor ecx, esp
call fcn.00421275
add esp, 0x200c
ret
Function at 0x40bcb0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431817
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x43d76c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.004212e0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call fcn.004212e0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
push 0
lea ecx, [ebp - 0x70]
call fcn.0040e430
push 0
lea ecx, [ebp - 0x10]
call fcn.0040e430
push 0x3f9
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0xf4]
add ecx, 4
call fcn.0040c0c0
mov ecx, eax
call fcn.0040c070
push eax
lea ecx, [ebp - 0x10]
call fcn.00415820
push 0x3fb
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xf4]
add ecx, 4
call fcn.0040c0c0
mov ecx, eax
call fcn.0040c070
push eax
lea ecx, [ebp - 0x70]
call fcn.00415820
lea ecx, [ebp - 0x10]
call fcn.0040bf50
test eax, eax
je 0x40bdd9
push 1
push 0
push 0
push 0x90
lea ecx, [ebp - 0x98]
push ecx
call fcn.00401d70
add esp, 8
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xfc]
call fcn.00404b90
push eax
push 0x4344c0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00403a00
lea ecx, [ebp - 0x70]
call fcn.0040bf50
test eax, eax
je 0x40bf01
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x8c
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00401d70
add esp, 8
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 0x28]
add edx, 0x40
push edx
lea eax, [ebp - 0xd0]
push eax
call fcn.0040bfa0
add esp, 0xc
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10c]
call fcn.00404b90
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00403a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00403a00
cmp dword [ebp - 0x74], 0
jne 0x40bf01
push 0
push 0x4344cc
push 0x8d
lea edx, [ebp - 0xec]
push edx
call fcn.00401d70
add esp, 8
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x114]
call fcn.00404b90
push eax
mov ecx, dword [ebp - 0xf4]
add ecx, 4
call fcn.0040c0f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.00403a00
push 0x3fb
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, dword [ebp - 0xf4]
add ecx, 4
call fcn.0040c0c0
mov ecx, eax
call fcn.0040c070
push eax
lea ecx, [ebp - 0x10]
call fcn.00415820
push 0
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x28]
call fcn.0040c9b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10