joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc82
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x439941
call fcn.004270e8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40fca7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40fced
lea ecx, [ebp - 0x10]
call fcn.00401570
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040991c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401530
mov eax, esi
call fcn.004271c0
ret 8

Function at 0x4139e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x413a30
call fcn.00411ac3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413a30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x413a73
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x413a5c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x413a5c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413a70
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415295
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4152b9
cmp dword [edi + 0x54], 0
jne 0x4152b9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00411ac3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00415256
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425c62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b654]
jne 0x425c6c
repz ret
jmp fcn.0042b3ae
Function at 0x4320b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042ad12
and dword [ebp - 4], 0
cmp dword [0x44f710], 0
mov ebx, eax
jne 0x432166
push 0x43f890
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432217
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f884
push edi
call esi
test eax, eax
je 0x432217
push eax
call fcn.0042aca0
mov dword [esp], 0x43f874
push edi
mov dword [0x44f710], eax
call esi
push eax
call fcn.0042aca0
mov dword [esp], 0x43f860
push edi
mov dword [0x44f714], eax
call esi
push eax
call fcn.0042aca0
mov dword [esp], 0x43f844
push edi
mov dword [0x44f718], eax
call esi
push eax
call fcn.0042aca0
pop ecx
mov dword [0x44f720], eax
test eax, eax
je 0x432166
push 0x43f82c
push edi
call esi
push eax
call fcn.0042aca0
pop ecx
mov dword [0x44f71c], eax
mov eax, dword [0x44f71c]
cmp eax, ebx
je 0x4321be
cmp dword [0x44f720], ebx
je 0x4321be
push eax
call fcn.0042ad1b
push dword [0x44f720]
mov esi, eax
call fcn.0042ad1b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4321be
test edi, edi
je 0x4321be
call esi
test eax, eax
je 0x4321b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4321b5
test byte [ebp - 0xc], 1
jne 0x4321be
or dword [ebp + 0x10], 0x200000
jmp 0x4321f7
mov eax, dword [0x44f714]
cmp eax, ebx
je 0x4321f7
push eax
call fcn.0042ad1b
pop ecx
test eax, eax
je 0x4321f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4321f7
mov eax, dword [0x44f718]
cmp eax, ebx
je 0x4321f7
push eax
call fcn.0042ad1b
pop ecx
test eax, eax
je 0x4321f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f710]
call fcn.0042ad1b
pop ecx
test eax, eax
je 0x432217
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432219
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40217f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402144
cmp dword [ebp + 0xc], 3
jbe 0x402144
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e50
mov dword [ebp - 0x74], eax
jmp 0x4020e3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40213f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40213a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402154
jmp 0x40213f
jmp 0x402144
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402171
jmp 0x40216c
jmp 0x40217f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402078
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4b6400], eax
pop esi
pop edi
pop ebp
ret
Function at 0x4078a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4078e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4078e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4078e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4078e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4078e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x415156
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 0x4151f3
push ebx
push esi
call fcn.0041511f
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.00415068
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4151a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4151f2
push edi
push eax
call fcn.00413e75
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4151c0
call fcn.00413e3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4151f1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415068
add esp, 0x20
test eax, eax
jne 0x4151df
push edi
call fcn.00413e3b
jmp 0x4151e7
push ebx
call fcn.00413e3b
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 0x415a1f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b40
push 0x425b38
push str.FlsAlloc
push 0x1e
call fcn.0041588c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415a53
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
jmp 0x415a59
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415a9d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b50
push 0x425b48
push str.FlsGetValue
push 0x20
call fcn.0041588c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ad4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41962c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192ce

Function at 0x419637
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041945d
Function at 0x41ae46
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420ec0
mov eax, dword [0x430244]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004192a7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae88
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41afe4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420ef0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x431b50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b26c
mov ecx, dword [esi*4 + 0x431b50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41afdd
cmp eax, dword [edi + ecx + 0x24]
jne 0x41afdd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41afdd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b26c
add esp, 0x14
test edx, edx
jl 0x41afdd
jg 0x41af53
test eax, eax
jb 0x41afdd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41afdd
jl 0x41af6d
cmp dword [ebp - 0x1008], eax
ja 0x41afdd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af8b
test ebx, ebx
je 0x41afc4
cmp ecx, edi
jae 0x41afc4
mov al, byte [ecx]
cmp al, 0xd
jne 0x41afa5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41afb1
cmp byte [ecx + 1], 0xa
jne 0x41afb1
inc ecx
jmp 0x41afb1
movzx eax, al
movsx eax, byte [eax + 0x430b60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af8b
cmp edx, ebx
jne 0x41af8b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41afe2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407cec
leave
ret
Function at 0x41ed7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x431b50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41edbe
cmp byte [ebx], 0xa
jne 0x41edbe
or byte [eax + edi + 0x28], 4
jmp 0x41edc3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eec1
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee17
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee21
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41edd4
jmp 0x41eec1
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee9e
cmp dword [ebp - 0xc], 0
je 0x41ee9e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x431b50]
test byte [eax + edi + 0x28], 0x48
je 0x41ee78
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee63
mov byte [esi], dl
jmp 0x41ee74
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x431b50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eec1
cmp byte [ebp - 1], 0xa
jne 0x41ee87
cmp esi, ebx
jne 0x41ee87
mov byte [esi], 0xa
jmp 0x41eec0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b28a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eec1
mov byte [esi], 0xd
jmp 0x41eec0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x431b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eec1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eecc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x431b50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0f
cmp word [esi], dx
jne 0x41ef0f
or byte [edi + eax + 0x28], 4
jmp 0x41ef14
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f067
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f047
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef56
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef8c
cmp eax, edx
jae 0x41ef98
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2e
jmp 0x41f067
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f043
cmp dword [ebp - 0x14], 0
je 0x41f043
mov eax, dword [ebx*4 + 0x431b50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f01b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe4
mov word [esi], cx
jmp 0x41f017
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x431b50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x431b50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x431b50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f067
pop ebx
cmp word [ebp - 4], bx
jne 0x41f02c
cmp esi, dword [ebp + 0xc]
jne 0x41f02c
mov word [esi], bx
jmp 0x41f064
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b28a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f067
push 0xd
jmp 0x41f060
mov ecx, dword [ebx*4 + 0x431b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f067
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420e80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420ead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420ead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401500
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x5fd4
call fcn.0040e580
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], edi
push edi
lea eax, [esp + 0x28]
push str..PhysicalDrive_d
push eax
call fcn.0040e472
add esp, 0xc
lea ecx, [esp + 0x24]
push ebp
push ebp
push 3
push ebp
push 3
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016c9
xor edx, edx
mov ecx, 0x1388
xor eax, eax
lea edi, [esp + 0x11c4]
mov dword [esp + 0x18], edx
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
push eax
lea ecx, [esp + 0x11cc]
mov dword [esp + 0x28], edx
push 0x4e20
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x2d1400
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call ebx
test eax, eax
je 0x401615
mov eax, dword [esp + 0x11dc]
lea ecx, [esp + eax*2 + 0x11c4]
push ecx
call fcn.00401360
lea edx, [esp + 0x9f8]
push eax
push edx
call fcn.0040e50b
add esp, 0xc
cmp word [0x438ed8], bp
jne 0x40161b
mov eax, dword [esp + 0x9f4]
and eax, 0xffff
push eax
call fcn.0040e54d
add esp, 4
test eax, eax
jne 0x4015fe
mov ecx, dword [esp + 0xa1a]
and ecx, 0xffff
push ecx
call fcn.0040e54d
add esp, 4
test eax, eax
je 0x40161b
lea edx, [esp + 0x9f4]
push edx
push 0x438ed8
call fcn.0040e50b
add esp, 8
jmp 0x40161b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1388
xor eax, eax
lea edi, [esp + 0x11c4]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c8]
push eax
push 0x4e20
push ecx
push ebp
push ebp
push 0x2d0c10
push esi
call ebx
test eax, eax
je 0x4016b8
lea edx, [esp + 0x11d4]
lea eax, [esp + 0x224]
push edx
push eax
call fcn.0040e50b
add esp, 8
cmp word [0x438ed8], bp
jne 0x4016be
mov ecx, dword [esp + 0x224]
and ecx, 0xffff
push ecx
call fcn.0040e54d
add esp, 4
test eax, eax
jne 0x4016a1
mov edx, dword [esp + 0x24a]
and edx, 0xffff
push edx
call fcn.0040e54d
add esp, 4
test eax, eax
je 0x4016be
lea eax, [esp + 0x224]
push eax
push 0x438ed8
call fcn.0040e50b
add esp, 8
jmp 0x4016be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
inc edi
cmp edi, 4
mov dword [esp + 0x10], edi
jl 0x40151c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5fd4
ret
Function at 0x401bf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push 0x43a8c0
push 0x438ed8
xor ebp, ebp
xor esi, esi
xor ebx, ebx
call fcn.0040e50b
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x18]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x401c52
call fcn.00401220
test eax, eax
jne 0x401c6e
call fcn.00401860
test eax, eax
jne 0x401c6e
call fcn.00401500
jmp 0x401c6e
xor edi, edi
test ebp, ebp
jne 0x401c6e
cmp word [0x438ed8], bp
jne 0x401c76
call fcn.00401750
inc edi
mov ebp, eax
cmp edi, 0xa
jl 0x401c54
cmp word [0x438ed8], 0
jbe 0x401dcc
mov ebp, 0x438ed8
push 4
push str.WD_W
push ebp
call fcn.0040e662
add esp, 0xc
test eax, eax
jne 0x401c9a
mov ebp, 0x438ee2
test ebp, ebp
je 0x401dcc
mov di, word [ebp]
test di, di
je 0x401db5
cmp di, 0x2d
je case.0x401cda.48
push 0
push 0xa
push ebx
push esi
call fcn.0040e6a0
and edi, 0xffff
mov esi, eax
mov ebx, edx
lea eax, [edi - 0x30]
cmp eax, 0x4a
ja case.0x401cda.48
jmp dword [eax*4 + 0x401ddc]
add esi, 1
jmp 0x401da9
add esi, 2
jmp 0x401da9
add esi, 3
jmp 0x401da9
add esi, 4
jmp 0x401da9
add esi, 5
jmp 0x401da9
add esi, 6
jmp 0x401da9
add esi, 7
jmp 0x401da9
add esi, 8
jmp 0x401da9
add esi, 9
jmp 0x401da9
add esi, 0xa
jmp 0x401da9
add esi, 0xb
jmp 0x401da9
add esi, 0xc
jmp 0x401da9
add esi, 0xd
jmp 0x401da9
add esi, 0xe
jmp 0x401da9
add esi, 0xf
jmp 0x401da9
add esi, 0x10
jmp 0x401da9
add esi, 0x11
jmp 0x401da9
add esi, 0x12
jmp 0x401da9
add esi, 0x13
jmp 0x401da9
add esi, 0x14
jmp 0x401da9
add esi, 0x15
jmp 0x401da9
add esi, 0x16
jmp 0x401da9
add esi, 0x17
jmp 0x401da9
add esi, 0x18
jmp 0x401da9
add esi, 0x19
jmp 0x401da9
add esi, 0x1a
jmp 0x401da9
add esi, 0x1b
jmp 0x401da9
add esi, 0x1c
jmp 0x401da9
add esi, 0x1d
jmp 0x401da9
add esi, 0x1e
jmp 0x401da9
add esi, 0x1f
jmp 0x401da9
add esi, 0x20
jmp 0x401da9
add esi, 0x21
jmp 0x401da9
add esi, 0x22
jmp 0x401da9
add esi, 0x23
adc ebx, 0
add ebp, 2
jne 0x401ca2
test esi, esi
jne 0x401dbd
test ebx, ebx
je 0x401dcc
mov eax, esi
pop edi
pop esi
mov edx, ebx
pop ebp
pop ebx
add esp, 0x114
ret
call fcn.00401b90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret