joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006e830
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1006e863
push esi
call fcn.1007cbf0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1006e85c
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 0x1006e8e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1006e8d2
mov eax, dword [esi + 8]
test eax, eax
je 0x1006e887
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 0x1006e8ce
cmp eax, 2
je 0x1006e8d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1006e87a
cmp eax, 3
je 0x1006e8ad
cmp eax, 1
jne 0x1006e87a
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 0x1006e87a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1006e87a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1006e910
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1006e8f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1006e910
add esp, 4
pop esi
ret

Function at 0x1006f180
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1006f1a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1006f1a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1006f1a1
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 0x1006f5f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1006f5fb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1006f6fe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100b71d0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100b71d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100b71d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100b71d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100b71d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100b71d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100b71d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100b71d0]
xor eax, edx
inc ecx
dec edi
jne 0x1006f616
pop edi
test esi, esi
je 0x1006f720
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100b71d0]
xor eax, edx
inc ecx
dec esi
jne 0x1006f702
pop esi
pop ebx
not eax
ret
Function at 0x1008ad80
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1008adca
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x1008adf9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x1008ae3b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x100a1897
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100a18cf
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.1009f94e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1009f926
jmp 0x100a18db
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100a2f89
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 0x100a2fcb
call fcn.100a8a5b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100a2fcb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100a2fc2
xor eax, eax
jmp 0x100a2fd3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100a2fd9
pop edi
pop esi
pop ebx
ret 4
Function at 0x402637
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40b92c], 0
jne 0x402645
call fcn.00402681
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40267e
push esi
lea edx, [ecx + 1]
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 + 0x40b928]
xor eax, esi
inc ecx
dec edx
jne 0x40265f
pop edi
pop esi
not eax
ret

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

Disassembly:
push esi
push edi
xor esi, esi
mov ecx, 0x40b928
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40268f
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x40bd28
jl 0x40268a
pop edi
pop esi
ret
Function at 0x404347
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x404428
push esi
call fcn.004069c1
test eax, eax
pop ecx
je 0x404428
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str..
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404422
cmp byte [ebp - 0x114], 0x2e
jne 0x4043b8
cmp byte [ebp - 0x113], 0x2e
je 0x404409
cmp byte [ebp - 0x113], 0
je 0x404409
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + esi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebp - 0x140], 0x10
je 0x4043e0
push dword [ebp + 0xc]
push esi
call fcn.00404347
pop ecx
pop ecx
jmp 0x404409
push esi
push str.Delete_file:
call fcn.004063bf
mov eax, dword [ebp - 0x140]
pop ecx
test al, 1
pop ecx
je 0x404402
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40439d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [edi + esi], 0
pop edi
pop ebx
push esi
push str.Remove_directory:
call fcn.004063bf
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret

Function at 0x40443f
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 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4044d1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4044bc
cmp dword [ebp + 0x10], ebx
jne 0x4044ae
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.0040443f
add esp, 0xc
test eax, eax
jne 0x4044bc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x40447e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x4044d1
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
Function at 0x40450d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404593
cmp dword [ebp - 4], 0x1c
jne 0x404593
lea eax, [ebp - 0x20]
push eax
call fcn.004044d6
test eax, eax
pop ecx
je 0x404593
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40cea8
mov esi, eax
call fcn.00401d2c
push dword [ebp - 0xc]
push esi
push 0xffffffffffffffff
call fcn.00404806
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x40459a
mov eax, dword [0x4225b8]
cmp byte [eax + 0x62], 3
je 0x40458c
push edi
push 0x4225e0
push str.Error_reading_installer_info_block
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
pop edi
pop esi
leave
ret
push 1
push edi
push edi
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test byte [ebp - 0x20], 2
mov dword [0x418ec4], eax
mov dword [0x4225b8], esi
je 0x4045c6
inc dword [0x4225c0]
lea eax, [esi + 0x78]
jmp 0x4045dd
lea eax, [esi + 0xf0]
mov dword [0x4225d0], eax
mov ecx, dword [esi + 0xe0]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [0x4225b4], eax
mov esi, dword [esi + 0x34]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov dword [0x40cea0], eax
xor eax, eax
jmp 0x404596
Function at 0x404620
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x40463a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jmp 0x404641
mov dword [ebp - 8], 0x8000
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x40464d
mov ebx, 0x410ec4
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x40466b
mov ecx, dword [0x418ec4]
push edi
add ecx, eax
push edi
push ecx
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push 4
push eax
push dword [0x422de8]
call esi
test eax, eax
je 0x4047f3
test byte [ebp + 0xb], 0x80
je 0x404779
push 0x40cea8
call fcn.00401d00
and dword [ebp + 8], 0x7fffffff
pop ecx
jle 0x4047fe
mov edi, 0x40cec4
jmp 0x4046bb
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x4046c8
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 0
push ecx
push eax
push edi
push dword [0x422de8]
call esi
test eax, eax
je 0x4047f3
mov eax, dword [ebp + 0x14]
mov dword [0x40cea8], edi
sub dword [ebp + 8], eax
mov dword [0x40ceac], eax
mov eax, dword [ebp - 8]
push 0x40cea8
mov dword [0x40ceb4], ebx
mov dword [0x40ceb8], eax
call fcn.00401d5b
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jl 0x40476e
mov eax, dword [0x40ceb4]
mov esi, eax
sub esi, ebx
je 0x40475f
cmp dword [ebp + 0x10], 0
jne 0x404741
lea eax, [ebp + 0x14]
push 0
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404775
cmp dword [ebp + 0x14], esi
jne 0x404775
add dword [ebp - 4], esi
jmp 0x404753
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, eax
jl 0x4047fe
cmp dword [ebp - 0x10], 1
je 0x4047fe
jmp 0x4046f1
cmp dword [ebp + 8], 0
jg 0x4046b5
jmp 0x4047fe
push 0xfffffffffffffffc
jmp 0x4047f5
push 0xfffffffffffffffe
jmp 0x4047f5
cmp dword [ebp + 0x10], edi
jne 0x4047d3
cmp dword [ebp + 8], edi
jle 0x4047fe
mov edi, 0x40cec4
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jge 0x404793
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [0x422de8]
call esi
test eax, eax
je 0x4047f3
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404775
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x404775
add dword [ebp - 4], eax
sub dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jg 0x404788
jmp 0x4047fe
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jge 0x4047de
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x422de8]
call esi
test eax, eax
jne 0x4047f8
push 0xfffffffffffffffd
pop eax
jmp 0x404801
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e07
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x4225b8]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x63]
push esi
and cl, 4
push edi
mov byte [0x4225ac], cl
mov al, byte [eax + 0x63]
and al, 1
cmp dword [0x4225c0], ebx
mov byte [0x4225cc], al
jne 0x404f2d
mov ebp, 0x421180
mov dword [0x40a438], 3
push ebp
mov dword [0x40a43c], ebx
call fcn.004069c1
test eax, eax
pop ecx
jne 0x404f0f
mov eax, dword [0x4225b8]
cmp dword [eax + 0xa4], ebx
jl 0x404f0f
mov esi, 0x421da0
push esi
push dword [eax + 0xa8]
call fcn.004045f4
pop ecx
push eax
mov eax, dword [0x4225b8]
push dword [eax + 0xa4]
call fcn.004045f4
pop ecx
push eax
mov eax, dword [0x4225b8]
push dword [eax + 0xa0]
call fcn.00406da2
mov al, byte [0x421da0]
add esp, 0x10
cmp al, bl
je 0x404f0f
cmp al, 0x22
jne 0x404ecb
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404ec9
cmp cl, 0x22
je 0x404ec9
push eax
call edi
jmp 0x404eb9
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404f07
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404f07
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404efa
test al, 0x10
jne 0x404f07
push esi
call fcn.0040695a
cmp eax, esi
pop ecx
jb 0x404f07
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.004069c1
test eax, eax
pop ecx
jne 0x404f2d
mov eax, dword [0x4225b8]
push dword [eax + 0xcc]
push ebp
call fcn.00406e04
pop ecx
pop ecx
mov eax, dword [0x4225b8]
mov edi, 0x4225e0
push dword [eax + 0x18]
push edi
call fcn.00406e04
mov eax, dword [0x4225b8]
pop ecx
pop ecx
cmp byte [eax + 0x62], bl
jne 0x404fbc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x4225b8]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404f7e
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x41bd74]
call fcn.004023af
mov esi, eax
mov eax, dword [0x4225b8]
add esp, 0x14
push ebx
mov dword [0x422de4], esi
push dword [eax + 0x4c]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x404f9f
push 1
pop eax
jmp 0x405016
push ebx
push 0x40501b
push esi
push 0x69
push dword [0x41bd74]
mov dword [0x422de4], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x405016
push ebx
push dword [eax + 0x4c]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
test eax, eax
jne 0x404f9a
push ebx
call fcn.00406473
test eax, eax
je 0x404ffd
cmp dword [0x4225a8], ebx
jne 0x404f9a
mov eax, dword [0x4225b8]
push ebx
push dword [eax + 0x54]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
jmp 0x404f9a
mov eax, dword [0x4225b8]
push ebx
push dword [eax + 0x50]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4055e1
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x4225ac], 0
push edi
je 0x40562b
mov edi, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x407
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ee
push edi
call esi
push eax
push edi
call fcn.0040562d
mov eax, dword [0x4225c8]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x40562b
push eax
push edi
call fcn.0040562d
pop ecx
pop ecx
pop edi
ret

