joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ba98
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 0x44bc43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x44bc24
mov dl, 1
mov eax, dword [0x40e5cc]
call fcn.00402d3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a34
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44bc13
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.0043a2c8
test al, al
je 0x44bc06
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, 0x44bc54
lea eax, [ebp - 0x254]
call fcn.00409114
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44bc06
xor eax, eax
push ebp
push 0x44bbff
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 0x44bc8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44bbe8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c64
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x44bbe8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bc06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44bb09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00411c38
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bc4a
lea eax, [ebp - 0x260]
call fcn.00403a34
ret

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

Disassembly:
push ecx
mov eax, dword [0x47c7d0]
cmp byte [eax + 0x95], 0
jne 0x44c501
cmp dword [0x47c7ec], 0
jne 0x44c4c2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44c44c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47c7ec], eax
cmp dword [0x47c7e8], 0
jne 0x44c4dd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47c7e8], eax
cmp dword [0x47c7f0], 0
jne 0x44c501
push esp
push 0
push 0
push 0x44c3f0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47c7f0], eax
pop edx
ret
Function at 0x44c5f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44c60f
add esp, 0xfffffff0
call fcn.004030ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00416488
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40e0a0]
call fcn.00402d3c
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4182e0]
call fcn.0041f630
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x44c784
mov eax, dword [0x47aedc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041fa00
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e0f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47aedc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040b818
test eax, eax
je 0x44c702
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b840
test eax, eax
je 0x44c716
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c64
mov eax, dword [0x47add8]
cmp byte [eax], 0
jne 0x44c747
mov eax, ebx
call fcn.0044c870
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c779
call fcn.00403104
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cae0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47c7d0]
cmp dword [eax + 0x24], 0
je 0x44cb83
cmp dword [ebx + 0x84], 0
jne 0x44cb7d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ca70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x44cb7d
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 0x44cb46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44cb7d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040fbfc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44cb55
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44d590
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 0x44d5c5
push pe_nt_image_headers32
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.00403b1c
jmp 0x44d5cf
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a88
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e46c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44e4a4
mov eax, esi
call fcn.00435fe8
test al, al
je 0x44e4a4
mov eax, dword [ebx + 0x74]
call fcn.00435cec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e4a4
push 0
mov eax, dword [ebx + 0x74]
call fcn.00435cec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454014
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402a84
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x47b188]
cmp byte [edx + 8], 0
je 0x454078
mov edx, dword [0x47b180]
cmp dword [edx], 2
jne 0x454078
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x45407c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x454134
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00454014
test al, al
je 0x454116
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403b1c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x454116
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403e78
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00403e78
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403bec
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x4540cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45413b
lea eax, [ebp - 0x2c]
call fcn.00403a34
lea eax, [ebp - 0xc]
call fcn.00403a34
ret
Function at 0x4542c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403e78
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x454320
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47b194]
mov dl, 1
mov eax, dword [0x453cbc]
call fcn.0040ac54
call fcn.00403504
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00453dc4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x456ca0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
test eax, eax
je 0x456d22
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
movzx eax, bx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00405fd4
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push ebp
call fcn.00456c20
pop ecx
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x34]
jne 0x456d07
cmp eax, dword [ebp - 0x38]
jb 0x456cec
jmp 0x456d09
jl 0x456cec
push ebp
call fcn.00456c64
pop ecx
fild qword [ebp - 0x18]
movzx eax, bx
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
fdivp st(1)
fistp qword [ebp - 0x20]
wait
fild qword [ebp - 0x20]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457f38
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00406f58
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
jb 0x457f65
cmp dword [esp + 0x10], 2
je 0x457f69
xor eax, eax
jmp 0x457f6b
mov al, 1
add esp, 0x94
ret

Function at 0x458f10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4590ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call fcn.00403a34
mov eax, esi
call fcn.00403a34
mov eax, dword [ebp - 4]
call fcn.00403a34
test ebx, ebx
je 0x4590c6
lea eax, [ebp - 0x124]
mov edx, ebx
call fcn.00408b10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4590c6
mov eax, dword [ebp - 0xc]
call fcn.00402748
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4590bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45909b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4590fc
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x459077
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.00406f4c
movzx eax, ax
lea edx, [ebp - 0x128]
call fcn.00408388
push dword [ebp - 0x128]
push 0x459108
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
call fcn.00408388
push dword [ebp - 0x12c]
push 0x459108
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.00406f4c
movzx eax, ax
lea edx, [ebp - 0x130]
call fcn.00408388
push dword [ebp - 0x130]
push 0x459108
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
call fcn.00408388
push dword [ebp - 0x134]
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00403d74
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45910c
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45909b
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.00403bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4590c6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00402760
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
call fcn.00403a88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4590f3
lea eax, [ebp - 0x134]
mov edx, 4
call fcn.00403a58
lea eax, [ebp - 0x20]
call fcn.00403a34
ret
Function at 0x45a678
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45a79b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x45a7b0
call fcn.0040917c
mov edx, dword [ebp - 4]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x45a7d4
call fcn.0040917c
mov edx, dword [ebp - 0x28]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x45a7ec
call fcn.0040917c
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
mov edx, 0x45a82c
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [ebx + 0x38]
call fcn.00459254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a7a2
lea eax, [ebp - 0x34]
call fcn.00403a34
lea eax, [ebp - 0x28]
call fcn.00403a34
lea eax, [ebp - 4]
call fcn.00403a34
ret

Function at 0x45a83c
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebx
add esp, 0xffffffbc
mov ebx, eax
lea eax, [esp + 0x24]
mov edx, 0x20
call fcn.00406f58
mov dword [esp + 0x24], 0x20
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
mov eax, esp
mov edx, 0x24
call fcn.00406f58
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x2c], eax
add esp, 0x44
pop ebx
ret
Function at 0x45ac48
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45acea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x40]
mov edi, 0x400
call sub.kernel32.dll_GetEnvironmentStringsA
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00403a34
cmp edi, ebx
jbe 0x45acc9
cmp byte [esi + ebx], 0
je 0x45aca8
lea eax, [ebp - 0xc]
mov dl, byte [esi + ebx]
call fcn.00403bdc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403cbc
jmp 0x45acc4
cmp dword [ebp - 8], 0
je 0x45acc9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 8]
call fcn.00403a34
inc ebx
cmp edi, ebx
ja 0x45ac8a
push esi
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45acf1
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403a58
ret
Function at 0x45b25c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x45b264
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45b401
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x10]
mov edx, 0x45b418
call fcn.00403d00
mov edx, dword [ebp - 4]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x28]
mov ecx, 3
mov eax, 0x45b42c
call fcn.0040917c
mov edx, dword [ebp - 8]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x14]
mov edx, 0x45b44c
call fcn.00403d00
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x20]
mov edx, 0x45b45c
call fcn.00403d00
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x34]
mov ecx, dword [ebx + 0x1c]
mov edx, 0x45b474
call fcn.00403d00
mov edx, dword [ebp - 0x34]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x38]
mov ecx, dword [ebx + 0x24]
mov edx, 0x45b490
call fcn.00403d00
mov edx, dword [ebp - 0x38]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebx + 0x28]
mov edx, 0x45b4b4
call fcn.00403d00
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x40]
mov ecx, dword [ebx + 0x34]
mov edx, 0x45b4c8
call fcn.00403d00
mov edx, dword [ebp - 0x40]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x44]
mov ecx, dword [ebx + 0x38]
mov edx, 0x45b4e4
call fcn.00403d00
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x48]
mov ecx, dword [ebx + 0x30]
mov edx, 0x45b4fc
call fcn.00403d00
mov edx, dword [ebp - 0x48]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
mov edx, 0x45b514
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b408
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.00403a58
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403a58
ret
Function at 0x45b9f8
Capabilities:
Get disk information

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 0x45baa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00408c48
mov esi, eax
push esi
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
mov ebx, eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00403a34
mov edi, ebx
test edi, edi
jl 0x45ba8a
inc edi
xor ebx, ebx
cmp byte [esi + ebx], 0
je 0x45ba7f
mov al, byte [esi + ebx]
mov edx, eax
add dl, 0xbf
sub dl, 0x1a
jb 0x45ba5d
add al, 0x9f
sub al, 0x1a
jae 0x45ba86
mov al, byte [esi + ebx]
call fcn.004028a0
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403bdc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00403cbc
jmp 0x45ba86
cmp byte [esi + ebx + 1], 0
je 0x45ba8a
inc ebx
dec edi
jne 0x45ba44
mov eax, esi
call fcn.00408c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45baae
lea eax, [ebp - 8]
call fcn.00403a34
ret

Function at 0x45bab8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45bbb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00408c48
mov dword [ebp - 8], eax
lea edx, [ebx + 4]
lea eax, [ebp - 0x20]
call fcn.00402944
mov edx, 0x45bbc4
lea eax, [ebp - 0x20]
mov cl, 3
call fcn.00402914
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00403c58
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00408b10
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 4], ax
xor eax, eax
push ebp
push 0x45bb94
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45bb66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bb74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb9b
mov eax, dword [ebp - 8]
call fcn.00408c94
movzx eax, word [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret