joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x401940
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401950
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401980
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4019fa
xor eax, eax
cmp ecx, ebp
je 0x4019e2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x401a08
cmp ecx, ebp
je 0x401a9b
push ecx
jmp 0x401a95
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x401a6a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00401980
mov ebx, eax
cmp ebx, ebp
jne 0x401ab8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x401a30
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401a7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00401870
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401a9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00474db0
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401ac7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401a9d
Function at 0x401f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x498ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c5280]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x401fdf
call fcn.004015e0
mov esi, eax
jmp 0x4020c1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x401ffb
call fcn.004015e0
jmp 0x4020b8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x402014
call fcn.004015e0
jmp 0x4020b8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x402048
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x402036
lea eax, [ebp]
call fcn.00404b10
lea esi, [ebp - 0x1c]
call fcn.00404540
mov eax, 0x8007000e
jmp 0x4020d3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00404620
mov dword [ebp - 4], 1
jmp 0x402071
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40207f
mov esi, 0x8007000e
jmp 0x4020ba
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40209d
call fcn.004015e0
jmp 0x4020b8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00402dd0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4020d1
lea eax, [ebp]
call fcn.00404b10
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 + 0x404]
xor ecx, ebp
call fcn.00474db0
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405695
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x18], 0
push esi
mov esi, ecx
jne 0x405748
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x4056d1
cmp word [esi + 0x24], 0
je 0x4056be
push esi
push 0
push 0x494640
call fcn.0047548e
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [eax], 0
mov eax, 1
pop esi
ret 0x18
cmp ecx, 0x14
jne 0x4056e9
mov ecx, dword [esp + 0x18]
mov dword [ecx], 1
mov eax, 1
pop esi
ret 0x18
cmp ecx, 0x508
jne 0x405733
mov eax, dword [esi + 0x824]
push edi
mov edi, dword [esp + 0x18]
test eax, eax
je 0x40570b
cmp eax, edi
je 0x40570b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
mov dword [esi + 0x824], edi
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], 0
mov eax, 1
pop esi
ret 0x18
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x24]
call fcn.004062b0
test eax, eax
jne 0x4056c8
xor eax, eax
pop esi
ret 0x18

Function at 0x405980
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4968f8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld dword [0x4bc108]
lea ecx, [esi + 4]
mov dword [esi], vtable.SimpleSogouPluginableModuleConfig.0
xor edi, edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
mov dword [ecx + 0x30], fcn.00475202
mov dword [ecx + 0x34], fcn.00475690
mov dword [ecx + 0x38], fcn.00475125
fstp dword [ecx + 0xc]
fld dword [0x4bc104]
fstp dword [ecx + 0x10]
fld dword [0x4bc100]
fstp dword [ecx + 0x14]
call fcn.00430130
mov eax, dword [esp + 0x20]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
push eax
mov dword [esi + 0x4c], fcn.00475202
mov dword [esi + 0x50], fcn.00475690
mov dword [esi + 0x54], fcn.00475125
lea ecx, [esi + 0x60]
push 0x104
push ecx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 0x1fff8
mov dword [esi + 0x48], vtable.t_heapT_class_TAllocDefault_.0
call fcn.00476081
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x408a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [esp + 0x74], edi
jne 0x408a59
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ebx, dword [eax + 4]
movzx ebp, word [eax + 0xe]
mov esi, dword [eax + 8]
xor eax, eax
push edi
mov dword [esp + 0x50], eax
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x20]
push edx
mov eax, 1
mov word [esp + 0x58], ax
push edi
lea eax, [esp + 0x50]
push eax
mov ecx, 0x20
shr ebp, 3
push edi
mov byte [esp + 0x2f], 0
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov word [esp + 0x66], cx
mov dword [esp + 0x68], edi
mov dword [esp + 0x78], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
cmp eax, edi
je 0x408c19
mov eax, ebx
imul eax, ebp
mov dword [esp + 0x38], eax
lea eax, [ebx*4 + 3]
sar eax, 2
add eax, eax
add eax, eax
cmp esi, edi
jbe 0x408c0f
mov edi, dword [esp + 0x74]
mov ecx, eax
neg ecx
lea edx, [esi - 1]
imul edx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
jmp 0x408b30
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax]
test ebx, ebx
jbe 0x408bf0
mov dword [esp + 0x74], ebx
movzx dx, byte [edi]
movzx eax, byte [edi + 1]
inc edi
inc edi
movzx ebx, ax
movzx eax, byte [edi]
movzx edx, dx
inc edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ebx
cmp ebp, 4
jne 0x408bd0
movzx dx, byte [edi]
movzx esi, ax
movzx ebx, dx
movzx ebp, bx
imul esi, ebp
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, word [esp + 0x28]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, word [esp + 0x2c]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov ebp, dword [esp + 0x30]
inc ecx
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
mov byte [ecx], al
inc edi
inc ecx
mov byte [ecx], bl
jmp 0x408bdc
mov byte [ecx], al
inc ecx
mov byte [ecx], bl
inc ecx
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0xff
inc ecx
sub dword [esp + 0x74], 1
jne 0x408b43
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
add edi, dword [esp + 0x38]
add edx, dword [esp + 0x3c]
sub dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jne 0x408b30
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x408d20
Capabilities:
Check for peb beingdebugged flag
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498f60
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x18]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x258], edi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x28]
push 1
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov byte [esp + 0x2c], 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x38], edi
mov byte [esp + 0x25], 0
mov byte [esp + 0x258], 1
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea edx, [esi + 0x24]
push edx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x30]
call fcn.004342c0
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x10]
push 1
push ebx
lea edi, [ecx + eax + 4]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x68]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esi + 4]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x46]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x48], cx
call fcn.00479770
mov ecx, dword [esi + 4]
add esp, 0xc
push 0x104
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e50
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
jne 0x408e6f
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_TextOutW]
mov edx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [esp + 0x24]
call fcn.00435e40
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00474db0
mov esp, ebp
pop ebp
ret 4
Function at 0x4094d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x38]
push esi
mov esi, edx
xor eax, dword [esi + 0x10]
push edi
and eax, 1
xor dword [ebx + 0x38], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0x38]
xor ecx, dword [esi + 0x10]
and ecx, 4
xor dword [ebx + 0x38], ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x24]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x20]
mov esi, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
sub esi, ecx
sub edi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x28], esi
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 0xff
mov byte [esp + 0x3c], 1
mov byte [esp + 0x3d], 0
test al, 4
je 0x4095b2
mov dword [ebx + 0x134], 0xfa00fa
lea edi, [ebx + 0x108]
jmp 0x4095e8
test al, 1
je 0x4095c8
mov dword [ebx + 0xf0], 0xfa00fa
lea edi, [ebx + 0xc4]
jmp 0x4095e8
test al, 2
je 0x4095de
mov dword [ebx + 0xac], 0xfa00fa
lea edi, [ebx + 0x80]
jmp 0x4095e8
mov dword [ebx + 0x68], 0xfa00fa
lea edi, [ebx + 0x3c]
lea eax, [esp + 0x14]
call fcn.00434480
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x1fe
lea eax, [esp + 0x64]
push esi
push eax
call fcn.00479770
mov edx, dword [ebx + 4]
add esp, 0xc
push 0xff
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [esp + 0xc]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push edi
call esi
mov dword [esp + 0xc], eax
mov al, byte [ebx + 0x38]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xb2b2b2
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x60]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409674
push 0x25
sub eax, ecx
lea edx, [esp + 0x44]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call ebx
mov edx, dword [esp + 0xc]
push edx
push edi
call esi
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00474db0
mov esp, ebp
pop ebp
ret
Function at 0x40a6a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
push esi
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cad20]
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00474db0
add esp, 0x808
ret

Function at 0x40a710
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x46c], eax
push esi
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00479770
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push 0x4b8238
lea edx, [esp + 0x64]
push edx
call esi
push 0x4cab18
lea eax, [esp + 0x64]
push eax
call esi
push 0x4cab18
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jbe 0x40a8d3
cmp word [eax*2 + 0x4cab16], 0x5c
je 0x40a788
push 0x4b7bc8
lea ecx, [esp + 0x64]
push ecx
call esi
push str.crashrpt.exe
lea edx, [esp + 0x64]
push edx
call esi
push 0x4b823c
lea eax, [esp + 0x64]
push eax
call esi
push 0x4ca910
lea ecx, [esp + 0x64]
push ecx
call esi
push 0x4b823c
lea edx, [esp + 0x64]
push edx
call esi
push str.sogoupy
lea eax, [esp + 0x64]
push eax
call esi
push 0x4b823c
lea ecx, [esp + 0x64]
push ecx
call esi
cmp byte [0x4c6643], 0
mov eax, 0x4b8244
jne 0x40a7e3
mov eax, 0x4b8248
push eax
lea edx, [esp + 0x64]
push edx
call esi
push 0x4b8238
lea eax, [esp + 0x64]
push eax
call esi
push 0x5c
push 0x4ca708
call fcn.004763f9
mov edi, eax
add esp, 8
test edi, edi
je 0x40a82f
push 0x4b824c
lea ecx, [esp + 0x64]
push ecx
call esi
add edi, 2
push edi
lea edx, [esp + 0x64]
push edx
call esi
push 0x4b8238
lea eax, [esp + 0x64]
push eax
call esi
push 0x5c
push 0x4ca500
call fcn.004763f9
mov edi, eax
add esp, 8
test edi, edi
je 0x40a867
push 0x4b824c
lea ecx, [esp + 0x64]
push ecx
call esi
add edi, 2
push edi
lea edx, [esp + 0x64]
push edx
call esi
push 0x4b8238
lea eax, [esp + 0x64]
push eax
call esi
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00479770
add esp, 0xc
cmp byte [0x4c6643], 0
mov dword [esp + 0x18], 0x44
je 0x40a89b
mov edx, 5
mov dword [esp + 0x44], 1
mov word [esp + 0x48], dx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
xor ecx, esp
call fcn.00474db0
add esp, 0x474
ret
Function at 0x40b4e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49756b
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x354]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x142]
push ecx
mov word [esp + 0x144], ax
call fcn.00479770
add esp, 0xc
lea edx, [esp + 0x138]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40b594
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.0040f780
mov esi, eax
push 0x4b8d9c
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
push edi
push 0x4b9a74
mov edx, esi
call fcn.00410f90
add esp, 0x10
xor al, al
jmp 0x40b68d
lea eax, [esp + 0x138]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5a0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x136], 0x5c
jne 0x40b5dd
lea eax, [esp + 0x138]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5c4
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x136], cx
lea ecx, [esp + 0x14]
call fcn.00410770
lea ebx, [esp + 0x138]
mov edx, ebx
test edx, edx
jne 0x40b5f8
mov ebx, 0x4b75b8
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b600
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.00411640
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x40b633
mov eax, dword [esp + 0x1c]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.004797f0
add esp, 0xc
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x40b656
mov eax, dword [esp + 0x1c]
add eax, 4
lea edx, [ebp + 0x130]
call fcn.00410960
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], vtable.t_str.0
jne 0x40b68b
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x40b68b
push eax
call fcn.00475125
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00474db0
add esp, 0x33c
ret 4
Function at 0x40be40
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call edi
call edi
lea edx, [esi + 0x4d4]
call fcn.00410960
cmp byte [esi + 0x5f0], 0
lea eax, [esi + 0x4e0]
jne 0x40be6e
mov eax, dword [esi + 0x4dc]
add esi, 0x5f8
add eax, 4
mov edx, esi
call fcn.00410960
mov eax, esi
call fcn.00411500
pop edi
mov al, 1
pop esi
ret

Function at 0x40cba0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x424
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
mov ebp, dword [esp + 0x430]
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x1e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x24], ax
call fcn.00479770
add esp, 0xc
push 0x104
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40cc07
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00474db0
add esp, 0x424
ret
push esi
push 0x206
lea ecx, [esp + 0x22a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x230], ax
call fcn.00479770
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40cc67
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00474db0
add esp, 0x424
ret
push edi
push esi
call fcn.00475202
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40cc7e
xor al, al
jmp 0x40cd28
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40cd1d
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40cd1d
cmp dword [esp + 0x10], 4
jb 0x40cd1d
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xCompanyName
lea edx, [esp + 0x234]
call fcn.0040d970
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x230]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40cd1d
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jbe 0x40cd1d
mov eax, dword [esp + 0x18]
cmp word [eax + ecx*2 - 2], bx
jne 0x40cd11
mov edx, ebp
call fcn.00410960
jmp 0x40cd1b
push eax
mov eax, ecx
mov ebx, ebp
call fcn.004109c0
mov bl, 1
push edi
call fcn.00475125
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00474db0
add esp, 0x424
ret