joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472ca4
Capabilities:
Get common file path
Get file system object information

Disassembly:
add esp, 0xfffffd98
cmp dword [0x509104], 0xffffffff
jne 0x472cec
push 0x104
lea eax, [esp + 0x164]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0x170]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
mov dword [0x509104], eax
mov eax, dword [0x509104]
add esp, 0x268
ret

Function at 0x472df4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403fa4
xor eax, eax
push ebp
push 0x472f29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x24]
call fcn.00403fb4
push eax
mov eax, dword [ebp - 4]
call fcn.00403fb4
pop edx
call fcn.0040a0f4
test eax, eax
jne 0x472e49
mov eax, dword [ebp - 4]
call fcn.00403df0
test eax, eax
jg 0x472f06
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x24]
call fcn.00403c0c
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 4]
call fcn.00403bc8
mov eax, dword [ebx + 0x24]
call fcn.00403df0
test eax, eax
jne 0x472e80
lea eax, [ebp - 8]
push eax
push 0x11
mov eax, ebx
call fcn.00471b74
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
jmp 0x472e8d
mov edx, dword [ebx + 0x24]
xor eax, eax
call fcn.00471618
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x472ec2
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00403bc8
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x472f40
call fcn.00403e3c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x471204]
call fcn.0040cb8c
call fcn.004035cc
mov eax, dword [ebx + 0x24]
call fcn.00403df0
test eax, eax
jle 0x472eed
mov eax, dword [ebx + 0x24]
call fcn.00403df0
mov edx, dword [ebx + 0x24]
cmp byte [edx + eax - 1], 0x5c
je 0x472eed
lea eax, [ebx + 0x24]
mov edx, 0x472f60
call fcn.00403df8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00472f64
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x511970]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472f30
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403b98
lea eax, [ebp - 4]
call fcn.00403b74
ret

Function at 0x473490
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x4009
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00472d58
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop ebx
ret

Function at 0x4734c4
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
push 0x400b
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00472d58
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop ebx
ret
Function at 0x4736e8
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffe9c
mov word [esp], 0
push 0x4009
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 8]
add esp, 0x164
ret

Function at 0x4737e4
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffe9c
mov ebx, edx
mov word [esp], 0
push 0x208
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, ebx
lea edx, [esp + 0x10]
mov ecx, 0x104
call fcn.00403da0
add esp, 0x164
pop ebx
ret
Function at 0x473e1c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd64
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00403b74
test esi, esi
jne 0x473e51
cmp byte [ebp - 1], 0
jne 0x473e51
mov edx, edi
mov eax, ebx
call fcn.00471bb4
jmp 0x474058
mov eax, ebx
call fcn.00473cb8
test al, al
je 0x473f13
cmp byte [ebp - 1], 0
je 0x473e6d
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x473e73
mov eax, dword [ebx + 0x30]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x118]
mov edx, 0x110
call fcn.00407df0
cmp dword [ebx + 0x5c], 0
je 0x473ec7
lea eax, [ebp - 0x118]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
call fcn.0040ef2c
test al, al
je 0x473ec7
mov ecx, edi
lea edx, [ebp - 0x110]
mov eax, dword [ebx + 0x30]
call fcn.00471438
lea eax, [ebp - 0x110]
call fcn.004714a8
jmp 0x474058
cmp dword [ebx + 0x58], 0
je 0x474058
lea eax, [ebp - 0x118]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x58]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.0040ef2c
test al, al
je 0x474058
mov ecx, edi
lea edx, [ebp - 0x110]
mov eax, dword [ebx + 0x30]
call fcn.00471438
lea eax, [ebp - 0x110]
call fcn.004714a8
jmp 0x474058
cmp byte [ebp - 1], 0
je 0x473f42
cmp esi, 3
jle 0x473f2a
mov eax, edi
call fcn.00403b74
jmp 0x474058
mov eax, edi
lea edx, [esi + esi*2]
mov ecx, dword [0x50fd3c]
mov edx, dword [ecx + edx*4]
call fcn.00403c0c
jmp 0x474058
cmp byte [ebx + 0x90], 0
jne 0x473f70
push 0x140
lea eax, [ebx + 0x64]
push eax
push 1
mov eax, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x2c]
push eax
call sub.shell32.dll_SHGetDataFromIDListA
call fcn.0040ef2c
test al, al
je 0x474058
dec esi
je 0x473f86
dec esi
je 0x47401a
dec esi
je 0x47404e
jmp 0x474058
test dword [ebx + 0x64], 0x10
jbe 0x473f9b
mov eax, edi
call fcn.00403b74
jmp 0x474058
mov eax, dword [ebx + 0x84]
cmp eax, 0x400
jae 0x473fb6
test eax, eax
jbe 0x473fb6
mov dword [ebx + 0x84], 0x400
push edi
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x290], eax
xor eax, eax
mov dword [ebp - 0x28c], eax
fild qword [ebp - 0x290]
fdiv dword [0x474064]
fstp xword [ebp - 0x29c]
wait
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x288], eax
mov byte [ebp - 0x284], 3
mov eax, 0x474070
mov dword [ebp - 0x280], eax
mov byte [ebp - 0x27c], 0xb
lea edx, [ebp - 0x288]
mov ecx, 1
mov eax, 0x47407c
call fcn.0040a780
jmp 0x474058
push 0x408
push 0x160
lea eax, [ebp - 0x278]
push eax
push 0
mov eax, ebx
call fcn.00472d58
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, edi
lea edx, [ebp - 0x168]
mov ecx, 0x50
call fcn.00403da0
jmp 0x474058
mov edx, edi
lea eax, [ebx + 0x78]
call fcn.00473d34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x474280
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov ebx, eax
cmp byte [ebx + 0x5c], 0
jne 0x4742ba
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x474350
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
mov eax, ebx
call fcn.0043f75c
jmp 0x4742e0
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x474350
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
mov eax, ebx
call fcn.0043f75c
mov eax, ebx
call fcn.00474354
test al, al
jne 0x474349
mov ecx, ebx
mov dl, 1
mov eax, dword [0x430c04]
call fcn.0043f400
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474342
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x36], 1
mov eax, ebx
call fcn.0043f798
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0043f75c
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474349
mov eax, dword [ebp - 4]
call fcn.00402ef4
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x481342
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4811aa
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00480c80
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040d42c
cmp al, 1
jne 0x4811aa
dec ebx
mov edi, ebx
mov eax, esi
call fcn.00480f44
test al, al
je 0x4812e2
test edi, edi
jge 0x4811c1
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00480c80
mov eax, dword [ebp - 0x204]
call fcn.00403df0
cmp ebx, eax
jge 0x481208
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00480c80
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5100c0]
and eax, 0xff
bt dword [edx], eax
jae 0x481208
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x481216
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.0048113c
cmp ebx, edi
je 0x4812da
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x481240
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.004030d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x509138]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.004030d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x509138]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.00439b04
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.004030d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x509138]
push eax
push 0x101
mov eax, esi
call fcn.00439b04
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x481329
test edi, edi
jge 0x4812e8
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00480c80
mov eax, dword [ebp - 0x204]
call fcn.00403df0
cmp edi, eax
jl 0x48131e
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00480c80
mov eax, dword [ebp - 0x204]
call fcn.00403df0
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.0048113c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481349
lea eax, [ebp - 0x204]
call fcn.00403b74
ret
Function at 0x488374
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x488401
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x511e94], 0x1267
mov eax, 0x511e98
call fcn.00403b74
movzx esi, byte [0x5093bc]
test esi, esi
jle 0x4883dd
mov edi, 0x5093bd
call fcn.00488344
mov ebx, eax
mov al, byte [edi]
xor bl, al
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403d18
mov edx, dword [ebp - 8]
mov eax, 0x511e98
call fcn.00403df8
inc edi
dec esi
jne 0x4883b7
mov eax, dword [ebp - 4]
mov edx, dword [0x511e98]
call fcn.00403c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488408
lea eax, [ebp - 8]
call fcn.00403b74
ret

Function at 0x488410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48849d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x511e94], 0x1267
mov eax, 0x511e98
call fcn.00403b74
movzx esi, byte [0x509414]
test esi, esi
jle 0x488479
mov edi, 0x509415
call fcn.00488344
mov ebx, eax
mov al, byte [edi]
xor bl, al
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403d18
mov edx, dword [ebp - 8]
mov eax, 0x511e98
call fcn.00403df8
inc edi
dec esi
jne 0x488453
mov eax, dword [ebp - 4]
mov edx, dword [0x511e98]
call fcn.00403c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4884a4
lea eax, [ebp - 8]
call fcn.00403b74
ret
Function at 0x48e8bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebp
push 0x48ea6a
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 4], 0x6a
xor edx, edx
mov dword [esi], edx
test al, 2
je 0x48e98d
push 0x48ea80
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [0x50fe18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x50fe18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esi], eax
cmp dword [esi], 0
je 0x48ea4b
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x48
call fcn.00402bf4
mov eax, dword [esi]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x48ea4b
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x50fe18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x204d454d
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x10000
lea eax, [ebp - 0x50]
push eax
push 0
call sub.winmm.dll_mmioOpenA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x48ea4b
jmp 0x48ea23
test al, 4
je 0x48e9ca
lea edx, [ebp - 0x50]
mov eax, dword [ebp + 0x10]
mov ecx, 0x48
call fcn.00402858
mov dword [ebp - 0x4c], 0x204d454d
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x10000
lea eax, [ebp - 0x50]
push eax
push 0
call sub.winmm.dll_mmioOpenA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x48ea4b
jmp 0x48ea23
lea edx, [ebp - 0x54]
mov eax, dword [ebp + 0x10]
call fcn.0040a238
mov eax, dword [ebp - 0x54]
call fcn.004096e4
test al, 1
jne 0x48ea0c
push 0x10002
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.winmm.dll_mmioOpenA
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x48ea1e
push 0x10000
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.winmm.dll_mmioOpenA
mov dword [ebx], eax
jmp 0x48ea1e
push 0x10000
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.winmm.dll_mmioOpenA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x48ea4b
push 0
push 0
push edi
mov eax, dword [ebx]
push eax
call sub.winmm.dll_mmioDescend
test eax, eax
jne 0x48ea4b
cmp dword [edi], 0x46464952
jne 0x48ea4b
mov eax, dword [edi + 8]
cmp eax, dword [ebp + 0xc]
jne 0x48ea4b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x48ea54
mov edx, esi
mov eax, ebx
call fcn.0048e888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ea71
lea eax, [ebp - 0x54]
call fcn.00403b74
ret
Function at 0x4939cc
Capabilities:
Encode data using xor

Disassembly:
enter 4, 0
push ebx
push edi
push esi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
call fcn.004937ec
jae 0x493aaf
sub edx, ebx
sub ecx, eax
jle 0x493aaf
cmp dword [0x5096b8], 1
jne 0x493a0c
nop
nop
nop
nop
inc ebx
sub ebx, dword [0x511ef0]
neg ebx
imul ebx, dword [0x511ef4]
add ebx, eax
cmp dword [0x511ee4], 0x18
jne 0x493a26
nop
nop
nop
nop
add ebx, eax
add ebx, eax
mov edi, dword [0x511f00]
add edi, ebx
mov eax, dword [0x511efc]
mov ebx, ecx
mov esi, dword [0x511ef4]
cmp dword [0x511ee4], 0x18
jne 0x493a4c
nop
nop
nop
nop
shl ecx, 1
add ecx, ebx
cmp dword [0x5096b8], 0xffffffff
jne 0x493a60
nop
nop
nop
nop
sub esi, ecx
jmp 0x493a64
add esi, ecx
neg esi
cmp dword [0x511ee4], 0x18
je 0x493a84
nop
nop
nop
nop
dec edx
jl 0x493aaf
nop
nop
nop
nop
mov ecx, ebx
xor byte [edi], al
inc edi
dec ecx
jne 0x493a7a
add edi, esi
jmp 0x493a71
mov dword [ebp - 4], edx
mov edx, eax
shr edx, 0x10
xchg ah, al
dec dword [ebp - 4]
jl 0x493aaf
nop
nop
nop
nop
mov ecx, ebx
dec ecx
jl 0x493aab
nop
nop
nop
nop
xor byte [edi], dl
xor word [edi + 1], ax
add edi, 3
jmp 0x493a99
add edi, esi
jmp 0x493a8e
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x49c784
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
mov byte [ebp - 1], al
xor ebx, ebx
lea eax, [ebp - 0xb]
xor ecx, ecx
mov edx, 0xa
call fcn.00402bf4
cmp byte [ebp - 1], 0
je 0x49c7c6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xc]
add eax, dword [esi]
lea edx, [ebp - 0xb]
mov ecx, 0xa
call fcn.00402858
jmp 0x49c863
push 0
push 0
mov edi, dword [0x50fff0]
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
xor edx, edx
call edi
add eax, dword [esi]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
xor edx, edx
cmp edx, 0xffffffff
jne 0x49c801
cmp eax, 0xffffffff
je 0x49c8b5
push 0
lea eax, [ebp - 0x10]
push eax
push 0xa
lea eax, [ebp - 0xb]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x49c8b5
cmp dword [ebp - 0x10], 0xa
jb 0x49c8b5
push 0
push 0
mov edi, dword [0x50fff0]
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
xor edx, edx
call edi
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
xor edx, edx
cmp edx, 0xffffffff
jne 0x49c863
cmp eax, 0xffffffff
je 0x49c8b5
cmp byte [ebp - 0xb], 0x49
jne 0x49c8b5
cmp byte [ebp - 0xa], 0x44
jne 0x49c8b5
cmp byte [ebp - 9], 0x33
jne 0x49c8b5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x4069], 1
xor eax, eax
mov al, byte [ebp - 2]
xor edx, edx
mov dl, byte [ebp - 3]
shl edx, 7
or eax, edx
xor edx, edx
mov dl, byte [ebp - 4]
shl edx, 0xe
or eax, edx
xor edx, edx
mov dl, byte [ebp - 5]
shl edx, 0x15
or eax, edx
add eax, 0xa
add dword [esi], eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add dword [edx + 0x14], eax
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49c8c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fa4
xor eax, eax
push ebp
push 0x49c934
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040999c
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dl, 1
call fcn.0045db70
mov eax, dword [ebp - 8]
call fcn.00403fb4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x49c913
cmp eax, 5
jne 0x49c917
mov bl, 1
jmp 0x49c919
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c93b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403b98
ret
Function at 0x49cee4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x28], 0
je 0x49cf5d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
sub edx, dword [eax + 0x10]
mov ebx, dword [0x510038]
mov ebx, dword [ebx]
mov eax, edi
call ebx
mov dword [esi], eax
cmp dword [esi], 0
jbe 0x49cf56
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0xc]
lea eax, [edx + eax]
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
call fcn.00402858
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add dword [edx + 0x10], eax
mov bl, 1
jmp 0x49cfe2
xor ebx, ebx
jmp 0x49cfe2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x1c], 0
jle 0x49cfc5
push 1
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add eax, dword [edx + 0x24]
cdq
push edx
push eax
lea eax, [edi + ecx]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x49cfa9
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x49cfc5
jmp 0x49cfad
pop edx
pop eax
jle 0x49cfc5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edi, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add edi, dword [eax + 0x24]
sub edi, ecx
test edi, edi
jbe 0x49cfe2
push 0
push esi
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ReadFile_1
neg eax
sbb ebx, ebx
neg ebx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4adb44
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4adb4e
mov eax, dword [esp + 0x2000]
add esp, 0xffffff74
mov byte [esp + 2], cl
mov byte [esp + 1], dl
mov byte [esp], al
xor edi, edi
lea esi, [esp + 0x10]
push 0x2000
lea eax, [esp + 0x14]
push eax
push 0
call sub.kernel32.dll_QueryDosDeviceA
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
jle 0x4adba1
inc edi
lea eax, [esp + ebx + 0x10]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
add ebx, eax
cmp ebp, ebx
jg 0x4adb8f
dec edi
test edi, edi
jl 0x4adc8f
inc edi
push 0x4adca0
lea eax, [esp + 0x2014]
push eax
call sub.kernel32.dll_lstrcpyA_1
push esi
lea eax, [esp + 0x2014]
push eax
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_lstrlenA_1
add esi, eax
inc esi
push 0x4adca8
lea eax, [esp + 0x2014]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
je 0x4adc88
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x2028]
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4adc35
push 0
push 0x40000000
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x2028]
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4adc88
push 0
lea eax, [esp + 0x10]
push eax
push 8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x41018
push ebx
call sub.kernel32.dll_DeviceIoControl
neg eax
sbb eax, eax
neg eax
test al, al
je 0x4adc82
mov al, byte [esp]
cmp al, byte [esp + 8]
jne 0x4adc82
mov al, byte [esp + 1]
cmp al, byte [esp + 0xa]
jne 0x4adc82
mov al, byte [esp + 2]
cmp al, byte [esp + 0xb]
jne 0x4adc82
mov eax, ebx
jmp 0x4adc92
push ebx
call sub.kernel32.dll_CloseHandle_1
dec edi
jne 0x4adbab
or eax, 0xffffffff
add esp, 0x2090
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4aed9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffffe
test eax, eax
je 0x4aee50
xor edx, edx
mov dword [ebp - 4], edx
cmp byte [eax + 0x34], 0
je 0x4aedd7
mov eax, dword [eax + 0x3e]
test eax, eax
je 0x4aee50
inc dword [ebp - 4]
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x4aedcb
jmp 0x4aee50
cmp byte [eax + 0xb8], 0
je 0x4aee50
push 0
push 0
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, eax
mov eax, ebx
call fcn.0040a24c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4aee49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, dword [ebp - 8]
jmp 0x4aee2e
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4aee23
inc dword [ebp - 4]
jmp 0x4aee23
inc ebx
cmp byte [ebx], 0
jne 0x4aee22
cmp byte [ebx], 0
jne 0x4aee2e
inc ebx
cmp byte [ebx], 0
jne 0x4aee12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aee50
mov eax, dword [ebp - 8]
call fcn.0040a298
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret 4