joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001215a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10014010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.100077c6
test eax, eax
pop ecx
je 0x1001218f
push edi
push edi
push edi
push edi
push edi
call fcn.10009b83
add esp, 0x14
push 4
pop eax
call fcn.10012490
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001229d
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x10012216
push 0x10002bfc
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x10012216
push 0x10003680
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10012216
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x10012216
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x10012216
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.1001212e
add esp, 0xc
test eax, eax
jl 0x1001229d
not edi
and dword [ebp - 8], edi
je 0x10012248
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.1001212e
add esp, 0xc
test eax, eax
jl 0x1001229d
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10012253
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x10012267
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x1001229d
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1001229d
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001229d
xor eax, eax
inc eax
jmp 0x1001229f
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006df2
leave
ret
Function at 0x402080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55147d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a0800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.004e6c7e
add esp, 4
test eax, eax
je 0x4020bc
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x4020be
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401cf0
push 0
push 0
call fcn.0051190b
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4020fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.004c411e
int3
Function at 0x4042e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
call fcn.00474080
mov edi, eax
test edi, edi
jne 0x404308
push str._XIMAO__GetContentLength_handlenull_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
xor edx, edx
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebx]
push dword [esi + 4]
push ebx
call fcn.00401a60
mov eax, dword [ebp + 8]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebx + 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x404334
mov eax, dword [eax]
push eax
push 0x2712
push edi
call fcn.00477600
push 1
push 0x2a
push edi
call fcn.00477600
push 0x405850
push 0x4e6f
push edi
call fcn.00477600
push ebx
push 0x272d
push edi
call fcn.00477600
push 1
push 0x2c
push edi
call fcn.00477600
push 0
push 0x40
push edi
call fcn.00477600
add esp, 0x48
push 0
push 0x51
push edi
call fcn.00477600
push 1
push 0x34
push edi
call fcn.00477600
push 0
push 0x29
push edi
call fcn.00477600
push 0x1e
push 0x4e
push edi
call fcn.00477600
push 0x3c
push 0xd
push edi
call fcn.00477600
push 0xa
push 0x44
push edi
call fcn.00477600
xorps xmm0, xmm0
add esp, 0x48
movlpd qword [ebp - 8], xmm0
xor esi, esi
push edi
call fcn.00474240
add esp, 4
test eax, eax
je 0x4043f5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x32
push eax
mov dword [ebp - 0xc], 0
call fcn.00402580
inc esi
add esp, 4
cmp esi, 5
jl 0x4043c6
jmp 0x404436
lea eax, [ebp - 8]
push eax
push 0x60000f
push edi
call fcn.00474060
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x200002
push edi
call fcn.00474060
mov eax, dword [ebp + 0xc]
add esp, 0x18
cmp eax, 0xc8
jl 0x40442e
cmp eax, 0x12c
jl 0x404436
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
push edi
call fcn.00473de0
mov eax, dword [ebp - 8]
add esp, 4
mov edx, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x405c30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a0800]
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 0x405c6e
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.004e6d11
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00474080
mov esi, eax
test esi, esi
jne 0x405c9a
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.004e6d11
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x30], esi
cmp dword [ebx + 0x14], 0xf
jbe 0x405ca5
mov ebx, dword [ebx]
push ebx
push 0x2712
push esi
call fcn.00477600
push 0x406950
push 0x4e2b
push esi
call fcn.00477600
push edi
push 0x2711
push esi
call fcn.00477600
push 0
push 0x2b
push esi
call fcn.00477600
push 0x406140
push 0x4efb
push esi
call fcn.00477600
push edi
push 0x2749
push esi
call fcn.00477600
add esp, 0x48
push 1
push 0x63
push esi
call fcn.00477600
push 0x1e
push 0x13
push esi
call fcn.00477600
push 0x78
push 0x14
push esi
call fcn.00477600
push 0x3c
push 0x4e
push esi
call fcn.00477600
push 0xea60
push 0xd
push esi
call fcn.00477600
push 0
push 0x40
push esi
call fcn.00477600
add esp, 0x48
push 0
push 0x51
push esi
call fcn.00477600
push 1
push 0x34
push esi
call fcn.00477600
push 0
push 0x29
push esi
call fcn.00477600
push 0xa
push 0x44
push esi
call fcn.00477600
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004ea040
mov ecx, dword [edi + 0x18]
add esp, 0x3c
mov eax, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x405db4
test eax, eax
jne 0x405db4
push eax
push 0x2717
push esi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
call fcn.00477600
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 0x405de7
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.00406e40
lea eax, [ebp - 0x108]
push eax
push 0x2717
push esi
call fcn.00477600
add esp, 0x28
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004e6d11
mov esp, ebp
pop ebp
ret 8
Function at 0x405ff0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5a0800]
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 [0x55b930]
mov dword [ebp - 0x14], eax
mov al, byte [0x55b934]
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.00401ab0
mov esi, dword [ebp - 0x20]
cmp byte [esi + 0xd], 0
jne 0x4060b7
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004014e0
add esp, 8
test al, al
jne 0x4060b7
cmp esi, dword [edi]
je 0x4060b7
add esi, 0x28
push str.none
push esi
call fcn.00401340
add esp, 8
test al, al
je 0x406086
push str._XIMAO___IsSupportAcceptRanges_none_r_n
jmp 0x4060bc
push str.bytes
push esi
call fcn.00401340
add esp, 8
test al, al
je 0x4060b7
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.004e6d11
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.004e6d11
mov esp, ebp
pop ebp
ret 4
Function at 0x406580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5a0800]
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 0x40672e
push ebx
push esi
mov ecx, ebx
call fcn.00405c30
test al, al
je 0x406727
push dword [esi + 0x30]
call fcn.00474240
mov edi, eax
add esp, 4
cmp edi, 0x2a
je 0x40670f
test edi, edi
jne 0x40666a
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.00474060
mov eax, dword [ebp - 0x110]
add esp, 0xc
cmp eax, 0x194
je 0x406708
cmp eax, 0xc8
jl 0x406646
cmp eax, 0x12c
jle 0x4066cf
push eax
lea eax, [ebp - 0x108]
push str._XIMAO___TransferData_curl_easy_getinfo_failed_rescode:__ld_r_n
push eax
call fcn.00406e80
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406699
push edi
call fcn.004731e0
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.00406e80
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.00473de0
add esp, 4
mov ecx, ebx
push 0x1f4
call fcn.00406490
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 0x4065c0
jmp 0x40672e
push eax
lea eax, [ebp - 0x108]
push str._XIMAO___TransferData_curl_easy_getinfo_succ_rescode:__ld_r_n
push eax
call fcn.00406e80
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esi + 0x30]
call fcn.00473de0
add esp, 4
mov byte [esi], 1
mov byte [ebp - 0x109], 1
jmp 0x40672e
push str._XIMAO___TransferData_response_code404_r_n
jmp 0x40672c
push str._XIMAO___TransferData_CURLE_ABORTED_BY_CALLBACK_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esi + 0x30]
call fcn.00473de0
add esp, 4
jmp 0x40672e
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.004e6d11
mov esp, ebp
pop ebp
ret 4

Function at 0x406910
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 0x408720
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551b05
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x5a0800]
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.004c430b
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 0x55c308
push eax
call fcn.004c4a8c
lea eax, [ebp - 0x3c]
push eax
call fcn.004c448b
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.004c4ad7
mov eax, dword [ebp - 0x44]
add esp, 0x10
test eax, eax
je 0x4087f8
push eax
call fcn.00511a6c
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0
test eax, eax
je 0x40880f
push eax
call fcn.00511a6c
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x408826
push eax
call fcn.00511a6c
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], 0
test eax, eax
je 0x40883d
push eax
call fcn.00511a6c
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x408854
push eax
call fcn.00511a6c
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], 0
test eax, eax
je 0x40886b
push eax
call fcn.00511a6c
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.004c4372
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 0x409a30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a0800]
xor eax, ebp
mov dword [ebp - 4], eax
movsd xmm1, qword [ebp + 0x18]
movaps xmm0, xmm1
mulsd xmm0, qword [0x55d430]
push esi
cvttsd2si esi, xmm0
test esi, esi
jns 0x409a60
xor esi, esi
jmp 0x409a6a
mov eax, 0x64
cmp esi, eax
cmovg esi, eax
cmp esi, dword [0x5a349c]
je 0x409acc
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.00411760
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x5a3498]
push 0
push esi
push 0x439
mov dword [0x5a349c], esi
call fcn.0041bd60
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e6d11
mov esp, ebp
pop ebp
ret 0x18
Function at 0x409ae0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a0800]
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 0x409b30
push dword [0x5a34ac]
mov esi, 0x64
mov eax, ebx
push dword [0x5a34a8]
mul esi
mov ecx, eax
mov eax, edi
mul esi
add ecx, edx
push ecx
push eax
call fcn.004e73f0
mov esi, eax
test esi, esi
jns 0x409b32
xor esi, esi
jmp 0x409b3c
xor esi, esi
mov eax, 0x64
cmp esi, eax
cmova esi, eax
cmp esi, dword [0x5a34a0]
je 0x409b99
push esi
push dword [0x5a34ac]
lea eax, [ebp - 0x20c]
push dword [0x5a34a8]
push ebx
push edi
push str._XIMAO_Decompress_size:_lld__lld_per_d___r_n
push 0x104
push eax
call fcn.00411760
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x5a3498]
push 0
push esi
push 0x434
mov dword [0x5a34a0], esi
call fcn.0041bd60
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.004e6d11
mov esp, ebp
pop ebp
ret 8
Function at 0x40a1e0
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 0x40a203
xor eax, eax
pop esi
ret
test esi, esi
je 0x40a20e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
pop esi
ret

Function at 0x40a220
Capabilities:
Delete file

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

Function at 0x40a240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 5
mov edi, ecx
call fcn.00409ee0
push 0x40
call fcn.004e6c7e
mov esi, eax
add esp, 4
test esi, esi
je 0x40a28c
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 0x40a28e
xor esi, esi
mov eax, dword [0x5a34a4]
mov ecx, esi
add eax, 0xdc
push eax
call fcn.00409a00
lea eax, [edi + 0x4c0]
push eax
lea ecx, [esi + 0x18]
call fcn.004099d0
lea eax, [ebp - 4]
mov dword [esi + 0x30], 0
push eax
push 0
push esi
push 0x40aad0
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 0x40aea0
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 0x40aebc
test al, 0x10
jne 0x40aebc
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551f87
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5a0800]
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.004ea040
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 0x40b460
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407a80
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
cmp ecx, edx
jae 0x40b4b1
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 7
jbe 0x40b4a8
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x40b4c9
push 0x5c
mov byte [ebp - 0x220], 0
mov ecx, esi
push dword [ebp - 0x220]
push 1
call fcn.00407ee0
mov edx, dword [0x5a34a4]
add edx, 0x14
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b4d7
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0040f080
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.004e6d11
mov esp, ebp
pop ebp
ret 4

Function at 0x40b510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5a0800]
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.004ea040
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 2
ja 0x40b568
mov eax, 0x43
mov word [ebp - 0x414], ax
jmp 0x40b56f
mov ax, word [ebp - 0x414]
push 0x55cc50
push str.Program_Files
movzx eax, ax
push eax
push str._c:_s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00411760
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 0x40b5b3
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407a80
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e6d11
mov esp, ebp
pop ebp
ret
Function at 0x40b5f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5a0800]
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 0x40b62c
mov ecx, dword [ecx]
push esi
push edi
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00407a80
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 0x40b674
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
jmp 0x40b682
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 0x40b6b8
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b6ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6cc
push ecx
push edx
call fcn.004e6cae
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e6d11
mov esp, ebp
pop ebp
ret
call fcn.004f7238
int3

Function at 0x40b6e0
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 0x40b70f
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 0x40b724
push 0
push 0
push 0
push 0
jmp 0x40b739
cmp eax, 2
jne 0x40b75f
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 0x40b75f
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 0x40b75f
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 0x40c380
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 0x40c3d4
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