joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ffe53ae
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
and al, 0xff
add al, 4
sub al, 4
and al, 0xff
xor eax, ecx
xor eax, ecx
inc esi
dec esi
add al, 4
sub al, 4
inc esi
dec esi
not eax
not eax
and al, 0xff
pushf
popf
push eax
pop eax
pushf
popf
and al, 0xff
xor eax, ecx
xor eax, ecx
push eax
pop eax
push bx
inc esp
inc esp
push es
pop ds
push bx
inc esp
inc esp
and al, 0xff
pushf
popf
push es
pop ds
pushf
popf
inc esi
dec esi
push bx
inc esp
inc esp
inc esi
dec esi
pushf
popf
inc esi
dec esi
xor eax, ecx
xor eax, ecx
add al, 0
pushf
popf
and al, 0xff
pushf
popf
push es
pop ds
not eax
not eax
add al, 0
push bx
inc esp
inc esp
inc esi
dec esi
nop
call 0x7ffe5428
pop edx
push es
pop ds
pushf
popf
xor dx, dx
and al, 0xff
stc
add edx, 0xd5e0
and al, 0xff
xor eax, ecx
xor eax, ecx
add al, 0
xor ecx, ecx
not eax
not eax
push es
pop ds
cld
inc esi
dec esi
mov cl, 0x1e
inc esi
dec esi
xor byte [ecx + edx], 0x2d
loop 0x7ffe5452
push es
pop ds
nop
and al, 0xff
push dword fs:[0x24]
pop dword [edx + 0xa]
cld
mov cl, 0xff
push es
pop ds
inc esi
dec esi
push edx
loop 0x7ffe546e
add al, 0
and al, 0xff
cld
mov dword [edx + 0x11], 0xffffacbb
add al, 4
sub al, 4
push eax
pop eax
inc esi
dec esi
mov ecx, dword [eax + 0x2c]
and al, 0xff
nop
mov dword [edx + 0x1b], ecx
and al, 0xff
not eax
not eax
mov dword [edx + 0x100], ecx
clc
mov dword [eax + 0x2c], esp
push bx
inc esp
inc esp
push 0
push edx
cdq
pop edx
push 0
inc esi
dec esi
push 0
add al, 0
not eax
not eax
nop
push 0
push eax
pop eax
push 0x30
inc esi
dec esi
not eax
not eax
cld
push 0x20
and al, 0xff
push 0
clc
push 0
add edx, 0xffff7f35
lea esp, [esp]
push edx
push edx
inc esi
dec esi
not eax
not eax
nop
push 0
push bx
inc esp
inc esp
inc esi
dec esi
call dword [edx + 0x820e]
inc esi
dec esi
stc
add esp, 0x3f8
xor eax, ecx
xor eax, ecx
inc esi
dec esi
inc esi
dec esi
xor eax, eax
add al, 0
add al, 4
sub al, 4
cld
push eax
pop eax
inc eax
inc esi
dec esi
pushf
popf
push es
pop ds
ret 0xc
Function at 0x40100f
Capabilities:
Terminate process

Disassembly:
jmp 0x40e884
cmp dword [esp + 4], 0
mov edx, str.error_unpacking_archive
cmovne edx, dword [esp + 4]
cmp byte [edx], 0x40
lea eax, [edx + 1]
cmovne eax, edx
push eax
push 0x426328
push dword [ecx + 0x68]
call fcn.0040153c
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4013d4
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x419c67
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jle 0x419c97
push ebx
mov ebx, dword [esp + 0x10]
push dword [edi]
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
test eax, eax
jle 0x419c9c
add dword [edi + 0x20], eax
sub esi, eax
add ebx, eax
test esi, esi
jg 0x419c78
pop ebx
pop edi
pop esi
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
mov eax, dword [edi + 0x30]
push str.Error:_write_on_output_file_failed_err_d_n
push dword [eax + 0x68]
call fcn.0040153c
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4017bc
Capabilities:
Terminate process

Disassembly:
jmp 0x4196f1
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41972f
push 0x426420
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
jne 0x41972f
push dword [esp + 8]
mov eax, dword [esi + 0x30]
push str.Error:_Could_not_open_jar_file:__s_n
push dword [eax + 0x68]
call fcn.0040153c
add esp, 0xc
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
ret 4

Function at 0x40264c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x41db30]
sub edx, 1
jne 0x402653
ret

Function at 0x40dc0c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.UNPACK200_FLAGS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
pop ecx
test eax, eax
je 0x40dc63
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov dword [esp], 0x425174
push eax
jmp 0x40dc59
push 4
lea ecx, [ebp - 0xc]
call fcn.00401361
push 0x425174
push ebx
mov dword [eax], esi
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40dc47
mov eax, dword [ebp - 8]
or edx, 0xffffffff
mov ebx, dword [ebp + 8]
shr eax, 2
inc eax
add eax, ebx
mov ecx, eax
shl ecx, 2
cmp eax, 0x1fffffff
cmova ecx, edx
push ecx
call fcn.004015af
mov esi, eax
xor edx, edx
test dword [ebp - 8], 0xfffffffc
pop ecx
mov dword [ebp + 8], esi
jbe 0x40dcac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov dword [esi], ecx
add esi, 4
mov eax, dword [ebp - 8]
inc edx
shr eax, 2
cmp edx, eax
jl 0x40dc96
xor edi, edi
inc edi
cmp ebx, edi
jle 0x40dcca
mov eax, dword [ebp + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov dword [esi], eax
add esi, 4
inc edi
pop ecx
cmp edi, ebx
jl 0x40dcb3
and dword [esi], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
pop edi
shr edx, 2
cmp dword [ebp - 4], 0
pop esi
mov dword [ecx], edx
pop ebx
je 0x40dce9
lea ecx, [ebp - 0xc]
call fcn.00401389
mov eax, dword [ebp + 8]
leave
ret

Function at 0x418eb1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x428db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
cmp eax, dword [ebp + 8]
jbe 0x418f18
lea eax, [ebp - 0x108]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea eax, [ebp - 0x108]
push 0x2f
push eax
call sub.VCRUNTIME140.dll_strrchr
add esp, 0x10
test eax, eax
je 0x418f18
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.00401776
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040136b
leave
ret
Function at 0x2fae2f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x2fae302
pushal
call 0x2fae308
pop ebp
sub ebp, 0x10
sub ebp, 0x2bae2f8
jmp 0x2fae31e
mov eax, 0x2bae2f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b9
mov edx, 0xd36ef84f
xor byte [eax], dl
inc eax
dec ecx
jne 0x2fae335
jmp 0x2fae348
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid
Function at 0x401ce8
Capabilities:
Create thread

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x401d16
lea eax, [esp + 0x10]
push eax
push edi
push esi
push 0x401bcb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x401d20
push 0xfffffffffffffffc
pop eax
jmp 0x401d63
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401d2c
push edi
call ebx
cmp dword [esi + 0x48], edi
je 0x401d29
lea ebp, [esi + 0x28]
mov dword [esi + 0x44], edi
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x44], 1
jmp 0x401d4a
push edi
call ebx
cmp dword [esi + 0x48], edi
jne 0x401d47
cmp dword [esi + 0x4c], edi
pop ebx
je 0x401d61
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x50]
jmp 0x401d63
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x401efa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4093fc], 0
push esi
jne 0x401f31
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401f0b
mov dword [ecx*4 + 0x4093f8], eax
inc ecx
cmp ecx, 0x100
jl 0x401f06
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401f62
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4093f8]
xor eax, esi
inc ecx
dec edx
jne 0x401f44
pop edi
not eax
pop esi
ret 0xc
Function at 0x403813
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403885
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x40385e
cmp dword [ebp + 0x10], ebx
jne 0x40388c
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403813
test eax, eax
jne 0x403870
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403845
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x403885
Function at 0x403cbe
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403ceb
mov ecx, dword [0x423f70]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4174e4], eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403de9
cmp eax, edi
jl 0x403de2
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409094]
call ebx
test eax, eax
je 0x403ddf
cmp dword [ebp - 4], esi
jne 0x403ddf
push dword [ebp + 8]
add dword [0x4174e4], esi
call fcn.00403de9
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403de2
cmp dword [ebp + 0x10], edi
jne 0x403dae
cmp dword [ebp + 8], edi
jle 0x403dda
mov esi, 0x4134a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403d5e
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409094]
call ebx
test eax, eax
je 0x403ddf
cmp edi, dword [ebp - 4]
jne 0x403ddf
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403daa
cmp dword [ebp + 0x14], edi
jne 0x403daa
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4174e4], eax
cmp dword [ebp + 8], 0
jg 0x403d51
jmp 0x403dda
push 0xfffffffffffffffe
jmp 0x403de1
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403db9
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409094]
call ebx
test eax, eax
je 0x403ddf
mov eax, dword [ebp - 4]
add dword [0x4174e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403de2
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403de9
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4174e4]
mov ebx, eax
sub esi, dword [0x40b444]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x403fca
push dword [0x41f4f4]
call fcn.00404008
push edi
push edi
push dword [0x40b444]
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f4f0], esi
mov dword [0x4174e0], edi
mov eax, dword [0x4174e8]
mov ebp, 0x4000
sub eax, dword [0x41f4f4]
cmp eax, ebp
jg 0x403e5d
mov ebp, eax
mov esi, 0x4134a0
push ebp
push esi
call fcn.00403fd6
test eax, eax
je 0x403fac
add dword [0x41f4f4], ebp
mov dword [0x40b460], esi
mov dword [0x40b464], ebp
cmp dword [0x423f28], edi
je 0x403f0f
cmp dword [0x423f9c], edi
jne 0x403f0f
cmp dword [esp + 0x10], edi
je 0x403edc
mov eax, dword [0x41f4f0]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x4174e4]
sub eax, dword [esp + 0x38]
add eax, dword [0x40b444]
mov dword [0x4174e0], eax
jmp 0x403eca
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x403ebf
jmp 0x403f0f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403f0f
mov eax, dword [0x423f24]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x4038f7
push edi
push 0x6f
push dword [0x423f20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b448
mov dword [0x40b468], 0x40b4a0
mov dword [0x40b46c], 0x8000
call fcn.00401ce8
test eax, eax
jl 0x403fb5
mov esi, dword [0x40b468]
mov eax, 0x40b4a0
sub esi, eax
je 0x403f76
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403fb1
cmp esi, dword [esp + 0x14]
jne 0x403fb1
add dword [0x40b444], esi
cmp dword [0x40b464], edi
jne 0x403e83
jmp 0x403f82
cmp dword [0x40b464], edi
jne 0x403fb5
cmp ebp, edi
je 0x403fb5
mov eax, dword [0x4174e4]
mov ecx, eax
sub ecx, dword [0x40b444]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x403e47
push edi
push edi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403fba
or eax, 0xffffffff
jmp 0x403fcc
push 0xfffffffffffffffe
jmp 0x403fb7
push 0xfffffffffffffffd
pop eax
jmp 0x403fcc
cmp dword [esp + 0x10], edi
je 0x403fca
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4045ff
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42a000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x42a000
je 0x40461e
push ebx
call fcn.00406915
jmp 0x404624
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x423f64]
test esi, esi
je 0x404677
mov ecx, dword [0x423f28]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x423f60]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40465c
test esi, esi
jne 0x404646
jmp 0x404677
mov edx, dword [ecx + 2]
mov dword [0x423700], edx
mov edx, dword [ecx + 6]
mov dword [0x423fa4], edx
lea edx, [ecx + 0xa]
mov dword [0x4236fc], edx
cmp dword [0x4236fc], 0
jne 0x404692
cmp di, 0xffff
jne 0x40468e
mov edi, 0x3ff
jmp 0x404626
xor edi, edi
jmp 0x404626
movzx eax, word [ecx]
push eax
push ebx
call fcn.004068fc
push 0xfffffffffffffffe
push 0x423720
call fcn.004069aa
push eax
push dword [0x420910]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40637c
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422138], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4063a0
test al, 0x10
jne 0x4063a3
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422138
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4063ce
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x406445
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040657e
test eax, eax
je 0x4064a9
test byte [ebp + 0xc], 1
push esi
je 0x406492
mov eax, dword [0x423f24]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4064a9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4064a9
test byte [ebp + 0xc], 2
je 0x4064a9
push eax
push esi
call fcn.004066db
pop esi
leave
ret 8
Function at 0x40657e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d38
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.0040652c
test eax, eax
jne 0x40659d
xor eax, eax
jmp 0x4065e6
test byte [0x423f30], 0x80
je 0x4065b1
mov cl, byte [eax]
test cl, cl
je 0x406599
cmp cl, 0x5c
je 0x406599
mov edi, eax
sub edi, esi
jmp 0x4065cb
call fcn.00406c7e
test eax, eax
je 0x4065c5
test byte [eax], 0x10
je 0x406599
push esi
call fcn.004064da
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4065b7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406663
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406692
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40930c]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4066d7
test edi, edi
jne 0x40669d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4066d1
Function at 0x4066db
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406713
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406713
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406858
mov eax, dword [0x409338]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x422ac0], eax
mov edi, 0x400
mov ebp, 0x422ac0
je 0x406757
push 1
push 0
push esi
call fcn.00406663
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40685e
cmp eax, edi
jg 0x40685e
mov esi, 0x4226c0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40685e
cmp eax, edi
jg 0x40685e
push esi
push ebp
push str._s_s_r_n
push 0x4222c0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406858
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406840
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406834
push str._Rename__r_n
push edi
call fcn.004065eb
test eax, eax
jne 0x406865
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4222c0
push eax
call fcn.0040663f
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409310
push eax
call fcn.004065eb
test eax, eax
je 0x40681b
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x40688e
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406881
sub eax, edi
jmp 0x40681d
Function at 0x406892
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068f6
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4068e5
cmp dword [ebp + 0x14], 1
je 0x4068e7
cmp dword [ebp + 0x14], 2
je 0x4068e7
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10