Function at 0x4068b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406907
cmp dword [ebp - 0xc], esi
je 0x406904
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x406aa3
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0x24]
mov esi, eax
test esi, esi
je 0x406af3
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406ae1
push 5
push edi
push dword [esp + 0x28]
call eax
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
jne 0x406c99
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x400
test edi, edi
mov ebp, 0x41b974
je 0x406b0e
push esi
push ebp
push edi
call ebx
jmp 0x406b18
mov eax, dword [0x408364]
mov dword [0x41b974], eax
push esi
mov esi, 0x41b574
push esi
push dword [esp + 0x28]
call ebx
push esi
push ebp
push str._s_s_r_n
push 0x41b174
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x24], edi
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 ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x406c99
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebx
lea eax, [edi + ebp + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x406c81
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x406c75
push 0xffffffffffffffff
push str._Rename__r_n
push ebx
call fcn.00406ca5
add esp, 0xc
test eax, eax
jne 0x406be6
lea eax, [ebx + ebp]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0xa
mov eax, ebp
jmp 0x406c4d
push 0xffffffffffffffff
push 0x40a4f8
push eax
call fcn.00406ca5
mov esi, eax
mov edi, ebx
inc esi
sub edi, esi
add edi, ebp
push edi
push 0x41b174
push esi
call fcn.00406ca5
add esp, 0x18
test eax, eax
jne 0x406c62
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.00406a61
mov eax, dword [esp + 0x30]
push edi
push dword [esp + 0x30]
add eax, esi
push eax
call fcn.00406a61
add esp, 0x18
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x24]
sub esi, ebx
mov eax, esi
mov esi, dword [esp + 0x14]
push edi
add eax, ebx
push 0x41b174
push eax
call fcn.00406a61
add esp, 0xc
add ebp, edi
jmp 0x406c66
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x10], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x406cfd
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x20
jne 0x406d1a
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x406d10
cmp byte [esi], 0
je 0x406d9d
push esi
call edi
cmp byte [eax], 0x3a
mov bl, 0x5c
jne 0x406d33
cmp byte [eax + 1], bl
jne 0x406d33
lea esi, [eax + 2]
jmp 0x406d5d
cmp byte [esi], bl
jne 0x406d9d
cmp byte [esi + 1], bl
jne 0x406d9d
push 2
pop ebp
mov al, byte [esi]
cmp al, bl
je 0x406d50
test al, al
je 0x406d50
push esi
call edi
mov esi, eax
jmp 0x406d3f
cmp byte [esi], 0
je 0x406d5a
push esi
call edi
mov esi, eax
dec ebp
jne 0x406d3f
mov al, byte [esi]
test al, al
je 0x406d9d
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp al, bl
je 0x406d7a
test al, al
je 0x406d7a
push esi
call edi
mov esi, eax
mov al, byte [esi]
jmp 0x406d69
cmp byte [esi], 0
jne 0x406d89
push 0
push dword [esp + 0x18]
call ebp
jmp 0x406d97
and byte [esi], 0
push 0
push dword [esp + 0x18]
call ebp
mov byte [esi], bl
inc esi
mov al, byte [esi]
test al, al
jne 0x406d69
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406da2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x14]
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 0x406e00
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406def
cmp dword [ebp + 8], 1
je 0x406df1
mov byte [esi], bl
push dword [ebp + 0x14]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret