joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4306e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x3b0]
call fcn.00430592
mov ecx, dword [esi + 0x3b0]
xor eax, eax
mov dword [ecx + 0xa8], eax
mov ecx, dword [esi + 0x3b0]
mov byte [ecx + 0x102], al
cmp dword [esi + 0x3a0], eax
jne 0x430760
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x3b0]
mov dword [esi + 0x3a8], 1
push 0x4305b3
push 0xfa0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3a0], eax
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
leave
ret

Function at 0x431c58
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x431a9f
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x431acb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3b0]
and dword [esi + 0x3a0], 0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x3b0]
mov ecx, esi
call fcn.004316e1
pop edi
pop esi
ret
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3b0]
add eax, edi
cmp dword [esi + 0x3a0], 0
push eax
jne 0x431c92
mov byte [esi + 0x390], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
mov dword [esi + 0x3a8], 4
mov dword [esi + 0x3ac], 2
mov byte [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
mov ecx, esi
call fcn.0043029e
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x431c8f
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x431a6c
Function at 0x4356a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435700
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x435700
cmp esi, ebx
je 0x4356f9
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x435711
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x435894
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x491a58
call fcn.004691dc
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401b60
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x435900
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.004356a2
test eax, eax
lea eax, [ebp - 0x130]
jne 0x435906
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x435909
lea eax, [ebp - 0x130]
push eax
jmp 0x43590e
push 0x4ac438
lea ecx, [ebp - 0x28]
call fcn.00401a90
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00408e70
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x435b16
Capabilities:
Create directory

Disassembly:
mov eax, 0x491a58
call fcn.004691dc
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x435b36
call fcn.00435ab3
test al, al
je 0x435b3a
mov al, 1
jmp 0x435b8c
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401660
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x435b5c
cmp dword [esi + 0x18], 0x10
jb 0x435b6c
mov esi, dword [esi + 4]
jmp 0x435b6f
lea ecx, [ebp - 0x28]
call fcn.00435b16
test al, al
jne 0x435b51
xor bl, bl
jmp 0x435b7d
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c90
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x43b295
mov ecx, dword [ecx + 4]
jmp 0x43b298
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43b2ab
test al, 0x10
je 0x43b2ab
mov al, 1
ret
xor al, al
ret
Function at 0x45117c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x494671
call fcn.004691dc
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00435f57
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
mov dword [esi], 0x4b06e0
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
call fcn.0040c550
mov ecx, dword [esi + 8]
mov dword [esi + 0x30], ebx
mov eax, dword [ecx]
push 1
mov byte [ebp - 4], 1
call dword [eax + 0x30]
push eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call fcn.0047f448
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x452ed0
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push ebx
lea ecx, [esi + 0x18]
call fcn.004019d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.00452d10
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x452f42
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x452f0f
xor eax, eax
jmp 0x452f14
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x452f42
cmp word [ecx], 0x5a4d
jne 0x452f42
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x452f42
cmp dword [edx + ecx], 0x4550
jne 0x452f42
push ecx
lea ecx, [esi + 0x34]
call fcn.00452c50
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x454f14
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor bl, bl
test eax, eax
je 0x454fdb
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebp
push edx
call dword [eax + 0x14]
mov ebp, eax
test ebp, ebp
je 0x454fd0
mov ecx, dword [esi + 4]
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
push edi
call dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jae 0x454f60
mov ebx, eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x454fc4
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
call dword [edx + 0x24]
push eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
test eax, eax
mov eax, dword [esi]
push edi
push eax
setne byte [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov al, byte [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 8
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret 8
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 8
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 8
Function at 0x4550a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x494b97
call fcn.004691dc
sub esp, 0x78
mov eax, dword [0x4d2260]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x68]
push eax
call fcn.00454fe5
and dword [ebp - 4], 0
mov dword [esp], 0x4aaa7c
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409460
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00403f10
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401c90
push 0
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401c90
mov eax, dword [ebp - 0x28]
push 0x10
pop esi
cmp dword [ebp - 0x14], esi
jae 0x455124
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x455187
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x84]
call fcn.00401660
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00435b16
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00401c90
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x455167
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.0043582e
cmp eax, 0xffffffff
jne 0x455180
xor bl, bl
jmp 0x4551cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x455192
lea ecx, [ebp - 0x28]
cmp dword [edi + 0x18], esi
jb 0x45519c
mov edi, dword [edi + 4]
jmp 0x45519f
add edi, 4
cmp dword [ebx + 0x18], esi
jb 0x4551a9
mov ebx, dword [ebx + 4]
jmp 0x4551ac
add ebx, 4
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x18], esi
jb 0x4551b9
mov eax, dword [eax + 4]
jmp 0x4551bc
add eax, 4
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00465dcc
leave
ret
Function at 0x4551f2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x494bcd
call fcn.004691dc
sub esp, 0x48c
mov eax, dword [0x4d2260]
and dword [ebp - 0x454], 0
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x458], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x47c]
mov esi, 0x400
push eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x450], esi
call fcn.00454fe5
and dword [ebp - 4], 0
mov dword [esp], 0x4aaa7c
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00409460
push edi
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 1
call fcn.00403f10
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x498]
call fcn.00401c90
push 0
push 1
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 3
call fcn.00401c90
mov eax, dword [ebp - 0x428]
push 0x10
pop edx
cmp dword [ebp - 0x414], edx
jae 0x4552ba
lea eax, [ebp - 0x428]
cmp dword [ebx + 0x18], edx
mov dword [ebp - 0x454], eax
jb 0x4552ca
mov edi, dword [ebx + 4]
jmp 0x4552cf
lea eax, [ebx + 4]
mov edi, eax
mov eax, dword [ebp - 0x458]
cmp dword [eax + 0x18], edx
jb 0x4552e1
add eax, 4
mov ecx, dword [eax]
jmp 0x4552e6
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x18], edx
jb 0x4552f8
add eax, 4
mov eax, dword [eax]
jmp 0x4552fb
add eax, 4
push dword [ebp - 0x454]
lea edx, [ebp - 0x410]
push esi
push edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push eax
call edi
lea ecx, [eax + 1]
cmp ecx, esi
jne 0x45540d
push 0
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x430], 0xf
call fcn.00401b60
mov byte [ebp - 4], 5
jmp 0x455342
mov ebx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x450]
add eax, eax
push eax
mov dword [ebp - 0x450], eax
call fcn.0047f448
mov esi, eax
mov byte [esi], 0
cmp dword [ebp - 0x414], 0x10
mov edx, dword [ebp - 0x428]
pop ecx
jae 0x455371
lea edx, [ebp - 0x428]
cmp dword [ebx + 0x18], 0x10
jb 0x45537e
add ebx, 4
mov ebx, dword [ebx]
jmp 0x455381
add ebx, 4
mov eax, dword [ebp - 0x458]
cmp dword [eax + 0x18], 0x10
jb 0x455394
add eax, 4
mov ecx, dword [eax]
jmp 0x455399
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x18], 0x10
jb 0x4553ac
add eax, 4
mov eax, dword [eax]
jmp 0x4553af
add eax, 4
push edx
push dword [ebp - 0x450]
push esi
push ebx
push ecx
push eax
call edi
push esi
lea ecx, [ebp - 0x448]
mov ebx, eax
call fcn.00401a90
push esi
call fcn.0047f44d
cmp dword [ebp - 0x450], 0x989680
pop ecx
jg 0x4553ea
inc ebx
cmp ebx, dword [ebp - 0x450]
je 0x45533c
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x448]
push eax
call fcn.00408e70
push 0
push 1
lea ecx, [ebp - 0x448]
call fcn.00401c90
jmp 0x45542a
test eax, eax
mov ecx, dword [ebp - 0x44c]
jbe 0x455420
lea eax, [ebp - 0x410]
push eax
jmp 0x455425
push 0x4aaa7e
call fcn.00401790
push 0
lea ecx, [ebp - 0x42c]
push 1
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00465dcc
leave
ret
Function at 0x4568c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx + 0x14]
call fcn.00414bc0
mov esi, 0x4b1564
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x14], edi
jbe 0x456914
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.00408f00
mov ecx, edi
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
xor cl, byte [eax]
inc edi
mov byte [esi], cl
cmp edi, dword [ebx + 0x14]
jb 0x4568f1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x457516
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x45753d
push 0x4d1080
lea ecx, [ebp - 0xc]
call fcn.004676ab
push 0x4c66e4
lea eax, [ebp - 0xc]
push eax
call fcn.004666db
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x45755f
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x45754f
pop edi
pop esi
leave
ret 8
Function at 0x459193
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2904
call fcn.00466720
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2904]
push eax
mov dword [ebp - 4], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4591d1
mov ecx, dword [ebp + 8]
push 0x4aaa7e
call fcn.00401790
jmp 0x459286
lea eax, [ebp - 0x2904]
xor ecx, ecx
push esi
movzx edx, byte [eax + 0x196]
movzx esi, byte [eax + 0x197]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x198]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x199]
shl edx, 8
add edx, esi
je 0x459268
cmp dword [ebp + 0xc], 0
jl 0x459212
cmp dword [ebp + 0xc], ecx
jne 0x45926d
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0046b286
add esp, 0x24
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push eax
jmp 0x45927d
cmp dword [ebp + 0xc], ecx
je 0x459278
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4591da
push 0x4aaa7e
mov ecx, dword [ebp + 8]
call fcn.00401790
pop esi
mov eax, dword [ebp + 8]
leave
ret

Function at 0x45928b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x49562c
call fcn.004691dc
sub esp, 0x120
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
jne 0x4592b1
call fcn.004590b7
mov byte [ebp + 8], al
push esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00401b60
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
mov dword [ebp - 4], ebx
call fcn.00409180
push 0x4b518c
lea ecx, [ebp - 0x28]
call fcn.004028a0
mov esi, 0x104
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00465960
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x459301
lea eax, [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop esi
je 0x459329
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push eax
call fcn.00401a90
push ebx
lea ecx, [ebp - 0x28]
push 1
call fcn.00401c90
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4597df
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x49570a
call fcn.004691dc
mov eax, 0x2960
call fcn.00466720
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0xd], bl
jne 0x459805
call fcn.004590b7
movsx eax, al
push eax
lea eax, [ebp - 0x25c]
push str.._c:
push eax
call fcn.0046675d
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x459a10
push esi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00465960
mov esi, 0x2710
push esi
lea eax, [ebp - 0x296c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00465960
add esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x296c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x459a06
cmp dword [ebp - 0x2954], esi
jae 0x459a06
cmp dword [ebp - 0x295c], esi
jae 0x459a06
mov eax, esi
sub eax, dword [ebp - 0x2954]
push 0x64
pop ecx
cmp eax, ecx
jle 0x4598bc
mov eax, ecx
sub esi, dword [ebp - 0x295c]
dec eax
cmp esi, ecx
mov dword [ebp - 0x18], eax
jle 0x4598cc
mov esi, ecx
push edi
xor edi, edi
inc edi
dec esi
cmp eax, edi
jl 0x459a05
cmp esi, edi
jl 0x459a05
push ecx
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.00465960
push 0x64
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.00465960
mov eax, dword [ebp - 0x2954]
push dword [ebp - 0x18]
lea eax, [ebp + eax - 0x296c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00458f6b
mov eax, dword [ebp - 0x295c]
lea eax, [ebp + eax - 0x296c]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00467d30
movsx eax, byte [ebp - 0xf8]
push eax
call fcn.004680d0
add esp, 0x34
test eax, eax
jne 0x459960
movsx eax, byte [ebp - 0xe5]
push eax
call fcn.004680d0
test eax, eax
pop ecx
je 0x459a05
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401790
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.0045974d
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004019d0
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.00401c90
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00401c90
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00401790
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 2
call fcn.0045974d
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.004019d0
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401c90
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.00401c90
cmp dword [esi + 0x14], ebx
jne 0x459a01
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], ebx
je 0x459a05
mov byte [ebp - 0xd], 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45ac42
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
cmp word [eax + 0x18], 0x10b
je 0x45ac61
xor eax, eax
jmp 0x45ac83
mov eax, dword [esi + 0x24]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add eax, ecx
add ebx, ecx
add edi, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], eax
ja 0x45ac89
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
push dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.004667c0
test eax, eax
pop ecx
pop ecx
je 0x45acad
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x45ac86
jmp 0x45ac7f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
jmp 0x45ac81

Function at 0x45acbc
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax + 0x78]
add ecx, edx
cmp word [eax + 0x18], 0x10b
je 0x45acda
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x20]
push ebx
push esi
mov esi, dword [ecx + 0x1c]
push edi
mov edi, dword [ecx + 0x24]
xor ebx, ebx
add eax, edx
add esi, edx
add edi, edx
cmp dword [ecx + 0x18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jbe 0x45ad6e
jmp 0x45acfe
mov eax, dword [ebp - 8]
mov edx, dword [eax + ebx*4]
movzx eax, word [edi + ebx*2]
mov eax, dword [esi + eax*4]
add edx, dword [ebp + 8]
add eax, dword [ebp + 8]
cmp dword [0x4d6320], 0
jne 0x45ad28
cmp byte [eax], 0xb8
jne 0x45ad62
cmp byte [eax + 9], 0xcd
jne 0x45ad62
cmp byte [eax + 0xa], 0x2e
jmp 0x45ad52
cmp dword [0x4d6320], 1
jne 0x45ad62
cmp byte [eax], 0xb8
jne 0x45ad62
cmp byte [eax + 5], 0xba
jne 0x45ad62
cmp byte [eax + 6], 0
jne 0x45ad62
cmp byte [eax + 7], 3
jne 0x45ad62
cmp byte [eax + 8], 0xfe
jne 0x45ad62
cmp byte [eax + 9], 0x7f
jne 0x45ad62
mov eax, dword [eax + 1]
cmp eax, dword [ebp + 0x10]
jae 0x45ad62
mov ebx, dword [ebp + 0xc]
mov dword [ebx + eax*4], edx
mov ebx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ecx + 0x18]
mov dword [ebp - 4], ebx
jb 0x45acfb
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret