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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5c
mov esi, 0x433a68
push esi
call fcn.0040ec10
pop ecx
pop ecx
test eax, eax
je 0x4090fc
inc eax
jmp 0x4090fe
mov eax, esi
cmp byte [0x433c10], 0
mov esi, 0x410
push eax
lea eax, [ebp - 0x414]
je 0x409129
push 0x433c10
push str._s_s
push esi
push eax
call fcn.00403cbc
add esp, 0x14
jmp 0x409133
push esi
push eax
call fcn.004110f3
add esp, 0xc
lea eax, [ebp - 0x414]
push str..log
push eax
call fcn.00411480
pop ecx
mov ecx, 0x414
sub ecx, eax
lea eax, [ebp - 0x414]
push ecx
push eax
call fcn.00411480
pop ecx
lea ecx, [ebp - 0x414]
sub ecx, 4
add eax, ecx
push eax
call fcn.004110f3
add esp, 0xc
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x409270
mov ecx, dword [0x4339e0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40920a
push ecx
push 0xffffffffffffffff
call fcn.00405c6b
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.004086ea
pop ecx
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00411480
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 0x418]
push eax
push 2
push 0x426a18
push edi
call ebx
mov ecx, dword [0x4339e0]
push esi
lea eax, [ebp - 0x414]
test ecx, ecx
push eax
mov eax, 0x406
lea edx, [eax + 2]
cmovne eax, edx
xor esi, esi
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.004086ea
pop ecx
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00411480
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
push esi
lea eax, [ebp - 0x418]
push eax
push 2
push 0x426a18
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d5ca
leave
ret
Function at 0x409597
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4095cb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4095cb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x409678
push ebx
mov ebx, edi
mov ecx, edi
cmp al, 0x2f
je 0x4095e2
cmp al, 0x5c
jne 0x4095e4
mov ebx, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4095da
cmp ebx, edi
je 0x409621
sub ebx, edi
lea eax, [ebp - 0x20c]
push ebx
push edi
push eax
call fcn.0040f370
add esp, 0xc
cmp ebx, 0x104
jae 0x409686
lea eax, [ebp - 0x20c]
mov byte [ebp + ebx - 0x20c], 0
push eax
push esi
call fcn.00409597
pop ecx
pop ecx
mov byte [ebp - 0x108], 0
pop ebx
test esi, esi
je 0x409642
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004110f3
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004112fd
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409678
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d5ca
leave
ret
call fcn.0040dc0e
int3

Function at 0x409cb5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x409d64
cmp dword [esi + 4], 0xffffffff
jne 0x409d64
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.00411480
pop ecx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x409d0b
cmp al, 0x2f
je 0x409d0b
push 0x426af0
push 0x104
push edi
call fcn.004112fd
add esp, 0xc
cmp dword [ebp + 0x10], 1
pop edi
jne 0x409d2d
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x409d2d
mov eax, 0x2000000
jmp 0x409d69
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c45f
add esp, 0x10
test eax, eax
jne 0x409d4b
mov eax, dword [ebp - 4]
jmp 0x409d69
push eax
call fcn.0040caf9
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x409d69
mov eax, 0x1000000
pop esi
leave
ret 0xc
Function at 0x40a1fd
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x428068]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x40c55c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x40c58f
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c58a
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x40c5b9
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0040f370
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x40c6cf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40c6dd
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x40c79c
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
sub edi, 1
jne 0x40c6f5
pop edi
test esi, esi
je 0x40c7b8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x428068]
inc edx
sub esi, 1
jne 0x40c7a0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40e38b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e3ca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e3ca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e3ca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e3ca
cmp dword [ecx + 0x74], 0xe
jbe 0x40e3ca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41c9fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b49c
push 0x42b494
push str.FlsAlloc
push 0x1f
call fcn.0041c8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ca32
push dword [ebp + 8]
mov ecx, esi
call dword [0x42634c]
call esi
jmp 0x41ca38
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ca7c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b4ac
push 0x42b4a4
push str.FlsGetValue
push 0x21
call fcn.0041c8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cab3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42634c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41cabb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b4b4
push 0x42b4ac
push str.FlsSetValue
push 0x22
call fcn.0041c8da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41caf5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42634c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41e235
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 0x41e2d2
push ebx
push esi
call fcn.0041e1fe
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.0041e192
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e27f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e2d1
push edi
push eax
call fcn.0041b21a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e29f
call fcn.0041b1e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e2d0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e192
add esp, 0x20
test eax, eax
jne 0x41e2be
push edi
call fcn.0041b1e0
jmp 0x41e2c6
push ebx
call fcn.0041b1e0
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 0x425070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42509d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42509d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x59f66858
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..pdata_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1d8b64b8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10001010
Capabilities:
Get system information on windows
Hide thread from debugger

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push 0
call esi
push str.GetNativeSystemInfo
push str.kernel32
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x18c], 0
mov dword [esp + 0x190], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0xf
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x100010e8
lea ecx, [esp + 0xc]
push ecx
call eax
jmp 0x100010f3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 0xc]
cmp ax, 9
je 0x10001104
cmp ax, 6
jne 0x1000110c
mov dword [esp + 0x4c], 1
push str.RtlGetVersion
push str.ntdll
call esi
push eax
call edi
test eax, eax
je 0x10001129
lea ecx, [esp + 0x190]
push ecx
call eax
mov eax, dword [esp + 0x194]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x4c], 0
mov ebx, 1
je 0x10001168
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x50], 0
cmovne eax, ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push str.NtSetInformationThread
push str.ntdll.dll
mov dword [esp + 0x60], eax
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x100011a6
push 0
push 0
push 0x11
push 0xfffffffffffffffe
call esi
push 4
push 4
push 0x11
push 0xfffffffffffffffe
call esi
mov ecx, dword [esp + 0x34]
test eax, eax
cmove ecx, ebx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
call fcn.10002210
test eax, eax
je 0x100011ba
mov edi, 0x80000001
jmp 0x100011d1
lea ecx, [esp + 0x30]
call fcn.10002a30
cmp eax, 1
jne 0x100011cf
mov edi, 0x7fffffff
jmp 0x100011d1
xor edi, edi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x100011e9
push 0x8000
push 0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [esp + 0x168]
test esi, esi
je 0x1000123d
mov ecx, dword [esp + 0x170]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10001233
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001233
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.10003189
add esp, 8
mov ecx, dword [esp + 0x2ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000311c
mov esp, ebp
pop ebp
ret
Function at 0x10001530
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10006410], 0
push ebx
push esi
push edi
jne 0x1000154d
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test esi, esi
jle 0x1000156c
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
dec esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x10001574
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov ecx, edx
test esi, esi
jle 0x1000158e
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x10001596
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ecx, edx
test esi, esi
jle 0x100015b0
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x100015b8
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, edx
test esi, esi
jle 0x100015d2
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x100015da
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.1000161b

Function at 0x100016b0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
cmp dword [0x10006410], 0
push ebx
push esi
push edi
je 0x10001992
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push 0x33
call fcn.100016d8
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100019c0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10006408]
mov edx, dword [0x1000640c]
push ebx
push esi
push edi
test eax, eax
jne 0x10001a0b
test edx, edx
jne 0x10001a0b
call fcn.100016b0
mov esi, eax
mov dword [0x10006408], eax
mov edi, edx
mov dword [0x1000640c], edx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], edi
jmp 0x10001a1b
mov esi, eax
mov dword [ebp - 0x120], eax
mov edi, edx
mov dword [ebp - 0x124], edx
test esi, esi
jne 0x10001a27
test edi, edi
je 0x10001f6b
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x114], edx
push 0x33
call fcn.10001a46
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
xor edx, edx
pop ebx
call fcn.1000311c
mov esp, ebp
pop ebp
ret
Function at 0x402540
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xa60
mov eax, dword [0x43217c]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4026a4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402566
sub eax, edx
sar eax, 1
je 0x4026a4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4026a4
push 0x800
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00409000
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4025a6
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
push esi
jne 0x4025d2
push 0x42a328
push 0x400
lea ecx, [esp + 0x26c]
push ecx
jmp 0x4025e4
push 0x429de4
push 0x400
lea edx, [esp + 0x26c]
push edx
call fcn.00408230
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4026a4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, 1
lea edx, [esp + 0x3c]
push 0x42a334
push edx
call fcn.00408032
add esp, 8
test eax, eax
je 0x402654
lea eax, [esp + 0x3c]
push 0x42a338
push eax
call fcn.00408032
add esp, 8
test eax, eax
je 0x402654
lea ecx, [esp + 0x3c]
push str.Desktop.ini
push ecx
call fcn.00408032
add esp, 8
test eax, eax
jne 0x402681
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x402612
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00407e8b
add esp, 0xa60
ret
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00407e8b
add esp, 0xa60
ret
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00407e8b
add esp, 0xa60
ret
Function at 0x402850
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4276c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43217c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40292d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402895
sub eax, edx
sar eax, 1
je 0x40292d
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x402911
push esi
call fcn.00407bf4
add esp, 4
mov edi, eax
test edi, edi
je 0x402911
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x402908
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x42a2d8
push edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x402908
push 0x34
mov edx, dword [ebp - 0x1c]
push edx
push 0x34
mov eax, dword [ebp + 8]
push eax
call fcn.0040824e
add esp, 0x10
mov dword [ebp - 0x14], 1
push edi
call fcn.004082cb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403150
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427610
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43217c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4031f1
cmp eax, ebx
je 0x4031f1
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4031a3
sub eax, edx
sar eax, 1
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax]
push edx
push edi
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret