joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6120b1
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esi, [ecx*4]
mov bp, word [esp + 0x15]
mov bp, 0x5efd
sete dh
mov word [esp + 0xc], dx
rdtsc
jmp 0x612072
mov dword [esp + 4], ebp
mov word [esp + 0xf], di
sub esp, 0x10
btc ebp, edi
mov ah, byte [esp + 9]
xchg word [esp + 3], cx
jmp 0x611ff8
btr esi, edx
lea esp, [esp]
xchg edx, esi
not ecx
cmc
lea edi, reloc.RASAPI32.dll_RasHangUpA
jmp 0x61208a
lea esp, [esp + 2]
mov cl, 0x6a
mov ax, 0x6a1b
bswap edx
xchg dh, al
rcl dx, cl
jmp 0x612035
popal
cpuid
lea edi, [ebx*4]
mov ecx, 0x9504625a
mov cx, bx
mov word [esp], dx
jmp 0x61204f
rdtsc
neg si
clc
stc
rcr edi, 0xd
bsf bp, ax
jmp 0x612108
mov bp, 0x7b2f
mov ax, 0xcaa3
mov byte [esp], dh
mov di, word [esp]
clc
jmp 0x6120db
push esp
bswap ecx
jmp 0x61201b
lea ebp, [eax + 0xf1]
mov si, dx
xchg byte [esp], dl
lea esp, [esp]
mov bx, word [esp]
shr ecx, 0x17
call fcn.006120b9
push edx
inc ecx
push ebx
inc ecx
push eax
dec ecx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [ebp - 0x26b1d8cc], al
mov ax, 0x67b7
add di, 0x3326
lea ebp, [esp + esi]
lea esp, [esp]
add esp, 0
jmp 0x61209a

Function at 0x6120b9
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x612356
mov bl, 0x68
xchg ebx, eax
rdtsc
setae ch
push word [esp + 1]
xchg byte [esp], bl
jmp 0x6121b0
pushal
lea esp, [esp + 0x15]
mov ecx, ebp
rdtsc
mov word [esp + 9], dx
cmc
jmp 0x612134
xchg byte [esp], cl
mov ch, byte [esp + 1]
mov si, di
mov al, 0x3e
add esp, 1
lea esi, [eax*4]
jmp 0x612154
xchg word [esp], di
lea esp, [esp + 4]
stc
mov cx, dx
cpuid
lea eax, [eax - 0xd1]
jmp 0x612181
lea esp, [esp]
mov word [esp + 2], sp
xchg byte [esp], cl
mov al, ah
mov edx, 0x6ea8ff1a
mov edi, dword [esp]
jmp 0x6120be

Function at 0x61230a
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x1e
push word [esp + 0x1c]
mov dx, word [esp + 0x1e]
jmp 0x6122ed

Function at 0x6125e0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bh, byte [esp + 0x13]
pop word [esp + 3]
push esp
lea eax, reloc.RASAPI32.dll_RasHangUpA
jmp 0x6125b7
Function at 0x617295
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
lea esp, [esp + 1]
mov dword [esp + 0x98], edi
jmp 0x617279
Function at 0x4034e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.00431edb
push eax
lea ecx, [esp + 0x30]
call fcn.0043868f
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.00431edb
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00438545
mov eax, dword [esi + 0xc0]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x403616
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xbc]
call fcn.0043801e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0xcc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.00438937
test edi, edi
je 0x4035c2
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xc0]
push edi
push eax
call fcn.0043815f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xc0]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xbc]
sub ecx, edi
test edx, edx
je 0x403637
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00438701
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x404520
Capabilities:
Query or enumerate registry value

Disassembly:
call fcn.00404830
test eax, eax
je 0x404595
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x456a3c], eax
jne 0x40454d
or eax, 0xffffffff
ret
push 0
push 0x2c
push 0x456a10
push 0
call eax
test eax, eax
je 0x404562
or eax, 0xffffffff
ret
mov dword [0x456a08], 0
mov dword [0x456a0c], 0
mov dword [0x456a00], 0
mov dword [0x456a04], 0
call fcn.00404700
mov eax, 1
ret
push 0x4569fc
push 0xf003f
push 0
push str.PerfStats_
push 0x80000006
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4045b9
or eax, 0xffffffff
ret
mov eax, dword [0x4569fc]
push 0x4569f8
push 0x4569f0
push 0x4569f4
push 0
push str.KERNELCPUUsage
push eax
mov dword [0x4569f8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [0x4569fc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret

Function at 0x404600
Capabilities:
Query or enumerate registry value

Disassembly:
call fcn.00404830
test eax, eax
jne 0x404665
push 0x4569fc
push 0xf003f
push eax
push str.PerfStatsStat
push 0x80000006
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40462c
or eax, 0xffffffff
ret
mov eax, dword [0x4569fc]
push 0x4569f8
push 0x4569f0
push 0x4569f4
push 0
push str.KERNELCPUUsage
push eax
mov dword [0x4569f8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [0x4569fc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x4051b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f7df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x454560]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
mov ebx, 2
push 0x4569e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00435b84
test esi, esi
je 0x4052f2
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, edi
call fcn.004301a5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00435b34
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.004359fb
mov ecx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push ecx
call ebp
test eax, eax
jne 0x40529b
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x1c]
call fcn.0042ed3d
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x38], 4
call fcn.0042edb9
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.00435b34
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.004359fb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.004359fb
push 0x4532c4
lea ecx, [esp + 0x18]
call fcn.00435cef
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00435c2a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.00435b34
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.004359fb
mov edx, dword [edi + 0x1c]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x405214
pop ebp
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.0042eaed
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.0042ed3d
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041f8c5
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x38]
call fcn.004359fb
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004359fb
mov al, byte [esp + 0x38]
test al, al
je 0x40535d
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.00435dfe
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00435770
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.004359fb
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004359fb
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4063d0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
mov dword [0x456a54], 0
mov dword [0x456a58], 0
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
push 0x160
push eax
push 0
push esi
call edi
test eax, eax
je 0x406425
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [0x456a60], ecx
mov dword [0x456a58], edx
push 0x103
lea eax, [esp + 0xc]
push 0x160
push eax
push 0
push esi
call edi
pop edi
pop esi
test eax, eax
je 0x406453
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [0x456a5c], ecx
mov dword [0x456a54], edx
add esp, 0x160
ret

Function at 0x406490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fa30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00417603
mov esi, dword [esp + 0x38]
lea ecx, [esp + 8]
push esi
mov dword [esp + 0x34], 0
call fcn.00435a69
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x30], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jne 0x4064f2
cmp byte [esi + 1], 0x3a
jne 0x4064f2
cmp byte [esi + 2], 0x5c
jne 0x4064f2
push 0x4532c0
jmp 0x4064f7
push str..
lea ecx, [esp + 0xc]
call fcn.00435cef
mov eax, dword [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
call fcn.004176c6
test eax, eax
je 0x406541
lea ecx, [esp + 0xc]
call fcn.004178e6
mov edx, dword [esp + 0xc]
push 0x10
lea ecx, [esp + 0x10]
mov esi, eax
call dword [edx + 0x38]
test eax, eax
je 0x40653d
lea ecx, [esp + 0xc]
call fcn.004178ad
test eax, eax
je 0x406575
test esi, esi
jne 0x406514
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.004359fb
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00417640
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.004359fb
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00417640
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x406910
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43faab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xf0]
push edi
mov ebp, ecx
push esi
call fcn.004063d0
add esp, 4
lea ecx, [esp + 0x10]
push esi
call fcn.00435a69
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xf0], 0
call fcn.0042ed3d
mov eax, dword [eax]
push 0x4532c4
push eax
call fcn.0041f8c5
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.004359fb
test bl, bl
je 0x40699c
mov ecx, dword [esp + 0x10]
push 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
dec eax
push eax
call fcn.00435dfe
mov ebx, dword [esp + 0xf0]
mov eax, dword [ebp + 0x23c]
cmp ebx, eax
jne 0x406a99
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x7c]
push edx
push 0x4532d4
push eax
call fcn.0041f1e7
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push 0
push 0
push 0
push 0
push 0
push 0x64
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x406a0e
mov edi, 0x4569e8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406a4a
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov esi, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jbe 0x406a4a
movsx ecx, byte [esp + esi + 0x18]
push ecx
call fcn.0041f974
mov byte [esp + esi + 0x1c], al
add esp, 4
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x406a25
mov edx, dword [esp + 0x10]
movsx eax, byte [edx]
push eax
call fcn.0041f78a
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x88]
push str._s___c:_
push edx
call fcn.0041f1e7
add esp, 0x14
call fcn.00406460
mov eax, dword [0x456a5c]
mov ecx, dword [0x456a60]
push 0xffff0002
push ebx
push 0
push 0
push 0
push eax
push ecx
lea eax, [esp + 0x98]
jmp 0x406ac5
call fcn.00406460
mov ecx, dword [esp + 0x10]
mov esi, dword [0x456a5c]
mov edi, dword [0x456a60]
push ecx
call fcn.004067e0
add esp, 4
push 0xffff0002
push ebx
push 0
push 0
push 0
push esi
push edi
push eax
push 0x23
lea ecx, [ebp + 0xcc]
call fcn.0043032e
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0xe8], 0xffffffff
call fcn.004359fb
mov ecx, dword [esp + 0xe0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret 8
Function at 0x406b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fb0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x454560]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
mov ebx, 2
push 0x4569e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00435b84
test esi, esi
je 0x406c6c
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, dword [edi + 0x23c]
je 0x406c6b
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [edi + 0xcc]
call fcn.004301a5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00435b34
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call fcn.004359fb
mov ecx, dword [edi + 0xe8]
push esi
push 3
push 0x110a
push ecx
call ebp
cmp eax, dword [edi + 0x23c]
jne 0x406c12
lea edx, [esp + 0x1c]
push 3
push edx
lea ecx, [esp + 0x1c]
call fcn.0042ed3d
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x38], 4
call fcn.0042edb9
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.00435b34
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.004359fb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.004359fb
push 0x4532c4
lea ecx, [esp + 0x18]
call fcn.00435cef
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00435c2a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.00435b34
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.004359fb
mov edx, dword [edi + 0xe8]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x406b74
pop ebp
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.0042eaed
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.0042ed3d
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041f8c5
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x38]
call fcn.004359fb
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004359fb
mov al, byte [esp + 0x38]
test al, al
je 0x406cd7
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.00435dfe
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00435770
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.004359fb
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004359fb
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x408630
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
imul ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x408660
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
mov eax, esi
push edi
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.0041fc50
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, esi
lea edx, [esp + 0x20]
push 0
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 8
ret
Function at 0x4090f0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x9ccc
call fcn.0041f680
mov edx, dword [esp + 0x9cd0]
push ebx
push esi
push edi
mov al, byte [edx + 8]
xor ebx, ebx
mov cl, al
lea esi, [esp + 0xc]
and cl, 1
lea edi, [esp + 0x98]
or cl, 0xfa
mov dword [esp + 0xc], ebx
shl cl, 4
mov byte [esp + 0x15], cl
mov ecx, 8
mov byte [esp + 0x10], 0x42
mov byte [esp + 0x11], 0x80
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x16], 0xec
mov byte [esp + 0x18], al
lea eax, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push ebx
push eax
lea ecx, [esp + 0x4ec0]
push 0x4e20
push ecx
mov ecx, dword [edx]
lea eax, [esp + 0xa8]
push 0x4e20
push eax
push 0x7c088
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp + 0x11]
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
and edx, 0xff
and eax, 0xff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x40]
push str.error:__d__d__d
push ecx
call fcn.0041f1e7
add esp, 0x14
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x9ccc
ret

Function at 0x4091d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, 0x4537a4
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x74]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0x10], str.0___
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], str.1___Raw
and ecx, 3
mov dword [esp + 0x18], str.2___
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], str.3___
mov dword [esp + 0x20], str.4___
mov dword [esp + 0x24], str.5___
mov dword [esp + 0x28], str.6___
mov dword [esp + 0x2c], str.7___
mov dword [esp + 0x30], str.8___
mov dword [esp + 0x34], str.9___
mov dword [esp + 0x38], str.10__
mov dword [esp + 0x3c], str.11__
mov dword [esp + 0x40], str.12__
mov dword [esp + 0x44], str.13__
mov dword [esp + 0x48], str.192_
mov dword [esp + 0x4c], str.193_
mov dword [esp + 0x50], str.194_
mov dword [esp + 0x54], str.195_
mov dword [esp + 0x58], str.196_
mov dword [esp + 0x5c], str.197_
mov dword [esp + 0x60], str.198_
mov dword [esp + 0x64], str.199_UDMA_
mov dword [esp + 0x68], str.200_
mov dword [esp + 0x6c], 0x4534c0
xor edi, edi
mov esi, dword [esp + edi*4 + 0x10]
push esi
call fcn.0041fe19
mov edx, eax
add esp, 4
cmp edx, ebp
jne 0x4092fb
lea edi, [esi + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
jmp 0x4092fc
inc edi
cmp edx, 0xffffffff
je 0x409306
cmp edi, 0xffffffff
jne 0x4092c3
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x409b60
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, 0x4569e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str..C:]
mov dx, word [0x453888]
mov al, byte [0x45388a]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4532bc]
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
shr edx, cl
test dl, 1
je 0x409c4d
mov bl, cl
lea eax, [esp + 0x10]
add bl, 0x41
push eax
mov byte [esp + 0x14], bl
call edi
cmp eax, 3
jne 0x409c49
push 0
push 0
push eax
push 0
push eax
lea ecx, [esp + 0x34]
push 0xc0000000
push ecx
mov byte [esp + 0x40], bl
call esi
cmp eax, 0xffffffff
je 0x409c49
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x30]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push eax
call ebp
test eax, eax
je 0x409c49
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x409c49
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x409c66
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x14], ecx
jl 0x409bd6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x409ca0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409cf5
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
call eax
test eax, eax
jne 0x409cdf
or eax, 0xffffffff
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.0041feb0
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x409d1f
or eax, 0xffffffff
add esp, 0x28
ret
mov eax, dword [esp]
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
shr eax, 0x14
add esp, 0x28
ret
Function at 0x409de0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov edi, dword [esp + 0x10]
push 0xff
push edi
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call ebx
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jge 0x409e3e
push ebp
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jge 0x409e1a
mov esi, eax
sub esi, eax
add edi, esi
mov esi, eax
call fcn.00409d90
push 0xff
push edi
push 0
push 0
push 0
call ebp
call ebx
mov edx, eax
sub edx, esi
cmp edx, edi
jl 0x409e14
pop ebp
pop edi
pop esi
pop ebx
ret