joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4593b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x80
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e90f8]
push 0
call fcn.0049e6b0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x45944b
cmp byte [eax], 0
je 0x45944b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45940e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e498c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.004469f0
pop edi
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4e498c]
mov ecx, esi
push 0
mov dword [eax + 0x30], 0
call fcn.004469f0
mov edx, edi
lea ecx, [esp + 8]
call fcn.0049b500
mov ecx, dword [0x4e90f8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
pop edi
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4e498c]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.004469f0
pop esi
add esp, 0x80
ret 4
Function at 0x459d00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4e90f8]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.0049e6b0
mov edi, dword [ebp + 8]
test edi, edi
je 0x459e36
cmp byte [edi], 0
je 0x459e36
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459d76
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x459dc1
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x459da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e498c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.004469f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x3c]
xor eax, eax
or eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
call fcn.00412890
movsx eax, al
sub eax, 0x4b
je 0x459de0
sub eax, 2
jne 0x459dfc
push eax
push 0x100000
jmp 0x459de7
push 0
push 0x400
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004c77f0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4e498c]
mov ecx, dword [esp + 0x1c]
push 0
mov dword [eax + 0x30], 0
call fcn.004469f0
mov ecx, dword [0x4e90f8]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401520
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e498c]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.004469f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45b6a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x118]
movzx ebx, byte [esi + 2]
test ebx, 0xffffff80
je 0x45b6bf
xor eax, eax
jmp 0x45b6ca
push 2
push ebx
call fcn.004b47c1
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
mov ecx, ebx
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffbf
cmp eax, 0x12
ja case.0x45b6ef.66
movzx eax, byte [eax + 0x45b7e8]
jmp dword [eax*4 + 0x45b7d4]
mov cl, byte [esi + 9]
call fcn.00412890
cmp al, 0x53
jne 0x45b715
cmp byte [esi + 0xa], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x45b778
mov eax, 0x26
jmp 0x45b778
cmp byte [esi + 9], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x45b778
cmp byte [esi + 9], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x45b778
mov cl, byte [esi + 7]
call fcn.00412890
cmp al, 0x4d
jne 0x45b761
cmp byte [esi + 0xb], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x45b778
cmp byte [esi + 9], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x45b778
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp + 0xc]
xor edx, edx
test eax, eax
pop esi
cmovne ecx, edx
mov edx, dword [esp + 0x110]
mov byte [esp + 8], cl
pop ebx
test edx, edx
je 0x45b7bd
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x45b7b0
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45b7c4
sub eax, edx
add esp, 0x108
ret

Function at 0x45b800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp]
xor edx, edx
test eax, eax
lea eax, [esp]
cmovne ecx, edx
lea edx, [eax + 1]
mov byte [esp], cl
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45b830
sub eax, edx
je 0x45b848
cmp byte [esp + eax - 1], 0x5c
jne 0x45b848
mov byte [esp + eax - 1], 0
dec eax
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x45b86d
lea edx, [esp + 4]
mov ecx, edx
sub esi, ecx
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x45b860
pop esi
add esp, 0x104
ret
Function at 0x46c2e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x46c2eb
xor al, al
pop ebx
ret
sub edx, 1
je 0x46c310
movzx eax, bl
push eax
sub edx, 1
je 0x46c306
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x46c31d
cmp bl, 3
jne 0x46c325
mov al, bl
add al, 0x66
cmp al, 5
ja 0x46c33c
cmp dword [0x4e796c], 0
movzx eax, bl
je 0x46c36f
mov al, byte [eax + 0x4e82c0]
shr al, 7
pop ebx
ret
cmp dword [0x4e7970], 0
je 0x46c36c
push 0
xor edx, edx
mov cl, bl
call fcn.0041b830
add esp, 4
test al, al
je 0x46c35e
mov cl, 1
call fcn.0041b620
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4e82c0]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x46c9f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
push 0
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46ca31
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46ca31
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x120], 0
push 0x104
push edi
push 0
push ebp
je 0x46ca4c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x46ca52
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov ebx, eax
test ebx, ebx
jne 0x46cb62
mov eax, dword [0x4daed8]
test eax, eax
je 0x46cb62
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x46cb62
cmp byte [esp + 0x120], 0
je 0x46cacb
push 0x5c
push edi
call fcn.004b4423
mov edx, eax
add esp, 8
test edx, edx
je 0x46cb62
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46caa0
sub ecx, esi
lea eax, [edx + 1]
push ecx
push eax
push edi
call fcn.004aff90
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
nop word [eax + eax]
push 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x46cb1b
sub esi, 2
lea eax, [esp + 0x14]
push esi
push edi
push eax
call fcn.004b9b6d
add esp, 0xc
test eax, eax
jne 0x46cb1b
cmp byte [esi + edi], 0x5c
lea ecx, [esi + edi]
je 0x46cb3d
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x46cae0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
movzx eax, byte [esp + 0x10]
sub ebx, esi
mov byte [edi], al
movzx eax, byte [esp + 0x11]
mov byte [edi + 1], al
lea eax, [ebx + 1]
push eax
push ecx
lea eax, [edi + 2]
push eax
call fcn.004aff90
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x46f3b0
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
sub esp, 0x418
push ebx
push ebp
push 0
mov ebp, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x4ca930
push 1
push 0
push 0x4ca940
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46f568
mov eax, dword [esp + 8]
push dword [esp + 0x424]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x42c]
cmp byte [edx], bl
je 0x46f40c
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x430]
cmp byte [edx], 0
je 0x46f423
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x434]
cmp byte [edx], 0
je 0x46f43a
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x440]
push esi
cmp byte [ecx], 0
je 0x46f450
call fcn.00417810
mov esi, eax
jmp 0x46f452
xor esi, esi
push edi
mov edi, dword [esp + 0x440]
cmp byte [edi], 0
je 0x46f474
mov ecx, dword [esp + 0x10]
xor eax, eax
test esi, esi
setg al
mov edx, dword [ecx]
sub esi, eax
push esi
push edi
push ecx
call dword [edx + 0x44]
mov esi, dword [esp + 0x444]
pop edi
cmp byte [esi], 0
je 0x46f4b6
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041c000
add esp, 0xc
test al, al
je 0x46f4b6
mov ecx, dword [esp + 0xc]
mov esi, 0x600
movzx eax, al
or ax, si
movzx eax, ax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
mov ecx, dword [esp + 0x448]
cmp byte [ecx], 0
je 0x46f4d5
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
call fcn.00417810
push eax
push dword [esp + 0x10]
call dword [esi + 0x3c]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x4ca950
push eax
mov ecx, dword [eax]
call dword [ecx]
pop esi
test eax, eax
js 0x46f55e
push 0x104
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x434]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea eax, [esp + 0x21c]
push eax
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x218]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x46f554
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d03bc
call fcn.0049e6b0
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x46f582
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret 0x24
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x46f5b1
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop ebp
pop ebx
add esp, 0x418
ret 0x24
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, ebp
call fcn.00446950
pop ebp
pop ebx
add esp, 0x418
ret 0x24
Function at 0x46f5d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x12c
push esi
mov esi, ecx
test eax, eax
je 0x46f6a4
cmp byte [eax], 0
je 0x46f6a4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f610
sub ecx, edx
je 0x46f626
cmp byte [esp + ecx + 0x27], 0x5c
jne 0x46f626
mov byte [esp + ecx + 0x27], al
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f630
sub ecx, edx
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov dword [esp + 4], 0
mov byte [esp + ecx + 0x29], al
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.004469f0
pop esi
add esp, 0x12c
ret 4
mov eax, dword [0x4e498c]
test byte [eax + 0xe0], 1
jne 0x46f6d2
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop esi
add esp, 0x12c
ret 4
push 0x4d0335
push 0
push 0x4d07c0
call fcn.00446950
pop esi
add esp, 0x12c
ret 4
Function at 0x46f6f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x8c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4e90f8]
push 0
call fcn.0049e6b0
mov esi, dword [esp + 0x98]
test esi, esi
je 0x46f86d
cmp byte [esi], 0
je 0x46f86d
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebp, eax
test ebp, ebp
jne 0x46f75c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e498c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.004469f0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push edi
push ebp
call fcn.004b2c3e
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x46f804
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4d652c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x46f804
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.0049a540
push edi
call fcn.004b2343
mov eax, dword [0x4e498c]
add esp, 0x20
mov ecx, ebx
push 0
mov dword [eax + 0x30], 0
call fcn.004469f0
mov ecx, dword [0x4e90f8]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049e6b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e498c]
push edi
mov dword [ecx + 0x30], eax
call fcn.004b2343
mov eax, dword [0x4e498c]
add esp, 4
test byte [eax + 0xe0], 1
jne 0x46f84d
mov ecx, dword [0x4e7934]
push 1
push 0
push 0xffffffffffffffff
push 0x4d07c0
call fcn.0049e6b0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4d0335
push 0
push 0x4d07c0
mov ecx, ebx
call fcn.00446950
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
mov eax, dword [0x4e498c]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x57
call fcn.004469f0
pop esi
pop ebx
add esp, 0x8c
ret 4
Function at 0x46f890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x238
push ebx
push ebp
mov ebp, dword [esp + 0x244]
push esi
mov esi, edx
cmp ebp, 1
je 0x46f8b1
mov byte [esp + 0xf], 0
cmp ebp, 2
jne 0x46f8b6
mov byte [esp + 0xf], 1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f8d3
sub ecx, edx
je 0x46f8e9
cmp byte [esp + ecx + 0x33], 0x5c
jne 0x46f8e9
mov byte [esp + ecx + 0x33], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x140]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x13c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f910
sub ecx, edx
je 0x46f92c
cmp byte [esp + ecx + 0x13b], 0x5c
jne 0x46f92c
mov byte [esp + ecx + 0x13b], al
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x34]
push eax
call esi
cmp eax, 0xffffffff
je 0x46faea
test al, 0x10
je 0x46faea
mov bl, byte [esp + 0x24c]
test bl, bl
je 0x46f9eb
movzx ebx, byte [esp + 0x34]
test ebx, 0xffffff80
jne 0x46f978
push 1
push ebx
call fcn.004b47c1
add esp, 8
test eax, eax
je 0x46f978
or ebx, 0x20
movzx eax, byte [esp + 0x13c]
mov dword [esp + 0x10], eax
test eax, 0xffffff80
jne 0x46f9a1
push 1
push eax
call fcn.004b47c1
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x46f9a1
or eax, 0x20
cmp bl, al
jne 0x46f9ac
cmp byte [esp + 0x35], 0x3a
je 0x46f9e4
movzx eax, byte [esp + 0xf]
lea edx, [esp + 0x13c]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0046f890
add esp, 8
test al, al
je 0x46faea
mov dl, 1
lea ecx, [esp + 0x34]
call fcn.0046fb00
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
mov bl, byte [esp + 0x24c]
lea eax, [esp + 0x13c]
push eax
call esi
cmp eax, 0xffffffff
je 0x46fa14
test al, 0x10
je 0x46faea
mov al, byte [esp + 0xf]
test al, al
je 0x46faea
test bl, bl
jne 0x46fa4c
jmp 0x46fa2e
test bl, bl
jne 0x46fa4c
xor edx, edx
lea ecx, [esp + 0x13c]
call fcn.004583c0
test al, al
je 0x46faea
lea ecx, [esp + 0x34]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x46fa33
mov eax, dword [0x4db3d8]
mov dword [ecx], eax
mov al, byte [0x4db3dc]
mov byte [ecx + 4], al
lea ecx, [esp + 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fa53
sub ecx, edx
mov byte [esp + ecx + 0x35], al
lea ecx, [esp + 0x13c]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fa70
sub ecx, edx
mov dword [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x2e], 0
movlpd qword [esp + 0x26], xmm0
mov byte [esp + ecx + 0x13d], al
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x13c]
mov dword [esp + 0x20], eax
movzx eax, bl
xor eax, 1
inc eax
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x24], ax
cmp ebp, 2
jne 0x46fad0
mov eax, 0x615
mov word [esp + 0x24], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 0x238
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x238
ret
Function at 0x46fb00
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
test dl, dl
jne 0x46fb22
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x46fbd6
mov al, 1
add esp, 0x12c
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fb40
sub ecx, edx
je 0x46fb56
cmp byte [esp + ecx + 0x23], 0x5c
jne 0x46fb56
mov byte [esp + ecx + 0x23], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46fbd6
test al, 0x10
je 0x46fbd6
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fb71
sub ecx, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov byte [esp + ecx + 0x25], al
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
sete al
add esp, 0x12c
ret
xor al, al
add esp, 0x12c
ret
Function at 0x470080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x148
push esi
mov esi, ecx
push 0x2a
push esi
call fcn.004b7be9
add esp, 8
test eax, eax
jne 0x4700bd
push 0x3f
push esi
call fcn.004b7be9
add esp, 8
test eax, eax
jne 0x4700bd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4700ce
mov al, 1
pop esi
add esp, 0x148
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4700d8
xor al, al
pop esi
add esp, 0x148
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x148
ret

Function at 0x4700f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x470163
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x470163
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x470163
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x470170
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x554
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x1c], 0x128
push 2
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.0049a390
add esp, 0xc
test eax, eax
je 0x4701c1
mov ecx, ebx
call fcn.00404660
mov ebx, eax
jmp 0x4701c3
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x470273
test ebx, ebx
je 0x4701e5
cmp ebx, dword [esp + 0x20]
je 0x470287
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004bb101
lea eax, [esp + 0x25c]
add esp, 0x14
mov esi, eax
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470220
lea edi, [esp + 0x140]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x470231
push dword [esp + 0x14]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004b218a
add esp, 8
test eax, eax
je 0x47029b
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4701d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret
Function at 0x482300
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x482310
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x482320
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x24], 0
jne 0x48233c
mov eax, dword [ecx + 4]
test eax, eax
je 0x482351
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret