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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x44f978]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2ce4], 0
test eax, eax
je 0x4135f1
push edi
lea edi, [esi + 0x2ce8]
mov dword [esi + 0x2ce4], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x413554
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00414420
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x413569
push 8
mov ecx, edi
call fcn.00414420
mov eax, dword [edi]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2cf4], 0
jle 0x4135ac
xor ebx, ebx
mov eax, dword [esi + 0x2cfc]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2cf4]
jl 0x413587
mov edi, dword [edi]
mov ebx, 0x44f974
mov ecx, dword [ebp - 8]
mov edx, 0x4455b0
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2cf0]
test eax, eax
cmovne ebx, eax
call fcn.00402e60
mov esi, eax
test esi, esi
je 0x4135ef
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434220
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [0x44f978]
lea eax, [esp + 0x20]
push esi
push edi
push eax
push dword [0x44fcbc]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
movd xmm1, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x44fcc0]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x44fcc4]
call fcn.00443420
mov edx, dword [0x44fccc]
mov ecx, dword [0x44fcc8]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.00443420
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x44fcc4], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x44fcc0], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf9], al
call esi
mov ecx, dword [0x44f978]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xfb], 0
mov byte [ebx + 0xfa], al
cmp byte [ecx + 0x357], 0
lea esi, [ecx + 0xe0]
je 0x43434f
cvttss2si eax, dword [esi]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [ecx + 0xe4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x44fcbc]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4343bb
mov ecx, dword [0x44fcbc]
cmp eax, ecx
je 0x43437c
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4343bb
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x4343bb
lea eax, [esp + 0x18]
push eax
push dword [0x44fcbc]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x4343bb
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [ebx + 0xac], 0
je 0x4343c9
or eax, 0xffffffff
jmp 0x4343d4
mov eax, dword [0x44f978]
mov eax, dword [eax + 0x1d04]
cmp dword [0x44f1c8], eax
je 0x4343e6
mov dword [0x44f1c8], eax
call fcn.00433e90
call fcn.00433fb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434c50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44368d
push eax
mov dword fs:[0], esp
sub esp, 0x254
push esi
push edi
push ecx
push 0x18
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x434df0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x224
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x434de9
nop word [eax + eax]
push 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push str.client.dll
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x3c], xmm0
call fcn.00440310
mov dword [ebp - 4], 0
lea esi, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0xf
xorps xmm0, xmm0
mov eax, dword [ebp - 0x2c]
cmova esi, dword [ebp - 0x3c]
seta dl
add eax, esi
mov dword [ebp - 0x14], 0
test dl, dl
mov dword [ebp - 0x10], 0
lea esi, [ebp - 0x3c]
cmovne esi, dword [ebp - 0x3c]
movups xmmword [ebp - 0x24], xmm0
cmp esi, eax
jne 0x434d20
mov dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
mov byte [ebp - 0x24], 0
jmp 0x434d37
sub eax, esi
lea ecx, [ebp - 0x24]
push eax
push esi
call fcn.00440310
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
cmova eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
je 0x434e02
cmp ecx, 0xf
jbe 0x434d84
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x434d7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434e6d
push ecx
push edx
call fcn.0044248d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp ecx, 0xf
jbe 0x434dd1
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x434dc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434e6d
push ecx
push edx
call fcn.0044248d
add esp, 8
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x434cb0
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x24c]
cmp ecx, 0xf
jbe 0x434e35
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x434e2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434e6d
push ecx
push edx
call fcn.0044248d
add esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp ecx, 0xf
jbe 0x434de9
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x434e73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434e73
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0044248d
add esp, 8
jmp 0x434de9
Function at 0x43e6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x43e6fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x43e724
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x43e72a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x43e792
jg 0x43e741
test esi, esi
je 0x43e792
test ecx, ecx
jl 0x43e78d
jg 0x43e74b
test eax, eax
je 0x43e78d
cmp edi, ecx
jg 0x43e75f
jl 0x43e755
cmp esi, eax
jae 0x43e75f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x43e795
mov ecx, dword [ebp + 8]
jmp 0x43e79f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x43e7b9
jg 0x43e79f
test esi, esi
je 0x43e7b9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x43e7b9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x43e7f4
jl 0x43e7e9
test ecx, ecx
jne 0x43e7f4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43e80e
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x43e85a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x43e860
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x43e860
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x43e8d6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43e88c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x43e8c4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x43e8d6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x43e8a0
test edi, edi
je 0x43e8d6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43ec50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x43ec6c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43ec9e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x43ec9e
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x43ed61
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x43ecc6
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43ecd2
movsx eax, bl
jmp 0x43ed0a
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x43ed2a
sub eax, 1
je 0x43ed2a
sub eax, 2
jne 0x43ed61
movsx eax, byte [ebp - 1]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x43ed48
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x43ed61
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x43f65c
cmp byte [esi + 0x3d], 0
je 0x43f65c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x43f654
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x43f625
sub eax, 1
je 0x43f629
sub eax, 2
jne 0x43f654
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43f647
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x43f654
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x442b35
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x442b74
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442b74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442b74
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x442b74
cmp dword [ecx + 0x74], 0xe
jbe 0x442b74
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403601
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x40362e
mov eax, dword [0x423880]
test eax, eax
je 0x403622
sub esp, 0xc
push eax
call sub.USER32.dll_DestroyWindow
add esp, 0xc
mov dword [0x423880], 0
jmp 0x40367f
cmp dword [0x423880], 0
je 0x403646
sub esp, 0xc
push 0
call fcn.00406783
add esp, 0xc
jmp 0x40367f
call sub.KERNEL32.DLL_GetTickCount
cmp eax, dword [0x435ab8]
jbe 0x40367f
sub esp, 0xc
push 0
push 0x403942
push 0
push 0x6f
push dword [0x435b18]
call sub.USER32.dll_CreateDialogParamW
sub esp, 0xc
mov dword [0x423880], eax
push 5
push eax
call sub.USER32.dll_ShowWindow
add esp, 0x18
leave
ret
Function at 0x4067db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24c
lea ebx, [ebp - 0x240]
push 0x104
push ebx
call sub.KERNEL32.DLL_GetSystemDirectoryW
mov edx, eax
pop eax
cmp edx, 0x104
pop ecx
jbe 0x406806
xor edx, edx
jmp 0x406814
test edx, edx
je 0x406814
xor eax, eax
cmp word [ebx + edx*2 - 2], 0x5c
jne 0x406819
mov eax, 1
push dword [ebp + 8]
add eax, eax
add eax, 0x40b62c
push eax
lea eax, [ebx + edx*2]
push 0x40b630
push eax
call sub.USER32.dll_wsprintfW
add esp, 0xc
push 8
push 0
push ebx
call sub.KERNEL32.DLL_LoadLibraryExW
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x406b04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov word [ebx], 0
push edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExW
add esp, 0xc
test eax, eax
jne 0x406b83
push eax
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x800
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExW
pop edx
test eax, eax
pop ecx
jne 0x406b67
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x406b6c
mov word [ebx], 0
mov word [ebx + 0x7fe], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x406e7e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x406eab
xor edx, edx
cmp ebx, dword [ebp - 8]
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x406eb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x406ee1
xor edx, edx
cmp ebx, dword [ebp - 8]
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x406f75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0x64
mov esi, dword [ebp + 8]
jmp 0x406fc5
mov edx, dword [0x40b658]
mov eax, dword [0x40b654]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
call sub.KERNEL32.DLL_GetTickCount
mov edx, 0x1a
push esi
mov ecx, edx
xor edx, edx
div ecx
lea eax, [ebp - 0x14]
push 0
push eax
add ebx, edx
push dword [ebp + 0xc]
mov word [ebp - 0x10], bx
call sub.KERNEL32.DLL_GetTempFileNameW
test eax, eax
jne 0x406fd2
dec edi
cmp edi, 0xffffffff
jne 0x406f88
mov word [esi], 0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x406fde
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x4333c8
call fcn.00406aea
push ebx
push 0x4333c8
call fcn.0040691a
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x407097
sub esp, 0xc
push eax
call fcn.00406995
add esp, 0xc
cmp byte [0x435ac8], 0
jns 0x40702d
mov ax, word [ebx]
test ax, ax
je 0x407097
cmp ax, 0x5c
je 0x407097
sub ebx, 0x4333c8
sar ebx, 1
jmp 0x407060
sub esp, 0xc
push 0x4333c8
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x407050
test byte [eax], 0x10
je 0x407097
sub esp, 0xc
push 0x4333c8
call fcn.00406a72
add esp, 0xc
sub esp, 0xc
push 0x4333c8
call fcn.00406a69
add esp, 0xc
cmp eax, ebx
jg 0x407037
sub esp, 0xc
push 0x4333c8
call fcn.00406aac
push 0x4333c8
call sub.KERNEL32.DLL_GetFileAttributesW
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x407099
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x4070a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop edx
xor edx, edx
cmp eax, 0xffffffff
pop ecx
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.DLL_CreateFileW
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4070d8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesW
add esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x407103
push eax
push eax
mov eax, ebx
and eax, 0xfffffffe
push eax
push esi
call sub.KERNEL32.DLL_SetFileAttributesW
pop esi
pop eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407174
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
push 0x40b65c
push 0x431fc8
call sub.KERNEL32.DLL_lstrcpyW
test ebx, ebx
pop esi
pop edi
je 0x4071d0
push ecx
push 1
push 0
push ebx
call fcn.004070a0
push edx
push edx
push eax
call sub.KERNEL32.DLL_CloseHandle
push eax
push eax
push 0x400
push 0x431fc8
push ebx
call sub.KERNEL32.DLL_GetShortPathNameW
add esp, 0x14
test eax, eax
je 0x407332
cmp eax, 0x400
jg 0x407332
push eax
push 0x400
push 0x4327c8
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetShortPathNameW
pop edi
test eax, eax
je 0x407332
cmp eax, 0x400
jg 0x407332
push 0x4327c8
push 0x431fc8
push str._ls_ls_r_n
push 0x432fc8
call sub.USER32.dll_wsprintfA
pop ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x435a68]
pop esi
push dword [eax + 0x128]
push 0x4327c8
call fcn.00406b8a
sub esp, 0xc
push 4
push 0xc0000000
push 0x4327c8
call fcn.004070a0
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x407332
push ecx
push ecx
push 0
push eax
call sub.KERNEL32.DLL_GetFileSize
mov edx, dword [ebp - 0x14]
mov esi, eax
lea eax, [eax + edx + 0xa]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GlobalAlloc
mov edi, eax
pop eax
test edi, edi
pop edx
je 0x407324
push eax
push esi
push edi
push dword [ebp - 0x10]
call fcn.00406eb4
pop ebx
test eax, eax
je 0x407324
push ecx
push ecx
push str._Rename__r_n
push edi
call fcn.0040710e
pop ebx
test eax, eax
pop edx
jne 0x4072b4
lea eax, [edi + esi]
push ecx
push ecx
push str._Rename__r_n
push eax
call sub.KERNEL32.DLL_lstrcpyA
add esi, 0xa
pop ebx
mov eax, esi
pop edx
jmp 0x4072e9
add eax, 0xa
push ecx
push ecx
push 0x40b679
push eax
call fcn.0040710e
mov ebx, eax
pop eax
test ebx, ebx
pop edx
mov eax, esi
je 0x4072e9
lea edx, [edi + esi]
mov eax, dword [ebp - 0x14]
lea ecx, [edx + eax]
jmp 0x4072df
mov al, byte [edx]
dec edx
mov byte [ecx + 1], al
dec ecx
cmp edx, ebx
ja 0x4072d9
sub ebx, edi
lea eax, [ebx + 1]
push dword [ebp - 0x14]
lea eax, [edi + eax]
push 0x432fc8
push eax
call fcn.0040665d
push 0
push 0
push 0
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_SetFilePointer
mov edx, dword [ebp - 0x14]
push eax
lea eax, [esi + edx]
push eax
push edi
push dword [ebp - 0x10]
call fcn.00406e7e
push eax
push eax
push edi
call sub.KERNEL32.DLL_GlobalFree
add esp, 0xc
sub esp, 0xc
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret