joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78afa955
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b589ec]
test dword [ebp + 8], eax
je 0x78afa9ea
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x808]
call fcn.78b4b308
xor eax, eax
pop ecx
mov word [ebp - 8], ax
mov eax, dword [0x78b555ec]
pop ecx
pop ebx
test eax, eax
je 0x78afa9dd
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b589f4]
push dword [0x78b589f0]
call fcn.78ac8210
add dword [0x78b589f0], 1
adc dword [0x78b589f4], 0
or eax, edx
jne 0x78afa9ea
push dword [0x78b555ec]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afa9ea
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab0807
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afe8d6
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afe92b
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afe8bc
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe903
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b4b308
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afe92b
test al, 0x10
jne 0x78afe929
test al, 1
je 0x78afe929
test byte [ebp + 0xc], 2
je 0x78afe929
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afe8fa
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78afe946
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afe96e
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe98b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b4b308
pop ecx
jmp 0x78afe969
test byte [ebp + 0xc], 0x80
je 0x78afe996
and eax, 0xfffffffe
jmp 0x78afe999
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afe97c
xor eax, eax
pop ebp
ret
Function at 0x78b00307
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b0032f
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b0034c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b4b308
pop ecx
jmp 0x78b0032a
test byte [ebp + 0xc], 0x80
je 0x78b00357
and eax, 0xfffffffe
jmp 0x78b0035a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b0033d
xor eax, eax
pop ebp
ret

Function at 0x78b2c16f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b58650], eax
mov dword [0x78b5864c], ecx
mov dword [0x78b58648], edx
mov dword [0x78b58644], ebx
mov dword [0x78b58640], esi
mov dword [0x78b5863c], edi
mov word [0x78b58668], ss
mov word [0x78b5865c], cs
mov word [0x78b58638], ds
mov word [0x78b58634], es
mov word [0x78b58630], fs
mov word [0x78b5862c], gs
pushfd
pop dword [0x78b58660]
mov eax, dword [ebp]
mov dword [0x78b58654], eax
mov eax, dword [ebp + 4]
mov dword [0x78b58658], eax
lea eax, [ebp + 8]
mov dword [0x78b58664], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b585a0], 0x10001
mov eax, dword [0x78b58658]
mov dword [0x78b58554], eax
mov dword [0x78b58548], 0xc0000409
mov dword [0x78b5854c], 1
mov eax, dword [0x78b54610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b553f8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b58598], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c270
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b58598], 0
jne 0x78b2c25b
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x511008], 0x8088405
inc edx
mov dword [ebx + 0x511008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4f553a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4f689f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x513348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x513348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x512178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f68a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4097c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be8ea
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.005731bb
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x409880
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0058f3af
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x6464ec
push eax
call fcn.0058f9de
push edi
push esi
call fcn.005734af
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 4
Function at 0x40ede0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bed46
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x80
push eax
lea eax, [ebp - 0x114]
mov esi, 1
push eax
push 6
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x40eec1
cmp word [ebp - 0x114], 0
jne 0x40ee4b
xor ecx, ecx
jmp 0x40ee63
lea ecx, [ebp - 0x114]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ee54
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
call fcn.00408a10
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x238]
call fcn.00408810
push edi
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push eax
push ecx
call fcn.004085c0
mov ecx, dword [ebp - 0x224]
mov bl, al
cmp ecx, 8
jb 0x40eeb9
inc ecx
push ecx
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.00409510
test bl, bl
je 0x40ef2d
xor eax, eax
jmp 0x40ef2f
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x80
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.00408810
push edi
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 1
push eax
push ecx
call fcn.004085c0
mov ecx, dword [ebp - 0x23c]
mov bl, al
cmp ecx, 8
jb 0x40ef26
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.00409510
xor eax, eax
test bl, bl
cmovne esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x40ef50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bedb2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
movzx edx, word [ebp - 0x12]
call fcn.0040edc0
mov edi, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc4]
movzx edx, word [ebp - 0x14]
call fcn.0040edc0
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
movzx edx, word [ebp - 0x34]
call fcn.0040edc0
push 0x65812c
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 4
push eax
call fcn.00410c30
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c]
call fcn.00410c70
push 0x65812c
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
call fcn.00410c30
push edi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call fcn.00410c70
add esp, 0x20
mov esi, eax
cmp ebx, esi
je 0x40f057
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x40f030
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.00409510
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x40f048
mov eax, dword [ebx]
jmp 0x40f04a
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.0040c680
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x40f06c
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
cmp eax, 8
jb 0x40f095
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
cmp eax, 8
jb 0x40f0be
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
cmp eax, 8
jb 0x40f0ed
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x84], 0
cmp eax, 8
jb 0x40f125
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
cmp eax, 8
jb 0x40f160
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb4], 0
cmp eax, 8
jb 0x40f19b
inc eax
lea ecx, [ebp - 0xdc]
push eax
push dword [ebp - 0xdc]
call fcn.00409510
cmp dword [ebx + 0x10], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x40f1c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bede8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f2a9
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0
push eax
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x2d1400
movq qword [ebp - 0x2c], xmm0
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40f2a2
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00576a65
push esi
mov ebx, eax
push 0
push ebx
call fcn.005903b0
add esp, 0x10
lea eax, [ebp - 0x18]
push 0
push eax
push esi
push ebx
push 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40f2b0
push ebx
call fcn.00576861
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40f374
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x40f358
cmp eax, dword [ebx + 4]
jae 0x40f358
add eax, ebx
lea ecx, [ebp - 0x60]
push eax
call fcn.004088b0
push eax
lea ecx, [ebp - 0x44]
call fcn.00409bb0
lea ecx, [ebp - 0x60]
call fcn.00408870
push 1
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x20
push eax
lea ecx, [ebp - 0x44]
call fcn.004104d0
push eax
push 0
lea ecx, [ebp - 0x44]
call fcn.004090b0
sub esp, 8
mov byte [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x44]
push eax
call fcn.00410460
inc eax
lea ecx, [ebp - 0x44]
push eax
call fcn.00409150
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x44]
call fcn.0040d020
push ebx
call fcn.00576861
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x40f36a
push ebx
call fcn.00576861
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.00408870
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x40f500
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bee76
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xf
push str.unknown_machine
call fcn.00408bb0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005903b0
add esp, 0xc
mov dword [ebp - 0x414], 0x100
lea eax, [ebp - 0x414]
mov esi, 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x40f671
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x430]
call fcn.00408810
mov dword [ebp - 4], 0
cmp dword [ebp - 0x420], 0
sete al
test al, al
jne 0x40f5c7
cmp dword [ebp - 0x41c], 8
lea ecx, [ebp - 0x430]
mov edx, edi
cmovae ecx, dword [ebp - 0x430]
call fcn.0040cf70
xor esi, esi
jmp 0x40f64f
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.005903b0
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x40f64f
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x448]
call fcn.00408810
mov byte [ebp - 4], 1
cmp dword [ebp - 0x438], 0
je 0x40f63f
cmp dword [ebp - 0x434], 8
lea ecx, [ebp - 0x448]
mov edx, edi
cmovae ecx, dword [ebp - 0x448]
call fcn.0040cf70
xor esi, esi
jmp 0x40f644
mov esi, 0xff
lea ecx, [ebp - 0x448]
call fcn.004087d0
mov ecx, dword [ebp - 0x41c]
cmp ecx, 8
jb 0x40f66d
inc ecx
push ecx
push dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
call fcn.00409510
mov eax, esi
jmp 0x40f676
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret

Function at 0x4107f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5becd6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005765c3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.005733ac
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret