joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469190
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469fa5
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1a4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x46921e
push str.Library_inicialization_failed
lea ecx, [ebp - 0x1e4]
call fcn.0040cda0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x1e4]
push ecx
push 2
lea ecx, [ebp - 0x1c8]
call fcn.00419170
push 0x4822c4
lea edx, [ebp - 0x1c8]
push edx
call fcn.00439440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e4]
call fcn.0040dc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret

Function at 0x4b5440
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x4b5461
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x4b5471
pop eax
pop ecx
pop edi
pop esi
ret

Function at 0x4b562a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004b55f0
test eax, eax
jne 0x4b5699
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x4b56b6
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004b55f0
test eax, eax
je 0x4b56b0
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x4b56bb
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x4b5676
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1001761
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001c70
call fcn.01001984
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1003378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001576
cmp eax, esi
jne 0x1001569
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001579
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001550
xor esi, esi
inc esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x100158c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10015c7
mov eax, dword [0x1003374]
test eax, eax
jne 0x10015c1
mov dword [0x1003374], esi
push 0x10010d0
push 0x10010c4
call fcn.010014cd
pop ecx
pop ecx
test eax, eax
je 0x10015c7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001691
mov dword [0x1003038], esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x10015eb
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10015f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100337c], ebx
je 0x1001619
push 0x100337c
call fcn.010018f9
pop ecx
test eax, eax
je 0x1001619
push ebx
push 2
push ebx
call dword [0x100337c]
push dword [0x1003020]
push dword [0x1003024]
push dword [0x100301c]
call fcn.01001296
add esp, 0xc
mov dword [0x1003034], eax
cmp dword [0x1003028], ebx
jne 0x1001677
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1003038], ebx
jne 0x1001685
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003034]
call fcn.010019c9
ret
call fcn.01001aa7
jmp 0x100152e

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402637
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40a80c], 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 + 0x40a808]
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, 0x40a808
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, 0x40ac08
jl 0x40268a
pop edi
pop esi
ret
Function at 0x404093
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 0x404174
push esi
call fcn.004066a9
test eax, eax
pop ecx
je 0x404174
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 0x40416e
cmp byte [ebp - 0x114], 0x2e
jne 0x404104
cmp byte [ebp - 0x113], 0x2e
je 0x404155
cmp byte [ebp - 0x113], 0
je 0x404155
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 0x40412c
push dword [ebp + 0xc]
push esi
call fcn.00404093
pop ecx
pop ecx
jmp 0x404155
push esi
push 0x40916c
call fcn.004060a7
mov eax, dword [ebp - 0x140]
pop ecx
test al, 1
pop ecx
je 0x40414e
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 0x4040e9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [edi + esi], 0
pop edi
pop ebx
push esi
push 0x409214
call fcn.004060a7
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret

Function at 0x40418b
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 0x40421d
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 0x404208
cmp dword [ebp + 0x10], ebx
jne 0x4041fa
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.0040418b
add esp, 0xc
test eax, eax
jne 0x404208
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x4041ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40421d
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 0x404259
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 [0x421ca8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4042d4
cmp dword [ebp - 4], 0x1c
jne 0x4042d4
lea eax, [ebp - 0x20]
push eax
call fcn.00404222
test eax, eax
pop ecx
je 0x4042d4
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40bd88
mov esi, eax
call fcn.00401d2c
push dword [ebp - 0xc]
push esi
push 0xffffffffffffffff
call fcn.00404547
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x4042db
push edi
push 0x4214a0
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 [0x421ca8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test byte [ebp - 0x20], 2
mov dword [0x417da4], eax
mov dword [0x421474], esi
je 0x404307
inc dword [0x42147c]
lea eax, [esi + 0x78]
jmp 0x40431e
lea eax, [esi + 0xec]
mov dword [0x42148c], eax
mov ecx, dword [esi + 0xe0]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [0x421470], eax
mov esi, dword [esi + 0x34]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov dword [0x40bd80], eax
xor eax, eax
jmp 0x4042d7
Function at 0x404361
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 0x40437b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jmp 0x404382
mov dword [ebp - 8], 0x8000
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x40438e
mov ebx, 0x40fda4
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x4043ac
mov ecx, dword [0x417da4]
push edi
add ecx, eax
push edi
push ecx
push dword [0x421ca8]
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 [0x421ca8]
call esi
test eax, eax
je 0x404534
test byte [ebp + 0xb], 0x80
je 0x4044ba
push 0x40bd88
call fcn.00401d00
and dword [ebp + 8], 0x7fffffff
pop ecx
jle 0x40453f
mov edi, 0x40bda4
jmp 0x4043fc
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x404409
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 0
push ecx
push eax
push edi
push dword [0x421ca8]
call esi
test eax, eax
je 0x404534
mov eax, dword [ebp + 0x14]
mov dword [0x40bd88], edi
sub dword [ebp + 8], eax
mov dword [0x40bd8c], eax
mov eax, dword [ebp - 8]
push 0x40bd88
mov dword [0x40bd94], ebx
mov dword [0x40bd98], eax
call fcn.00401d5b
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jl 0x4044af
mov eax, dword [0x40bd94]
mov esi, eax
sub esi, ebx
je 0x4044a0
cmp dword [ebp + 0x10], 0
jne 0x404482
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 0x4044b6
cmp dword [ebp + 0x14], esi
jne 0x4044b6
add dword [ebp - 4], esi
jmp 0x404494
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, eax
jl 0x40453f
cmp dword [ebp - 0x10], 1
je 0x40453f
jmp 0x404432
cmp dword [ebp + 8], 0
jg 0x4043f6
jmp 0x40453f
push 0xfffffffffffffffc
jmp 0x404536
push 0xfffffffffffffffe
jmp 0x404536
cmp dword [ebp + 0x10], edi
jne 0x404514
cmp dword [ebp + 8], edi
jle 0x40453f
mov edi, 0x40bda4
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jge 0x4044d4
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [0x421ca8]
call esi
test eax, eax
je 0x404534
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 0x4044b6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4044b6
add dword [ebp - 4], eax
sub dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jg 0x4044c9
jmp 0x40453f
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jge 0x40451f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x421ca8]
call esi
test eax, eax
jne 0x404539
push 0xfffffffffffffffd
pop eax
jmp 0x404542
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 0x404b3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x421474]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x63]
push esi
and cl, 4
push edi
mov byte [0x421468], cl
mov al, byte [eax + 0x63]
and al, 1
cmp dword [0x42147c], ebx
mov byte [0x421488], al
jne 0x404c62
mov ebp, 0x420060
mov dword [0x409348], 3
push ebp
mov dword [0x40934c], ebx
call fcn.004066a9
test eax, eax
pop ecx
jne 0x404c44
mov eax, dword [0x421474]
cmp dword [eax + 0xa4], ebx
jl 0x404c44
mov esi, 0x420c60
push esi
push dword [eax + 0xa8]
call fcn.00404335
pop ecx
push eax
mov eax, dword [0x421474]
push dword [eax + 0xa4]
call fcn.00404335
pop ecx
push eax
mov eax, dword [0x421474]
push dword [eax + 0xa0]
call fcn.00406a8a
mov al, byte [0x420c60]
add esp, 0x10
cmp al, bl
je 0x404c44
cmp al, 0x22
jne 0x404c00
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404bfe
cmp cl, 0x22
je 0x404bfe
push eax
call edi
jmp 0x404bee
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404c3c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404c3c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404c2f
test al, 0x10
jne 0x404c3c
push esi
call fcn.00406642
cmp eax, esi
pop ecx
jb 0x404c3c
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.004066a9
test eax, eax
pop ecx
jne 0x404c62
mov eax, dword [0x421474]
push dword [eax + 0xcc]
push ebp
call fcn.00406aec
pop ecx
pop ecx
mov eax, dword [0x421474]
mov edi, 0x4214a0
push dword [eax + 0x18]
push edi
call fcn.00406aec
mov eax, dword [0x421474]
pop ecx
pop ecx
cmp byte [eax + 0x62], bl
jne 0x404cf1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x421474]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404cb3
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x41ac54]
call fcn.004023af
mov esi, eax
mov eax, dword [0x421474]
add esp, 0x14
push ebx
mov dword [0x421ca4], esi
push dword [eax + 0x4c]
push dword [0x421470]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x404cd4
push 1
pop eax
jmp 0x404d4b
push ebx
push 0x404d50
push esi
push 0x69
push dword [0x41ac54]
mov dword [0x421ca4], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404d4b
push ebx
push dword [eax + 0x4c]
push dword [0x421470]
call fcn.004026b6
add esp, 0xc
test eax, eax
jne 0x404ccf
push ebx
call fcn.0040615b
test eax, eax
je 0x404d32
cmp dword [0x421464], ebx
jne 0x404ccf
mov eax, dword [0x421474]
push ebx
push dword [eax + 0x54]
push dword [0x421470]
call fcn.004026b6
add esp, 0xc
jmp 0x404ccf
mov eax, dword [0x421474]
push ebx
push dword [eax + 0x50]
push dword [0x421470]
call fcn.004026b6
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405316
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x421468], 0
push edi
je 0x405360
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.00405362
mov eax, dword [0x421484]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x405360
push eax
push edi
call fcn.00405362
pop ecx
pop ecx
pop edi
ret

Function at 0x40659a
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 0x4065ef
cmp dword [ebp - 0xc], esi
je 0x4065ec
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x40678b
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 0x4067db
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4067c9
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 0x406981
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x400
test edi, edi
mov ebp, 0x41a854
je 0x4067f6
push esi
push ebp
push edi
call ebx
jmp 0x406800
mov eax, dword [0x407364]
mov dword [0x41a854], eax
push esi
mov esi, 0x41a454
push esi
push dword [esp + 0x28]
call ebx
push esi
push ebp
push str._s_s_r_n
push 0x41a054
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 0x406981
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 0x406969
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40695d
push 0xffffffffffffffff
push str._Rename__r_n
push ebx
call fcn.0040698d
add esp, 0xc
test eax, eax
jne 0x4068ce
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 0x406935
push 0xffffffffffffffff
push 0x4093e4
push eax
call fcn.0040698d
mov esi, eax
mov edi, ebx
inc esi
sub edi, esi
add edi, ebp
push edi
push 0x41a054
push esi
call fcn.0040698d
add esp, 0x18
test eax, eax
jne 0x40694a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.00406749
mov eax, dword [esp + 0x30]
push edi
push dword [esp + 0x30]
add eax, esi
push eax
call fcn.00406749
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 0x41a054
push eax
call fcn.00406749
add esp, 0xc
add ebp, edi
jmp 0x40694e
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 0x4069e5
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 0x406a02
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x4069f8
cmp byte [esi], 0
je 0x406a85
push esi
call edi
cmp byte [eax], 0x3a
mov bl, 0x5c
jne 0x406a1b
cmp byte [eax + 1], bl
jne 0x406a1b
lea esi, [eax + 2]
jmp 0x406a45
cmp byte [esi], bl
jne 0x406a85
cmp byte [esi + 1], bl
jne 0x406a85
push 2
pop ebp
mov al, byte [esi]
cmp al, bl
je 0x406a38
test al, al
je 0x406a38
push esi
call edi
mov esi, eax
jmp 0x406a27
cmp byte [esi], 0
je 0x406a42
push esi
call edi
mov esi, eax
dec ebp
jne 0x406a27
mov al, byte [esi]
test al, al
je 0x406a85
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp al, bl
je 0x406a62
test al, al
je 0x406a62
push esi
call edi
mov esi, eax
mov al, byte [esi]
jmp 0x406a51
cmp byte [esi], 0
jne 0x406a71
push 0
push dword [esp + 0x18]
call ebp
jmp 0x406a7f
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 0x406a51
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406a8a
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 0x406ae8
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 0x406ad7
cmp dword [ebp + 8], 1
je 0x406ad9
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