joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407630
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
mov dword [ebp - 0x1b4], ecx
lea ecx, [ebp - 0x64]
call fcn.0043a8f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0043a8f0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.0043ae00
push 0x492688
lea ecx, [ebp - 0x64]
call fcn.0043ad50
lea ecx, [ebp - 0x1a4]
push ecx
push 0
lea ecx, [ebp - 0x64]
call fcn.0043baa0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0xffffffff
je 0x407829
mov ecx, dword [ebp - 0x1b4]
add ecx, 0x1a30
call fcn.0042f3c0
cmp eax, 1
jne 0x4076ce
jmp 0x40781c
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x38]
call fcn.0043ae00
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043ad50
mov ecx, dword [ebp - 0x1a4]
and ecx, 0x10
test ecx, ecx
je 0x407751
movsx edx, byte [ebp - 0x178]
cmp edx, 0x2e
jne 0x407729
movsx eax, byte [ebp - 0x177]
cmp eax, 0x2e
jne 0x407719
movsx ecx, byte [ebp - 0x176]
test ecx, ecx
je 0x407724
movsx edx, byte [ebp - 0x177]
test edx, edx
jne 0x407729
jmp 0x4077ff
push 0x49268c
lea ecx, [ebp - 0x38]
call fcn.0043ad50
push 0
lea ecx, [ebp - 0x38]
call fcn.0043baa0
push eax
mov ecx, dword [ebp - 0x1b4]
call fcn.00407630
jmp 0x4077ff
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x1b4]
add edx, 0x270
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x1a8]
cmp ecx, dword [eax + 4]
jb 0x4077ff
ja 0x40779e
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x1ac]
cmp eax, dword [edx]
jbe 0x4077ff
mov ecx, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1ac]
mov dword [ecx + 0x270], edx
mov eax, dword [ebp - 0x1a8]
mov dword [ecx + 0x274], eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x1b4]
add ecx, 0x288
call fcn.0043ae60
mov edx, dword [0x4a2a70]
or edx, 0x800000
mov dword [0x4a2a70], edx
push 0
mov ecx, dword [ebp - 0x1b4]
call fcn.004053e7
mov eax, dword [0x4a2a70]
and eax, 0xff7fffff
mov dword [0x4a2a70], eax
lea ecx, [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4076b3
mov eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0043a990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0043a990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e6de
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
jne 0x40e710
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
je 0x40e719
mov dword [ebp - 4], 1
jmp 0x40e720
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x40e73f
mov ecx, dword [ebp - 8]
add ecx, 0x1ef8
call fcn.0042f240
mov esp, ebp
pop ebp
ret
Function at 0x4122b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47da51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push edi
mov edi, ecx
lea ecx, [esp + 0x9c]
call fcn.00452db0
lea ecx, [esp + 0x34]
mov dword [esp + 0x284], 0
call fcn.00452ae0
lea ecx, [esp + 8]
mov byte [esp + 0x284], 1
call fcn.0043a8f0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x284], 2
call fcn.00453060
push 1
push 0
push 0
push 1
push 0x483824
lea ecx, [esp + 0xb0]
call fcn.00453c00
mov ebx, eax
test ebx, ebx
je 0x4124bc
push ebp
push esi
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00454c30
cmp eax, 1
jne 0x4124a9
lea ecx, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x18]
push 8
push edx
mov ecx, ebx
call fcn.00454d30
cmp eax, 1
jne 0x4124a9
lea ecx, [esp + 0x3c]
call fcn.00452bf0
test eax, eax
je 0x4124a9
lea esi, [edi + 0x3b8]
push eax
mov ecx, esi
call fcn.0043af60
test eax, eax
je 0x4123a0
lea ecx, [esp + 0x3c]
call fcn.00452bf0
test eax, eax
jne 0x412382
jmp 0x4124a9
mov ecx, ebx
call fcn.00454700
mov esi, eax
test esi, esi
je 0x4124a9
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00454c30
cmp eax, 1
jne 0x4123fc
push 0
lea ecx, [edi + 0x38c]
push 0
lea edx, [edi + 0x360]
push ecx
lea eax, [edi + 0x334]
push edx
lea ecx, [edi + 0x27c]
push eax
lea edx, [edi + 0x2ac]
push ecx
lea eax, [edi + 0x2a8]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.0041acc0
lea ebp, [edi + 0x2dc]
mov ecx, esi
push ebp
push 0xd
call fcn.00455320
push ebp
push 0x4838a8
mov ecx, esi
call fcn.00455190
push 0x483658
mov ecx, esi
call fcn.00455000
push 0
lea ecx, [esi + 0x78]
call fcn.0043baa0
push eax
mov ecx, edi
call fcn.00411030
test eax, eax
jne 0x4124a9
mov ecx, esi
call fcn.00454700
mov esi, eax
test esi, esi
je 0x4124a9
push 0x483658
mov ecx, esi
call fcn.00455000
push 0
lea ecx, [esi + 0x78]
call fcn.0043baa0
push eax
mov ecx, edi
call fcn.00411030
mov ecx, esi
call fcn.00454700
test eax, eax
je 0x4124a9
lea edx, [esp + 0x10]
mov ecx, eax
push edx
call fcn.00454c30
cmp eax, 1
jne 0x4124a9
push 0
lea ecx, [esp + 0x14]
call fcn.0043baa0
push str.PCIVEN_8086DEV_1549
lea ecx, [esp + 0x14]
call fcn.0043b8e0
test eax, eax
jne 0x4124a9
mov eax, dword [edi + 0x20]
and al, 0xfe
or al, 0x40
mov dword [edi + 0x20], eax
mov ecx, ebx
call fcn.0045a200
mov ebx, eax
test ebx, ebx
jne 0x412339
pop esi
pop ebp
lea ecx, [esp + 0x9c]
call fcn.00453800
lea ecx, [esp + 8]
mov byte [esp + 0x284], 1
call fcn.0043a990
lea ecx, [esp + 0x34]
mov byte [esp + 0x284], 0
call fcn.00452b30
lea ecx, [esp + 0x9c]
mov dword [esp + 0x284], 0xffffffff
call fcn.00452fd0
mov ecx, dword [esp + 0x27c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret
Function at 0x414160
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x47dbd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00459a40
xor ebp, ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], ebp
call fcn.0043a8f0
mov byte [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov bl, 0x44
shr eax, 3
mov byte [esp + 0x10], bl
test al, 1
je 0x4141bd
shr eax, 1
inc bl
cmp bl, 0x5a
jle 0x4141aa
mov byte [esp + 0x10], bl
jmp 0x414231
push str.Kernel32.dll
lea ecx, [esp + 0x18]
mov byte [esp + 0x14], bl
call fcn.00459a70
cmp eax, 1
jne 0x414231
push str.SetVolumeMountPointA
lea ecx, [esp + 0x18]
call fcn.00459b10
mov esi, eax
cmp esi, ebp
je 0x414231
movsx eax, bl
push eax
lea ecx, [esp + 0x20]
push str._c:_
push ecx
call fcn.0043bde0
add esp, 0xc
lea ecx, [edi + 0x410]
push ebp
call fcn.0043baa0
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.0043baa0
push eax
call esi
test eax, eax
je 0x414231
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0x1b8]
push edx
call fcn.0043acf0
mov ebp, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.0043a990
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0xffffffff
call fcn.00459a50
mov ecx, dword [esp + 0x48]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret

Function at 0x415c90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47dd21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a4
lea ecx, [esp]
call fcn.0043a8f0
lea ecx, [esp + 0x34c]
mov dword [esp + 0x5ac], 0
call fcn.00439960
lea ecx, [esp + 0xf8]
mov byte [esp + 0x5ac], 1
call fcn.00459b30
mov ecx, dword [esp + 0x5b8]
mov eax, dword [esp + 0x5b4]
mov edx, dword [esp + 0x5bc]
mov dword [0x4a32f0], ecx
mov ecx, 0x4a32f8
mov byte [esp + 0x5ac], 2
mov dword [0x4a3358], 0
mov dword [0x4a32f4], eax
mov dword [0x4a32e0], edx
call fcn.00437300
lea ecx, [esp + 0x2c]
call fcn.00443920
push 0
push 0x4000
lea ecx, [esp + 0x34]
mov dword [0x4a32e8], eax
mov dword [0x4a32ec], edx
call fcn.00443bd0
cmp eax, 1
jne 0x415d57
mov eax, dword [0x4a32e0]
or ah, 0x80
mov dword [0x4a32e0], eax
push 0
push 0x40000
lea ecx, [esp + 0x34]
call fcn.00443bd0
cmp eax, 1
jne 0x415d76
or dword [0x4a32e0], 0x10000
lea ecx, [esp + 0xf8]
call fcn.00459e90
cmp eax, 1
jne 0x415d94
mov eax, dword [0x4a32e0]
or ah, 0x20
mov dword [0x4a32e0], eax
lea ecx, [esp]
call fcn.0043bb30
push eax
push 0
lea ecx, [esp + 8]
call fcn.0043baa0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp]
call fcn.0043acd0
push 0
lea ecx, [esp + 4]
call fcn.0043ba70
push 0x4a3290
mov ecx, 0x4a32b0
mov byte [0x4a32dc], al
call fcn.0043ae00
lea ecx, [esp + 0xf8]
mov byte [esp + 0x5ac], 1
call fcn.00459bc0
lea ecx, [esp + 0x34c]
mov byte [esp + 0x5ac], 0
call fcn.004399f0
lea ecx, [esp]
mov dword [esp + 0x5ac], 0xffffffff
call fcn.0043a990
mov ecx, dword [esp + 0x5a4]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x5b0
ret
Function at 0x417f00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x47de7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov edx, dword [0x4a3358]
push ebx
or edx, 4
mov dword [0x4a3358], edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [esp + 4], eax
mov bl, 0x41
je 0x418037
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
test al, 1
je 0x418020
test byte [0x4a32e0], 2
jne 0x417f5f
cmp bl, 0x41
je 0x418020
movsx eax, bl
push eax
lea ecx, [esp + 0x1c]
push str.._c:
push ecx
call fcn.0046fca8
add esp, 0xc
mov edi, 0xc0000000
lea edx, [esp + 0x18]
push 0
push 0
push 3
push 0
push 3
push edi
push edx
call ebp
cmp eax, 0xffffffff
jne 0x417fad
push 0
push 0
push 3
mov edi, SysReAllocString
push 0
push 3
lea eax, [esp + 0x2c]
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x41801a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x260
call fcn.004708ca
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x84], 0
je 0x417fe5
mov ecx, esi
call fcn.00418210
mov dword [esi], 0x483a50
jmp 0x417fe7
xor esi, esi
test esi, esi
mov dword [esp + 0x84], 0xffffffff
je 0x418020
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, esi
call fcn.00417e30
push esi
call fcn.00416120
add esp, 4
test eax, eax
jne 0x418020
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x418020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
shr eax, 1
inc bl
mov dword [esp + 0x10], eax
test eax, eax
jne 0x417f45
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x70]
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret

Function at 0x418130
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x47debb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov ecx, dword [0x4a3358]
push ebx
or ecx, 0x10
mov dword [0x4a3358], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov byte [esp + 4], 0x41
test ebx, ebx
je 0x4181f5
push esi
test bl, 1
je 0x4181e0
test byte [0x4a32e0], 2
jne 0x418183
cmp byte [esp + 8], 0x41
je 0x4181e0
push 0x1f0
call fcn.004708ca
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x18], 0
je 0x4181b1
mov ecx, esi
call fcn.0041a920
mov dword [esi], 0x483a8c
jmp 0x4181b3
xor esi, esi
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x4181e0
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call fcn.004180d0
push esi
call fcn.00416120
add esp, 4
test eax, eax
jne 0x4181e0
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov cl, byte [esp + 8]
shr ebx, 1
inc cl
test ebx, ebx
mov byte [esp + 8], cl
jne 0x41816e
pop esi
mov ecx, dword [esp + 0xc]
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x418660
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2080
call fcn.00470a30
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x24]
cmp ecx, edi
je 0x418685
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 1
je 0x4187bd
test byte [esi + 0x10], 0x40
jne 0x4187bd
xor ecx, ecx
mov edx, dword [esi]
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], ecx
push 0x24
lea ecx, [esp + 0x18]
push 1
push ecx
push 6
mov ecx, esi
mov byte [esp + 0x24], 0x12
mov byte [esp + 0x28], 0x24
call dword [edx + 0x14]
cmp eax, 1
jne 0x418758
push ebx
lea edx, [esp + 0x34]
push ebp
lea edi, [esi + 0x58]
push edx
push str._.8s
push edi
call fcn.0043bde0
add esp, 0xc
mov ecx, edi
call fcn.0043b160
lea eax, [esp + 0x40]
lea ebx, [esi + 0x84]
push eax
push str._.16s
push ebx
call fcn.0043bde0
add esp, 0xc
mov ecx, ebx
call fcn.0043b160
lea ecx, [esp + 0x50]
lea ebp, [esi + 0xb0]
push ecx
push str._.4s
push ebp
call fcn.0043bde0
add esp, 0xc
mov ecx, ebp
call fcn.0043b160
push 0
mov ecx, edi
call fcn.0043baa0
push 0
mov ecx, ebx
call fcn.0043baa0
push 0
mov ecx, ebp
call fcn.0043baa0
mov ecx, esi
call fcn.0041b290
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x2080
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
cmp eax, 1
jne 0x4187bd
lea eax, [esp + 8]
push edi
push eax
mov eax, dword [esi + 0x220]
lea ecx, [esp + 0x90]
push 0x2000
push ecx
lea edx, [esp + 0x2c]
push 0xc
push edx
push 0x2d1400
push eax
mov ecx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], edi
call fcn.0041d5d0
test eax, eax
je 0x4187b6
cmp dword [esp + 8], edi
je 0x4187b6
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.00418470
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
pop edi
pop esi
add esp, 0x2080
ret

Function at 0x4188e0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x30
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x30]
test eax, eax
je 0x41896c
push edi
xor edi, edi
lea ecx, [esp + 8]
push edi
push ecx
mov ecx, dword [esi + 0x220]
lea edx, [esp + 0x20]
push 0x20
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
push 0x2d1400
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
call fcn.0041d5d0
test eax, eax
je 0x41893a
mov eax, dword [esp + 8]
test eax, eax
je 0x41893a
mov edi, 1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
test edi, edi
pop edi
je 0x41896c
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41896c
mov eax, dword [esp + 0x1c]
xor edx, edx
div ecx
test byte [esi + 0x20], 8
mov dword [esi + 0x54], eax
je 0x41896c
cmp eax, 0x400
jbe 0x41896c
mov dword [esi + 0x54], 0x400
pop esi
add esp, 0x30
ret
Function at 0x418a30
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x810
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x30]
test eax, eax
je 0x418b07
lea ecx, [esp + 4]
push 0
push ecx
mov ecx, dword [esi + 0x220]
lea edx, [esp + 0x1c]
push 0x800
push edx
lea eax, [esp + 0x18]
push 0xc
push eax
push 0x2d1400
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0041d5d0
test eax, eax
je 0x418b00
mov eax, dword [esp + 4]
test eax, eax
je 0x418b00
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x418ab1
mov edx, dword [esi + 0x20]
mov eax, dword [esi]
and dl, 4
mov ecx, esi
or edx, 4
mov dword [esi + 0x20], edx
call dword [eax + 0x34]
pop esi
add esp, 0x810
ret
cmp eax, 7
jne 0x418acf
mov eax, dword [esi + 0x20]
mov ecx, esi
and al, 2
or al, 2
mov dword [esi + 0x20], eax
mov eax, dword [esi]
call dword [eax + 0x34]
pop esi
add esp, 0x810
ret
cmp eax, 4
jne 0x418aef
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
and cl, 8
or ecx, 8
mov dword [esi + 0x20], ecx
mov ecx, esi
call dword [eax + 0x34]
pop esi
add esp, 0x810
ret
cmp eax, 9
jne 0x418b00
mov edx, dword [esi + 0x20]
and dl, 0x20
or edx, 0x20
mov dword [esi + 0x20], edx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
pop esi
add esp, 0x810
ret
Function at 0x419b30
Capabilities:
Get disk information

Disassembly:
mov al, byte [0x4a3358]
sub esp, 0x88
test al, 4
push ebx
push ebp
mov ebp, ecx
je 0x419b5e
push 1
push ebp
push 0x419ad0
call fcn.00416520
add esp, 0xc
pop ebp
pop ebx
add esp, 0x88
ret 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov al, 0x41
test ebx, ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 8], al
je 0x419d15
push esi
push edi
test bl, 1
je 0x419cfb
test byte [0x4a32e0], 2
jne 0x419b94
cmp al, 0x41
je 0x419cfb
movsx eax, al
push eax
lea ecx, [esp + 0x38]
push str.._c:
push ecx
call fcn.0046fca8
mov edx, dword [ebp + 0x21c]
add esp, 0xc
lea eax, [esp + 0x34]
push 0
push 0
push 3
push 0
push 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x419cfb
xor ecx, ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
or edi, 0xffffffff
push ecx
push edx
push 0xc
push eax
push ecx
push ecx
mov dword [esp + 0x3c], ecx
push 0x2d1080
push esi
mov ecx, ebp
call fcn.0041d5d0
test eax, eax
je 0x419c60
mov eax, dword [esp + 0x14]
test eax, eax
je 0x419c60
cmp dword [esp + 0x9c], 1
jne 0x419c33
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov ch, byte [esp + 0x20]
and edx, 0xff
and ecx, 0xffff
shl edx, 0x10
or ecx, edx
mov edi, ecx
jmp 0x419c5b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
xor eax, eax
and ecx, 0xff
mov ah, byte [esp + 0x20]
and edx, 0xff
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
or eax, edx
mov edi, eax
cmp edi, 0xffffffff
jne 0x419ccd
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
push eax
push ecx
push 8
push edx
push eax
push eax
push 0x41018
push esi
mov ecx, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 8
call fcn.0041d5d0
test eax, eax
je 0x419ccd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x419ccd
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov ch, ah
and eax, 0xff
and ecx, 0xffff
xor edx, edx
mov dh, byte [esp + 0x2e]
or ecx, eax
mov eax, dword [esp + 0x2f]
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
and eax, 0xff
or ecx, eax
mov edi, ecx
cmp edi, dword [ebp + 0x28]
jne 0x419cf4
mov ebx, dword [esp + 0x10]
lea edi, [ebp + 0x1b8]
push ebx
mov ecx, edi
call fcn.0043b710
test eax, eax
jne 0x419cf0
push ebx
mov ecx, edi
call fcn.0043aeb0
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x10]
shr ebx, 1
inc al
mov dword [esp + 0x18], ebx
test ebx, ebx
mov byte [esp + 0x10], al
jne 0x419b7a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
Function at 0x41a920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47dfbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x58]
call fcn.0043a8f0
xor edi, edi
lea ecx, [esi + 0x84]
mov dword [esp + 0x14], edi
call fcn.0043a8f0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x14], 1
call fcn.0043a8f0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x14], 2
call fcn.0043a8f0
lea ecx, [esi + 0x108]
mov byte [esp + 0x14], 3
call fcn.0043a8f0
lea ecx, [esi + 0x134]
mov byte [esp + 0x14], 4
call fcn.0043a8f0
lea ecx, [esi + 0x160]
mov byte [esp + 0x14], 5
call fcn.0043a8f0
lea ecx, [esi + 0x18c]
mov byte [esp + 0x14], 6
call fcn.0043a8f0
lea ecx, [esi + 0x1b8]
mov byte [esp + 0x14], 7
call fcn.0043a8f0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1e4], edi
mov dword [esi], 0x483b04
mov dword [esi + 0x20], 1
mov dword [esi + 0x54], 1
mov dword [esi + 0x1e8], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b870
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1b8]
mov ecx, edi
call fcn.0043baf0
test eax, eax
je case.default.0x41b8c2
push 0
mov ecx, edi
call fcn.0043ba70
movsx eax, al
push eax
lea ecx, [esp + 0xc]
push str._c:_
push ecx
call fcn.0046fca8
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 4
ja case.default.0x41b8c2
jmp dword [eax*4 + 0x41b958]
cmp dword [esp + 0x18], 1
jne 0x41b8df
mov dword [esi + 0x1c], 4
pop edi
pop esi
add esp, 0xc
ret 4
mov dword [esi + 0x1c], 5
pop edi
pop esi
add esp, 0xc
ret 4
mov dword [esi + 0x1c], 6
pop edi
pop esi
add esp, 0xc
ret 4
mov dword [esi + 0x1c], 7
pop edi
pop esi
add esp, 0xc
ret 4
mov dword [esi + 0x40], 0x10
mov dword [esi + 0x44], 0
mov dword [esi + 0x50], 0x800
mov dword [esi + 0x1c], 3
pop edi
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
mov eax, 1
cmp ecx, eax
jne 0x41b948
mov dword [esi + 0x1c], eax
pop edi
pop esi
add esp, 0xc
ret 4
mov dword [esi + 0x1c], 2
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41b970
Capabilities:
Get disk size

Disassembly:
mov eax, dword [0x4a32e0]
sub esp, 0x40
test ah, 0x40
push ebx
push esi
push edi
mov esi, ecx
je 0x41b98d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 4
lea ebx, [esi + 0x1b8]
mov ecx, ebx
call fcn.0043baf0
xor edi, edi
cmp eax, 1
je 0x41b9b2
cmp dword [esp + 0x50], edi
jne 0x41b9b2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 4
mov ecx, ebx
call fcn.0043baf0
test eax, eax
jne 0x41b9c6
pop edi
pop esi
pop ebx
add esp, 0x40
ret 4
push ebp
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
call fcn.0043baf0
test eax, eax
jle 0x41bb42
test byte [0x4a32e0], 2
jne 0x41ba08
push ebp
mov ecx, ebx
call fcn.0043ba70
cmp al, 0x41
je 0x41bb22
push ebp
mov ecx, ebx
call fcn.0043ba70
movsx eax, al
push eax
lea ecx, [esp + 0x48]
push str._c:_
push ecx
call fcn.0046fca8
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, 1
jne 0x41ba92
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
cmp eax, edi
je 0x41ba5a
cmp ecx, edi
je 0x41ba92
mov eax, dword [esp + 0x1c]
mov edx, eax
imul eax, ecx
imul edx, dword [esp + 0x20]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edi
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x50], eax
mov eax, edi
mov dword [esi + 0x3c], edi
or ecx, eax
jne 0x41ba8a
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esp + 0x10], 1
lea edx, [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp eax, 1
jne 0x41bb22
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x30]
cmp eax, edi
je 0x41bac5
mov eax, dword [esp + 0x2c]
or eax, ebx
je 0x41bb22
mov ebp, dword [esi + 0x50]
cmp ebp, edi
je 0x41bafa
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push edi
push ebp
push ecx
push edx
call fcn.0046fc40
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x2c]
push edi
push ebp
push ebx
push eax
mov dword [esi + 0x34], edx
call fcn.0046fc40
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
xor edi, edi
jmp 0x41bb06
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
or ecx, eax
jne 0x41bb16
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], 1
cmp dword [esp + 0x54], edi
je 0x41bb42
lea ebx, [esi + 0x1b8]
inc ebp
mov ecx, ebx
mov dword [esp + 0x14], ebp
call fcn.0043baf0
cmp ebp, eax
jl 0x41b9ef
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret 4