joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4530f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460b4c]
cmp dword [eax + 0x30], 0
je 0x4531a2
cmp dword [ebx + 0x94], 0
jne 0x45319c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453088
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45319c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453162
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45319c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c624
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453171
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453d00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453d35
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044bc
jmp 0x453d42
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404420
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454ce8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454d29
mov eax, esi
call fcn.0043b5f8
test al, al
je 0x454d29
mov eax, dword [ebx + 0x84]
call fcn.0043b398
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454d29
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b398
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c165
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x45c140
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x45c59f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0045b0e4
call 0x45c165
cmp dword [ecx], edi
add byte [edi + 0x458dfc45], cl
call 0xe94216fa
push ecx
test dl, bh
dec dword [ebp + 0x3b8d055]
add byte [eax], al
add al, ch
insb byte es:[edi], dx
insb byte es:[edi], dx
cli
dec dword [ebx + 0x558dd045]
aam 0xe8
adc dword [edi - 5], eax
dec dword [ebx + 0x558bd445]
call 0xfacc047d
push dword [ebp + 0x35]
call sub.kernel32.dll_GetTickCount
add eax, 0xc350
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call sub.kernel32.dll_GetTickCount
xor edx, edx
cmp edx, dword [ebp - 0x24]
jne 0x45c1bd
cmp eax, dword [ebp - 0x28]
jbe 0x45c1c4
jmp 0x45c1bf
jle 0x45c1c4
call fcn.004042d4
push 0x64
call sub.kernel32.dll_Sleep_1
jmp 0x45c1aa
Function at 0x401260
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00412cf0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401339
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x401305
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4012de
cmp word [esp + 0x118], 4
jb 0x401339
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040bc96
add esp, 0x120
ret
cmp eax, 2
jae 0x4012e8
cmp eax, 1
jne 0x401339
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040bc96
add esp, 0x120
ret
cmp eax, 6
jne 0x401339
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40132f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040bc96
add esp, 0x120
ret
cmp eax, 1
jne 0x401339
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040bc96
add esp, 0x120
ret

Function at 0x4016b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4016e2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4016fb
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret
Function at 0x401710
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], eax
xor eax, eax
xor edx, edx
push 0x288
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x28], dx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
xor ebx, ebx
call fcn.0040c2d2
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4017a3
push ebp
call fcn.0040c447
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c2d2
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x401887
mov eax, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x401887
push edi
jmp 0x4017d4
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
test esi, esi
je 0x4017ef
mov ecx, dword [eax + 0x194]
mov dword [esi], ecx
mov dx, word [eax + 0x198]
mov word [esi + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x401874
lea esp, [esp]
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401808
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40181d
mov ecx, 0x10
xor eax, eax
test ecx, ecx
jl 0x40183d
cmp eax, ecx
jne 0x40182e
xor esi, esi
mov word [esp + eax*2 + 0x28], si
movsx si, byte [edx + eax]
mov word [esp + eax*2 + 0x28], si
inc eax
cmp eax, ecx
jle 0x401825
lea eax, [esp + 0x28]
push eax
call fcn.00401160
add esp, 4
test eax, eax
je 0x401865
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push eax
call fcn.0040bcd1
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x401800
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test ebx, ebx
jg 0x401886
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4017d0
pop edi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
test ebp, ebp
je 0x40189a
push ebp
call fcn.0040c447
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x3c
ret
Function at 0x401aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push eax
mov esi, ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x1c]
cmp eax, 5
jne 0x401b2d
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x401b23
sub eax, 1
je 0x401b0c
sub eax, 1
je 0x401b02
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0040bc96
add esp, 0x124
ret
mov ebx, 0x8a
lea ebp, [ebx + 4]
jmp 0x401b48
push 0x41fcd4
call fcn.0040c4d5
mov ebx, 0x88
add esp, 4
lea ebp, [ebx + 4]
jmp 0x401b48
mov ebx, 0xa0
lea ebp, [ebx + 4]
jmp 0x401b48
cmp eax, 4
jne 0x401ae8
cmp dword [esp + 0x20], 0
jne 0x401ae8
cmp dword [esp + 0x28], 2
jne 0x401ae8
mov ebx, 0x98
lea ebp, [ebx + 4]
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401ae8
push esi
call fcn.00401950
mov esi, eax
add esp, 4
test esi, esi
je 0x401ae8
mov ecx, dword [esi]
push edi
mov edi, dword [esi + 8]
push ecx
push str.process_id__u
call fcn.0040c4d5
push edi
push str.pEprocess__u
call fcn.0040c4d5
push esi
call fcn.0040c278
push str.ReadVirtualMemory
call fcn.0040c4d5
add esp, 0x18
lea eax, [edi + ebx]
lea ecx, [esp + 0x18]
call fcn.00401a10
test eax, eax
je 0x401c00
lea eax, [edi + ebp]
lea ecx, [esp + 0x10]
call fcn.00401a10
test eax, eax
je 0x401c0d
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
add esi, 4
call fcn.00401a50
add esp, 4
test eax, eax
je 0x401c0d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00401a50
add esp, 4
test eax, eax
je 0x401c0d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401c0d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x124
ret

Function at 0x401c30
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401c78
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401c78
lea esi, [esp + 0x10]
call fcn.004018b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401c87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x401e90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00412cf0
add esp, 0xc
cmp dword [0x425050], 3
jne 0x401ef0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41fd40
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040c5f1
add esp, 0xc
jmp 0x401eff
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x41fd44
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040bc96
add esp, 0x20c
ret
Function at 0x402510
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41fd9c
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040c74b
add esp, 0xc
test eax, eax
je 0x402534
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push esi
push edi
push 2
push 0
push edx
call fcn.0040c828
mov eax, dword [esp + 0x14]
push eax
call fcn.0040ca4a
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040c828
lea edx, [esi + 0x32000]
push edx
call fcn.0040c2d2
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
push 1
push esi
push edi
call fcn.0040cd58
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040cdec
lea eax, [edi + esi]
push 0x19000
lea edx, [eax + 0x19000]
push edx
push eax
call fcn.00413720
mov eax, dword [esp + 0x50]
add esp, 0x40
push 0x41fda4
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040c74b
add esp, 0xc
test eax, eax
je 0x4025bc
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x2710
div ecx
mov eax, dword [esp + 8]
push eax
push 1
add edx, esi
push edx
push edi
call fcn.0040cfca
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040cdec
add esp, 0x14
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x403810
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
xor eax, eax
push esi
push edi
push 0x68
mov edi, ecx
push eax
lea ecx, [esp + 0x18]
push ecx
mov esi, edx
xor ebx, ebx
mov word [esp + 0x88], ax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9a], eax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xa2], eax
mov word [esp + 0xa6], ax
call fcn.00412cf0
push esi
lea edx, [esp + 0x20]
push 0x20
push edx
call fcn.0040bcd1
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
lea esi, [esp + 0x94]
mov dword [esp + 0x8c], eax
call fcn.00401060
mov ecx, esi
push ecx
lea edx, [esp + 0x6e]
push 0x10
push edx
call fcn.0040bcd1
add esp, 0x24
xor eax, eax
nop
mov cl, byte [esp + eax + 0x10]
not cl
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x68
jb 0x4038c0
push 0x41fda4
push edi
call fcn.0040c734
mov esi, eax
add esp, 8
test esi, esi
je 0x40391b
push esi
push 0x68
lea edx, [esp + 0x18]
push 1
push edx
call fcn.0040cfca
push esi
mov edi, 1
call fcn.0040cdec
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0040bc96
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x98
ret

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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [0x425b04]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403975
mov eax, ebp
call fcn.004016b0
cmp eax, ebx
jne 0x403975
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x200000
call fcn.0040c2d2
add esp, 4
mov edi, eax
push edi
push 0x425b08
lea edx, [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x1c], 0x200000
call fcn.00401d10
add esp, 8
test eax, eax
je 0x4039bb
mov eax, dword [esp + 0x14]
push edi
mov ecx, ebp
call fcn.00407900
mov esi, eax
dec esi
add esp, 4
neg esi
sbb esi, esi
inc esi
push edi
call fcn.0040c447
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403b60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x830
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x828], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00412cf0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x62a]
push eax
mov word [esp + 0x62c], dx
call fcn.00412cf0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x21a]
push edx
mov word [esp + 0x21c], cx
call fcn.00412cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea eax, [esp + 0x41c]
push eax
push 0
call esi
lea ecx, [esp + 0x418]
push 0x5c
push ecx
call fcn.0040bca5
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x62c]
push 0x104
push ecx
call fcn.0040bcd1
add esp, 0x14
push 0x41feec
lea edx, [esp + 0x624]
push 0x104
push edx
call fcn.0040c5f1
mov eax, dword [0x4be352]
mov ecx, dword [0x4be34e]
add esp, 0xc
push eax
push ecx
mov edx, 0x4be356
lea ecx, [esp + 0x628]
call fcn.00403810
add esp, 8
push 0x104
lea edx, [esp + 0x41c]
push edx
push 0
call esi
lea eax, [esp + 0x418]
push 0x5c
push eax
call fcn.0040bca5
lea edx, [esp + 0x420]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040bcd1
add esp, 0x14
push 0x41fd40
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040c5f1
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040bcd1
add esp, 0xc
push 0x41ff00
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040c5f1
add esp, 0xc
push 0x4be396
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040c5f1
add esp, 0xc
push 0x4be396
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040c5f1
add esp, 0xc
push 0x41ff04
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040c5f1
add esp, 0xc
push str..exe
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040c5f1
add esp, 0xc
push str..exe
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040c5f1
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call fcn.00403940
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x3e8
call esi
push 1
push 0
push 0x41fd8c
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call esi
mov ecx, dword [esp + 0x82c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040bc96
add esp, 0x830
ret
Function at 0x404900
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x4fc
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x4f4], eax
cmp byte [0x4be253], 1
push ebx
push ebp
push esi
push edi
jne 0x404a94
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x302]
push ecx
mov word [esp + 0x304], ax
call fcn.00412cf0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push 0x41ff08
mov dword [esp + 0x18], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x40499e
test al, 1
je 0x404978
xor eax, 1
test al, 4
je 0x40497f
xor eax, 4
test al, 2
je 0x404986
xor eax, 2
test al, 0x20
je 0x40498d
xor eax, 0x20
push eax
push 0x41ff08
call edi
push 0x41ff08
call ebx
call ebp
push str.c:windowsgdisk.exe
call esi
cmp eax, 0xffffffff
je 0x4049d7
test al, 1
je 0x4049b1
xor eax, 1
test al, 4
je 0x4049b8
xor eax, 4
test al, 2
je 0x4049bf
xor eax, 2
test al, 0x20
je 0x4049c6
xor eax, 0x20
push eax
push str.c:windowsgdisk.exe
call edi
push str.c:windowsgdisk.exe
call ebx
call ebp
push str.c:windows_system32gdisk.exe
call esi
cmp eax, 0xffffffff
je 0x404a10
test al, 1
je 0x4049ea
xor eax, 1
test al, 4
je 0x4049f1
xor eax, 4
test al, 2
je 0x4049f8
xor eax, 2
test al, 0x20
je 0x4049ff
xor eax, 0x20
push eax
push str.c:windows_system32gdisk.exe
call edi
push str.c:windows_system32gdisk.exe
call ebx
call ebp
push 0x104
lea edx, [esp + 0x2fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 0x2f8]
sub eax, 0x41
push eax
lea ebx, [esp + 0x18]
call fcn.00405090
mov ebx, dword [esp + 0x18]
add esp, 4
call fcn.00404f10
mov edi, eax
cmp edi, 0xffffffff
je 0x404a94
lea esi, [esp + 0x188]
call fcn.00405650
test eax, eax
je 0x404a94
call fcn.00404b10
mov ecx, 0x5b
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x188]
push 0x16e
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
push 0x1e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0x5042475f
call fcn.00404ea0
add esp, 0xc
mov ecx, dword [esp + 0x504]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x4fc
ret
Function at 0x404b10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
xor eax, eax
push esi
xor esi, esi
mov ebp, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
cmp edi, 0xffffffff
je 0x404b74
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x200
lea edx, [esp + 0x34]
push edx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x404b8e
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040bc96
add esp, 0x228
ret
lea eax, [esp + 0x20]
push eax
xor ebx, ebx
mov dword [esp + 0x24], esi
call fcn.004052e0
add esp, 4
cmp eax, esi
je 0x404bd2
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax]
jne 0x404bc1
mov dl, byte [eax + 4]
cmp dl, byte [esp + 0x2c]
jne 0x404bc1
mov cl, byte [eax + 5]
cmp cl, byte [esp + 0x2d]
jne 0x404bc1
mov ebx, ebp
push eax
call fcn.0040c278
add esp, 4
cmp ebx, esi
jne 0x404c78
mov edx, dword [esp + 0x28]
mov byte [esp + 0x20], 0x33
mov byte [esp + 0x21], 0xf6
mov byte [esp + 0x22], 0xb8
mov byte [esp + 0x23], 0x40
cmp edx, dword [esp + 0x20]
jne 0x404c6a
cmp byte [esp + 0x2c], 7
jne 0x404c6a
cmp byte [esp + 0x2d], 0x8e
jne 0x404c6a
lea eax, [esp + 0x28]
call fcn.00404ab0
mov ebx, eax
cmp ebx, esi
jne 0x404c11
xor ebp, ebp
jmp 0x404c78
lea eax, [esp + 0x28]
push eax
push ebx
mov esi, edi
call fcn.00404ca0
add esp, 8
test eax, eax
je 0x404b74
lea esi, [esp + 0x28]
call fcn.00405950
cmp eax, 1
je 0x404c78
mov ecx, esi
push ecx
lea edx, [ebx + 1]
push edx
mov esi, edi
call fcn.00404ca0
add esp, 8
test eax, eax
je 0x404b74
cmp byte [esp + 0x28], 0x56
jne 0x404b74
push ebx
mov ecx, edi
call fcn.004058a0
add esp, 4
mov ebp, eax
jmp 0x404c78
mov esi, edi
call fcn.00404fd0
mov ecx, edi
call fcn.004057f0
mov ecx, dword [esp + 0x22c]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x228
ret

Function at 0x404ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x404ced
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x404fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x220], eax
push edi
push 0x200
xor edi, edi
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00412cf0
xor eax, eax
add esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 8], edi
cmp esi, 0xffffffff
je 0x40506c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x200
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x40506a
push 0x200
lea ecx, [esp + 0x24]
push ecx
push 0x28
call fcn.00404ea0
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040bc96
add esp, 0x228
ret
mov eax, edi
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.0040bc96
add esp, 0x228
ret

Function at 0x4051a0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x4052be
push 0xc00
call fcn.0040bead
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4052b1
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x405219
jg 0x40520d
test ecx, ecx
jbe 0x405219
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x40521d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x405247
jg 0x405233
cmp ecx, edx
jbe 0x405247
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x405271
jg 0x40525d
cmp ecx, edx
jbe 0x405271
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x40529b
jg 0x405287
cmp ecx, edx
jbe 0x40529b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00419ac0
mov dword [esp + 0x10], eax
test esi, esi
je 0x4052be
push esi
call fcn.0040c278
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret