joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [esp + 4], sym._ServiceCtrlHandler_4
mov dword [esp], str.MSIServer
call dword [sym.imp.advapi32.dll_RegisterServiceCtrlHandlerA]
mov dword [0x406068], eax
sub esp, 8
test eax, eax
je 0x401898
mov eax, 2
call sym._UpdateSCMStatus.constprop.0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [0x40606c], eax
sub esp, 0x10
test eax, eax
je 0x401858
lea eax, [ebp - 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._ServiceExecutionThread_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x406124], eax
sub esp, 0x18
test eax, eax
je 0x401820
mov eax, 4
call sym._UpdateSCMStatus.constprop.0
mov eax, dword [0x406124]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, 1
sub esp, 8
call sym._UpdateSCMStatus.constprop.0
leave
ret 8
mov dword [esp], str.Failed_to_create_thread_n
call sym._report_error
test byte [0x406020], 8
jne 0x40186d
mov eax, dword [0x40606c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, 1
sub esp, 4
call sym._UpdateSCMStatus.constprop.0
leave
ret 8
mov dword [esp], str.Failed_to_create_event_n
call sym._report_error
test byte [0x406020], 8
je 0x401835
mov dword [esp + 0xc], str.Killing_service_n
mov dword [esp + 8], str.KillService
mov dword [esp + 4], 0x406020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x401835
mov dword [esp], str.Failed_to_register_service_ctrl_handler_n
call sym._report_error
leave
ret 8
Function at 0x4018b0
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x214]
sub esp, 0x288
mov dword [ebp - 0x270], eax
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor ecx, ecx
sub esp, 4
mov word [ebp - 0x214], cx
mov edi, eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
test eax, eax
jne 0x40190c
test byte [0x406010], 2
jne 0x401ab2
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0
xor edx, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x264]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x268], 0x28
mov word [ebp - 0x264], dx
call sym._MsiGetFileVersionW_20
sub esp, 0x14
test eax, eax
je 0x40195f
test byte [0x406010], 2
jne 0x401a85
mov edx, dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x26c]
mov dword [esp], edi
mov dword [esp + 0xc], 0
mov dword [ebp - 0x27c], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xa
call edx
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x268], eax
inc eax
sub esp, 0x10
lea ebx, [eax + eax]
mov dword [ebp - 0x274], ecx
mov dword [esp], ebx
add ebx, 0x50
mov dword [ebp - 0x278], eax
call ecx
mov dword [esp], ebx
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x26c], eax
mov esi, eax
call ecx
mov ebx, eax
test eax, eax
je 0x401a60
test esi, esi
je 0x401a60
xor eax, eax
mov edx, dword [ebp - 0x27c]
mov word [esi], ax
mov eax, dword [ebp - 0x278]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa
mov dword [esp], edi
call edx
lea eax, [ebp - 0x264]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x268]
add eax, 0x29
mov dword [esp + 4], eax
call sym._swprintf
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov dword [esp + 0x14], 0
movzx eax, ax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._MsiMessageBoxW_24
sub esp, 0x18
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x270]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.MsiGetFileVersion_failed_with__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 4], 0x406010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40195f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.GetModuleFileName_failed:__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x406010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40190c
Function at 0x401af0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 6]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x401b51
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 4], dx
add eax, 2
test dx, dx
jne 0x401b20
mov eax, dword [ebx]
mov dword [ecx], 0
test eax, eax
je 0x401b48
lea esi, [esi]
mov ebx, eax
mov eax, dword [eax]
test eax, eax
jne 0x401b40
mov dword [ebx], ecx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x406010], 2
jne 0x401b67
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory__n
mov dword [esp + 8], str.StringListAppend
mov dword [esp + 4], 0x406010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401b5a
Function at 0x404e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x404e88
cmp byte [esi + ebx - 1], 0xa
je 0x404e5c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406118], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x405050
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_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
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x405440
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
lea ebx, [ebp - 0x804]
sub esp, 0x81c
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], ebx
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov eax, dword [0x406120]
test eax, eax
je 0x4054a8
mov dword [esp + 4], ebx
mov dword [esp], 0x407160
call sym._wine_dbg_printf
mov ebx, dword [ebp - 4]
leave
ret
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov dword [esp + 4], ebx
movzx eax, ax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.MsiExec
mov dword [esp], 0
call sym._MsiMessageBoxA_24
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
Function at 0x4059d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x405a4d
cmp al, 9
je 0x405a40
cmp al, 0x20
je 0x405a40
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x405aa0
cmp al, 0x22
je 0x405ab0
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x405a4d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x405a00
test edi, 1
jne 0x405a00
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x405a40
cmp al, 0x20
je 0x405a40
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x405a68
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x405a17
and dword [ebp - 0x54], 1
jne 0x405a10
xor edi, 1
jmp 0x405a17
Function at 0x1a624e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xf31000]
push edi
jmp 0x1a624fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a62501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a624f0
mov eax, 1
add ebx, ebx
jne 0x1a62513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a62524
jne 0x1a62543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a62543
dec eax
add ebx, ebx
jne 0x1a62530
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a62508
add ebx, ebx
jne 0x1a6253f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a62595
xor ecx, ecx
sub eax, 3
jb 0x1a6255b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a625ca
sar eax, 1
mov ebp, eax
jmp 0x1a62566
add ebx, ebx
jne 0x1a62566
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a62534
inc ecx
add ebx, ebx
jne 0x1a62574
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a62534
add ebx, ebx
jne 0x1a62581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a62576
jne 0x1a62592
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a62576
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a625b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a625a6
jmp 0x1a624f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a625b4
add edi, ecx
jmp 0x1a624f6
pop esi
mov edi, esi
mov ecx, 0xaec6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1a625d2
cmp byte [edi], 0x27
jne 0x1a625d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1a625d7
lea edi, [esi + 0x165f000]
mov eax, dword [edi]
or eax, eax
je 0x1a6264f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1679a64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1679be0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a62604
mov ecx, edi
jns 0x1a62633
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1679be8]
or eax, eax
je 0x1a62649
mov dword [ebx], eax
add ebx, 4
jmp 0x1a62621
call dword [esi + 0x1679be4]
mov ebp, dword [esi + 0x1679bec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x16626aa]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1a6269b
sub esp, 0xffffff80
jmp 0x4e47bd
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x699a5607
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1bbb5ebb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x50cbb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.MIZwSMcb
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50cbd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50cbd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cbc8
mov eax, 1
add ebx, ebx
jne 0x50cbeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50cbe0
jne 0x50cbfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cbe0
xor ecx, ecx
sub eax, 3
jb 0x50cc10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cc82
mov ebp, eax
add ebx, ebx
jne 0x50cc1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cc28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50cc4c
inc ecx
add ebx, ebx
jne 0x50cc38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cc2d
jne 0x50cc49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cc2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cc6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cc5d
jmp 0x50cbce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cc6c
add edi, ecx
jmp 0x50cbce
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cccb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cc89
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50ccc5
mov dword [ebx], eax
add ebx, 4
jmp 0x50cca6
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50ccff
sub esp, 0xffffff80
jmp section.ukiwGhLB

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x66f95ccc
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x39e21610
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4051bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4087e0]
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.004042aa
and dword [ebp - 0x14], 0
cmp dword [0x40c830], 0
mov dword [ebp - 0x18], eax
jne 0x40526e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405316
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405316
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40c830], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40c834], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40c838], eax
call edi
push eax
call esi
mov dword [0x40c840], eax
test eax, eax
je 0x40526e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40c83c], eax
mov eax, dword [0x40c83c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4052c7
cmp dword [0x40c840], ecx
je 0x4052c7
push eax
call esi
push dword [0x40c840]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4052c7
test ebx, ebx
je 0x4052c7
call edi
test eax, eax
je 0x4052be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4052be
test byte [ebp - 8], 1
jne 0x4052c7
or dword [ebp + 0x10], 0x200000
jmp 0x4052fa
mov eax, dword [0x40c834]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4052fa
mov eax, dword [0x40c838]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c830]
call esi
test eax, eax
je 0x405316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405526
leave
ret

Function at 0x405526
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4087e0]
jne 0x405530
repz ret
jmp fcn.00406693

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 0x402bb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe21b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004cc293
push 4
mov dword [ebp - 4], 0
call fcn.004e0835
mov edi, eax
add esp, 4
test edi, edi
je 0x402c27
push ebx
call fcn.004cbdef
mov dword [edi], eax
call fcn.004cbca9
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004cbbde
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402c1c
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004cbc06
pop ebx
jmp 0x402c29
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fe3d8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x405d08
cmp byte [edi + 0x49], bl
je 0x405d08
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x405c13
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x405c35
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
push esi
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x405c4e
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x405c8d
dec eax
je 0x405c91
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x405cf0
call fcn.004035b0
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x405ca1
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, ecx
je 0x405cca
cmp ebx, 0x10
jae 0x405cb0
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004e18b7
add esp, 0x10
cmp esi, eax
jne 0x405ce8
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x405ced
test esi, esi
jne 0x405c42
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404a40
jmp 0x405c3c
lea ecx, [ebp - 0x2c]
jmp 0x405c75
lea ecx, [ebp - 0x2c]
call fcn.004035b0
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret