joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e7f4
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 0x44e99f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e980
mov dl, 1
mov eax, dword [0x4125e0]
call fcn.00403638
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404410
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e96f
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.0043bfb0
test al, al
je 0x44e962
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, 0x44e9b0
lea eax, [ebp - 0x254]
call fcn.0040939c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e962
xor eax, eax
push ebp
push 0x44e95b
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 0x44e9e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e944
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404680
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 0x44e944
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404680
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e962
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e865
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004162a8
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 0x44e9a6
lea eax, [ebp - 0x260]
call fcn.00404410
ret

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

Disassembly:
push ecx
mov eax, dword [0x46abb0]
cmp byte [eax + 0xa5], 0
jne 0x44f359
cmp dword [0x46abc8], 0
jne 0x44f31a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f2a4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46abc8], eax
cmp dword [0x46abc4], 0
jne 0x44f335
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46abc4], eax
cmp dword [0x46abcc], 0
jne 0x44f359
push esp
push 0
push 0
push 0x44f248
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46abcc], eax
pop edx
ret
Function at 0x44f9ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46abb0]
cmp dword [eax + 0x30], 0
je 0x44fa96
cmp dword [ebx + 0x94], 0
jne 0x44fa90
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f97c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fa90
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 0x44fa56
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fa90
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.0041452c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fa65
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4505f4
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 0x450629
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.00404500
jmp 0x450636
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404464
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451758
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451799
mov eax, esi
call fcn.00437670
test al, al
je 0x451799
mov eax, dword [ebx + 0x84]
call fcn.00437410
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451799
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437410
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454f34
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x454f62
mov eax, ebx
call fcn.004559e8
cmp dword [ebx + 0x40], 0
je 0x454f5b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x454fd3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x454fc5
cmp dword [ebx + 8], 0
je 0x454f84
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x454f96
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x454fc5
cmp dword [ebx + 8], 0
je 0x454f77
cmp eax, 3
je 0x454fa9
dec eax
jne 0x454f77
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x454f77
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x454f77
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x454ff1
cmp dword [ebx + 0x14], 0xcc
je 0x454ff1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00454ffc
pop ebx
ret
Function at 0x46593c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x90]
cmp eax, 5
jb 0x465981
cmp dword [ebp - 0x8c], 0
jbe 0x465978
mov byte [0x469734], 8
jmp 0x4659f5
mov byte [0x469734], 7
jmp 0x4659f5
cmp eax, 3
jbe 0x4659f5
cmp dword [ebp - 0x84], 2
jne 0x465998
mov byte [0x469734], 1
jmp 0x4659f5
and dword [ebp - 0x88], 0xffff
mov eax, dword [ebp - 0x8c]
cmp eax, 0x5a
jb 0x4659b6
mov byte [0x469734], 6
jmp 0x4659f5
cmp eax, 0xa
jb 0x4659d9
cmp dword [ebp - 0x88], 0x8ae
jb 0x4659d0
mov byte [0x469734], 5
jmp 0x4659f5
mov byte [0x469734], 4
jmp 0x4659f5
cmp dword [ebp - 0x88], 0x3e8
jb 0x4659ee
mov byte [0x469734], 3
jmp 0x4659f5
mov byte [0x469734], 2
mov esp, ebp
pop ebp
ret
Function at 0x401fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.00401fb0
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.00409820
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00417e40
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00401fb0
mov esp, ebp
pop ebp
ret

Function at 0x402070
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
mov edx, 0x44a920
lea eax, [ebp - 0x18]
call fcn.0040e510
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.00402050
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, str.Parametr
call fcn.00408e30
mov edx, dword [0x45a6f0]
lea eax, [ebp - 0x14]
call fcn.00408e30
lea eax, [ebp - 0x10]
mov edx, str.Parametr
call fcn.00408e30
mov edx, dword [0x45a6f4]
lea eax, [ebp - 0xc]
call fcn.00408e30
mov byte [ebp - 8], 0
add byte [ebp - 8], 1
mov edx, 1
mov eax, 0x451710
call fcn.004318a0
mov dword [ebp - 4], eax
xor eax, eax
push fcn.00402040
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x80000001
call fcn.00431860
mov al, byte [ebp - 8]
cmp al, 1
jl 0x402144
sub al, 1
je 0x402120
sub al, 1
je 0x402134
jmp 0x402144
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00431ad0
jmp 0x402144
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.00431ad0
nop
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.00431cb0
mov eax, dword [ebp - 0x1c]
movzx edx, byte [ebp - 8]
mov edx, dword [ebp + edx*8 - 0x1c]
call fcn.004099a0
test eax, eax
je 0x402184
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp + eax*8 - 0x1c]
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
call fcn.00431e70
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00402040
cmp byte [ebp - 8], 2
jl 0x4020d8
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00402050
mov esp, ebp
pop ebp
ret
Function at 0x402f70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x258]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x138], 0
xor eax, eax
push fcn.00402f50
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x45a010]
cmp ebx, 1
jl 0x402ff8
mov dword [ebp - 0x134], 0
lea esi, [esi]
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
lea eax, [eax*4 + 0x45800c]
xor edx, edx
call fcn.00408e30
mov eax, dword [ebp - 0x134]
mov dword [eax*4 + 0x45900c], 0
cmp ebx, dword [ebp - 0x134]
jg 0x402fc0
mov esi, esi
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408e30
mov dword [0x45a010], 1
mov dword [ebp - 0x130], 0x128
push 0
push 2
call fcn.00436800
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.00436810
test eax, eax
je 0x403164
jmp 0x40314b
push 1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10c]
xor cx, cx
mov edx, 0x103
call fcn.00409820
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
lea eax, [eax*4 + 0x45800c]
call fcn.00408e30
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x128]
mov dword [eax*4 + 0x45900c], edx
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x45800c]
mov dword [ebp - 0x148], eax
mov eax, 0x44a57c
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x45900c]
xor edx, edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
mov ecx, 0xff
lea edx, [ebp - 0x258]
mov eax, 0xffffffff
call fcn.00405440
lea ecx, [ebp - 0x150]
xor dx, dx
lea eax, [ebp - 0x258]
call fcn.004096b0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x150]
call fcn.0040a3c0
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x140], eax
mov eax, 0x44a56c
mov dword [ebp - 0x13c], eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
mov ecx, 4
call fcn.004091c0
add dword [ebp - 0x134], 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.00436820
test eax, eax
jne 0x403048
mov esi, esi
mov eax, dword [ebp - 0x134]
mov dword [0x45a010], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00402f50
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ec20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x45bbd0], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x45bbcc]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x45bbd0], edx
cmp eax, 0x26f
jl 0x40ec28
mov dword [0x447e40], 0x270
ret
Function at 0x40ec60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x45bbd4]
mov ebx, dword [eax*4 + 0x45bbd0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x45c204]
mov dword [eax*4 + 0x45bbd0], edx
cmp eax, 0xe2
jl 0x40ec68
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x45bbd4]
mov ebx, dword [eax*4 + 0x45bbd0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x45b844]
mov dword [eax*4 + 0x45bbd0], edx
cmp eax, 0x26e
jl 0x40ecb8
mov edx, dword [0x45bbd0]
mov ecx, dword [0x45c58c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x45c200]
mov dword [0x45c58c], eax
mov dword [0x447e40], 0
pop ebx
ret

Function at 0x40ed40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x447e40]
add dword [0x447e40], 1
mov eax, dword [0x45a770]
cmp eax, dword [0x447590]
jne 0x40ed63
cmp ebx, 0x271
jb 0x40ed84
mov eax, dword [0x45a770]
call fcn.0040ec20
not dword [0x45a770]
mov eax, dword [0x45a770]
mov dword [0x447590], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40eda0
call fcn.0040ec60
xor ebx, ebx
mov dword [0x447e40], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x45bbd0]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret

Function at 0x410870
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4472f0]
cmp ax, 0xcb
je 0x41097c
cmp ax, 0xcc
je 0x41097c
lea esi, [esi]
mov edx, dword [0x45c7d0]
test edx, edx
je 0x4108a5
mov eax, dword [0x45c680]
call edx
mov ebx, eax
jmp 0x4108aa
mov ebx, 0x45c684
cmp word [0x45c670], 0
jle 0x4108d0
mov eax, 0x45c650
call fcn.00410b30
mov eax, ebx
call fcn.00410430
mov eax, ebx
call fcn.004104a0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x4108f2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x4108ed
mov edx, edi
mov eax, ebx
call fcn.0040f8a0
jmp 0x4108f0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x4108d8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x45c670], 0
jle 0x41097c
mov edx, 0x45c590
mov eax, ebx
call fcn.0040f9e0
mov edi, eax
test edi, edi
je 0x41094c
mov eax, dword [0x45c624]
mov dword [edi + 0xc], eax
cmp dword [0x45c624], 0
je 0x410940
mov eax, dword [0x45c624]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x45c624], eax
nop
sub word [0x45c670], 1
cmp word [0x45c670], 0
sete bl
mov eax, 0x45c650
call fcn.00410b50
test bl, bl
je 0x41097c
mov eax, 0x45c650
call fcn.00410b20
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4128e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004128c0
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x412a0a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b730
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41296f
mov edx, 0x45ba50
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4129c1
call sub.kernel32.dll_GetLastError
call fcn.00404920
lea eax, [ebp - 0x10]
call fcn.0040a540
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a9e0
mov edx, dword [ebp - 0x14]
mov ecx, 0x44abd4
lea eax, [ebp - 0x10]
call fcn.0040a870
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b120
jmp 0x412a58
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4129da
cmp eax, ecx
je 0x4129e4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b730
cmp byte [0x447560], 0
jne 0x412a58
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bc80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b160
lea esi, [esi]
jmp 0x412a58
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b730
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x412a2e
mov eax, 0x45ba50
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x447560], 0
jne 0x412a58
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bc80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b160
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004128c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412e30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x45b9b0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00413010
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x45b9b0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403ec0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x447360], eax
mov ebx, eax
jmp 0x412fd3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x412eb8
cmp byte [ebx], 0
je 0x412fdc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412f33
mov al, byte [ebx]
cmp al, 1
jb 0x412f28
sub al, 0x20
jbe 0x412ef8
sub al, 2
je 0x412f0c
jmp 0x412f28
mov al, byte [ebp - 0x114]
test al, al
je 0x412f38
add dword [ebp - 0x110], 1
jmp 0x412f30
cmp byte [ebx + 1], 0x22
je 0x412f23
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412f30
add ebx, 1
jmp 0x412f30
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412ee8
test dword [ebp - 0x10c], 0xffffffff
je 0x412fcc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00413010
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x45b9b0]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x412fc3
mov al, byte [ebx]
cmp al, 1
jb 0x412fb8
sub al, 0x20
jbe 0x412f88
sub al, 2
je 0x412f9c
jmp 0x412fb8
mov al, byte [ebp - 0x114]
test al, al
je 0x412fc8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x412fc0
cmp byte [ebx + 1], 0x22
je 0x412fb3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412fc0
add ebx, 1
jmp 0x412fc0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412f78
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x412ebb
mov ebx, dword [ebp - 0x10c]
mov dword [0x45b9a0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x45b9b0
call fcn.004106b0
mov eax, dword [0x45b9b0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4217c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x44e868
lea eax, [ebp - 0x268]
call fcn.0040e510
xor eax, eax
push fcn.004217a0
push ebp
push 0x413cb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x421803
mov eax, 0x45ba50
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x42184b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x42181f
clc
jmp 0x421826
bt dword [0x44deb0], eax
jb 0x42183f
mov eax, ebp
call fcn.004218f0
test al, al
je 0x42183f
mov byte [ebp - 0x26c], 1
jmp 0x4218d0
mov byte [ebp - 0x26c], 0
jmp 0x4218d0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x448880]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x4218d0
and esi, 0x400
je 0x4218d0
lea ebx, [ebp - 0x268]
mov edx, 0x44e868
mov eax, ebx
call fcn.0040e5d0
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00421460
test eax, eax
je 0x4218a4
sub eax, 1
je 0x4218bc
jmp 0x4218c8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.004217c0
mov byte [ebp - 0x26c], al
jmp 0x4218d0
mov byte [ebp - 0x26c], 1
jmp 0x4218d0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004217a0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421ae0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x421aee
mov eax, 0x45ba50
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x421afc
xor ebx, ebx
jmp 0x421b03
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421b30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x421b48
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x421b5f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x45cf90], 0
je 0x421b9b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x45cf90]
test eax, eax
je 0x421b8d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x421be6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x421be6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x421bda
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x421be6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret