joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3721
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 0x4f37be
push ebx
push esi
call fcn.004f36ea
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.004ef701
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f376b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f37bd
push edi
push eax
call fcn.004ecccf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f378b
call fcn.004ecc2c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f37bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004ef701
add esp, 0x20
test eax, eax
jne 0x4f37aa
push edi
call fcn.004ecc2c
jmp 0x4f37b2
push ebx
call fcn.004ecc2c
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 0x4f37c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f37d2
pop esi
ret
push ebx
push edi
push esi
call fcn.004f36ea
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ecccf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f37fa
push ebx
push esi
push edi
call fcn.004d0380
add esp, 0xc
push 0
call fcn.004ecc2c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f3f46
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f3a6d

Function at 0x5b84a7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x62163c
push esi
call fcn.004f4c9a
pop ecx
pop ecx
test eax, eax
jne 0x5b84d5
xor al, al
jmp 0x5b8552
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005b81ea
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5b850f
push dword [ebp - 0x210]
call fcn.004d2e43
xor al, al
jmp 0x5b8550
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5b8515
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5b8535
push edx
call fcn.005b83dd
pop ecx
test al, al
je 0x5b8500
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5b8543
mov bl, 1
push dword [ebp - 0x210]
call fcn.004d2e43
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cdf5d
leave
ret
Function at 0x4010d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x12c
push esi
mov esi, ecx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x50]
push edx
push eax
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40112d
or eax, 0xffffffff
pop esi
add esp, 0x12c
ret
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
pop esi
add esp, 0x12c
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4020a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402880
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4020c1
test byte [esp + 8], 2
je 0x4020c1
mov dword [0x40bcec], 0xd
mov dword [0x40bcf0], 5
jmp 0x40209c
xor eax, eax
ret

Function at 0x404751
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409668
cmp edx, dword [eax]
je 0x404773
add eax, 8
inc ecx
cmp eax, 0x4096f8
jl 0x404764
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409668]
jne 0x4048a1
mov eax, dword [0x40bce8]
cmp eax, 1
je 0x40487b
test eax, eax
jne 0x4047a4
cmp dword [0x409444], 1
je 0x40487b
cmp edx, 0xfc
je 0x4048a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4047db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004028f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405f40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40481e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405f40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408518
push edi
call fcn.00406d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004028f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402900
lea eax, [ebp - 0xa0]
push 0x4084f8
push eax
call fcn.00402900
push dword [esi + 0x40966c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402900
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406c88
add esp, 0x2c
pop edi
jmp 0x4048a1
lea eax, [ebp + 8]
lea esi, [esi + 0x40966c]
push 0
push eax
push dword [esi]
call fcn.00405f40
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 0x4013ea
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40141f
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40141c
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x401428
add edx, 0x28
cmp edx, esi
jne 0x40140a
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401425

Function at 0x401867
Capabilities:
Parse pe header

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

Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x40ce20
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aae2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4498ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov edi, dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString_const__]
lea ecx, [esi + 0xc]
call edi
push dword [ebp + 0xc]
lea ebx, [esi + 0x10]
mov ecx, ebx
call edi
push dword [ebp + 0x10]
lea ecx, [esi + 0x14]
call edi
push dword [ebp + 0x14]
add esi, 0x18
mov ecx, esi
call edi
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
add ecx, 0x1c
call edi
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x1c]
lea ecx, [ecx + 0x20]
call edi
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x20]
lea ecx, [ecx + 0x24]
call edi
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x24]
lea ecx, [ecx + 0x28]
call edi
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x28]
lea ecx, [ecx + 0x2c]
call edi
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x2c]
lea ecx, [ecx + 0x30]
call edi
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QSettings::constructor_class_QString_const___enum_QSettings::Format__class_QObject__]
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ebx
lea ecx, [ebp + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
push 7
push str.version
mov byte [ebp - 4], 4
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QSettings::setValue_class_QString_const___class_QVariant_const__]
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040d400
neg eax
lea ecx, [ebp - 0x18]
sbb eax, eax
neg eax
mov dword [ebx + 8], eax
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QSettings::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x412c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4498ec]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x412cc2
cmp byte [esi + 0x3d], 0
je 0x412cc2
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x412caf
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x412c73
sub eax, 1
je 0x412c77
sub eax, 2
jne 0x412caf
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00427b35
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x412c97
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x412caf
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00427b35
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00427b35
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.00427b35
add esp, 0x28
ret
Function at 0x413540
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa00
mov eax, dword [0x4498ec]
xor eax, esp
mov dword [esp + 0x9fc], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x413648
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413648
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea eax, [esp + 0x30]
push 0x3e8
push eax
lea eax, [esp + 0x240]
push eax
call edi
mov ebx, dword [esp + 0xa1c]
lea eax, [esp + 0x244]
add esp, 0xc
mov ecx, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4135d2
test dl, dl
je 0x4135ce
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4135d2
add eax, 2
add ecx, 2
test dl, dl
jne 0x4135b2
xor eax, eax
jmp 0x4135d7
sbb eax, eax
or eax, 1
test eax, eax
je 0x413669
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x413648
nop
push 0x3e8
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x628]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x620]
mov eax, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x413630
test dl, dl
je 0x41362c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x413630
add ecx, 2
add eax, 2
test dl, dl
jne 0x413610
xor eax, eax
jmp 0x413635
sbb eax, eax
or eax, 1
test eax, eax
je 0x413669
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4135f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x9fc]
xor ecx, esp
call fcn.00427b35
add esp, 0xa00
ret
mov ecx, dword [esp + 0xa08]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427b35
add esp, 0xa00
ret
Function at 0x413bf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4498ec]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x413c20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00427b35
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x413c51
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x413c51
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00427b35
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x413d5b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x413c7a
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x413caf
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00427b35
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x413d17
sub eax, 1
je 0x413d17
sub eax, 2
jne 0x413d5b
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.004122f0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00427b35
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x413d37
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x413d5b
lea eax, [esp + 0xc]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
je 0x413d5b
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00427b35
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427b35
add esp, 0x30
ret 4
Function at 0x414230
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x44]
xorps xmm0, xmm0
push esi
mov esi, dword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0x3c
call esi
mov dword [esp + 0x14], eax
mov ecx, 5
xor eax, eax
mov dword [esp + 8], 0x4c
cmp byte [esp + 0x50], al
cmovne eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
call esi
cmp byte [esp + 0x58], 0
mov dword [esp + 0x18], eax
mov eax, str.runas
cmove eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x20
setg al
mov dword [esi + 8], 0
mov byte [esi], al
mov dword [esi + 4], ecx
jle 0x414310
cmp byte [esp + 0x54], 0
je 0x414310
push 0xffffffffffffffff
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push eax
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x50]
mov dword [esi + 8], ecx
mov eax, esi
pop esi
add esp, 0x3c
ret
Function at 0x414c50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
test eax, eax
jg 0x414c6f
jl 0x414c66
test ebp, ebp
jne 0x414c6f
pop ebp
xor eax, eax
xor edx, edx
pop ebx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x414c86
push eax
push ebp
push dword [esp + 0x14]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebp
pop ebx
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x414cc6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x414cc6
mov edi, dword [esp + 0x14]
cmp eax, ebp
mov esi, ebp
cmovb esi, eax
push esi
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebp
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
mov esi, dword [esp + 0x14]
je 0x414d3c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x414cf3
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x414d28
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x414d4e
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x414d02
test ecx, ecx
je 0x414d3c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov edx, dword [esp + 0x1c]
sub ebp, ecx
pop edi
pop esi
mov eax, ebp
sbb edx, 0
pop ebp
pop ebx
ret 0xc
mov edx, dword [esp + 0x1c]
sub ebp, edi
pop edi
pop esi
mov eax, ebp
sbb edx, 0
pop ebp
pop ebx
ret 0xc
Function at 0x414d60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x414d85
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x414da8
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x414daa
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x414e25
jg 0x414dbd
test esi, esi
je 0x414e25
test eax, eax
jl 0x414e07
jg 0x414dc7
test ebp, ebp
je 0x414e07
cmp edi, eax
jg 0x414dd7
jl 0x414dd1
cmp esi, ebp
jae 0x414dd7
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
sub esi, ebp
sbb edi, dword [esp + 0x20]
add ecx, ebp
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
test edi, edi
jl 0x414e25
jg 0x414e0b
test esi, esi
je 0x414e25
jmp 0x414e0b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x414e25
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc