joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6b8d
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4e9e14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c780
push str.stdout
push esi
mov ecx, 0x4e9dc8
call fcn.0040a9a1
mov eax, dword [0x4e9e14]
cmp eax, 2
je 0x40c906
mov eax, dword [0x4ea710]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c7d9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCPInfo]
neg eax
sbb al, al
and byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d0]
push 2
push dword [ebp + 0x10]
call fcn.0047e560
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.0047ed50
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
test edx, edx
je 0x40c853
cmp dword [ebp - 0x18], 0
jne 0x40c853
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047f190
jne 0x40c845
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40c84e
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.0047f130
jne 0x40c891
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40c89c
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c889
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40c89c
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40c8cb
cmp dword [ebp - 0x18], 0
jne 0x40c8cb
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40c8ef
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c8e8
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40c906
push eax
call fcn.0049f222
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e890
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.004b5860
push ebp
mov ebp, dword [esp + 0x4008]
push edi
mov edi, ecx
test ebp, ebp
je 0x40e9b6
push esi
mov esi, dword [esp + 0x401c]
test esi, esi
jne 0x40e8d2
mov esi, dword [edi + 0x640]
test esi, esi
jne 0x40e8d2
mov ecx, dword [edi + 0x278]
movzx eax, word [edi + 0x27c]
jmp 0x40e8da
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push ebx
push dword [esp + 0x4018]
movzx eax, ax
push str.Warning:
push eax
mov eax, dword [0x4e8f94]
movzx ecx, cx
push dword [eax + ecx*4]
lea eax, [esp + 0x20]
push str._s___d__:____s_s_n
push 0x2000
push eax
call fcn.00480f70
mov ebx, eax
add esp, 0x1c
mov eax, dword [esp + 0x401c]
cmp word [eax], 0
je 0x40e93c
push eax
mov ecx, 0x2000
lea eax, [esp + 0x14]
push str._____Specifically:__s_n
sub ecx, ebx
lea eax, [eax + ebx*2]
push ecx
push eax
call fcn.00480f70
add esp, 0x10
add ebx, eax
cmp ebp, 3
jne 0x40e960
push 0x4d2a58
push ebx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c740
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x4000
ret 0x10
mov eax, dword [0x4e9e10]
test eax, eax
je 0x40e982
push str.stderr
lea eax, [esp + 0x14]
mov ecx, 0x4e9dc8
push eax
call fcn.0040a9a1
mov eax, dword [0x4e9e10]
cmp eax, 2
je 0x40e992
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp ebp, 2
jne 0x40e9b4
push 0
push esi
push dword [esp + 0x4024]
mov ecx, 0x4e9e50
push 1
push dword [esp + 0x4028]
call fcn.0040d600
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x4000
ret 0x10
Function at 0x412e80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4e8e34], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4e8e30], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x412ebd
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x4130ba
test al, al
jne 0x412efe
test bh, bh
jne 0x412efe
push 0x4e8f4c
push 0
push 0
push 0x413130
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4ea71c], eax
test eax, eax
je 0x412fb6
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4e8f4c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x412f35
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x32
jl 0x412f10
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x412fc3
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x412fa1
cmp dword [esp + 0x24], 0
je 0x412fdd
mov bh, 1
call fcn.00413590
test al, al
jne 0x412fdd
cmp byte [esp + 0x13], al
jne 0x41308d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4ea71c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412fea
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412fdd
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x412f47
call fcn.004135b0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x412f86
call fcn.00413590
test al, al
je 0x413089
jmp 0x412fa1
cmp byte [esp + 0x13], 0
jne 0x413089
jmp 0x413005
push dword [0x4ea71c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4ea71c], 0
call fcn.004135b0
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexW]
and al, 1
cmp dword [0x4e8e34], 0
je 0x413030
test al, al
jne 0x41304a
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4ea714], eax
jmp 0x41304a
test al, al
je 0x41304a
push dword [0x4ea714]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4ea714], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4e8e30], 0
je 0x41306f
test al, al
jne 0x413089
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4ea718], eax
jmp 0x413089
test al, al
je 0x413089
push dword [0x4ea718]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4ea718], 0
test bh, bh
je 0x4130ba
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e4790], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.00486ab0
add esp, 8
mov dword [0x4e4790], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4196a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov bl, byte [ebp + 0xc]
mov bh, cl
or byte [ebp + 8], bl
mov al, bh
dec al
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x4196c5
cmp bh, 3
jne 0x4196cd
mov al, bh
add al, 0x66
cmp al, 5
ja 0x4196d4
mov byte [esp + 0xf], 1
jmp 0x4196d9
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x419809
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4ea7b0], 0
jne 0x419753
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [0x4e4798]
sub eax, dword [0x4ea534]
cmp eax, dword [ecx + 0x5c]
jbe 0x419759
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x419748
mov edx, 1
mov dword [0x4e4790], 0
or ecx, 0xffffffff
call fcn.00401600
mov dword [0x4e4790], 1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4ea534], eax
mov ecx, dword [0x4e4798]
cmp byte [ebp + 0x18], 0
jne 0x4197ad
mov al, byte [ecx + 0x99]
test al, al
je 0x419775
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41977a
mov esi, 0xffc3d44f
cmp dword [0x4ea7b0], 0
je 0x41978a
mov al, byte [0x4ea7a4]
jmp 0x419791
xor cl, cl
call fcn.0041c350
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041bc50
mov ecx, dword [0x4e4798]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x4197d7
test edi, edi
jne 0x4197d7
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0x97]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.0041aae0
add esp, 0x14
jmp 0x4197fa
movzx eax, byte [ecx + 0x99]
mov dl, bh
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00419c40
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x4196f0
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x419845
cmp dword [0x4ea7b0], 0
je 0x41981f
mov al, byte [0x4ea7a4]
jmp 0x419826
xor cl, cl
call fcn.0041c350
not bl
and bl, al
and bl, 0xcc
je 0x419845
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041bc50
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419850
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x44
mov eax, dword [0x4ea7b0]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
sete byte [esp + 0xf]
jne 0x41989f
movzx edx, cx
mov ecx, edx
and ecx, 0xffffff80
je 0x41987b
mov eax, 0x30
mov word [esp + 0x30], ax
test ecx, ecx
lea eax, [esp + 0x30]
lea edi, [esp + 0x32]
push 0xa
cmovne eax, edi
push eax
push edx
call fcn.004a3f2a
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [0x4ea7b0]
jmp 0x4198a2
movzx ebx, cx
test esi, esi
jle 0x419951
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x419909
call edi
mov ecx, dword [0x4e4798]
sub eax, dword [0x4ea534]
cmp eax, dword [ecx + 0x5c]
jbe 0x419909
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call ebp
test eax, eax
je 0x419902
mov edx, 1
mov dword [0x4e4790], 0
or ecx, 0xffffffff
call fcn.00401600
mov dword [0x4e4790], 1
call edi
mov dword [0x4ea534], eax
cmp byte [esp + 0x13], 0
je 0x41991b
lea ecx, [esp + 0x34]
call fcn.00419960
jmp 0x419926
mov dl, byte [esp + 0x58]
mov ecx, ebx
call fcn.004180f0
cmp dword [0x4ea7b0], 2
mov eax, dword [0x4e4798]
jne 0x419939
mov ecx, dword [eax + 0x70]
jmp 0x41993c
mov ecx, dword [eax + 0x6c]
call fcn.0041b7d0
sub esi, 1
je 0x419950
mov eax, dword [0x4ea7b0]
jmp 0x4198b7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x41b670
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4ea7b0], 1
push esi
mov byte [esp + 7], dl
mov esi, ecx
jne 0x41b740
xor al, al
cmp dword [0x4e8e34], 0
push ebx
movzx ebx, al
mov eax, 1
cmovne ebx, eax
cmp dword [0x4e8e30], 0
mov dword [esp + 0xc], ebx
je 0x41b6b0
or ebx, 2
mov dword [esp + 0xc], ebx
test bl, bl
je 0x41b726
mov cl, byte [0x4ea7a5]
mov dl, al
not cl
and cl, bl
call fcn.00412e80
push 0x1c
push dword [0x4e8f90]
push dword [0x4ea798]
call dword [sym.imp.USER32.dll_SendInput]
mov al, byte [0x4ea7a5]
and al, bl
test al, 1
je 0x41b718
mov cl, 1
call fcn.0041c350
mov bl, al
xor bl, byte [esp + 0xb]
mov dl, bl
and bl, al
and dl, byte [esp + 0xb]
not dl
and dl, byte [0x4e8e3e]
or dl, bl
mov byte [0x4e8e3e], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0xc]
mov dword [0x4e8cf0], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
add esp, 8
jmp fcn.00412e80
push 0x1c
push dword [0x4e8f90]
push dword [0x4ea798]
call dword [sym.imp.USER32.dll_SendInput]
pop ebx
pop esi
add esp, 8
ret
push 0
push dword [0x4e8c24]
mov dword [0x4ea7a0], 0
push 0x4199f0
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4e8be0], eax
test eax, eax
je 0x41b73b
mov byte [0x4e8e2f], 1
nop
mov edx, 1
mov dword [0x4e4790], 0
mov ecx, 0x8000012f
call fcn.00401600
cmp dword [0x4e8be0], 0
mov dword [0x4e4790], 1
jne 0x41b770
mov eax, dword [0x4e5e34]
mov byte [0x4e8e2f], 0
mov ecx, dword [eax]
mov eax, dword [0x4ea798]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41b73b
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
add esp, 8
ret

Function at 0x41b9a0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4e8c04]
test edi, edi
je 0x41baaa
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4e8c34], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, eax
mov eax, dword [0x4e8c04]
mov ecx, edx
mov dword [0x4e8c30], edx
sub ecx, dword [0x4ea594]
mov dword [0x4ea594], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4dcaf0]
imul ecx, dword [0x4e8c34], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4dca04]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4e8c04]
test esi, esi
je 0x41ba75
cmp esi, dword [0x4e8c2c]
je 0x41ba60
imul edx, dword [0x4e8c34], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x4e8c34]
jmp 0x41ba91
mov edx, dword [0x4e8c34]
imul ecx, edx, 0xd4
xor edi, edi
mov word [ecx + eax + 0xc], di
jmp 0x41ba91
mov edx, dword [0x4e8c34]
imul ecx, edx, 0xd4
mov dword [ecx + eax + 0xc], 0x2f004e
mov dword [ecx + eax + 0x10], 0x41
inc edx
mov dword [0x4e8c2c], esi
xor eax, eax
cmp edx, dword [0x4e479c]
pop esi
cmovge edx, eax
mov dword [0x4e8c34], edx
pop edi
ret
Function at 0x41c8b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
mov ebp, ecx
nop dword [eax + eax]
mov edx, dword [eax*8 + 0x4ea740]
test edx, edx
je 0x41c8d9
cmp edx, ebp
je 0x41c953
inc eax
cmp eax, 0xa
jl 0x41c8c0
cmp eax, 0xa
mov ecx, 9
push ebx
cmovl ecx, eax
xor ebx, ebx
push ebx
push ebp
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 8], eax
test eax, eax
je 0x41c9c3
push esi
push edi
mov ecx, 0x19
lea edi, [esp + 0x18]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x41c962
push ebx
push ecx
lea eax, [esp + 0x98]
push eax
push str.Layout_File
lea edx, [esp + 0x28]
call fcn.004825c0
add esp, 0x10
test eax, eax
je 0x41c962
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
jmp 0x41c964
mov eax, dword [eax*8 + 0x4ea744]
pop ebp
add esp, 0x288
ret
xor esi, esi
mov eax, dword [esp + 0x10]
cmp ebp, eax
je 0x41c975
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41c9c1
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x41c9ba
call eax
mov ebx, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_IsWow64Process]
test eax, eax
je 0x41c9af
cmp dword [esp + 0x10], 0
je 0x41c9af
mov ebx, dword [ebx + 0x50]
jmp 0x41c9b2
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
mov eax, dword [esp + 0xc]
mov dword [eax*8 + 0x4ea744], ebx
mov dword [eax*8 + 0x4ea740], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0x288
ret
Function at 0x41f600
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp word [ecx], 0
push esi
mov esi, edx
jne 0x41f61c
mov eax, 0xa00a0000
jmp 0x41f6b5
push 0x103
push ecx
lea eax, [ebp - 0x220]
push eax
call fcn.004aa8c4
xor eax, eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x220]
push eax
call fcn.004a39ad
add esp, 0x10
mov ecx, eax
push 0x5c
pop edx
cmp word [ebp + ecx*2 - 0x222], dx
je 0x41f66e
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41f66e
xor eax, eax
mov word [ebp + ecx*2 - 0x220], dx
mov word [ebp + ecx*2 - 0x21e], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
jne 0x41f692
mov eax, 0xa0070000
jmp 0x41f6b5
cmp byte [ebp + 8], 0
je 0x41f6a0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x41f6a6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], ecx
inc eax
pop esi
leave
ret

Function at 0x41f6da
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, cl
push edi
push 0x5c
pop ecx
push 0x2e
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], cx
mov word [ebp - 0xe], cx
mov dword [ebp - 8], eax
test esi, esi
je 0x41f730
mov ecx, esi
call fcn.0041f5ca
test al, al
je 0x41f726
mov cx, word [esi]
mov word [ebp - 0xc], cx
test al, al
lea ecx, [ebp - 0x14]
cmove ecx, esi
jmp 0x41f75e
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
push 0x41
mov word [ebp - 8], cx
pop esi
jmp 0x41f746
cmp si, 0x5a
je 0x41f781
inc esi
lea eax, [ebp - 0x14]
mov word [ebp - 0xc], si
push eax
call edi
cmp eax, 5
jne 0x41f73f
xor eax, eax
lea ecx, [ebp - 0x14]
mov word [ebp - 8], ax
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f788
mov eax, 0xa0070000
jmp 0x41f7bb
mov eax, 0xa00e0002
jmp 0x41f7bb
push esi
lea eax, [ebp - 4]
push eax
movzx eax, bl
xor ebx, ebx
push esi
push esi
inc ebx
xor eax, ebx
push esi
push esi
lea eax, [eax*4 + 0x2d4808]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
mov eax, 0xa0070000
cmovne eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x420148
push 0xb7
call dword [sym.imp.KERNEL32.DLL_SetLastError]
shr ebx, 4
and bl, 1
pop esi
mov al, bl
pop ebx
ret
push edi
push 0x5c
push esi
call fcn.0049cc0e
mov edi, eax
add esp, 8
cmp edi, esi
jbe 0x42017f
cmp word [edi - 2], 0x3a
je 0x42017f
xor eax, eax
mov ecx, esi
mov word [edi], ax
call fcn.00420120
mov ecx, 0x5c
mov word [edi], cx
test al, al
jne 0x42017f
pop edi
pop esi
xor al, al
pop ebx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x420199
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x420179
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x421910
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
mov dword [esp + 8], esi
mov dword [edx], esi
push edi
test ebx, ebx
je 0x421a76
cmp word [ebx], 0
je 0x421a76
push 4
push str.__
push ebx
call fcn.004aa41d
add esp, 0xc
test eax, eax
je 0x421956
mov eax, ebx
mov edi, eax
jmp 0x42195f
lea eax, [ebx + 8]
mov edi, eax
test eax, eax
je 0x4219a1
movzx eax, word [eax]
test ax, ax
je 0x4219a1
mov esi, eax
nop dword [eax]
mov ecx, 0x4d4d88
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x4219e9
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x421980
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x421970
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, dword [ebp + 8]
mov edx, eax
test ecx, ecx
je 0x4219bb
and eax, ecx
cmp eax, ecx
jne 0x421a76
cmp edx, 0xffffffff
setne al
test al, al
je 0x421a76
mov ecx, dword [esp + 0xc]
call fcn.00482240
cmp word [ecx], 0
jne 0x421a7f
mov dword [ecx], 0x58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421a76
cmp word [esp + 0x3c], 0x2e
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
jne 0x421a3c
nop word [eax + eax]
mov ax, word [esp + 0x3e]
test ax, ax
je 0x421a28
cmp ax, 0x2e
jne 0x421a3c
cmp word [esp + 0x40], 0
jne 0x421a3c
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421a76
cmp word [esp + 0x3c], 0x2e
je 0x421a10
mov esi, dword [ebp + 8]
test esi, esi
je 0x421a66
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
je 0x421a66
nop dword [eax]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421a76
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
jne 0x421a50
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edx, dword [esp + 0x10]
jmp 0x4219c9
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428f9e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x428fdb
movsd xmm0, qword [eax]
xor bl, bl
mulsd xmm0, qword [0x4dc9c8]
cvttsd2si eax, xmm0
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
jmp 0x428fe6
and dword [esp + 0xc], 0
mov bl, 1
mov eax, dword [esp + 0x1c]
xor dl, dl
mov dword [esp + 0x10], eax
mov ecx, esi
call fcn.00458840
movzx ecx, byte [ebp + 0xc]
mov esi, eax
xor ecx, 1
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], ecx
setne al
cmp ecx, eax
je 0x42904d
test bl, bl
jne 0x429028
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
sub ecx, eax
cmp ecx, 5
jle 0x42904d
xor edx, edx
push 0x64
inc edx
pop ecx
call fcn.00401600
mov ecx, dword [esp + 0x18]
xor dl, dl
call fcn.00458840
mov esi, eax
xor eax, eax
test esi, esi
setne al
cmp dword [esp + 0x1c], eax
jne 0x42900b
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4291cb
Capabilities:
Get disk information
Get process image filename

Disassembly:
sub esp, 0x210
xor eax, eax
push ebp
push esi
push ecx
mov esi, edx
push eax
push 0x1000
mov word [esi], ax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4292e1
push edi
push 0x104
push esi
push ebp
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov edi, eax
test edi, edi
je 0x4292d7
cmp byte [esp + 0x224], 0
push ebx
je 0x429243
push 0x5c
push esi
call fcn.0049cc0e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4292d6
push ebx
call fcn.004a39ad
add eax, eax
push eax
lea eax, [ebx + 2]
push eax
push esi
call fcn.0049cd60
add esp, 0x10
jmp 0x4292d6
push 0x3a
pop eax
mov word [esp + 0x12], ax
xor eax, eax
push 0x41
mov word [esp + 0x18], ax
pop eax
mov word [esp + 0x10], ax
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
mov ebx, eax
cmp ebx, 2
jbe 0x429297
sub ebx, 2
lea eax, [esp + 0x18]
push ebx
push esi
push eax
call fcn.004aa41d
add esp, 0xc
test eax, eax
jne 0x429297
push 0x5c
lea ecx, [esi + ebx*2]
pop eax
cmp word [ecx], ax
je 0x4292ab
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x42925a
jmp 0x4292d6
mov ax, word [esp + 0x10]
sub edi, ebx
mov word [esi], ax
mov ax, word [esp + 0x12]
mov word [esi + 2], ax
lea eax, [edi*2 + 2]
push eax
push ecx
lea eax, [esi + 4]
push eax
call fcn.0049cd60
add esp, 0xc
add edi, 2
pop ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x210
ret