joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458d30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ab478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a1a42
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00458690
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a1970
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049e157
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049e157
push 1
push 0
push 0
mov ecx, esi
call fcn.0049e0ff
push 1
push 0
push 1
mov ecx, esi
call fcn.0049e0ff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a1ab4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x458eb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ab498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a1a42
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00458690
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a1970
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x458f74
cmp dword [esp + 0x40], 1
jne 0x458f72
cmp ecx, eax
jge 0x458f74
mov eax, ecx
cmp eax, 0xc8
jge 0x458f80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00458d30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a1ab4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x459780
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ab543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049c577
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a1cea
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a3242
test eax, eax
je 0x45989c
mov ecx, dword [esp + 0x3c]
call fcn.004a1d17
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x459860
push edi
mov ecx, esi
call fcn.0049f2d2
mov ecx, esi
call fcn.00459a40
cmp dword [esp + 0x38], 1
jne 0x459895
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049f43c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45ba80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45bab3
push esi
call fcn.00469e40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45baac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45bb39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45bb22
mov eax, dword [esi + 8]
test eax, eax
je 0x45bad7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45bb1e
cmp eax, 2
je 0x45bb22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45baca
cmp eax, 3
je 0x45bafd
cmp eax, 1
jne 0x45baca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45baca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45baca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045bb60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45bb48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045bb60
add esp, 4
pop esi
ret

Function at 0x45c3e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45c401
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45c401
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45c401
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x478a10
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x478ab3
test eax, eax
jbe 0x478ab3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x478ab3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x478a5e
xor esi, esi
jmp 0x478a64
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x478a8f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00416b60
add esi, eax
push esi
mov ebx, esi
call fcn.00416b60
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x478a70
pop ebp
test edi, edi
pop edi
jne 0x478ab3
test ebx, ebx
je 0x478ab3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048ae40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x478e05
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x478f1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478f1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049c9c9
mov esi, eax
test esi, esi
je 0x478f1d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x478f1d
mov ecx, esi
call fcn.00478d30
cmp edi, eax
jge 0x478f1d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x478ea3
mov dword [esp + 0x34], 1
jmp 0x478efe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x478f1d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00476fa0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49d36d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49d3a5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049b3fa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049b3d2
jmp 0x49d3b1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49ea5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49ea9d
call fcn.004a4749
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49ea9d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49ea94
xor eax, eax
jmp 0x49eaa5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049eaab
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a4c79
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4ca7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4cc5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a4bdf
jmp 0x4a4cc5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4cc5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a4bdf
test edi, edi
mov eax, edi
jne 0x4a4caf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401af7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x7be32f22
xor ecx, ebp
loop 0x401aff
pop ebp
ret

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

Disassembly:
cmp dword [0x40a58c], 0
push esi
jne 0x4021c1
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 0x40219b
mov dword [ecx*4 + 0x40a588], eax
inc ecx
cmp ecx, 0x100
jl 0x402196
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4021f2
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 + 0x40a588]
xor eax, esi
inc ecx
dec edx
jne 0x4021d4
pop edi
not eax
pop esi
ret 0xc
Function at 0x40395e
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 0x4039d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4039a9
cmp dword [ebp + 0x10], ebx
jne 0x4039d7
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.0040395e
test eax, eax
jne 0x4039bb
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403990
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 0x4039d0
Function at 0x40460b
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x436000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x436000
je 0x40462a
push ebx
call fcn.00406759
jmp 0x404630
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x42f064]
test esi, esi
je 0x404683
mov ecx, dword [0x42f028]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x42f060]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x404668
test esi, esi
jne 0x404652
jmp 0x404683
mov edx, dword [ecx + 2]
mov dword [0x42e800], edx
mov edx, dword [ecx + 6]
mov dword [0x42f0c8], edx
lea edx, [ecx + 0xa]
mov dword [0x42e7fc], edx
cmp dword [0x42e7fc], 0
jne 0x40469e
cmp di, 0xffff
jne 0x40469a
mov edi, 0x3ff
jmp 0x404632
xor edi, edi
jmp 0x404632
movzx eax, word [ecx]
push eax
push ebx
call fcn.00406740
push 0xfffffffffffffffe
push 0x42e820
call fcn.004067ee
push eax
push dword [0x42b5f8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42f04c]
mov esi, dword [0x42f048]
test eax, eax
je 0x4046eb
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4046e2
push eax
lea eax, [esi + 0x18]
push eax
call fcn.004067ee
add esi, 0x418
dec edi
jne 0x4046d2
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060a3
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 [0x42d220], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4060c7
test al, 0x10
jne 0x4060ca
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42d220
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 0x4060f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40616c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.004063c9
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
and edi, 1
mov dword [ebp + 8], edi
je 0x4061a1
test eax, eax
je 0x4062e1
test byte [ebp + 0xc], 2
je 0x40629d
mov esi, 0x42ca20
push ebx
push esi
call fcn.004067e2
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4061c1
push str..
push esi
call edi
jmp 0x4061c7
push ebx
call fcn.00406330
push 0x409038
push ebx
call edi
push ebx
call fcn.004067e8
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406293
cmp byte [ebp - 0x118], 0x2e
jne 0x40620d
cmp byte [ebp - 0x117], 0x2e
je 0x406276
cmp byte [ebp - 0x117], 0
je 0x406276
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.004067e2
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x406239
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406276
push dword [ebp + 0xc]
push ebx
call fcn.0040616c
jmp 0x406276
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40626e
test byte [ebp + 0xc], 4
je 0x406266
push ebx
push 0xfffffffffffffff1
call fcn.00405bc2
push 0
push ebx
call fcn.0040651f
jmp 0x406276
inc dword [0x42f0a8]
jmp 0x406276
push ebx
push 0xfffffffffffffff2
call fcn.00405bc2
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4061f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40629d
and byte [edi - 1], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4062e1
cmp dword [ebp + 8], esi
je 0x4062e1
push ebx
call fcn.004062e8
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4062d9
test byte [ebp + 0xc], 4
je 0x4062d1
push ebx
push 0xfffffffffffffff1
call fcn.00405bc2
push esi
push ebx
call fcn.0040651f
jmp 0x4062e1
inc dword [0x42f0a8]
jmp 0x4062e1
push ebx
push 0xffffffffffffffe5
call fcn.00405bc2
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ce20
push esi
call fcn.004067e2
push esi
call fcn.0040637c
test eax, eax
jne 0x4063e8
xor eax, eax
jmp 0x406437
test byte [0x42f030], 0x80
je 0x4063fc
mov cl, byte [eax]
test cl, cl
je 0x4063e4
cmp cl, 0x5c
je 0x4063e4
mov edi, eax
sub edi, esi
jmp 0x406416
call fcn.00406ac4
test eax, eax
je 0x406410
test byte [eax], 0x10
je 0x4063e4
push esi
call fcn.00406330
push esi
call fcn.004067e8
cmp eax, edi
push esi
jg 0x406402
call fcn.004062e8
push esi
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 0x4064a8
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 0x4064d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x40651b
test edi, edi
jne 0x4064e2
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x406515
Function at 0x40651f
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 0x406557
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406557
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40669c
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42dba8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42dba8
je 0x40659b
push 1
push 0
push esi
call fcn.004064a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4066a2
cmp eax, edi
jg 0x4066a2
mov esi, 0x42d7a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4066a2
cmp eax, edi
jg 0x4066a2
push esi
push ebp
push str._s_s_r_n
push 0x42d3a8
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 0x40669c
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 0x406684
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406678
push str._Rename__r_n
push edi
call fcn.0040643c
test eax, eax
jne 0x4066a9
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.004067e2
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x42d3a8
push eax
call fcn.00406488
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 [0x42f0b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.0040643c
test eax, eax
je 0x40665f
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x4066d2
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x4066c5
sub eax, edi
jmp 0x406661
Function at 0x4066d6
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 0x40673a
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 0x406729
cmp dword [ebp + 0x14], 1
je 0x40672b
cmp dword [ebp + 0x14], 2
je 0x40672b
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

Function at 0x4067e2
Capabilities:
Get common file path

Disassembly:
call fcn.00401af7
push 0x4dc894
xchg esp, eax
enter 0x4d, 0xffffffffffffffe8
sub ax, 0
invalid
add byte [eax], al
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax

Function at 0x4067e8
Capabilities:
Get common file path

Disassembly:
call fcn.00401af7
push 0x4dc894
xchg esp, eax
enter 0x4d, 0xffffffffffffffe8
sub ax, 0
invalid
add byte [eax], al
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax