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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1411e80
cmp edx, dword [eax]
je 0x1407f0f
add eax, 8
inc ecx
cmp eax, 0x1411f10
jl 0x1407f00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1411e80]
jne 0x140803d
mov eax, dword [0x35137e4]
cmp eax, 1
je 0x1408017
test eax, eax
jne 0x1407f40
cmp dword [0x14116d8], 1
je 0x1408017
cmp edx, 0xfc
je 0x140803d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1407f77
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.01402a80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.01402b80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1407fba
lea eax, [ebp - 0x1a4]
push eax
call fcn.01402b80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x140f598
push edi
call fcn.014035d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.01402a80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.01402a90
lea eax, [ebp - 0xa0]
push 0x140f578
push eax
call fcn.01402a90
push dword [esi + 0x1411e84]
lea eax, [ebp - 0xa0]
push eax
call fcn.01402a90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0140ab8d
add esp, 0x2c
pop edi
jmp 0x140803d
lea eax, [ebp + 8]
lea esi, [esi + 0x1411e84]
push 0
push eax
push dword [esi]
call fcn.01402b80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140a66a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.014061e0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x140a68d
test byte [esp + 8], 2
je 0x140a68d
call fcn.01406253
mov dword [eax], 0xd
call fcn.0140625c
mov dword [eax], 5
jmp 0x140a666
xor eax, eax
ret
Function at 0x710c93
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x7109ec
or edi, esi
dec esi
call fcn.00710cca
add esi, 1
xor dword [edx], ebx
and edi, edi
and esi, esi
inc edx
mov edi, edi
sub esi, 0x6ef54de7
dec esi
cmp edx, ecx
jne fcn.00710c93
push esi
pop esi
ret
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x401822
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401861
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401861
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401861
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401861
cmp dword [ecx + 0x74], 0xe
jbe 0x401861
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x800398c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x24], 0x13c15963
mov dword [ebp - 4], 0x1000
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], 0x28
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
jmp 0x80039f6
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x38], edx
jge 0x8003a6c
cmp dword [ebp - 0x38], 0
je 0x8003a11
mov dword [ebp - 0x10], 0x29b
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], 0x13c15967
jne 0x8003a40
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
add byte [ebp - 0x30], 0x87
call fcn.08002e50
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x80039ed
mov esp, ebp
pop ebp
ret
Function at 0x8004aee
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x8004b40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsDlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x801fd60], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x801fd64], eax
call esi
push str.FlsFree
push edi
mov dword [0x801fd68], eax
call esi
mov dword [0x801fd6c], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x801fd60], ebx
je 0x8004b66
cmp dword [0x801fd64], ebx
je 0x8004b66
cmp dword [0x801fd68], ebx
je 0x8004b66
cmp dword [0x801fd6c], ebx
jne 0x8004b8a
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x801fd64], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x801fd60], 0x8004767
mov dword [0x801fd68], esi
mov dword [0x801fd6c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x801f00c], eax
cmp eax, 0xffffffff
je 0x8004bfd
push dword [0x801fd64]
push eax
call esi
test eax, eax
je 0x8004bfd
call fcn.08004636
push dword [0x801fd60]
call fcn.08004678
push dword [0x801fd64]
mov dword [0x801fd60], eax
call fcn.08004678
push dword [0x801fd68]
mov dword [0x801fd64], eax
call fcn.08004678
push dword [0x801fd6c]
mov dword [0x801fd68], eax
call fcn.08004678
add esp, 0x10
mov dword [0x801fd6c], eax
call fcn.08005d28
test eax, eax
jne 0x8004c03
call fcn.0800479a
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.08004935
push dword [0x801fd60]
call fcn.080046f4
pop ecx
call eax
mov dword [0x801f010], eax
cmp eax, 0xffffffff
je 0x8004bf8
push 0x214
push 1
call fcn.08006e25
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x8004bf8
push esi
push dword [0x801f010]
push dword [0x801fd68]
call fcn.080046f4
pop ecx
call eax
test eax, eax
jne 0x8004c56
push esi
call fcn.08004c68
pop ecx
jmp 0x8004bf8
push ebx
push esi
call fcn.080047d7
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x8004bff
Function at 0x8005b6a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x801f1b8]
je 0x8005b90
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x8005b7e
cmp esi, 0x17
jae 0x8005cea
push 3
call fcn.08008061
pop ecx
cmp eax, 1
je 0x8005cb4
push 3
call fcn.08008061
pop ecx
test eax, eax
jne 0x8005bc3
cmp dword [0x801fd14], 1
je 0x8005cb4
cmp edi, 0xfc
je 0x8005cea
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x801fe80
push esi
call fcn.08005aad
add esp, 0xc
test eax, eax
je 0x8005bf9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.080059fc
add esp, 0x14
mov byte [0x801ff9d], bl
push 0x104
mov ebx, 0x801fe99
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x8005c3c
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.08005aad
add esp, 0xc
test eax, eax
je 0x8005c3c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.080059fc
add esp, 0x14
push ebx
push edi
push esi
call fcn.08007fed
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x8005c5a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.080059fc
add esp, 0x14
push 0x800c450
push edi
push esi
call fcn.08007fed
add esp, 0xc
test eax, eax
je 0x8005c7a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.080059fc
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x801f1bc]
push edi
push esi
call fcn.08007fed
add esp, 0xc
test eax, eax
je 0x8005c9f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.080059fc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.08007e4b
add esp, 0xc
jmp 0x8005cea
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x8005cea
cmp edi, 0xffffffff
je 0x8005cea
mov edx, dword [esi*8 + 0x801f1bc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x8005cd3
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8007e4b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.080046eb
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x8020674], ebx
jne 0x8007f24
push ebx
push ebx
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x8007e8f
xor eax, eax
jmp 0x8007fe8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x8007e88
push eax
call fcn.08004678
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8020674], eax
call esi
push eax
call fcn.08004678
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8020678], eax
call esi
push eax
call fcn.08004678
mov dword [0x802067c], eax
lea eax, [ebp - 8]
push eax
call fcn.0800443e
pop ecx
pop ecx
test eax, eax
je 0x8007ef2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.080059fc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x8007f24
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.08004678
pop ecx
mov dword [0x8020684], eax
cmp eax, ebx
je 0x8007f24
push 0x800c578
push edi
call esi
push eax
call fcn.08004678
pop ecx
mov dword [0x8020680], eax
mov eax, dword [0x8020680]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x8007f9d
cmp dword [0x8020684], esi
je 0x8007f9d
push eax
call fcn.080046f4
pop ecx
call eax
cmp eax, ebx
je 0x8007f6a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x8020684]
call fcn.080046f4
pop ecx
call eax
test eax, eax
je 0x8007f6a
test byte [ebp - 0x18], 1
jne 0x8007f9d
lea eax, [ebp - 0xc]
push eax
call fcn.0800447a
pop ecx
test eax, eax
je 0x8007f85
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.080059fc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x8007f94
or dword [ebp + 0x10], 0x200000
jmp 0x8007fce
or dword [ebp + 0x10], 0x40000
jmp 0x8007fce
mov eax, dword [0x8020678]
cmp eax, esi
je 0x8007fce
push eax
call fcn.080046f4
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x8007fce
mov eax, dword [0x802067c]
cmp eax, esi
je 0x8007fce
push dword [ebp - 4]
push eax
call fcn.080046f4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x8020674]
call fcn.080046f4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8009901
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x801f03c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0800443e
pop ecx
test eax, eax
je 0x8009936
push esi
push esi
push esi
push esi
push esi
call fcn.080059fc
add esp, 0x14
push 4
pop eax
call fcn.08009ac0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x8009a52
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x80099cb
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernelbase.dll
call esi
test eax, eax
jne 0x80099a2
push str.kernel32.dll
call esi
test eax, eax
je 0x80099cb
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x80099cb
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x80099cb
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x80099cb
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0800520e
add esp, 0xc
test eax, eax
jl 0x8009a52
not esi
and dword [ebp - 8], esi
je 0x80099fd
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0800520e
add esp, 0xc
test eax, eax
jl 0x8009a52
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x8009a08
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x8009a1c
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x8009a52
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x8009a52
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x8009a52
xor eax, eax
inc eax
jmp 0x8009a54
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0800576e
leave
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
push dword [esp + 0x34]
lea eax, [esp + 4]
mov dword [esp + 0x14], 0
xorps xmm0, xmm0
push eax
movups xmmword [esp + 8], xmm0
call fcn.00402020
add esp, 8
test eax, eax
jne 0x40103e
push eax
push eax
push str.Failed_to_setup_launcher_window.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x30
ret 0x10
lea eax, [esp]
push eax
call fcn.00401e40
add esp, 4
test eax, eax
jne 0x401070
push eax
push eax
push str.Failed_to_start_launcher_scripts.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp]
push eax
call fcn.00401f80
add esp, 4
xor eax, eax
add esp, 0x30
ret 0x10
push ebx
push esi
push edi
push dword [esp + 0x4c]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x20]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4010d4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
nop
cmp eax, 0xffffffff
je 0x4010ff
lea eax, [esp + 0x20]
push eax
call edi
lea eax, [esp + 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x4010b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4010e5
push eax
call fcn.00402440
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.00401f80
mov eax, dword [esp + 0x2c]
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0x10
push 0
push 0
push str.An_unknown_error_has_occurred.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401121
push eax
call fcn.00402440
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.00401f80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0x10

Function at 0x401f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push fcn.00401f00
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x401f6b
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401f6b
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401f6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401f6b
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
mov edx, eax
xor eax, eax
test edx, edx
cmovne eax, edi
pop edi
mov dword [ecx], edx
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret