joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4ed0f9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a4f40ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x214], esi
cmp eax, ebx
jne 0x4a4ed1e5
mov dword [ebp - 0x210], ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [0x4a4f4018]
mov esi, eax
cmp esi, ebx
jne 0x4a4ed1be
cmp word [ebp - 0x20c], 0x2e
jne 0x4a4ed1a3
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4a4ed003
mov edi, eax
cmp edi, ebx
je 0x4a4ed1d1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a4ed176
sub eax, edx
sar eax, 1
je 0x4a4ed19d
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4a4d58f3
add esp, 0xc
mov esi, eax
push edi
call fcn.4a4d142e
cmp dword [0x4a4f41b4], ebx
jne 0x4a4ed1e0
inc dword [ebp - 0x210]
cmp esi, ebx
jne 0x4a4ed257
jmp 0x4a4ed12d
cmp esi, 0x103
jne 0x4a4ed257
xor esi, esi
jmp 0x4a4ed257
push ebx
call dword [fcn.4a4d12d4]
push eax
call fcn.4a4d6d44
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4a4ed259
push ebx
push eax
call fcn.4a4d2b0d
push eax
call fcn.4a4d19d6
mov edi, eax
cmp edi, ebx
je 0x4a4ed1e0
push 0x20
push edi
call fcn.4a4d2148
cmp eax, ebx
je 0x4a4ed209
xor ecx, ecx
mov word [eax], cx
push edi
push esi
call fcn.4a4ed003
mov ebx, eax
test ebx, ebx
je 0x4a4ed239
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a4ed219
sub eax, edx
sar eax, 1
je 0x4a4ed239
push ebx
push edi
push str._s_s_r_n
call fcn.4a4d58f3
mov esi, eax
jmp 0x4a4ed248
xor esi, esi
push edi
inc esi
push esi
push 0x400023a3
call fcn.4a4d6d44
add esp, 0xc
push ebx
call fcn.4a4d142e
push edi
call fcn.4a4d142e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a4d13a9
leave
ret 8
Function at 0x4a4ed26f
Capabilities:
Set registry value

Disassembly:
push 0xc
push 0x4a4ed398
call fcn.4a4d264a
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x4a4ed2e6
cmp word [edi], si
je 0x4a4ed2e6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4a4ed28e
sub eax, edx
sar eax, 1
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a4f401c]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
jne 0x4a4ed2cb
push edi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4a4d58f3
add esp, 0xc
jmp 0x4a4ed355
push esi
push ebx
call fcn.4a4d6d44
push dword [ebp + 0xc]
push 1
push 0x235d
call fcn.4a4d6d44
add esp, 0x14
jmp 0x4a4ed355
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a4d1368]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4a4ed359
lea eax, [ebp + 0xc]
push eax
push 0x2000000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [fcn.4a4d1360]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4a4ed32c
cmp ebx, 2
je 0x4a4ed355
push esi
push ebx
call fcn.4a4d6d44
pop ecx
pop ecx
jmp 0x4a4ed355
push 0x4a4d3afc
push dword [ebp + 0xc]
call dword [0x4a4d1364]
mov ebx, eax
mov dword [ebp + 0x10], eax
cmp ebx, esi
je 0x4a4ed34c
push esi
push ebx
call fcn.4a4d6d44
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [fcn.4a4d1354]
cmp ebx, esi
jne 0x4a4ed389
mov dword [ebp - 4], esi
push esi
push esi
push esi
push 0x8000000
call dword [0x4a4f4040]
jmp 0x4a4ed382
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x10]
call fcn.4a4d13b6
ret 0xc
Function at 0x4a4ed685
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4a4f40ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp eax, edi
jne 0x4a4ed6ab
xor eax, eax
jmp 0x4a4ed7b5
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x4a4d12f0]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp ebx, 0xffffffff
je 0x4a4ed7b0
push esi
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40
pop esi
call fcn.4a4ed3db
test eax, eax
je 0x4a4ed6f5
mov eax, 0x5a4d
xor ecx, ecx
cmp ax, word [ebp - 0x44]
sete cl
mov eax, ecx
jmp 0x4a4ed6f7
xor eax, eax
cmp eax, edi
je 0x4a4ed7a6
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [fcn.4a4d1284]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
je 0x4a4ed7a6
lea eax, [ebp - 0x50]
push eax
push ebx
push 4
pop esi
call fcn.4a4ed3db
test eax, eax
je 0x4a4ed73c
xor eax, eax
cmp dword [ebp - 0x50], 0x4550
sete al
jmp 0x4a4ed73e
xor eax, eax
cmp eax, edi
je 0x4a4ed7a6
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x14
pop esi
call fcn.4a4ed3db
test eax, eax
je 0x4a4ed7a6
cmp word [ebp - 0x54], di
jbe 0x4a4ed7a6
movzx eax, word [ebp - 0x54]
mov edi, dword [fcn.4a4d1294]
push eax
push 8
call edi
push eax
call dword [fcn.4a4d12a8]
mov ebx, eax
test ebx, ebx
je 0x4a4ed7a6
movzx esi, word [ebp - 0x54]
push ebx
push dword [ebp - 0x4c]
call fcn.4a4ed3db
test eax, eax
je 0x4a4ed79a
mov edx, dword [ebp - 0x64]
mov ecx, ebx
call fcn.4a4ed3b9
test eax, eax
je 0x4a4ed79a
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
push ebx
push 0
call edi
push eax
call dword [fcn.4a4d1290]
push dword [ebp - 0x4c]
call dword [0x4a4d12ac]
pop esi
mov ax, word [ebp - 0x48]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4a4d13a9
leave
ret 4
Function at 0x401b77
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bb6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bb6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bb6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bb6
cmp dword [ecx + 0x74], 0xe
jbe 0x401bb6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x50f710
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x541f6f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call fcn.0043e380
mov dword [esi], vtable.cptboost::log::v2s_mt_nt5::aux::basic_ostringstreambuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea edx, [esi + 0x44]
mov dword [esi + 0x38], 0
mov ecx, esi
mov dword [esi + 0x3c], 0
sub ecx, edx
mov byte [esi + 0x40], 0
add ecx, 0x64
mov eax, dword [esi + 0x10]
sar ecx, 1
mov dword [eax], edx
mov eax, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
lea edx, [esi + 0x68]
mov dword [esp + 0x1c], 0
mov dword [edx], 0x548e58
mov dword [esp + 0x10], edx
mov dword [edx + 8], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
push 0
push esi
mov byte [esp + 0x24], 1
mov eax, dword [eax + 4]
mov dword [esp + 0x10], 1
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call fcn.00442aa0
mov ecx, esi
mov dword [esp + 0x1c], 2
call fcn.00510150
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x513a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541760
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004a1537
mov dword [esi], vtable.cptboost::system::system_error.0
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00431c30
mov dword [esi], vtable.cptboost::log::v2s_mt_nt5::system_error.0
mov dword [esi + 0x2c], vtable.cptboost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x513ae2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.0
mov dword [esi + 0x2c], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x513b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541218
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
call fcn.004a1537
mov dword [edi], vtable.cptboost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00431c30
mov dword [edi + 0x2c], vtable.cptboost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.0
mov dword [edi + 0x2c], vtable.cptboost::exception_detail::error_info_injector_class_cptboost::log::v2s_mt_nt5::system_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x5188e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x58c3cc]
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x5188fb
push eax
call esi
test eax, eax
jne 0x518911
call fcn.00518fd0
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
jne 0x51890e
xor eax, eax
jmp 0x518911
push eax
call esi
lea esi, [eax + 0x14]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00518000
push dword [esp + 8]
lea eax, [esp + 8]
mov ecx, esi
push dword [esp + 8]
push eax
call fcn.005185a0
pop esi
add esp, 8
ret

Function at 0x518cd0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [0x58c3cc]
cmp eax, 0xffffffff
je 0x518d16
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x518d16
push esi
lea esi, [eax + 0x14]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004f8e70
mov eax, dword [esp + 4]
cmp eax, dword [esi]
pop esi
je 0x518d16
add eax, 0x14
je 0x518d16
mov eax, dword [eax + 8]
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x518fd0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542ab0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.005177d0
mov esi, eax
mov dword [ebp - 4], 0
push 0x5184b0
push 0x59da04
mov dword [ebp - 0x14], esi
call fcn.00518260
mov eax, dword [0x58c3cc]
add esp, 8
cmp eax, 0xffffffff
je 0x519030
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51a4ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
jmp 0x51a562
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x18]
jae 0x51a5a4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0051a45f
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x51a5a2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
jmp 0x51a5a6
jmp 0x51a559
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x51cc23
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x4093f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x409407
pop dword [ebp - 0x4c]
mov eax, 0xdb090f37
sub eax, 0xdac87b30
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x1067c033
sub dword [ebp - 0x5c], 0xc2157ae8
mov dword [ebp - 0x58], 0x9f274e55
add dword [ebp - 0x58], 0x930bfdf0
mov dword [ebp - 0x54], 0x4f1d27df
add dword [ebp - 0x54], 0xfd2f1c4f
mov dword [ebp - 0x50], 0x7605c2ba
add dword [ebp - 0x50], 0x89fa3d46
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xeddf64cf
add dword [ebp - 0x5c], 0x86930487
mov dword [ebp - 0x58], 0x5ae77cf0
add dword [ebp - 0x58], 0xe684e485
mov dword [ebp - 0x54], 0xcda1073d
sub dword [ebp - 0x54], 0x6a319ad1
mov dword [ebp - 0x50], 0xf24caab6
sub dword [ebp - 0x50], 0xf24caab6
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x37f86
push 0
call eax
mov ecx, 0x4b612dc2
add ecx, 0xb49f143a
mov esi, eax
mov edi, 0x1cb92e4e
add edi, 0xe38881b2
add edi, dword [ebp - 0x4c]
mov edx, 0x76cc0e3
mov ebx, dword [edi]
add ebx, edx
xor dword [ebp - 0x30], 0x9157824e
mov dword [esi], ebx
add dword [ebp - 0x48], esi
add esi, 0xa0bb8047
add esi, 0x5f447fbd
add edi, 4
loop 0x409519
add eax, 0x59280cdd
sub eax, 0x5927121a
mov ebx, eax
add eax, 0x32da6302
sub eax, 0x32da62fd
mov ecx, 0x775ada7
add ecx, 0xf8ca5259
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401372

Function at 0x405ef3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
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.00403681
and dword [ebp - 0x14], 0
cmp dword [0x422958], 0
mov dword [ebp - 0x18], eax
jne 0x405fa6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40604e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40604e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422958], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42295c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422960], eax
call edi
push eax
call esi
mov dword [0x422968], eax
test eax, eax
je 0x405fa6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422964], eax
mov eax, dword [0x422964]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405fff
cmp dword [0x422968], ecx
je 0x405fff
push eax
call esi
push dword [0x422968]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405fff
test ebx, ebx
je 0x405fff
call edi
test eax, eax
je 0x405ff6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405ff6
test byte [ebp - 8], 1
jne 0x405fff
or dword [ebp + 0x10], 0x200000
jmp 0x406032
mov eax, dword [0x42295c]
cmp eax, dword [ebp - 0x18]
je 0x406032
push eax
call esi
test eax, eax
je 0x406032
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406032
mov eax, dword [0x422960]
cmp eax, dword [ebp - 0x18]
je 0x406032
push eax
call esi
test eax, eax
je 0x406032
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422958]
call esi
test eax, eax
je 0x40604e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406050
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x407db0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b00]
push edi
mov edi, dword [0x1ef4ddc]
push eax
call fcn.00407cc0
add esp, 4
cmp dword [0x1ef4ddc], 0x2f
jne 0x407e0d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00407d10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408080
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x1ef4ddc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x4080a2
push 0
push 0
call edi
mov eax, dword [0x1ef4ddc]
cmp esi, 0x845013
jne 0x4080b9
mov eax, dword [0x421be0]
add eax, 0xa231
mov dword [0x1ef4ddc], eax
cmp eax, 0x141
jne 0x4080d4
mov dword [0x422e78], 0xec58acac
mov dword [0x422e7c], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x408090
call fcn.00407e20
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x4043c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040413b
insb byte es:[edi], dx
test byte [eax], cl
lea eax, [ebp - 0x58]
push eax
call fcn.0040414b
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00404100
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x404429
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040413b
pop ebx
and dword [edi], edx
sbb cl, byte [ebp - 0x17af3fbb]
invalid
Function at 0x406752
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406776
xor eax, eax
test eax, eax
je 0x406789
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406789
xor ecx, ecx
jmp 0x40678c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4