joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43baa4
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 + 0x1f8], 0
je 0x43bac0
cmp dword [esi + 4], 0
je 0x43baed
test byte [ebx + 0x55], 1
jne 0x43badf
mov eax, ebx
call fcn.0043a644
test eax, eax
jne 0x43badf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43bbfd
mov edx, esi
mov eax, ebx
call fcn.0043b5c8
jmp 0x43bbfd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x43bbf6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d914
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.004382e0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043baa4
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.0043d914
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bbfd
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 0x44228c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4836c8]
cmp byte [eax + 0xc], 0
je 0x4423f9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4423f2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x484b68], 0
jne 0x4422e0
push 0x442400
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442408
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b68], eax
cmp dword [0x482cb4], 0
jne 0x4423db
push 0x442418
call sub.kernel32.dll_LoadLibraryA
mov dword [0x482cb4], eax
cmp dword [0x482cb4], 0
je 0x4423db
push 0x442424
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b6c], eax
push 0x442434
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b70], eax
push 0x442448
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b74], eax
push 0x442460
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b78], eax
push 0x442478
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b7c], eax
push 0x44248c
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b80], eax
push 0x4424a4
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b84], eax
push 0x4424bc
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b88], eax
push 0x4424d8
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b8c], eax
push 0x4424e4
mov eax, dword [0x482cb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4423f9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446284
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004045a0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4462d3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404810
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44da10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44da60]
test si, 4
je 0x44da24
or bl, 1
test si, 8
je 0x44da2e
or bl, 4
test si, 1
je 0x44da38
or bl, 8
test si, 2
je 0x44da42
or bl, 0x10
test si, 0x10
je 0x44da4c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44da5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44da64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44da9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44da7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44da8c
or bl, 4
test esi, 0x20000000
je 0x44da97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454144
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454156
add esp, 0xfffffff0
call fcn.00403b54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dac4
mov eax, dword [0x4832a4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4544e8
mov eax, dword [0x4832b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4544f4
mov eax, ebx
call fcn.00454500
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45091c
push eax
push 0
push 0
mov eax, dword [0x483444]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f518]
call fcn.00420bb4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f518]
call fcn.00420bb4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f518]
call fcn.00420bb4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004549b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454844
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454844
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454844
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454293
call fcn.00403bac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454628
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4547d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4547b4
mov dl, 1
mov eax, dword [0x416154]
call fcn.00403800
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4547a3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004425ec
test al, al
je 0x454796
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4547e4
lea eax, [ebp - 0x254]
call fcn.00409638
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454796
xor eax, eax
push ebp
push 0x45478f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45481c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454778
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404810
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454778
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404810
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454796
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454699
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419cb4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4547da
lea eax, [ebp - 0x260]
call fcn.004045a0
ret

Function at 0x455150
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x484bb4]
cmp byte [eax + 0xa5], 0
jne 0x4551c1
cmp dword [0x484bcc], 0
jne 0x455182
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45510c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x484bcc], eax
cmp dword [0x484bc8], 0
jne 0x45519d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x484bc8], eax
cmp dword [0x484bd0], 0
jne 0x4551c1
push esp
push 0
push 0
push 0x4550b0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x484bd0], eax
pop edx
ret
Function at 0x4552b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4552cf
add esp, 0xfffffff0
call fcn.00403b54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dac4
mov eax, dword [0x48342c]
cmp word [eax + 2], 0
jne 0x4552f7
mov eax, dword [0x48342c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004569a8
mov eax, dword [0x4834fc]
cmp word [eax + 2], 0
jne 0x455311
mov eax, dword [0x4834fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456ba0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415d18]
call fcn.00403800
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ff20]
call fcn.004273d8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455498
mov eax, dword [0x48330c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004277a8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457140
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48330c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d1b4
test eax, eax
je 0x455406
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409018
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1dc
test eax, eax
je 0x45541a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404810
mov eax, dword [0x4831ac]
cmp byte [eax], 0
jne 0x45544e
mov eax, ebx
call fcn.004555c0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045731c
mov eax, ebx
call fcn.00457ce0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45548e
call fcn.00403bac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455840
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x484bb4]
cmp dword [eax + 0x30], 0
je 0x4558ea
cmp dword [ebx + 0x94], 0
jne 0x4558e4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4557d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4558e4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4558aa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4558e4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418124
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4558b9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45644c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456481
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404690
jmp 0x45648e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4574f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457539
mov eax, esi
call fcn.0043dc18
test al, al
je 0x457539
mov eax, dword [ebx + 0x84]
call fcn.0043d914
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457539
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d914
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x47c2a8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415514]
call fcn.00404f0c
xor eax, eax
push ebp
push 0x47c3ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x483108], 0
jne 0x47c2fb
mov ecx, dword [0x4831bc]
mov dl, 1
mov eax, dword [0x40785c]
call fcn.0040c460
call fcn.00403fbc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fac
mov eax, ebx
call fcn.00404ddc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47c3fc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405f3c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404dec
test eax, eax
jle 0x47c393
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47c38c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404828
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404810
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004086b4
test eax, eax
jne 0x47c38c
mov ebx, 0x15
jmp 0x47c398
mov ebx, 0x10
jmp 0x47c398
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x483108]
call fcn.0047c200
mov eax, dword [ebp - 8]
call fcn.0047c200
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405f54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c3f3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045c4
lea eax, [ebp - 0x10]
mov edx, dword [0x415514]
call fcn.00404fdc
ret
Function at 0x403b2d
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x41783c
call fcn.00407e74
sub esp, 0x76c
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x168]
push str..PhysicalDrive_d
push eax
call fcn.004080e8
add esp, 0xc
lea eax, [ebp - 0x168]
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x2c], edi
je 0x403d27
push 0x18
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x44]
push 0x18
push eax
push ebx
push ebx
push 0x74080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403bef
mov eax, dword [0x41f804]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.Device__d_Get_version_failed:__lu
push eax
call fcn.0040fba6
add esp, 0x10
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004104d2
mov eax, dword [0x41f804]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x41]
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov dword [ebp - 4], 1
push str.Device__d_Map:__d
push eax
call fcn.0040fba6
add esp, 0x10
push dword [ebp - 0x18]
call esi
mov al, byte [ebp - 0x41]
cmp al, bl
jbe 0x403cf3
mov cl, byte [ebp - 0x10]
push 0x21
shr al, cl
push ebx
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x68]
push eax
call fcn.00408090
push 0x210
lea eax, [ebp - 0x378]
push ebx
push eax
call fcn.00408090
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x378]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.00403a3f
add esp, 0x30
test eax, eax
je 0x403cf3
lea ecx, [ebp - 0x778]
lea eax, [ebp - 0x368]
mov edx, 0x100
movzx edi, word [eax]
inc eax
mov dword [ecx], edi
inc eax
add ecx, 4
dec edx
jne 0x403c8a
push 0x13
lea eax, [ebp - 0x778]
push 0xa
push eax
call fcn.004039df
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.004104fc
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0041057b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004104d2
push dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.00403a99
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0041057b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004104d2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004104d2
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 1
jl 0x403b4b
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor eax, eax
jmp 0x403d18
Function at 0x403daf
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov eax, 0x41789b
call fcn.00407e74
sub esp, 0x314
push ebx
push esi
push edi
xor ebx, ebx
push 0x420ec0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.004104fc
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.00404c7f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [esp], str.TGUP.91D
call fcn.004107aa
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x403e8a
mov edi, 0x104
lea eax, [ebp - 0x120]
push edi
push ebx
push eax
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x120]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.004105cb
push str.OKGUP.OKD
lea ecx, [ebp - 0x10]
call fcn.004107aa
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x403e8a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00410265
mov dword [ebp - 0x18], 1
jmp 0x403eea
mov esi, 0x200
lea eax, [ebp - 0x320]
push esi
push ebx
push eax
call fcn.00408090
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x320]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x320]
push eax
call fcn.00403d7a
pop ecx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x14]
call fcn.004105cb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00410265
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004104d2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4041a5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x4041bf
xor al, al
leave
ret
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 5
pop eax
cmp dword [ebp - 0x90], eax
jae 0x4041e5
mov al, 1
leave
ret
jne 0x40420a
cmp dword [ebp - 0x8c], 0
jne 0x4041f4
mov al, 2
leave
ret
cmp dword [ebp - 0x8c], 1
je 0x404213
cmp dword [ebp - 0x8c], 2
jne 0x404213
mov al, 4
leave
ret
cmp dword [ebp - 0x90], 6
jae 0x404215
mov al, 3
leave
ret