joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032020
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10079df3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1006c842
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.10073b50
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100753c7
test eax, eax
je 0x1003213c
mov ecx, dword [esp + 0x3c]
call fcn.10073b7d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10032100
push edi
mov ecx, esi
call fcn.10070413
mov ecx, esi
call fcn.100322e0
cmp dword [esp + 0x38], 1
jne 0x10032135
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1007054e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x1003da70
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007a2f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x1003daa9
inc eax
mov dword [esi + 0x10], eax
jmp 0x1003dbbc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1003dabd
mov eax, 0xffffffc7
jmp 0x1003dbbe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1003dace
cmp dword [esi + 8], eax
jne 0x1003dabd
cmp dword [esi + 8], eax
jne 0x1003dae7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x1003dae7
mov eax, 0xffffffc7
jmp 0x1003dbbe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1003dafb
push eax
mov ecx, ebx
call fcn.1003d2a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.10002690
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1003db2c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.100026b0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.1003ca10
test eax, eax
mov dword [esp + 0x38], eax
je 0x1003db5f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10221838
call fcn.10002890
mov eax, dword [esp + 0x38]
jmp 0x1003dbbe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.1003d8d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x1003dba3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.1003d8f0
mov esi, eax
test esi, esi
jne 0x1003dbd3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.1003d8d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x1003db75
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10221838
call fcn.10002890
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10221838
call fcn.10002890
mov eax, esi
jmp 0x1003dbbe
Function at 0x10040920
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10040953
push esi
call fcn.1004ea60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004094c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x100409d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100409c2
mov eax, dword [esi + 8]
test eax, eax
je 0x10040977
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100409be
cmp eax, 2
je 0x100409c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004096a
cmp eax, 3
je 0x1004099d
cmp eax, 1
jne 0x1004096a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1004096a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004096a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10040a00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100409e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10040a00
add esp, 4
pop esi
ret

Function at 0x10041270
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10041291
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10041291
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10041291
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100416e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100416eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x100417ee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10221b00]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10221b00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10221b00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10221b00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10221b00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10221b00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10221b00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10221b00]
xor eax, edx
inc ecx
dec edi
jne 0x10041706
pop edi
test esi, esi
je 0x10041810
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10221b00]
xor eax, edx
inc ecx
dec esi
jne 0x100417f2
pop esi
pop ebx
not eax
ret
Function at 0x1006d61e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1006d656
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10070203
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100701db
jmp 0x1006d662
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1006ed10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1006ed52
call fcn.10076149
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1006ed52
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1006ed49
xor eax, eax
jmp 0x1006ed5a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1006ed60
pop edi
pop esi
pop ebx
ret 4
Function at 0x408d7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408dbb
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408dc2
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40c4a0
add eax, ebx
mov dword [esp + 4], str._s_s.dll
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408f1c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x42e0e4], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408f59
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f44
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f36
mov dword [ecx*4 + 0x42e0e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408f2f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408f7b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42e0e0]
jmp 0x408f63
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x514
push esi
push edi
push 0x405b30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401160
mov edi, str.BootInst.log
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push 0x404034
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov esi, eax
test esi, esi
pop ebp
je 0x401160
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 0xa], ecx
push edx
mov dword [esp + 0x12], ecx
mov word [esp + 0xc], 0
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], cx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and eax, 0xffff
and edx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x12]
push edx
mov edx, dword [esp + 0x14]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x134]
push str._d__02d__02d__02d:_02d:_02d_:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x20
lea ecx, [esp + 0x11c]
push ecx
push esi
call edi
mov eax, dword [esp + 0x528]
lea edx, [esp + 0x52c]
push edx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0x14
push 0x404010
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
push 0x405b30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
add esp, 0x514
ret

Function at 0x401180
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
test edx, edx
je 0x4011b3
push ebx
push esi
lea esi, [edx]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x405010]
xor eax, edx
inc ecx
dec esi
jne 0x401193
pop esi
pop ebx
not eax
ret

Function at 0x4011c0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x405010
mov eax, edx
mov esi, 8
test al, 1
je 0x4011dc
shr eax, 1
xor eax, 0xedb88320
jmp 0x4011de
shr eax, 1
dec esi
jne 0x4011cf
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x405410
jl 0x4011c8
pop esi
ret
Function at 0x401230
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push 0x405410
call esi
push 0x80
push 0x405514
call esi
push 0x80
push 0x405618
call esi
push 0x80
push 0x40571c
call esi
push 0x80
push 0x405820
call esi
push 0x80
push 0x405924
call esi
push str.BOOT_EFI
push 0x66
push 0x405410
call fcn.00402130
add esp, 0xc
test eax, eax
pop esi
je 0x401329
push str.BOOT_EFI
push 0x67
push 0x405514
call fcn.00402130
add esp, 0xc
test eax, eax
je 0x401329
push str.BOOT_EFI
push 0x6a
push 0x405820
call fcn.00402130
add esp, 0xc
test eax, eax
je 0x401329
push str.BOOT_EFI
push 0x6b
push 0x405924
call fcn.00402130
add esp, 0xc
test eax, eax
je 0x401329
push str.BOOT_EFI
push 0x68
push 0x40571c
call fcn.00402130
add esp, 0xc
test eax, eax
je 0x401329
mov eax, dword [esp + 4]
push str.BOOT_EFI
test eax, eax
jne 0x401319
push 0x68
push 0x405618
call fcn.00402130
add esp, 0xc
ret
push 0x69
push 0x405618
call fcn.00402130
add esp, 0xc
ret
xor eax, eax
ret
Function at 0x401780
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x104
call fcn.004020f0
test eax, eax
jne 0x401835
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0x80
push 0x404af8
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404af8
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x405b48
push str.DefaultBackup
push 0x404330
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40181e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0xc]
push 0x404af8
push ecx
push str.default
push str.boot_loader
call esi
push 0x404af8
push 0
push 0
push 0x404330
call esi
pop esi
push 7
push 0x404af8
call ebx
pop edi
mov eax, 1
pop ebx
add esp, 0x104
ret
call fcn.004023b0
test eax, eax
je 0x401854
push str.BOOT_EFI
push 0x68
push 0x405618
call fcn.00402130
add esp, 0xc
jmp 0x401866
push str._default_current
push 0x404d00
call fcn.00402b30
add esp, 8
push 0x80
push 0x404e04
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x404e04
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
add esp, 0x104
ret
Function at 0x401890
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
sub esp, 0x104
push esi
call fcn.00401780
call fcn.004020f0
test eax, eax
jne 0x40198c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push 0x404bfc
call edi
push 0x404bfc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x80
push 0x404af8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x404af8
push 0
push 0x404bfc
push str.operating_systems
call esi
push 0x404af8
push 0x404484
push str.timeout
push str.boot_loader
call esi
push 7
push 0x404af8
call edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404af8
lea eax, [esp + 0xc]
push 0x104
push eax
push 0x405b48
push str.DefaultBackup
push 0x404330
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x401a1d
lea ecx, [esp + 4]
push 0x404af8
push ecx
push str.default
push str.boot_loader
call esi
push 0x404af8
push 0
push 0
push 0x404330
call esi
mov eax, 1
pop esi
add esp, 0x104
ret
call fcn.004023b0
test eax, eax
je 0x4019c3
push str._set_bootmgr_path_EFIMicrosoftBoot_bootmgfw.efi
push 0x404d00
call fcn.00402b30
push str._timeout_0
push 0x404d00
call fcn.00402b30
add esp, 0x10
mov eax, 1
pop esi
add esp, 0x104
ret
push 0x80
push 0x404bfc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x404bfc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str._default_current
push 0x404d00
call fcn.00402b30
push str._delete_3919457F_2759_4187_8912_C68B887E407D
push 0x404d00
call fcn.00402b30
push str._deletevalue_bootmgr_path
push 0x404d00
call fcn.00402b30
push str._timeout_0
push 0x404d00
call fcn.00402b30
add esp, 0x20
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x401f30
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, 0x130c
call fcn.00402c20
mov eax, dword [esp + 0x1310]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1320]
xor ebx, ebx
push edi
mov ecx, 0xff
mov dword [esi], ebx
mov dword [eax], ebx
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x1c], ebx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4020af
mov ecx, 0x3c0
xor eax, eax
lea edi, [esp + 0x41c]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x420]
push eax
push 0xf00
push ecx
push ebx
push ebx
push 0x70050
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x401fde
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402053
mov eax, dword [esp + 0x41c]
cmp eax, ebx
jne 0x401ffb
mov edx, dword [esp + 0x420]
mov eax, dword [esi]
shr edx, 2
add eax, edx
mov dword [esi], eax
jmp 0x402053
mov ecx, dword [esp + 0x420]
mov edi, dword [esi]
add edi, ecx
cmp eax, 1
mov ecx, edi
mov dword [esi], edi
mov dword [esp + 0x14], ecx
jne 0x402053
xor edx, edx
cmp ecx, ebx
jle 0x402053
lea eax, [esp + 0x46c]
cmp dword [eax - 0x20], 1
jne 0x402047
mov ecx, 4
mov edi, 0x403100
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x4020c3
mov esi, dword [esp + 0x1324]
mov ecx, dword [esp + 0x14]
inc edx
add eax, 0x90
cmp edx, ecx
jl 0x402020
xor ebx, ebx
mov eax, dword [esp + 0x10]
inc eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4020af
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x20]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401fa0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130c
ret
mov ecx, dword [esp + 0x1320]
mov eax, dword [esp + 0x10]
inc edx
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0x1320]
pop esi
pop ebp
mov dword [eax], edx
mov eax, 1
pop ebx
add esp, 0x130c
ret

Function at 0x4020f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 8]
pop edi
cmp edx, 6
sbb eax, eax
inc eax
add esp, 0x94
ret
Function at 0x402960
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x520
push ebx
lea eax, [esp + 8]
push esi
lea ecx, [esp + 0x10]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call fcn.00401f30
add esp, 8
test eax, eax
je 0x402b17
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x42d]
mov byte [esp + 0x42c], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x434]
push str.DeviceHarddisk_uPartition_u
push ecx
call esi
mov al, byte [0x40484e]
mov ecx, 0x40
mov byte [esp + 0x22], al
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
mov dx, word [0x40484c]
add esp, 0x10
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
mov word [esp + 0x18], dx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x120]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], bl
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x329]
mov byte [esp + 0x328], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x330]
push str.Harddisk_uPartition_u
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x224]
lea edx, [esp + 0x328]
push 0x104
push ecx
push edx
call ebp
lea esi, [esp + 0x120]
lea eax, [esp + 0x224]
pop edi
pop ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402ad6
cmp cl, bl
je 0x402ad2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402ad6
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402ab2
xor eax, eax
jmp 0x402adb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402aed
pop esi
mov eax, 1
pop ebx
add esp, 0x520
ret
mov esi, dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov ebx, 0x30
lea eax, [esp + 0x424]
lea ecx, [esp + 8]
push eax
push ecx
push 7
mov byte [esp + 0x14], bl
call esi
test eax, eax
jne 0x402adf
inc ebx
cmp ebx, 0x39
jle 0x402af8
pop esi
xor eax, eax
pop ebx
add esp, 0x520
ret