joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4059de
push str._XIMAO___InitCurlInfo_pPackageInfonull_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef253
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00477c60
mov esi, eax
test esi, esi
jne 0x405a0a
push str._XIMAO___InitCurlInfo_curlnull_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef253
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x30], esi
cmp dword [ebx + 0x14], 0xf
jbe 0x405a15
mov ebx, dword [ebx]
push ebx
push 0x2712
push esi
call fcn.0047b1e0
push 0x4066c0
push 0x4e2b
push esi
call fcn.0047b1e0
push edi
push 0x2711
push esi
call fcn.0047b1e0
push 0
push 0x2b
push esi
call fcn.0047b1e0
push 0x405eb0
push 0x4efb
push esi
call fcn.0047b1e0
push edi
push 0x2749
push esi
call fcn.0047b1e0
add esp, 0x48
push 1
push 0x63
push esi
call fcn.0047b1e0
push 0x1e
push 0x13
push esi
call fcn.0047b1e0
push 0x78
push 0x14
push esi
call fcn.0047b1e0
push 0x3c
push 0x4e
push esi
call fcn.0047b1e0
push 0xea60
push 0xd
push esi
call fcn.0047b1e0
push 0
push 0x40
push esi
call fcn.0047b1e0
add esp, 0x48
push 0
push 0x51
push esi
call fcn.0047b1e0
push 1
push 0x34
push esi
call fcn.0047b1e0
push 0
push 0x29
push esi
call fcn.0047b1e0
push 0xa
push 0x44
push esi
call fcn.0047b1e0
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004f26e0
mov ecx, dword [edi + 0x18]
add esp, 0x3c
mov eax, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x405b24
test eax, eax
jne 0x405b24
push eax
push 0x2717
push esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
call fcn.0047b1e0
add esp, 0xc
push 0
push 0
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x405b57
push eax
push ecx
push dword [edi + 0x14]
lea eax, [ebp - 0x108]
push dword [edi + 0x10]
push str._lld__lld
push 0x104
push eax
call fcn.00406d30
lea eax, [ebp - 0x108]
push eax
push 0x2717
push esi
call fcn.0047b1e0
add esp, 0x28
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004ef253
mov esp, ebp
pop ebp
ret 8
Function at 0x405d60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
movq xmm0, qword [str.Accept_Ranges]
xor eax, eax
mov word [ebp - 0xe], ax
mov eax, dword [0x564950]
mov dword [ebp - 0x14], eax
mov al, byte [0x564954]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0xd
push eax
mov dword [ebp - 8], 0xf
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0xf], 0
call fcn.00401a90
mov esi, dword [ebp - 0x20]
cmp byte [esi + 0xd], 0
jne 0x405e27
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004014d0
add esp, 8
test al, al
jne 0x405e27
cmp esi, dword [edi]
je 0x405e27
add esi, 0x28
push str.none
push esi
call fcn.00401340
add esp, 8
test al, al
je 0x405df6
push str._XIMAO___IsSupportAcceptRanges_none_r_n
jmp 0x405e2c
push str.bytes
push esi
call fcn.00401340
add esp, 8
test al, al
je 0x405e27
push str._XIMAO___IsSupportAcceptRanges_bytes_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef253
mov esp, ebp
pop ebp
ret 4
push str._XIMAO___IsSupportAcceptRanges_not_found_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret 4
Function at 0x4062f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._XIMAO___TransferData_begin_r_n
mov byte [ebp - 0x109], 0
call edi
mov dword [ebp - 0x114], 0
nop dword [eax]
cmp byte [ebx + 0x70], 0
jne 0x40649e
push ebx
push esi
mov ecx, ebx
call fcn.004059a0
test al, al
je 0x406497
push dword [esi + 0x30]
call fcn.00477e20
mov edi, eax
add esp, 4
cmp edi, 0x2a
je 0x40647f
test edi, edi
jne 0x4063da
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._XIMAO___TransferData_CURLE_OK_r_n
call edi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
push 0x200002
push dword [esi + 0x30]
call fcn.00477c40
mov eax, dword [ebp - 0x110]
add esp, 0xc
cmp eax, 0x194
je 0x406478
cmp eax, 0xc8
jl 0x4063b6
cmp eax, 0x12c
jle 0x40643f
push eax
lea eax, [ebp - 0x108]
push str._XIMAO___TransferData_curl_easy_getinfo_failed_rescode:__ld_r_n
push eax
call fcn.00406d70
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406409
push edi
call fcn.00476dc0
push eax
push edi
lea eax, [ebp - 0x108]
push str._XIMAO___TransferData_curl_easy_perform_failed_res:__d:__s_r_n
push eax
call fcn.00406d70
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esi + 0x30]
call fcn.004779c0
add esp, 4
mov ecx, ebx
push 0x1f4
call fcn.00406200
push str._XIMAO___TransferData__retry_r_n
call edi
mov eax, dword [ebp - 0x114]
inc eax
mov dword [ebp - 0x114], eax
cmp eax, 3
jl 0x406330
jmp 0x40649e
push eax
lea eax, [ebp - 0x108]
push str._XIMAO___TransferData_curl_easy_getinfo_succ_rescode:__ld_r_n
push eax
call fcn.00406d70
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esi + 0x30]
call fcn.004779c0
add esp, 4
mov byte [esi], 1
mov byte [ebp - 0x109], 1
jmp 0x40649e
push str._XIMAO___TransferData_response_code404_r_n
jmp 0x40649c
push str._XIMAO___TransferData_CURLE_ABORTED_BY_CALLBACK_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esi + 0x30]
call fcn.004779c0
add esp, 4
jmp 0x40649e
push str._XIMAO___TransferData__InitCurlInfo_Fail_r_n
call edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x109]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ef253
mov esp, ebp
pop ebp
ret 4

Function at 0x406680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408f40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a845
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x5a9840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.004c860a
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push 0x565444
push eax
call fcn.004c8d73
lea eax, [ebp - 0x3c]
push eax
call fcn.004c8772
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movq xmm2, qword [eax + 0x20]
mov eax, dword [eax + 0x28]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movq qword [esi + 0x28], xmm2
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.004c8dbe
mov eax, dword [ebp - 0x44]
add esp, 0x10
test eax, eax
je 0x409018
push eax
call fcn.0051a236
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0
test eax, eax
je 0x40902f
push eax
call fcn.0051a236
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x409046
push eax
call fcn.0051a236
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], 0
test eax, eax
je 0x40905d
push eax
call fcn.0051a236
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x409074
push eax
call fcn.0051a236
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], 0
test eax, eax
je 0x40908b
push eax
call fcn.0051a236
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.004c8671
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a4d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
or eax, ebx
je 0x40a520
push dword [0x5ac4fc]
mov esi, 0x64
mov eax, ebx
push dword [0x5ac4f8]
mul esi
mov ecx, eax
mov eax, edi
mul esi
add ecx, edx
push ecx
push eax
call fcn.004ef950
mov esi, eax
test esi, esi
jns 0x40a522
xor esi, esi
jmp 0x40a52c
xor esi, esi
mov eax, 0x64
cmp esi, eax
cmova esi, eax
cmp esi, dword [0x5ac4f0]
je 0x40a589
push esi
push dword [0x5ac4fc]
lea eax, [ebp - 0x20c]
push dword [0x5ac4f8]
push ebx
push edi
push str._XIMAO_Decompress_size:_lld__lld_per_d___r_n
push 0x104
push eax
call fcn.00415ab0
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x5ac4e8]
push 0
push esi
push 0x434
mov dword [0x5ac4f0], esi
call fcn.004200c0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef253
mov esp, ebp
pop ebp
ret 8

Function at 0x40a5a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
movsd xmm1, qword [ebp + 0x18]
movaps xmm0, xmm1
mulsd xmm0, qword [0x5667a0]
push esi
cvttsd2si esi, xmm0
test esi, esi
jns 0x40a5d0
xor esi, esi
jmp 0x40a5da
mov eax, 0x64
cmp esi, eax
cmovg esi, eax
cmp esi, dword [0x5ac4ec]
je 0x40a63c
sub esp, 8
lea eax, [ebp - 0x20c]
movsd qword [esp], xmm1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._XIMAO_DownloadProgress__lld__lld__lf_r_n
push 0x104
push eax
call fcn.00415ab0
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x5ac4e8]
push 0
push esi
push 0x439
mov dword [0x5ac4ec], esi
call fcn.004200c0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b360
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.XIMAO_INSTALLER_CHECK_SINGLE
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b383
xor eax, eax
pop esi
ret
test esi, esi
je 0x40b38e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
pop esi
ret

Function at 0x40b3a0
Capabilities:
Delete file

Disassembly:
add ecx, 0x4d8
cmp dword [ecx + 0x14], 7
jbe 0x40b3ae
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret

Function at 0x40b3c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 5
mov edi, ecx
call fcn.0040a980
push 0x40
call fcn.004ef1c0
mov esi, eax
add esp, 4
test esi, esi
je 0x40b40c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
jmp 0x40b40e
xor esi, esi
mov eax, dword [0x5ac4f4]
mov ecx, esi
add eax, 0xdc
push eax
call fcn.0040a330
lea eax, [edi + 0x4c0]
push eax
lea ecx, [esi + 0x18]
call fcn.0040a300
lea eax, [ebp - 4]
mov dword [esi + 0x30], 0
push eax
push 0
push esi
push 0x40bc50
push 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0x10
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c03c
test al, 0x10
jne 0x40c03c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ad77
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
call fcn.004f26e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407c40
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
cmp ecx, edx
jae 0x40c631
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 7
jbe 0x40c628
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x40c649
push 0x5c
mov byte [ebp - 0x220], 0
mov ecx, esi
push dword [ebp - 0x220]
push 1
call fcn.00408310
mov edx, dword [0x5ac4f4]
add edx, 0x14
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c657
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00410690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ef253
mov esp, ebp
pop ebp
ret 4

Function at 0x40c690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x418], esi
call fcn.004f26e0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 2
ja 0x40c6e8
mov eax, 0x43
mov word [ebp - 0x414], ax
jmp 0x40c6ef
mov ax, word [ebp - 0x414]
push 0x565c1c
push str.Program_Files
movzx eax, ax
push eax
push str._c:_s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415ab0
xorps xmm0, xmm0
lea ecx, [ebp - 0x20c]
movups xmmword [esi], xmm0
add esp, 0x18
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c733
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407c40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret
Function at 0x40c770
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, 3
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0
cmp dword [ecx + 0x10], edx
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 7
jbe 0x40c7ac
mov ecx, dword [ecx]
push esi
push edi
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00407c40
cmp dword [ebp - 8], 7
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x1c]
movlpd qword [ebp - 0x3c], xmm0
cmova eax, dword [ebp - 0x1c]
push ecx
push eax
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40c7f4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
jmp 0x40c802
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
cmp ecx, 7
jbe 0x40c838
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c82e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c84c
push ecx
push edx
call fcn.004ef1f0
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret
call fcn.004ff818
int3

Function at 0x40c860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c88f
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x40c8a4
push 0
push 0
push 0
push 0
jmp 0x40c8b9
cmp eax, 2
jne 0x40c8df
xor eax, eax
mov ecx, edi
neg ecx
push 2
adc eax, eax
push 0
neg eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40c8df
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c8df
cmp edi, dword [ebp - 4]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d530
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0
push 0
push 3
push 0
push 1
push 0x120089
push dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d584
push esi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp - 4]
xor esi, esi
push ebx
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax + 4]
mov esi, dword [eax]
lea eax, [ebp - 0x20c]
push edi
push esi
push 0x565d6c
push 0x104
push eax
call fcn.00415ab0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
mov dword [0x5ac4fc], edi
xor ecx, ebp
pop edi
mov dword [0x5ac4f8], esi
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret 4

Function at 0x411f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411fc3
push 0
push 0
push 0x10
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411fc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x412b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412b52
push 2
push 0
push 0xffffffffffffffff
push 0xfffffffffffffff0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
push 0x10
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412b52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x415960
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call fcn.0040b360
test eax, eax
jne 0x41598c
push eax
push 0x565b2c
push 0x5666d4
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop ebp
ret 0x10
push esi
mov esi, dword [ebp + 0x10]
push str._oini
push esi
call fcn.004f2890
add esp, 8
test eax, eax
je 0x4159ab
push esi
call fcn.00413590
add esp, 4
call fcn.0040f080
test al, al
jne 0x4159cf
push 0x10
push 0x565fd0
push 0x5666e8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
xor eax, eax
pop ebp
ret 0x10
push dword [ebp + 8]
call fcn.0041e5f0
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x415a01
push 0x10
push 0x565fd0
push 0x5666fc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
xor eax, eax
pop ebp
ret 0x10
push 0x594
call fcn.004ef1c0
add esp, 4
test eax, eax
je 0x415a88
mov ecx, eax
call fcn.00409690
mov esi, eax
test esi, esi
je 0x415a88
push 0
push 0x23c
push 0x320
push 0
push 0
push 0
push 0x10cf0000
push 0x5656a4
push 0
mov ecx, esi
mov dword [0x5ac4e8], esi
call fcn.0041fbf0
mov ecx, esi
call fcn.0041fa70
push 5
mov ecx, esi
call fcn.0041f9e0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0041c6b0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, esi
call fcn.00409fb0
push 0x594
push esi
call fcn.004ef1f0
add esp, 8
xor eax, eax
pop esi
pop ebp
ret 0x10
push 0x10
push 0x565fd0
push 0x566724
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
xor eax, eax
pop ebp
ret 0x10

Function at 0x41a100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x11
call ebx
movsx esi, ax
sar esi, 0x1f
push 2
and esi, 8
call ebx
mov edi, esi
or edi, 2
test ax, ax
push 1
cmovns edi, esi
call ebx
mov esi, edi
or esi, 1
test ax, ax
push 0x10
cmovns esi, edi
call ebx
mov edi, esi
or edi, 4
test ax, ax
push 0x12
cmovns edi, esi
call ebx
mov ecx, edi
or ecx, 0x20
test ax, ax
cmovns ecx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret