joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8148
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c82f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4c82d6
mov dl, 1
mov eax, dword [0x42ecb4]
call fcn.0043ad9c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406cfc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c82c5
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004aa7a0
test al, al
je 0x4c82b8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4c8304
lea eax, [ebp - 0x394]
call fcn.00414828
push eax
push 0x80000002
call fcn.0040b840
test eax, eax
jne 0x4c82b8
xor eax, eax
push ebp
push 0x4c82b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4c8374
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040b850
test eax, eax
jne 0x4c829a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406f0c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4c829a
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c82b8
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040b7f8
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c81bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043acd8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c82fc
lea eax, [ebp - 0x3a0]
call fcn.00406cec
ret
Function at 0x4c988c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c992e
cmp dword [ebx + 0x94], 0
jne 0x4c9928
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c97d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c9928
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4c98ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c9928
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004374d0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c98fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ca900
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ca96b
cmp byte [ebx + 0xd3], 0
jne 0x4ca96b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406e38
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ca958
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ca978
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406cfc
jmp 0x4ca978
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406cfc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4cc1a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4cc20e
mov eax, esi
call fcn.004a4758
test al, al
je 0x4cc20e
mov eax, dword [ebx + 0x84]
call fcn.004a43ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4cc20e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4cc202
push 0
mov eax, dword [ebx + 0x84]
call fcn.004a43ac
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0049b348
jmp 0x4cc20e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004cbfd8
pop esi
pop ebx
ret
Function at 0x4d1cac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4d1cc4
add esp, 0xfffffff0
call fcn.004053e0
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4d1dde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040422c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4d1dc8
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004cd788
xor eax, eax
push ebp
push 0x4d1db5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004cd788
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406f74
jmp 0x4d1d86
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040751c
mov eax, dword [ebx + 4]
call fcn.0040707c
dec eax
jle 0x4d1d9a
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4d1d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1dbc
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1de5
lea eax, [ebp - 4]
call fcn.00406918
ret
Function at 0x402890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x425428
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x42e110]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
sub esp, 0xc
lea ecx, [esp + 0x30]
mov esi, esp
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], esp
call fcn.0041b4e0
push edi
call fcn.004027f0
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov esi, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
lea ecx, [esp + 0x24]
setb bl
call fcn.0041b590
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 0xc

Function at 0x403cc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x425078
mov eax, dword fs:[0]
push eax
push ebp
push esi
mov eax, dword [0x42e110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], ecx
lea esi, [edi + 0xc]
mov ecx, ebp
mov dword [edi], eax
mov dword [edi + 8], edx
mov dword [esp + 0x20], esi
call fcn.0041b4e0
add esi, 0xc
lea ecx, [ebp + 0xc]
push esi
mov dword [esp + 0x18], 0
call fcn.00401490
mov al, byte [esp + 0x24]
mov byte [edi + 0x30], al
mov byte [edi + 0x31], 0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0xc
ret 0xc
Function at 0x406b60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424cf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42e110]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x406ba4
mov eax, dword [esp + 0x2c]
push ecx
push ecx
push ecx
push eax
lea eax, [ecx + 2]
call fcn.00408220
xor al, al
jmp 0x406d30
mov ebx, dword [esp + 0x2c]
mov edi, ebx
call fcn.00406380
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.0040ab7b
push esi
call fcn.0040aa83
push 0
push 0
push esi
mov edi, eax
call fcn.0040ab7b
add esp, 0x1c
test edi, edi
jg 0x406bf3
push 0
push 0
push 0
push ebx
mov eax, 0xd
call fcn.00408220
xor al, al
jmp 0x406d30
mov dword [esp + 0x18], 0x4305a8
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], 0
call fcn.00405ad0
lea edx, [edi + 1]
push edx
call fcn.0040a2ed
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.0040a8c9
add esp, 0x14
cmp eax, 1
je 0x406c63
push ebp
call fcn.00409f0d
add esp, 4
push 0
push 0
push 0
push ebx
mov eax, 2
call fcn.00408220
mov eax, dword [esp + 0x18]
cmp eax, 0x4305a8
je 0x406c5c
push eax
call fcn.00409f02
add esp, 4
xor al, al
jmp 0x406d30
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x406ccd
mov cl, byte [esi]
cmp cl, 0xa
jne 0x406c8d
mov ecx, esi
sub ecx, eax
inc ecx
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.00405c70
inc esi
mov eax, esi
jmp 0x406cc8
cmp cl, 0xd
jne 0x406cc7
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x406ca5
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.00405c70
push 1
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x20]
mov byte [esp + 0x1c], 0xa
call fcn.00405c70
cmp byte [esi + 1], 0xa
jne 0x406c88
add esi, 2
mov eax, esi
jmp 0x406cc8
inc esi
cmp byte [esi], 0
jne 0x406c71
sub esi, eax
je 0x406cdc
push esi
push eax
lea ebx, [esp + 0x20]
call fcn.00405c70
push ebp
call fcn.00409f0d
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 8]
add esp, 4
push 0
push 0
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call edx
cmp byte [edi + 0x2c], 0
je 0x406d1d
cmp esi, 0x4305a8
je 0x406c5c
push esi
call fcn.00409f02
add esp, 4
xor al, al
jmp 0x406d30
cmp esi, 0x4305a8
je 0x406d2e
push esi
call fcn.00409f02
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x409310
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push edi
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409359
cmp dword [esp + 0x18], 2
jne 0x409359
cmp dword [esp + 0xc], 6
jne 0x409359
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, ebx
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409420
mov eax, dword [str.eSellerate_]
mov dword [edi], eax
mov ecx, dword [0x4262f8]
mov dword [edi + 4], ecx
mov edx, dword [0x4262fc]
mov dword [edi + 8], edx
mov al, byte [0x426300]
push ebx
mov byte [edi + 0xc], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40945e
and eax, 0x10
mov dword [esp + 8], eax
jne 0x40946f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40946f
pop edi
pop ebx
pop ecx
ret
mov eax, dword [section..data]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409476
sub eax, edx
dec ebx
mov edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409482
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x4094b0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop esi
ret
Function at 0x4094e0
Capabilities:
Delete file
Get common file path
Move file
Query environment variable
Set file attributes

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp byte [esi], 0
jne 0x4094fd
xor eax, eax
pop esi
add esp, 0x104
ret
push ebx
push ebp
push edi
call fcn.00409310
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
je 0x409570
push 0x104
lea eax, [esp + 0x14]
push eax
push str.allusersprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40953b
lea ecx, [esp + 0x10]
push ecx
call fcn.00409410
add esp, 4
push 0x80
lea edx, [esp + 0x14]
push edx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push esi
call ebp
test eax, eax
je 0x409576
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x104
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x11c]
cmp byte [esi], 0
je 0x40959c
push 0x80
push esi
call ebx
push esi
call edi
mov edx, dword [esp + 0x118]
push esi
push edx
call ebp
test eax, eax
jne 0x409560
lea eax, [esp + 0x10]
push eax
call fcn.00409e20
lea ecx, [esp + 0x14]
push ecx
call fcn.00409410
add esp, 8
push 0x80
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call edi
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebp
test eax, eax
jne 0x409560
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4095f0
mov cx, word [0x4262cc]
mov eax, dword [section..data]
mov word [edi], cx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409610
lea edi, [esp + 0x10]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409620
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x80
lea edx, [esp + 0x14]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [esp + 0x118]
lea ecx, [esp + 0x10]
push ecx
push ebx
call ebp
test eax, eax
jne 0x409560
mov al, byte [0x426316]
mov dx, word [0x426314]
mov byte [esp + 0x12], al
mov eax, dword [section..data]
mov word [esp + 0x10], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409680
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409690
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.004094b0
add esp, 8
test eax, eax
jne 0x409560
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x104
ret
Function at 0x4096e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
mov ax, word [0x426314]
mov cl, byte [0x426316]
mov word [esp], ax
push esi
push edi
mov byte [esp + 0xa], cl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xb]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [section..data]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409717
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409725
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 8]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edx
call esi
test eax, eax
jne 0x4097be
call fcn.00409310
test eax, eax
je 0x409794
push 0x104
lea eax, [esp + 0xc]
push eax
push str.allusersprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x409781
lea ecx, [esp + 8]
push ecx
call fcn.00409410
add esp, 4
test eax, eax
jne 0x409789
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [esp + 8]
push edx
call esi
test eax, eax
jne 0x4097be
lea eax, [esp + 8]
push eax
call fcn.00409e20
lea ecx, [esp + 0xc]
push ecx
call fcn.00409410
add esp, 8
lea edx, [esp + 8]
push edx
call esi
test eax, eax
jne 0x4097be
mov eax, dword [section..data]
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4098c0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409966
test ebx, ebx
je 0x409966
mov ecx, dword [esp + 0x3c]
xor eax, eax
test ecx, ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x409935
push esi
mov esi, dword [esp + 0x3c]
push edi
mov ecx, 9
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor byte [esp + eax + 0xc], 0x36
inc eax
cmp eax, 0x24
jl 0x409910
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x24
lea edx, [esp + 0x18]
push edx
push ebx
call ebp
test eax, eax
je 0x409951
mov eax, 0x24
mov edx, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x40]
sub edx, eax
push edx
add eax, ecx
push eax
push ebx
call ebp
test eax, eax
jne 0x409957
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
add esp, 0x28
ret
Function at 0x409980
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [esp + 0x110]
test esi, esi
je 0x409ba5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409ba5
push ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409b64
test ebx, ebx
je 0x409b64
push ebp
push edi
push 0x428e38
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x4099ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x409b2c
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x409a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x409b18
mov eax, dword [esp + 0x124]
push eax
push ebp
mov edi, 1
call fcn.00409870
movzx eax, al
add esp, 8
sub eax, 2
je 0x409a59
dec eax
je 0x409a4f
dec eax
jne 0x409a5b
mov esi, 0x20010000
jmp 0x409b18
mov esi, 0xe0010006
jmp 0x409b18
xor edi, edi
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edx
push 0
push 0x426344
lea eax, [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x426344
mov edx, ecx
push edx
call esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.004098c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x409ad6
test edi, edi
je 0x409aea
mov ecx, dword [esp + 0x120]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00409800
mov esi, eax
add esp, 8
test esi, esi
je 0x409b0d
push esi
call fcn.004097d0
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x120]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x409b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x409b18
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
je 0x409b23
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x409b33
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004097d0
mov esi, eax
add esp, 4
test esi, esi
jge 0x409b57
mov eax, dword [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x20000000
je 0x409b8a
test eax, 0x4000000
je 0x409ae1
pop ebx
mov eax, 0xe0000003
pop esi
add esp, 0x108
ret
test eax, eax
jle 0x409ae1
and eax, 0xffff
pop ebx
or eax, 0x80070000
pop esi
add esp, 0x108
ret
mov eax, 0xe0010008
pop esi
add esp, 0x108
ret
Function at 0x409bc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push esi
push edi
mov byte [esp + 8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004096e0
mov esi, eax
test esi, esi
je 0x409c06
push 0x104
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
push ecx
call fcn.00409360
mov esi, eax
xor eax, eax
mov byte [esp + 0x114], 0
mov ecx, 0x40
lea edi, [esp + 0x115]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea edx, [esp + 0x118]
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00409980
add esp, 0x10
cmp eax, 0x20010000
je 0x409cb0
lea ecx, [esp + 0x110]
push ecx
call fcn.00409360
add esp, 4
test eax, eax
jne 0x409c75
mov al, byte [esp + 8]
neg al
sbb eax, eax
and eax, 0x3ffffffc
add eax, 0xe0010004
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, esi
jbe 0x409ca2
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.004094e0
add esp, 8
neg eax
sbb eax, eax
and eax, 0x3ffffffd
add eax, 0xe0010004
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, 0x20010000
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409cd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
push 0x104
lea eax, [esp + 8]
push eax
push str._ProgramFiles_
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x409d15
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409d01
mov al, 1
pop ebx
add esp, 0x104
ret
mov al, bl
pop ebx
add esp, 0x104
ret

Function at 0x409ef3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e110]
jne 0x409efd
repz ret
jmp fcn.0040c4f6