joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b388]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b369
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b378
or bl, 4
test esi, 0x20000000
je 0x44b383
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451a30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451a42
add esp, 0xfffffff0
call fcn.00403618
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041976c
mov eax, dword [0x458ef0]
mov dword [eax + 4], ebx
mov dword [eax], 0x451dd4
mov eax, dword [0x458efc]
mov dword [eax + 4], ebx
mov dword [eax], 0x451de0
mov eax, ebx
call fcn.00451dec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
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, 0x44e208
push eax
push 0
push 0
mov eax, dword [0x459048]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b1d0]
call fcn.0041c944
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b1d0]
call fcn.0041c944
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b1d0]
call fcn.0041c944
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045220c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4520e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4520e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4520e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451b7f
call fcn.00403670
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451ecc
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 0x452077
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452058
mov dl, 1
mov eax, dword [0x411e80]
call fcn.004032c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404044
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452047
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.0043fed8
test al, al
je 0x45203a
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, 0x452088
lea eax, [ebp - 0x254]
call fcn.00408ca0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45203a
xor eax, eax
push ebp
push 0x452033
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 0x4520c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45201c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042b4
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 0x45201c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45203a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451f3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041595c
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 0x45207e
lea eax, [ebp - 0x260]
call fcn.00404044
ret

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

Disassembly:
push ecx
mov eax, dword [0x45abe4]
cmp byte [eax + 0xa5], 0
jne 0x452a1d
cmp dword [0x45abfc], 0
jne 0x4529de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452968
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45abfc], eax
cmp dword [0x45abf8], 0
jne 0x4529f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45abf8], eax
cmp dword [0x45ac00], 0
jne 0x452a1d
push esp
push 0
push 0
push 0x45290c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ac00], eax
pop edx
ret
Function at 0x452b14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452b2b
add esp, 0xfffffff0
call fcn.00403618
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041976c
mov eax, dword [0x459034]
cmp word [eax + 2], 0
jne 0x452b53
mov eax, dword [0x459034]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454204
mov eax, dword [0x4590e0]
cmp word [eax + 2], 0
jne 0x452b6d
mov eax, dword [0x4590e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004543fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411a64]
call fcn.004032c4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bcb0]
call fcn.00423028
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452cf4
mov eax, dword [0x458f50]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004233f8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4549ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x458f50]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c4d4
test eax, eax
je 0x452c62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408680
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4fc
test eax, eax
je 0x452c76
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042b4
mov eax, dword [0x458e44]
cmp byte [eax], 0
jne 0x452caa
mov eax, ebx
call fcn.00452e1c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00454b88
mov eax, ebx
call fcn.0045554c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452cea
call fcn.00403670
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45309c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45abe4]
cmp dword [eax + 0x30], 0
je 0x453146
cmp dword [ebx + 0x94], 0
jne 0x453140
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45302c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453140
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 0x453106
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453140
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.00413dcc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453115
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453ca8
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 0x453cdd
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.00404134
jmp 0x453cea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404098
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454d64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454da5
mov eax, esi
call fcn.0043b504
test al, al
je 0x454da5
mov eax, dword [ebx + 0x84]
call fcn.0043b200
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454da5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b200
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x455b90
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef4
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push esi
mov eax, ebx
call fcn.0043b200
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, edi
lea eax, [esp + 4]
call fcn.00408830
add esp, 0x10c
pop edi
pop esi
pop ebx
ret
Function at 0x40a2cb
Capabilities:
Encode data using xor

Disassembly:
and dword [edx - 0x4c6c], ebx
pop edi
cld
rcr byte [esi + 0x5d], 0xc2
or al, 0
mov bh, 0x32
nop
leave
nop
nop
mov eax, 0xba909014
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40a2a2
invalid
mov eax, dword [eax + 0x35]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sal byte ss:[ebp - 0x12], 0x56
mov esi, dword [0x6c098]
dec edx
test dword [ebx], ebp
fiadd dword [ebx]
pop ebx
pop ebp
inc ebx
mov ecx, 0xfc8005d6
or al, byte [eax]
pop esi
pop ebp
or ebx, eax
nop
nop
nop
nop

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

Disassembly:
pushal
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402ea9
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406374
xor ebx, ebx
cmp eax, ebx
jne 0x402f8c
test byte [ebp + 0x10], 2
je 0x402f0a
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f71
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f46
test edi, edi
jne 0x402f71
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ea9
test eax, eax
jne 0x402f4f
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004068d4
test eax, eax
jne 0x402f81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f8c
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032e3
mov ebx, 0x418ec0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032f8
mov ecx, dword [0x42a278]
add ecx, eax
push ecx
call fcn.004034af
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403499
test eax, eax
je 0x403450
test byte [ebp + 0x17], 0x80
je 0x403439
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce30
mov dword [ebp - 0xc], eax
call fcn.00406a2f
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40348f
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403348
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.00403499
test eax, eax
je 0x403450
sub dword [ebp + 0x14], esi
mov dword [0x40ce48], edi
mov dword [0x40ce4c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce30
mov dword [0x40ce50], ebx
mov dword [0x40ce54], eax
call fcn.00406a4f
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403431
mov esi, dword [0x40ce50]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2d4], 1
mov edi, eax
je 0x4033f0
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033b7
cmp dword [ebp + 0x14], 0
jne 0x4033f0
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405569
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403425
cmp dword [ebp + 0x10], 0
jne 0x40340d
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004060a9
test eax, eax
je 0x403435
add dword [ebp - 4], esi
jmp 0x403419
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce50]
cmp dword [ebp - 0x10], 1
jne 0x40336b
jmp 0x40348f
cmp dword [ebp + 0x14], 0
jg 0x40333b
jmp 0x40348f
push 0xfffffffffffffffc
jmp 0x403452
push 0xfffffffffffffffe
jmp 0x403452
test edi, edi
je 0x403484
cmp dword [ebp + 0x14], esi
jge 0x403445
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403499
test eax, eax
jne 0x40348c
push 0xfffffffffffffffd
pop eax
jmp 0x403492
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403460
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.00403499
test eax, eax
je 0x403450
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060a9
test eax, eax
je 0x403435
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403455
jmp 0x40348f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a89
xor eax, eax
jmp 0x405ab0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ab0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405a85
call esi
pop esi
leave
ret 4

Function at 0x405aea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426710], 0x44
push eax
xor eax, eax
push 0x426710
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b29
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b2d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405bcb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fd2
mov edi, eax
cmp edi, 0xffffffff
je 0x405c0c
test byte [esp + 0x10], 1
push esi
je 0x405bee
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405bf4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405bfd
xor eax, eax
inc eax
jmp 0x405c0e
test byte [esp + 0x10], 4
jne 0x405c0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c13
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ede
test bl, 8
mov dword [ebp - 8], eax
je 0x405c52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405dcf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c6c
test eax, eax
je 0x405d7d
test bl, 2
je 0x405d7d
mov esi, 0x425710
push edi
push esi
call fcn.00406507
cmp dword [ebp + 8], 0
je 0x405c8b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405c91
push edi
call fcn.00405e22
cmp word [edi], 0
jne 0x405ca1
cmp word [0x425710], 0x5c
jne 0x405cac
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d72
cmp word [ebp - 0x22c], 0x2e
jne 0x405cf6
cmp word [ebp - 0x22a], 0
je 0x405d55
cmp word [ebp - 0x22a], 0x2e
jne 0x405cf6
cmp word [ebp - 0x228], 0
je 0x405d55
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406507
test byte [ebp - 0x258], 0x10
je 0x405d21
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d55
push dword [ebp + 0xc]
push edi
call fcn.00405c13
jmp 0x405d55
push dword [ebp - 4]
push edi
call fcn.00405bcb
test eax, eax
jne 0x405d4d
cmp dword [ebp - 4], eax
je 0x405d45
push edi
push 0xfffffffffffffff1
call fcn.00405569
push 0
push edi
call fcn.004062c7
jmp 0x405d55
inc dword [0x42a2a8]
jmp 0x405d55
push edi
push 0xfffffffffffffff2
call fcn.00405569
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405cce
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d7d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405dcf
cmp dword [ebp - 8], esi
jne 0x405d91
inc dword [0x42a2a8]
jmp 0x405dcf
push edi
call fcn.0040683d
test eax, eax
je 0x405dcf
push edi
call fcn.00405dd6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bcb
test eax, eax
jne 0x405dc7
cmp dword [ebp - 4], esi
je 0x405d89
push edi
push 0xfffffffffffffff1
call fcn.00405569
push esi
push edi
call fcn.004062c7
jmp 0x405dcf
push edi
push 0xffffffffffffffe5
call fcn.00405569
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ede
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f10
push esi
call fcn.00406507
push esi
call fcn.00405e81
mov edi, eax
test edi, edi
jne 0x405eff
xor eax, eax
jmp 0x405f57
push edi
call fcn.0040678e
test byte [0x42a238], 0x80
je 0x405f1c
mov ax, word [edi]
test ax, ax
je 0x405efb
cmp ax, 0x5c
je 0x405efb
sub edi, esi
sar edi, 1
jmp 0x405f36
call fcn.0040683d
test eax, eax
je 0x405f30
test byte [eax], 0x10
je 0x405efb
push esi
call fcn.00405e22
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f22
call fcn.00405dd6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405fd2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ff1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ff7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x406026
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406076
test edi, edi
jne 0x406033
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406070