joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call section..text
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00403920
test eax, eax
je 0x402bb1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004021b0
call fcn.004020c0
push 0
push str.____AVP.Root
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402be6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10001
push 0x466
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00402340
call fcn.00402430
call fcn.00402520
call fcn.00402660
mov edi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call edi
test eax, eax
jne 0x402c17
call fcn.004033b0
test eax, eax
je 0x402c17
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call edi
push str.kernel32.dll
mov ebx, eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402c50
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402c50
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 8], 0
je 0x402ca2
test ebx, ebx
je 0x402c70
push str._apppatch_
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402c93
lea esi, [ebp - 0x10c]
call fcn.00401130
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401b70
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402db4
call fcn.004028b0
call fcn.00401520
jmp 0x402db4
test ebx, ebx
je 0x402d59
push str._apppatch_
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402cfd
lea esi, [ebp - 0x10c]
call fcn.00401130
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402db4
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call edi
test eax, eax
je 0x402d95
lea ecx, [ebp - 1]
push ecx
jmp 0x402d89
call fcn.004028b0
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402d52
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call edi
test eax, eax
je 0x402d33
lea edx, [ebp - 1]
push edx
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call edi
test eax, eax
mov eax, str.winlogon.exe
jne 0x402d43
mov eax, str.explorer.exe
push eax
call fcn.00401aa0
test eax, eax
je 0x402d52
call fcn.00401b70
call fcn.00401520
jmp 0x402db4
lea esi, [ebp - 0x10c]
call fcn.00401130
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402db4
push 0x404ea0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call edi
test eax, eax
je 0x402d95
lea eax, [ebp - 1]
push eax
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call edi
test eax, eax
mov eax, str.winlogon.exe
jne 0x402da5
mov eax, str.explorer.exe
push eax
call fcn.00401aa0
test eax, eax
je 0x402db4
call fcn.00401b70
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..reloc]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x64275e6b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7c2835dd
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xe6d3c28
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2af47c2d
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401f90
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x402090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4020eb
cmp byte [esi + ebx - 1], 0xa
je 0x4020bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x406094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4027c0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x406094]
movzx eax, al
bt eax, esi
jae 0x402820
mov ecx, dword [0x406084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x4026c6
test byte [0x403848], 8
jne 0x402760
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403858], 8
jne 0x402710
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402695
cmp esi, 3
jbe 0x4026d0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4043c8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402695
mov ecx, dword [0x406094]
test ecx, ecx
je 0x402800
mov dword [esp], 0x403858
call dword [0x406094]
test al, 8
je 0x40266c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40266c
mov ebx, dword [0x406094]
test ebx, ebx
je 0x4027e0
mov dword [esp], 0x403848
call dword [0x406094]
test al, 8
je 0x402659
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40265f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x402620
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x40276a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x40271e
mov eax, 0xffffffff
jmp 0x4026c6
Function at 0x401020
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x1c
push 0x104
push 0x410a9c
push 0
mov dword [0x4110b4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401049
add esp, 0x1c
ret 0x10
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x410eac
push 0
push 0
push 0x1a
push 0
call esi
push 0x410ca4
push 0
push 0
push 7
push 0
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x40d458
push 0x410ca4
call esi
push 0x40d45c
push 0x410ca4
call esi
push 0x40d458
push 0x410eac
call esi
push 0x40d45c
push 0x410eac
call esi
mov esi, 0x410a9c
call fcn.00402310
call fcn.00401d90
cmp eax, 2
jg 0x40116c
push str.http:__www.114116.info
push 0x410a60
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add esp, 8
mov eax, 0x31
mov edx, 0x34
mov ecx, eax
mov word [0x410a7a], dx
push str.cssrs_title
mov edx, 0x36
push 0x4110b8
mov word [0x410a76], ax
mov word [0x410a78], cx
mov word [0x410a7c], ax
mov word [0x410a7e], cx
mov word [0x410a80], dx
call esi
push str.cssrs_mian_class
push 0x4110f4
call esi
mov esi, dword [esp + 0x24]
mov eax, esi
call fcn.004011f0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4110b8
push 0x4110f4
push 0
mov dword [0x410a58], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x410a5c], eax
test eax, eax
jne 0x401175
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov esi, eax
push 0
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
je 0x4011dc
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4011c9
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
jne 0x4011a6
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x401510
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x414
mov eax, dword [0x40f11c]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
xor edx, edx
mov word [esp + 0x10], dx
lea edx, [esp + 8]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push eax
mov dword [esp + 0x28], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4015d7
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4015a6
test dx, dx
je 0x4015a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4015a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401580
xor eax, eax
jmp 0x4015ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4015ee
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp]
add eax, eax
push eax
push esi
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4015ee
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004025dc
add esp, 0x414
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
xor ecx, esp
mov eax, 1
call fcn.004025dc
add esp, 0x414
ret

Function at 0x401620
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x411330
push edx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4016a5
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
cmp ecx, dword [esp + 0x18]
je 0x4016ab
mov eax, dword [esp]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4016ab
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x14
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x14
ret
Function at 0x4016c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov esi, eax
push 0
lea ebx, [esi + 0x44]
lea eax, [esi + 0x24c]
push ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00401c30
push 1
lea edi, [esi + 0x454]
push ebx
push edi
call fcn.00401c30
push edi
call fcn.004017c0
lea eax, [esi + 8]
call fcn.00401840
call fcn.00401990
mov ebx, 0x44
push ebx
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00407d00
add esp, 0x28
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call edi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push ebx
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00407d00
mov edx, dword [esp + 0x18]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x48], ebx
call edi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c30
Capabilities:
Check if file exists
Copy file
Get file size
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push eax
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x401d03
push ebx
push esi
push edi
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401cc7
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0
push ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401cbc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x401cbc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 3
push 0
push 0
push 0
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401cbc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, eax
jne 0x401cbc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
test esi, esi
je 0x401cc7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push 0
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x1c], 0
je 0x401cf4
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401d10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x18
mov eax, dword [0x40f11c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov eax, 0x3a
xor ecx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov word [esp + 0xa], ax
mov word [esp + 0xc], cx
mov bl, 0x5a
lea esp, [esp]
movsx dx, bl
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], dx
call esi
cmp eax, 2
je 0x401d72
dec bl
cmp bl, 0x41
jge 0x401d40
pop esi
mov eax, 0x3f
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004025dc
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop esi
movsx ax, bl
pop ebx
xor ecx, esp
call fcn.004025dc
add esp, 0x18
ret

Function at 0x401d90
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x121c
call fcn.0040a310
mov eax, dword [0x40f11c]
xor eax, esp
mov dword [esp + 0x1218], eax
push edi
lea eax, [esp + 8]
push eax
push 0x1000
lea ecx, [esp + 0x1c]
xor edi, edi
push ecx
mov dword [esp + 0x10], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401ddd
pop edi
mov ecx, dword [esp + 0x1218]
xor ecx, esp
call fcn.004025dc
add esp, 0x121c
ret
push ebx
mov ebx, dword [esp + 0xc]
shr ebx, 2
cmp ebx, edi
jbe 0x401e8e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
mov eax, dword [esp + edi*4 + 0x20]
xor edx, edx
push eax
push edx
push 0x410
mov word [esp + 0x102c], dx
call ebp
mov esi, eax
test esi, esi
je 0x401e83
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401e83
push 0x104
lea eax, [esp + 0x1024]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov ecx, 0x40d45c
lea eax, [esp + 0x1020]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e76
test dx, dx
je 0x401e72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e76
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e50
xor eax, eax
jmp 0x401e7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401e83
inc dword [esp + 0x10]
inc edi
cmp edi, ebx
jb 0x401df5
pop esi
pop ebp
mov ecx, dword [esp + 0x1220]
mov eax, dword [esp + 8]
pop ebx
pop edi
xor ecx, esp
call fcn.004025dc
add esp, 0x121c
ret
Function at 0x402310
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40f11c]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x18
push 0
call edi
push 5
lea ecx, [esp + 8]
push ecx
push esi
call fcn.00402a88
add esp, 0xc
test eax, eax
je 0x402403
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x1a
push 0
call edi
push 5
lea eax, [esp + 8]
push eax
push esi
call fcn.00402a88
add esp, 0xc
test eax, eax
je 0x402403
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402390
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x4023eb
add eax, 0xfffffffc
cmp word [esp + eax*2 + 4], 0x2e
jne 0x4023eb
xor edx, edx
mov word [esp + eax*2 + 4], dx
test eax, eax
jle 0x4023eb
lea ebx, [ebx]
movzx ecx, word [esp + eax*2 + 4]
cmp cx, 0x5c
je 0x4023d7
mov word [esp + eax*2 + 8], cx
dec eax
test eax, eax
jg 0x4023c0
jmp 0x4023eb
mov ecx, 0x5f
mov edx, 0x5c
mov word [esp + eax*2 + 6], cx
mov word [esp + eax*2 + 8], dx
push 5
push 0
push 0
lea eax, [esp + 0x10]
push eax
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
call fcn.004025dc
add esp, 0x20c
ret

Function at 0x4025dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f11c]
jne 0x4025e6
repz ret
jmp fcn.00404112
Function at 0x405b1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040388d
and dword [ebp - 4], 0
cmp dword [0x410924], 0
mov ebx, eax
jne 0x405bcc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405c7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405c7d
push eax
call fcn.0040381b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410924], eax
call esi
push eax
call fcn.0040381b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410928], eax
call esi
push eax
call fcn.0040381b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41092c], eax
call esi
push eax
call fcn.0040381b
pop ecx
mov dword [0x410934], eax
test eax, eax
je 0x405bcc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040381b
pop ecx
mov dword [0x410930], eax
mov eax, dword [0x410930]
cmp eax, ebx
je 0x405c24
cmp dword [0x410934], ebx
je 0x405c24
push eax
call fcn.00403896
push dword [0x410934]
mov esi, eax
call fcn.00403896
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c24
test edi, edi
je 0x405c24
call esi
test eax, eax
je 0x405c1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c1b
test byte [ebp - 0xc], 1
jne 0x405c24
or dword [ebp + 0x10], 0x200000
jmp 0x405c5d
mov eax, dword [0x410928]
cmp eax, ebx
je 0x405c5d
push eax
call fcn.00403896
pop ecx
test eax, eax
je 0x405c5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405c5d
mov eax, dword [0x41092c]
cmp eax, ebx
je 0x405c5d
push eax
call fcn.00403896
pop ecx
test eax, eax
je 0x405c5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410924]
call fcn.00403896
pop ecx
test eax, eax
je 0x405c7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405c7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret