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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
fld qword [0x4808e0]
push dword [ebp + 8]
fstp qword [esp + 0xc]
fld qword [0x480a48]
push 0x104
fstp qword [esp + 8]
fld qword [esp + 0x10]
fsub qword [esp + 8]
fsub qword [esp + 8]
fadd qword [esp + 0x10]
fld qword [esp + 8]
fmul qword [0x4809d8]
faddp st(1)
fstp qword [esp + 0x10]
fld qword [esp + 8]
fmul qword [0x480a58]
fadd qword [esp + 0x10]
fadd qword [esp + 0x10]
fld qword [0x480a18]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 8]
fld qword [esp + 0x10]
fsub qword [0x480a40]
fadd qword [esp + 0x10]
fld qword [esp + 0x10]
fmul qword [0x480a38]
fsubp st(1)
fld qword [0x480948]
fsub st(1), st(0)
fld qword [esp + 8]
fsubp st(2)
fld qword [esp + 0x10]
faddp st(2)
fld qword [esp + 8]
fsubp st(2)
fld qword [esp + 8]
fsubp st(2)
fxch st(1)
faddp st(2)
fld qword [esp + 8]
fsubp st(2)
fld qword [0x480a30]
fsub st(2), st(0)
fld qword [esp + 8]
faddp st(3)
fxch st(2)
fstp qword [esp + 0x10]
fld qword [esp + 8]
fmul qword [esp + 0x10]
fsub qword [0x480a28]
fadd qword [esp + 8]
fld qword [esp + 8]
fmul qword [0x4809b8]
faddp st(1)
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fmul qword [esp + 0x10]
fstp qword [esp + 8]
fmul qword [esp + 0x10]
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 8]
fld qword [esp + 8]
fmulp st(2)
fld qword [esp + 8]
fmulp st(2)
fsubrp st(1)
fsub qword [0x480a00]
fld qword [esp + 8]
fmul qword [esp + 0x10]
faddp st(1)
fld qword [esp + 0x10]
fmul qword [0x480a20]
faddp st(1)
fsub qword [esp + 8]
fld qword [esp + 8]
fmul qword [0x480908]
faddp st(1)
fadd qword [esp + 8]
fstp qword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4488de
Capabilities:
Resume thread

Disassembly:
push 0x38
mov eax, 0x460afc
call fcn.0045c7c9
mov ebx, dword [ebp + 8]
xor eax, eax
lea esi, [ebx + 0x10]
push esi
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x18]
lea esi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
lea eax, [ebx + 8]
push eax
call fcn.00414c31
pop ecx
call fcn.00447038
push ebx
push 0x44869d
mov dword [ebx], eax
call fcn.00444b4e
fld qword [0x480ab8]
mov dword [ebx + 4], eax
fstp qword [ebp - 0x3c]
fld qword [0x480ab0]
fstp qword [ebp - 0x34]
fld qword [0x480aa8]
fstp qword [ebp - 0x24]
fld qword [0x480aa0]
fstp qword [ebp - 0x1c]
fld qword [0x480a98]
fstp qword [ebp - 0x2c]
fld qword [0x480a90]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fmul qword [0x480a20]
fadd qword [ebp - 0x24]
fld qword [ebp - 0x2c]
fmul qword [0x480a88]
faddp st(1)
fsub qword [0x4808e8]
fadd qword [ebp - 0x34]
fsub qword [0x4809d8]
fld qword [ebp - 0x1c]
fmul qword [ebp - 0x3c]
faddp st(1)
fstp qword [ebp - 0x24]
fld qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4489bc
fld qword [ebp - 0x2c]
fmul qword [ebp - 0x3c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x24]
fsub qword [0x4809e0]
fsub qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x480a38]
faddp st(1)
fadd qword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x24]
fmul qword [0x480a80]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x2c]
fadd qword [0x4808f8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x3c]
push dword [ebx + 4]
fadd qword [0x480988]
fstp qword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
call fcn.0045c8a1
ret 4
Function at 0x448a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
fld qword [0x480a18]
mov eax, 0x5a4d
fst qword [ebp - 0x28]
fld qword [0x4809b0]
fst qword [ebp - 0x28]
fld qword [0x480a10]
fst qword [ebp - 0x28]
fld qword [0x480a08]
fstp qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x20]
fadd qword [0x480a00]
fsub qword [ebp - 0x28]
faddp st(1)
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x20]
cmp word [edx], ax
je 0x448a61
fstp st(0)
xor eax, eax
leave
ret
mov ecx, dword [edx + 0x3c]
fld qword [0x480ab8]
fstp qword [ebp - 0x28]
fld qword [0x480ab0]
fstp qword [ebp - 0x20]
fld qword [0x480aa8]
fstp qword [ebp - 0x18]
fld qword [0x480aa0]
fstp qword [ebp - 8]
fld qword [0x480a98]
fstp qword [ebp - 0x10]
fld qword [0x480a90]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x480a20]
fadd qword [ebp - 0x18]
fld qword [ebp - 0x10]
fmul qword [0x480a88]
faddp st(1)
fsub qword [0x4808e8]
fadd qword [ebp - 0x20]
fsub qword [0x4809d8]
fld qword [ebp - 8]
fmul qword [ebp - 0x28]
faddp st(1)
fstp qword [ebp - 0x18]
fld qword [ebp - 8]
fld qword [ebp - 8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x448ae3
fld qword [ebp - 0x10]
fmul qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x18]
fsub qword [0x4809e0]
fsub qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x480a38]
faddp st(1)
fadd qword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x18]
fmul qword [0x480a80]
fstp qword [ebp - 8]
fld qword [ebp - 0x10]
fadd qword [0x4808f8]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x28]
cmp dword [ecx + edx], 0x4550
fadd qword [0x480988]
fstp qword [ebp - 8]
jne 0x448a5b
cmp dword [ecx + edx + 0x98], 0
je 0x448a5b
fld qword [0x480968]
fstp qword [ebp - 0x20]
fld qword [0x480a60]
fstp qword [ebp - 8]
fld qword [0x480960]
fst qword [ebp - 0x10]
fld qword [0x480928]
fstp qword [ebp - 0x18]
fld qword [ebp - 8]
fcomp qword [ebp - 0x18]
fnstsw ax
fld qword [0x480a78]
fld1
test ah, 1
jne 0x448bbe
fld qword [ebp - 0x18]
fmul qword [0x480a58]
fadd qword [ebp - 8]
fsub qword [ebp - 0x20]
fld qword [ebp - 0x10]
fmul st(3)
faddp st(1)
fld qword [ebp - 8]
fdivrp st(4)
fld qword [ebp - 8]
fmulp st(4)
faddp st(3)
fadd st(2), st(0)
fld qword [ebp - 8]
faddp st(3)
fld qword [ebp - 0x10]
fmul qword [0x4808f0]
fsubp st(3)
fld qword [ebp - 0x10]
fmul qword [0x480a50]
faddp st(3)
fxch st(2)
fstp qword [ebp - 0x10]
jmp 0x448bc0
fstp st(2)
fld qword [ebp - 0x20]
fsub qword [ebp - 8]
fsubrp st(2)
fld qword [ebp - 8]
fmul qword [ebp - 0x20]
faddp st(2)
fxch st(1)
fsubrp st(2)
fxch st(1)
fstp qword [ebp - 0x18]
fld qword [ebp - 0x10]
fld qword [0x480a68]
fmul st(1), st(0)
fld qword [ebp - 0x18]
fmul qword [ebp - 0x10]
fsubp st(2)
fxch st(1)
fsubrp st(2)
fld qword [ebp - 0x10]
faddp st(2)
fxch st(1)
fadd qword [0x480900]
fsub qword [ebp - 0x20]
fsub qword [ebp - 8]
fstp qword [ebp - 8]
fsubr qword [ebp - 8]
fstp qword [ebp - 8]
fld qword [ebp - 0x18]
mov eax, dword [ecx + edx + 0x98]
fadd qword [0x480938]
add eax, edx
fstp qword [ebp - 0x18]
leave
ret
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401149
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40115d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40117e
cmp esi, eax
jae 0x401157
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401170
cmp esi, eax
jae 0x401157
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401db0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x409e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov dword [esp + 4], 0
mov eax, dword [0x40ed54]
push edi
mov ecx, 0x40ed54
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x401e14
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401360
mov esi, dword [esp + 8]
push esi
push 0
push 0
push 7
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test esi, esi
jne 0x401e2b
xor eax, eax
jmp 0x401e39
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e30
sub eax, edx
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov eax, str.Symantec_Setup_Launcher.lnk
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e48
sub eax, edx
push eax
push str.Symantec_Setup_Launcher.lnk
lea ecx, [esp + 0x10]
call fcn.00401d10
mov esi, dword [esp + 8]
add esi, 0xfffffff0
push esi
call fcn.004013b0
mov edi, dword [esp + 0x20]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e98
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402290
Capabilities:
Access peb ldr_data
Delete file
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x409ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push str.SoftwareSymantecSetupLauncher
push 0x80000002
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
call edi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402344
mov esi, dword [esp + 0x10]
push str.Setup
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x402301
push esi
call ebp
xor esi, esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push 0x40a2a8
push 0x80000002
mov dword [esp + 0x24], 0
call edi
test eax, eax
jne 0x402344
test esi, esi
je 0x40232c
push esi
call ebp
test eax, eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
jne 0x402344
push 0x40a2bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402385
lea edx, [esp + 0x24]
push edx
call fcn.00401db0
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402380
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.00401eb0
test esi, esi
je 0x40238c
push esi
call ebp
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x402680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x40e0c0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [esp + 0x1b4], eax
xor eax, eax
mov dword [esp + 0x10], 0x94
mov dword [esp + 0x14], 0
mov ecx, 0x23
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402766
cmp dword [esp + 0x20], 1
jne 0x40277e
mov ebx, dword [ebp + 8]
mov byte [esp + 0xa8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xa9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x402766
lea ecx, [esp + 0xa8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0xa8]
push edi
push edx
call fcn.00403b38
add esp, 8
test eax, eax
je 0x402748
mov eax, esi
mov ecx, dword [esp + 0x1b4]
xor ecx, dword [ebp + 4]
call fcn.00402cef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [esp + 0x1b4]
xor ecx, dword [ebp + 4]
call fcn.00402cef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x1b4]
xor ecx, dword [ebp + 4]
call fcn.00402cef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x1b4]
xor ecx, dword [ebp + 4]
call fcn.00402cef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403953
sbb al, 0x89
mov esi, 0xc0458d0b
push eax
call fcn.00403963
push eax
push esi
push dword [ebp + 8]
call fcn.00403918
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00403953
add byte [ebx - 0x7a], bh
or byte [ebp + 0x5d88e845], cl
call 0xe99dc514
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00403963
push eax
push esi
push dword [ebp + 8]
call fcn.00403918
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403963
push eax
push esi
push dword [ebp + 8]
call fcn.00403918
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403963
push eax
push esi
push dword [ebp + 8]
call fcn.00403918
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403953
nop
mov byte [0x9d88cfac], al
jl 0x403dd8
invalid
invalid
Function at 0x406f4f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40e0c0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e358]
je 0x406f7c
inc eax
cmp eax, 0x12
jb 0x406f6d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e358]
jne 0x4070b0
mov eax, dword [0x40edb4]
cmp eax, 1
je 0x40708b
cmp eax, edx
jne 0x406fac
cmp dword [0x40e104], 1
je 0x40708b
cmp ecx, 0xfc
je 0x4070b0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406fe5
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004090a0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00408350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407027
lea eax, [ebp - 0x10c]
push eax
call fcn.00408350
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b764
push edi
call fcn.00403c70
add esp, 0x10
push edi
call fcn.00408350
push dword [esi + 0x40e35c]
mov ebx, eax
call fcn.00408350
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004036d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004090a0
push edi
push ebx
call fcn.004090b0
push 0x40b760
push ebx
call fcn.004090b0
push dword [esi + 0x40e35c]
push ebx
call fcn.004090b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408fa3
add esp, 0x2c
jmp 0x4070b0
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40e35c]
push dword [esi]
call fcn.00408350
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00402cef
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407aaa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40e0c0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x407ad3
xor eax, eax
jmp 0x407c41
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x410240]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x407b06
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00409625
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407bd8
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x407c13
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x407b61
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407b52
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x407b35
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ba1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x407baa
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x407b26
jmp 0x407bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x407c3c
cmp dword [ebp - 8], edi
je 0x407c13
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x407c05
call fcn.004081f8
mov dword [eax], 9
call fcn.00408201
mov dword [eax], esi
jmp 0x407c0e
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407bfa
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x407bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x407bac
push dword [ebp - 8]
call fcn.0040820a
pop ecx
or eax, 0xffffffff
jmp 0x407c3f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407c28
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x407c28
xor eax, eax
jmp 0x407c3f
call fcn.004081f8
mov dword [eax], 0x1c
call fcn.00408201
mov dword [eax], edi
jmp 0x407c0e
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00402cef
leave
ret
Function at 0x408c05
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004036d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408c9a
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40ef28]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x408c9a
cmp eax, 1
je 0x408cb2
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408c9a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x408c6f
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x408c96
xor eax, eax
inc eax
jmp 0x408cce
cmp esi, ebx
jae 0x408c9e
xor eax, eax
jmp 0x408cce
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40ef28]
jmp 0x408cb4
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408fa3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f0b8], ebx
push esi
push edi
jne 0x409023
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40905e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40bfbc
push edi
call esi
test eax, eax
mov dword [0x40f0b8], eax
je 0x40905e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f0bc], eax
call esi
cmp dword [0x40ef28], 2
mov dword [0x40f0c0], eax
jne 0x409023
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f0c8], eax
je 0x409023
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f0c4], eax
mov eax, dword [0x40f0c4]
test eax, eax
je 0x409068
call eax
test eax, eax
je 0x40904f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f0c8]
test eax, eax
je 0x40904f
test byte [ebp - 8], 1
jne 0x409068
cmp dword [0x40ef34], 4
jb 0x409062
or byte [ebp + 0x12], 0x20
jmp 0x409087
xor eax, eax
jmp 0x409097
or byte [ebp + 0x12], 4
jmp 0x409087
mov eax, dword [0x40f0bc]
test eax, eax
je 0x409087
call eax
mov ebx, eax
test ebx, ebx
je 0x409087
mov eax, dword [0x40f0c0]
test eax, eax
je 0x409087
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f0b8]
pop edi
pop esi
pop ebx
leave
ret