joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d170
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43d1a5
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00466284
jmp 0x43d1af
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004661f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43e05c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x43e094
mov eax, esi
call fcn.0044db28
test al, al
je 0x43e094
mov eax, dword [ebx + 0x74]
call fcn.0044d82c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x43e094
push 0
mov eax, dword [ebx + 0x74]
call fcn.0044d82c
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x445494
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x49576c], 0
sete dl
or al, dl
jne 0x4455d4
mov eax, dword [0x495770]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x49576c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4455a3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x49576c]
call fcn.00454314
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44559b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x44559b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x44559b
mov eax, dword [ebp - 0x14]
call fcn.0044d82c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x44559b
push ebp
call fcn.00445450
pop ecx
test al, al
jne 0x44559b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x445557
mov eax, dword [ebp - 0x14]
call fcn.0044c1b8
dec eax
jle 0x44559b
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00465908
cmp byte [ebp - 1], 0
je 0x44559b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x44559b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x495770]
call fcn.00444c9c
inc edi
dec esi
jne 0x4454ea
mov eax, dword [0x495770]
cmp dword [eax + 8], 0
jle 0x4455bb
mov eax, dword [0x495770]
call fcn.00444d2c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4455d4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004452b8
pop ecx
test al, al
jne 0x4455d4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b1c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x44b1f5
je 0x44b24f
sub eax, 7
je 0x44b216
dec eax
je 0x44b240
sub eax, 0x17
je 0x44b2f4
jmp 0x44b332
add eax, 0xffffff00
sub eax, 9
jb 0x44b2e0
add eax, 0xffffff09
sub eax, 0xb
jb 0x44b2a8
jmp 0x44b332
mov eax, ebx
call fcn.00434dbc
mov edi, eax
test edi, edi
je 0x44b392
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x44b39b
jmp 0x44b392
test byte [ebx + 0x44], 0x20
jne 0x44b39b
jmp 0x44b392
mov edx, esi
mov eax, ebx
call fcn.0044873c
cmp dword [esi + 0xc], 0xffffffff
jne 0x44b39b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0045dbf0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00447270
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0044b09c
test eax, eax
je 0x44b39b
mov dword [esi + 0xc], 1
jmp 0x44b39b
mov edx, esi
mov eax, ebx
call fcn.0044b130
test al, al
je 0x44b392
cmp dword [esi + 0xc], 0
jne 0x44b39b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0044d82c
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x44b39b
mov eax, ebx
call fcn.00447dd8
test al, al
jne 0x44b39b
jmp 0x44b392
mov eax, ebx
call fcn.0044d82c
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x44b392
cmp dword [0x490278], 0
je 0x44b392
mov eax, dword [0x490278]
cmp ebx, dword [eax + 0x24]
jne 0x44b392
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x490278]
call fcn.00448670
jmp 0x44b392
mov eax, dword [0x495734]
cmp byte [eax + 0x20], 0
je 0x44b392
mov eax, dword [0x495734]
cmp dword [eax + 0x1c], 0
je 0x44b392
mov eax, dword [esi]
mov edx, dword [0x495734]
cmp eax, dword [edx + 0x1c]
jne 0x44b392
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00434d00
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00465908
jmp 0x44b39b
mov edx, esi
mov eax, ebx
call fcn.0044873c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b85c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x44b878
cmp dword [esi + 4], 0
je 0x44b8a5
test byte [ebx + 0x45], 1
jne 0x44b897
mov eax, ebx
call fcn.0044a70c
test eax, eax
jne 0x44b897
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44b9b5
mov edx, esi
mov eax, ebx
call fcn.0044b4d4
jmp 0x44b9b5
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44b9ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044d82c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00448670
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044b85c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044d82c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b9b5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x460988
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4609c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00466284
jmp 0x4609ca
mov eax, ebx
mov edx, esi
call fcn.004661f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4609d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4609f5
mov al, byte [esp]
jmp 0x4609f7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x465074
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4650b1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x4650d1
lea eax, [esp + 0x108]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.004663cc
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x465230
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x46525f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00466284
jmp 0x46527d
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004651b8
mov edi, eax
test ebx, ebx
je 0x46527d
cmp dword [esi], 0
je 0x46527d
dec ebx
jmp 0x465266
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4655a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490614]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x46563c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46561c
xor eax, eax
push ebp
push 0x465615
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x465658
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46561c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x490614]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490614], ax
mov esp, ebp
pop ebp
ret
Function at 0x467714
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4678d0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x467775
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4678ec
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4677e7
xor eax, eax
push ebp
push 0x4677e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0046756c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4677c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x46790c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4677e7
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4678c8
cmp byte [ebp - 0xd], 0
jne 0x467829
cmp byte [ebp - 0x12], 0
je 0x4678c8
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x467842
dec ebx
cmp byte [ebx], 0x2e
je 0x467851
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x467841
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4678c8
inc ebx
cmp byte [ebp - 0x12], 0
je 0x46787e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4678c8
cmp byte [ebp - 0xd], 0
je 0x4678c8
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4678c8
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467cec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x467dd4
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x495e14], 1
jae 0x467dc6
xor eax, eax
mov dword [0x495a20], eax
xor eax, eax
mov dword [0x495a28], eax
xor eax, eax
mov dword [0x495a2c], eax
mov byte [0x495a32], 2
mov byte [0x495a33], 2
mov byte [0x495a34], 3
mov word [0x495ddc], 0
mov word [0x495dec], 1
mov word [0x495dfc], 0xa
mov dword [0x495e04], 0x80020004
mov dword [0x495dd0], 0x466ea8
mov dword [0x495dd4], 0x466ea0
mov dword [0x495dd8], 0x466ea8
call fcn.00465574
test al, al
je 0x467d85
call fcn.004655a4
call fcn.00465668
mov eax, 0x495a38
mov edx, 0x467de0
call fcn.00462c3a
mov eax, 0x495c04
mov edx, 0x467de0
call fcn.00462c3a
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x495a18], eax
call fcn.00463ba0
mov dword [0x495a14], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x495a0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467ddb
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x469a6c
call fcn.0046b3d4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x469a88
test bl, 1
je 0x469a88
call fcn.0046f42c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x469c6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0046af70
test byte [ebp + 0xd], 0xc0
jne 0x469c90
mov eax, dword [0x491400]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x469c9d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x469cca
je 0x469cdc
sub ecx, 0x100
je 0x469cea
sub ecx, 0x100
je 0x469cf1
sub ecx, 0x100
je 0x469ce3
jmp 0x469cf8
sub ecx, 0x600
je 0x469cf1
sub ecx, 0x100
je 0x469cdc
jmp 0x469cf8
mov edi, 1
jmp 0x469cfd
mov edi, 2
jmp 0x469cfd
mov edi, 4
jmp 0x469cfd
mov edi, 5
jmp 0x469cfd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x469d24
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x490e5c]
test al, 0x80
je 0x469d1d
mov ebx, 0x80
jmp 0x469d36
mov ebx, 1
jmp 0x469d36
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x469d36
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x469d48
je 0x469d51
dec eax
je 0x469d5a
jmp 0x469d63
mov dword [ebp - 4], 0x80000000
jmp 0x469d72
mov dword [ebp - 4], 0x40000000
jmp 0x469d72
mov dword [ebp - 4], 0xc0000000
jmp 0x469d72
push 1
call fcn.0046b368
pop ecx
mov ebx, eax
jmp 0x469e62
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x469d8e
sub eax, 0x10
je 0x469d95
sub eax, 0x10
je 0x469d9e
sub eax, 0x10
je 0x469da7
jmp 0x469da7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x469dae
mov dword [ebp - 8], 1
jmp 0x469dae
mov dword [ebp - 8], 2
jmp 0x469dae
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x469e1b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x469e10
test byte [ebp + 0xd], 1
je 0x469e0b
mov ebx, 0x50
jmp 0x469e10
mov ebx, 2
push ebx
call fcn.0046b368
pop ecx
mov ebx, eax
jmp 0x469e62
mov edi, esi
push edi
call fcn.00469bd0
pop ecx
test eax, eax
je 0x469e2f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x469e3b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0046b090
add esp, 8
mov ebx, eax
inc eax
jne 0x469e62
push 4
call fcn.0046b368
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0046afa4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a538
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x4964d0
call fcn.0046ae54
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x4964d0
call fcn.0046a850
add esp, 0x14
push 0x4913f8
lea ecx, [ebp - 8]
push ecx
call fcn.00468890
add esp, 8
mov byte [0x4964d0], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x4964d0
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x46a5ab
mov eax, 0x4964d0
jmp 0x46a5ad
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x46a664
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x46a689
cmp dword [ebx + 4], 0xfffffffe
jne 0x46a689
or eax, 0xffffffff
jmp 0x46a7c1
test byte [ebx + 8], 8
je 0x46a6f6
cmp dword [ebx + 4], 0xffffffff
jne 0x46a6f6
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.0046a538
pop ecx
mov edi, eax
test edi, edi
je 0x46a6de
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x46a7c1
call fcn.0046b3b4
test eax, eax
jne 0x46a6ee
xor eax, eax
jmp 0x46a7c1
or eax, 0xffffffff
jmp 0x46a7c1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x46a703
cmp eax, 0xfffffffe
jne 0x46a72a
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x46a73a
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x46a750
call fcn.0046b3b4
test eax, eax
jne 0x46a74b
xor eax, eax
jmp 0x46a7c1
or eax, 0xffffffff
jmp 0x46a7c1
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x46a764
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x46a6f6
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ae54
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0046830c
pop ecx
mov ebx, eax
test eax, eax
jne 0x46ae78
xor eax, eax
jmp 0x46af21
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x46ae99
cmp esi, 0x104
jb 0x46aea4
push ebx
call fcn.0046831c
pop ecx
xor eax, eax
jmp 0x46af21
cmp byte [ebx + 1], 0x3a
jne 0x46aed4
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x46aed4
push ebx
call fcn.0046831c
pop ecx
xor eax, eax
jmp 0x46af21
inc esi
test edi, edi
je 0x46af17
cmp esi, dword [ebp + 0x10]
jbe 0x46aee9
push ebx
call fcn.0046831c
pop ecx
xor eax, eax
jmp 0x46af21
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0046831c
pop ecx
mov eax, edi
jmp 0x46af21
push esi
push ebx
call fcn.0046832c
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46f3c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x46f426
call fcn.0046f374
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00468948
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00468948
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46f4a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4923a0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x46f57e
cmp dword [0x49239c], 0
jne 0x46f57e
cmp dword [0x492580], 0
je 0x46f538
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0046f274
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46f51e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0046f274
add esp, 8
mov ebx, eax
test eax, eax
jne 0x46f51e
lea ebx, [ebp - 0x84]
jmp 0x46f51f
inc ebx
call fcn.0046f460
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x46f5b9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4923a4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00468948
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4923a7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x46f5b9
cmp dword [0x49239c], 0
je 0x46f598
cmp dword [0x49239c], 0xffffffff
je 0x46f5b9
push esi
call dword [0x49239c]
pop ecx
mov eax, dword [0x4923a0]
test eax, eax
je 0x46f5b9
cmp dword [0x4923a0], 0xffffffff
je 0x46f5b9
cmp byte [eax], 0
je 0x46f5b9
push esi
push eax
call fcn.0046f3c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret