joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4313e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4313fc
cmp dword [esi + 4], 0
je 0x431429
test byte [ebx + 0x55], 1
jne 0x43141b
mov eax, ebx
call fcn.0042ffec
test eax, eax
jne 0x43141b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x431539
mov edx, esi
mov eax, ebx
call fcn.00430f04
jmp 0x431539
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x431532
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433250
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042dd08
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004313e0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433250
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431539
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437948
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44f11c]
cmp byte [eax + 0xc], 0
je 0x437ab5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437aae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x450b64], 0
jne 0x43799c
push 0x437abc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x437ac4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b64], eax
cmp dword [0x44eb00], 0
jne 0x437a97
push 0x437ad4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44eb00], eax
cmp dword [0x44eb00], 0
je 0x437a97
push 0x437ae0
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b68], eax
push 0x437af0
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b6c], eax
push 0x437b04
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b70], eax
push 0x437b1c
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b74], eax
push 0x437b34
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b78], eax
push 0x437b48
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b7c], eax
push 0x437b60
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b80], eax
push 0x437b78
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b84], eax
push 0x437b94
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b88], eax
push 0x437ba0
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437ab5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b940
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b98f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404618
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443138
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x443188]
test si, 4
je 0x44314c
or bl, 1
test si, 8
je 0x443156
or bl, 4
test si, 1
je 0x443160
or bl, 8
test si, 2
je 0x44316a
or bl, 0x10
test si, 0x10
je 0x443174
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443183
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44318c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4431c4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4431a5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4431b4
or bl, 4
test esi, 0x20000000
je 0x4431bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449888
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44989a
add esp, 0xfffffff0
call fcn.00403954
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419740
mov eax, dword [0x44edf4]
mov dword [eax + 4], ebx
mov dword [eax], 0x449c2c
mov eax, dword [0x44ee00]
mov dword [eax + 4], ebx
mov dword [eax], 0x449c38
mov eax, ebx
call fcn.00449c44
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a38]
call fcn.00403604
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a38]
call fcn.00403604
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a38]
call fcn.00403604
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a38]
call fcn.00403604
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a38]
call fcn.00403604
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44605c
push eax
push 0
push 0
mov eax, dword [0x44ef40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b164]
call fcn.0041c5cc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b164]
call fcn.0041c5cc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b164]
call fcn.0041c5cc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044a094
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449f5c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449f5c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449f5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4499d7
call fcn.004039ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449d40
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449eeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449ecc
mov dl, 1
mov eax, dword [0x411e54]
call fcn.00403604
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449ebb
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.00437ca8
test al, al
je 0x449eae
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449efc
lea eax, [ebp - 0x254]
call fcn.00408e98
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449eae
xor eax, eax
push ebp
push 0x449ea7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449f34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449e90
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x449e90
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449eae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449db1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415930
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449ef2
lea eax, [ebp - 0x260]
call fcn.004043a8
ret

Function at 0x44a834
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x450bb0]
cmp byte [eax + 0xa5], 0
jne 0x44a8a5
cmp dword [0x450bc8], 0
jne 0x44a866
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a7f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450bc8], eax
cmp dword [0x450bc4], 0
jne 0x44a881
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450bc4], eax
cmp dword [0x450bcc], 0
jne 0x44a8a5
push esp
push 0
push 0
push 0x44a794
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450bcc], eax
pop edx
ret
Function at 0x44af38
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bb0]
cmp dword [eax + 0x30], 0
je 0x44afe2
cmp dword [ebx + 0x94], 0
jne 0x44afdc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44aec8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44afdc
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_GetWindowLongA
test al, 8
je 0x44afa2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44afdc
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.00413da0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44afb1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44bb40
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44bb75
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404498
jmp 0x44bb82
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44cc94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44ccd5
mov eax, esi
call fcn.004334b0
test al, al
je 0x44ccd5
mov eax, dword [ebx + 0x84]
call fcn.00433250
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ccd5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433250
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44d778
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffa8
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x44
call fcn.0040304c
mov dword [esp + 4], 0x44
mov dword [esp + 0x30], 1
mov word [esp + 0x34], si
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x44d7cf
xor eax, eax
mov dword [esp], eax
jmp 0x44d7e6
push 0xffffffffffffffff
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push esp
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp]
add esp, 0x58
pop esi
pop ebx
ret
Function at 0x403c1e
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x7fb000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x7fb000
je 0x403c3e
push ebp
call fcn.00405eda
jmp 0x403c44
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x7ca2a4]
mov eax, edi
dec edi
test eax, eax
je 0x403ca0
mov eax, dword [0x7ca268]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x7ca2a0]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403c88
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403c6c
jmp 0x403ca0
mov eax, dword [esi + 2]
mov dword [0x7c6240], eax
mov eax, dword [esi + 6]
mov dword [0x7ca308], eax
lea eax, [esi + 0xa]
mov dword [0x7c623c], eax
cmp dword [0x7c623c], 0
jne 0x403cbb
cmp bx, 0xffff
jne 0x403cb7
mov ebx, 0x3ff
jmp 0x403c4a
xor ebx, ebx
jmp 0x403c4a
movzx eax, word [esi]
push eax
push ebp
call fcn.00405ec1
push 0xfffffffffffffffe
push 0x7c6260
call fcn.00405f82
push eax
push dword [0x7b3bfc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x7ca28c]
mov esi, dword [0x7ca288]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403d0f
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403d08
push eax
push ebx
call fcn.00405f82
add esi, edi
add ebx, edi
dec ebp
jne 0x403cfb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40577c
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 [0x7b8c28], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4057a0
test al, 0x10
jne 0x4057a3
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x7b8c28
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 0x4057ce
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40585d
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 esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405b43
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405891
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7ca2e8], eax
jmp 0x405a5a
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x4058af
test eax, eax
je 0x4059de
test byte [ebp + 0xc], 2
je 0x4059de
mov esi, 0x7b4c28
push edi
push esi
call fcn.00405f64
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4058cf
push str..
push esi
call ebx
jmp 0x4058d5
push edi
call fcn.00405aa8
push 0x40a228
push edi
call ebx
push edi
call fcn.00405f75
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059d4
cmp byte [ebp - 0x118], 0x2e
jne 0x405923
cmp byte [ebp - 0x117], 0x2e
je 0x4059b7
cmp byte [ebp - 0x117], 0
je 0x4059b7
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f64
test byte [ebp - 0x144], 0x10
je 0x40594e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059b7
push dword [ebp + 0xc]
push edi
call fcn.0040585d
jmp 0x4059b7
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406308
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4059af
test byte [ebp + 0xc], 4
push edi
je 0x40599b
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406308
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405257
push 0
push edi
call fcn.00405ca0
jmp 0x4059b7
push str.Delete:_DeleteFile_failed___s__
call fcn.00406308
inc dword [0x7ca2e8]
pop ecx
pop ecx
jmp 0x4059b7
push edi
push 0xfffffffffffffff2
call fcn.00405257
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405900
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059de
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a5a
cmp dword [ebp - 4], esi
push edi
jne 0x405a00
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406308
inc dword [0x7ca2e8]
pop ecx
pop ecx
jmp 0x405a5a
call fcn.00406324
test eax, eax
je 0x405a5a
push edi
call fcn.00405a60
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406308
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a52
test byte [ebp + 0xc], 4
push edi
je 0x405a4b
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406308
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405257
push esi
push edi
call fcn.00405ca0
jmp 0x405a5a
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059f1
push edi
push 0xffffffffffffffe5
call fcn.00405257
pop edi
pop esi
leave
ret 8
Function at 0x405b43
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7b6c28
push esi
call fcn.00405f64
push esi
call fcn.00405af4
test eax, eax
jne 0x405b62
xor eax, eax
jmp 0x405bb1
test byte [0x7ca270], 0x80
je 0x405b76
mov cl, byte [eax]
test cl, cl
je 0x405b5e
cmp cl, 0x5c
je 0x405b5e
mov edi, eax
sub edi, esi
push esi
call fcn.00405f75
cmp eax, edi
push esi
jle 0x405b9b
call fcn.00406324
test eax, eax
je 0x405b93
test byte [eax], 0x10
je 0x405b5e
push esi
call fcn.00405aa8
jmp 0x405b7a
call fcn.00405a60
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 0x405c28
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 0x405c57
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop 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 0x405c9c
mov eax, edi
dec edi
test eax, eax
jne 0x405c62
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c96
Function at 0x405ca0
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 0x405cd8
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405cd8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e1d
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7b95b0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7b95b0
je 0x405d1c
push 1
push 0
push esi
call fcn.00405c28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e23
cmp eax, edi
jg 0x405e23
mov esi, 0x7b91b0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e23
cmp eax, edi
jg 0x405e23
push esi
push ebp
push str._s_s_r_n
push 0x7b8db0
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 0x405e1d
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 0x405e05
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405df9
push str._Rename__r_n
push edi
call fcn.00405bb6
test eax, eax
jne 0x405e2a
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00405f64
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x7b8db0
push eax
call fcn.00405c02
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 [0x7ca2f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9bc
push eax
call fcn.00405bb6
test eax, eax
je 0x405de0
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405e53
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405e46
sub eax, edi
jmp 0x405de2
Function at 0x405e57
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 0x405ebb
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
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 0x405eaa
cmp dword [ebp + 0x14], 1
je 0x405eac
cmp dword [ebp + 0x14], 2
je 0x405eac
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10