joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457000
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4650c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x370], 0x114
movzx eax, byte [0x467ed4]
test eax, eax
jne 0x4121fa
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x35c], edx
cmp dword [ebp - 0x35c], 0x115
jae 0x412180
jmp 0x412185
call fcn.00449047
mov eax, dword [ebp - 0x35c]
mov byte [ebp + eax - 0x128], 0
lea ecx, [ebp - 0x128]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x37c]
push eax
call fcn.0040f150
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x36c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040dcb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x37c]
call fcn.0040d110
jmp 0x412252
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x360], ecx
cmp dword [ebp - 0x360], 0x22a
jae 0x412216
jmp 0x41221b
call fcn.00449047
xor edx, edx
mov eax, dword [ebp - 0x360]
mov word [ebp + eax - 0x354], dx
lea ecx, [ebp - 0x354]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x354]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040de30
mov eax, dword [ebp + 8]
push eax
call fcn.00414f00
cmp dword [ebp - 0x358], 0
je 0x41227c
cmp dword [ebp - 0x358], 0x114
jae 0x41227c
mov dword [ebp - 0x364], 1
jmp 0x412286
mov dword [ebp - 0x364], 0
mov al, byte [ebp - 0x364]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b77
mov esp, ebp
pop ebp
ret 4

Function at 0x412780
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4650c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x467ed4]
test eax, eax
jne 0x4127fe
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040f180
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.0040d180
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040d110
cmp dword [ebp - 0x18], 0
je 0x4127fc
mov al, 1
jmp 0x412816
jmp 0x412814
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412814
mov al, 1
jmp 0x412816
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x413790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4650c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x467ed4]
test eax, eax
jne 0x413805
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d180
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d110
mov eax, dword [ebp - 0x1c]
jmp 0x413820
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41381d
mov eax, dword [ebp - 0x10]
jmp 0x413820
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x413d60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x413d97
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413d97
xor al, al
jmp 0x413db4
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00448bf0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x414350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x414369
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004107f0
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415bb0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4650c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], ecx
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x415c21
lea edx, [ebp - 0x64]
push edx
call dword [ebp - 0x68]
test eax, eax
je 0x415c21
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00415a90
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x415c4b
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00415a60
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448b77
mov esp, ebp
pop ebp
ret 4

Function at 0x42c020
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45858d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4650c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x98
call fcn.0042c120
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.0040d330
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.0040d390
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.0040d390
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x15], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0040dcb0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040df30
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
call fcn.0040d180
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x60
call fcn.00413770
movzx ecx, al
test ecx, ecx
jne 0x42c0dc
mov dword [ebp - 0x18], 1
jmp 0x42c0e3
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040d110
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x42c107
call fcn.00413d30
jmp 0x42c109
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x432b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4574f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4650c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00430c30
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0042db70
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0040d110
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040d080
mov ecx, dword [ebp - 0x10]
call fcn.00432aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x446ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4650c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0044a300
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.004473b0
mov dword [ebp - 0x218], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00448df6
add esp, 4
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x214]
mov dword [ecx], edx
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448b77
mov esp, ebp
pop ebp
ret 8

Function at 0x4473b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4473e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4473e2
xor al, al
jmp 0x4473ff
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00448bf0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x44e42c
Capabilities:
Parse pe header

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

Function at 0x4509a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45dd94
push 0x45dd8c
push str.FlsAlloc
push 0x1f
call fcn.0045087c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4509d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a25c]
call esi
jmp 0x4509da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x450a1e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45dda4
push 0x45dd9c
push str.FlsGetValue
push 0x21
call fcn.0045087c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x450a55
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a25c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x450a5d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45ddac
push 0x45dda4
push str.FlsSetValue
push 0x22
call fcn.0045087c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x450a97
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45a25c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x452032
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4520cf
push ebx
push esi
call fcn.00451ffb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045069a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45207c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4520ce
push edi
push eax
call fcn.004502b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45209c
call fcn.00450277
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4520cd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045069a
add esp, 0x20
test eax, eax
jne 0x4520bb
push edi
call fcn.00450277
jmp 0x4520c3
push ebx
call fcn.00450277
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1403820
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
ret

Function at 0x14038a0
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push esi
mov word [esp + 4], 0
mov word [esp + 6], ax
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push edx
lea ecx, [ecx + ecx*4 + 5]
lea edx, [eax + eax*4]
mov eax, dword [0x146000c]
shl ecx, 4
shl edx, 4
sub ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
je 0x14038ed
mov ecx, dword [esp + 0x10]
mov byte [ecx + esi], 0
pop esi
pop ecx
ret

Function at 0x1403950
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1403a0c
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebp, 1
cmp byte [esi], 0xa
jne 0x1403976
mov byte [esi], 0xd
movsx eax, byte [esi]
push eax
call fcn.01431960
mov dl, byte [esi]
mov word [esp + 0x10], bp
movsx cx, al
push edx
mov dword [esp + 0x18], ebp
mov word [esp + 0x1c], bp
mov word [esp + 0x1e], cx
call fcn.014038f0
mov word [esp + 0x20], ax
mov al, byte [esi]
movsx edx, al
movsx cx, al
push edx
mov word [esp + 0x26], cx
call fcn.01431300
add esp, 0xc
mov edx, dword [0x1460000]
neg eax
sbb eax, eax
lea ecx, [esp + 0xc]
and eax, 0x80
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push edx
call edi
mov edx, dword [0x1460000]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
mov dword [esp + 0x20], 0
call edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x140396e
mov eax, ebp
pop edi
pop ebp
pop esi
add esp, 0x14
ret
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x1403b30
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x1459904]
sub esp, 8
lea edx, [esp]
mov eax, dword [ecx]
push ebx
push ebp
push esi
push edi
push edx
push str._HFILE
xor ebx, ebx
xor edi, edi
xor esi, esi
mov ebp, 0x32
call dword [eax + 8]
test eax, eax
je 0x1403b6e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403b6e
push eax
call fcn.0142f4f0
add esp, 4
mov ebx, eax
mov ecx, dword [0x1459904]
lea edx, [esp + 0x10]
push edx
push str._HPARENT
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1403b9a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403b9a
push eax
call fcn.0142f4f0
add esp, 4
mov edi, eax
mov ecx, dword [0x1459904]
lea edx, [esp + 0x10]
push edx
push str._HCHILD
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1403bc6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403bc6
push eax
call fcn.0142f4f0
add esp, 4
mov esi, eax
test ebx, ebx
je 0x1403cbf
test edi, edi
je 0x1403cbf
test esi, esi
je 0x1403cbf
push str._n_nInitConProc:__Setting_up_external_control._n
call fcn.014057c0
add esp, 4
mov dword [0x1460004], ebx
mov dword [0x1460008], edi
mov dword [0x1460014], esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x1460010], eax
jne 0x1403c29
push str.InitConProc:__Couldnt_create_heventDone_n
call fcn.014057c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x1403a20
push 0
push 0
call fcn.01431b30
add esp, 0x18
test eax, eax
jne 0x1403c69
mov ecx, dword [0x1460010]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.InitConProc:__Couldnt_create_third_party_thread_n
call fcn.014057c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
mov dword [0x146000c], eax
call esi
mov ecx, dword [0x1459904]
mov dword [0x1460000], eax
lea eax, [esp + 0x10]
mov edx, dword [ecx]
push eax
push str._conheight
call dword [edx + 8]
test eax, eax
je 0x1403cad
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403cad
push eax
call fcn.0142f4f0
add esp, 4
mov ebp, eax
mov ecx, dword [0x146000c]
push ebp
push 0x50
push ecx
call fcn.01403680
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x1404b50
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x28
lea edi, [esp + 0x14]
mov ax, word [esi + 0x202c]
xor edx, edx
mov bx, ax
mov word [esp + 0x12], dx
shl ebx, 0x10
mov bx, ax
mov word [esp + 0x10], dx
mov eax, ebx
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x2028]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push 0x50
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
mov edx, dword [esi + 0x2028]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esi + 0x202e]
push 0x50
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
pop edi
pop esi
pop ebx
add esp, 0xa8
ret
Function at 0x14059a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 0xc]
push str.filesystem_stdio.dll
push str.filesystem_steam.dll
push eax
call fcn.01405290
add esp, 0xc
test al, al
je 0x14059c0
xor eax, eax
ret 0x10
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.01406020
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x140e450
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.01406320
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ecx]
mov ebx, dword [edi]
call dword [eax]
push eax
mov ecx, edi
call dword [ebx + 0x34]
mov edx, dword [esi + 0x50]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], eax
jle 0x140e493
mov edi, dword [esi + 0x58]
cmp dword [edi], eax
je 0x140e48b
inc ecx
add edi, 4
cmp ecx, edx
jl 0x140e47d
jmp 0x140e493
test ecx, ecx
jge 0x140e523
mov ecx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
inc ecx
cmp ecx, ebx
jle 0x140e513
test ebx, ebx
jne 0x140e4a7
mov ebx, 1
cmp ebx, ecx
jge 0x140e4b1
add ebx, ebx
cmp ebx, ecx
jl 0x140e4ab
lea edi, [ebx*4]
push edi
call fcn.0142f510
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x140e4cd
push eax
call fcn.014343a0
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x50]
xor eax, eax
test ecx, ecx
mov dword [esi + 0x54], ebx
jle 0x140e500
mov ecx, dword [esi + 0x58]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [esi + 0x50]
cmp eax, ecx
jl 0x140e4ed
mov eax, dword [esi + 0x58]
push eax
call fcn.0142f530
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x58], ebp
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x58]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x50]
inc eax
mov dword [esi + 0x50], eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1424730
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx + 4]
cmp eax, esi
jle 0x14247b0
test esi, esi
jne 0x142474a
mov esi, 1
cmp esi, eax
jge 0x1424754
add esi, esi
cmp esi, eax
jl 0x142474e
lea edi, [esi*4]
push edi
call fcn.0142f510
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1424770
push eax
call fcn.014343a0
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
mov dword [ebx + 4], esi
jle 0x14247a1
mov ecx, dword [ebx + 8]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [ebx]
cmp eax, ecx
jl 0x142478f
mov eax, dword [ebx + 8]
push eax
call fcn.0142f530
add esp, 4
mov dword [ebx + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1432d00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1432d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1432d26
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1432d3d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0143b7d0
add esp, 4
or eax, 0xffffffff
jmp 0x1432d3f
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1448d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0143b7d0
add esp, 4
or eax, 0xffffffff
jmp 0x1448d3c
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x1448d3a
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x1448d3a
call fcn.0143b870
mov dword [eax], 0xd
call fcn.0143b880
mov dword [eax], 5
or eax, 0xffffffff
jmp 0x1448d3c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408913
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
push 0x35e5d7d8
mov esi, dword [esp]
add esp, 4
and ebx, ebx
call fcn.0040894d
add esi, esi
mov ebx, esi
xor dword [edi], ecx
dec ebx
add ebx, 0x94ec68ff
add edi, 1
mov ebx, 0x8ff138c2
sub ebx, 0x945d4795
cmp edi, eax
jne fcn.00408913
ret