joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401aac
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401ae6
push 7
push 0x1690220
push edi
call fcn.00401618
add esp, 0xc
test eax, eax
je 0x401aed
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401ac3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.00401e2c
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x40195c
mov dword [ebp - 0x14], 0x401967
call fcn.004037de
add esp, 0x28
test eax, eax
je 0x401b4d
push dword [ebp - 4]
call fcn.00401e43
pop ecx
jmp 0x401ae6
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401ae8
Function at 0x404ace
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 1
call fcn.00404972
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00404735
test al, al
jne 0x404afd
xor eax, eax
inc eax
jmp 0x404b0c
push esi
call fcn.00404935
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret 0x10

Function at 0x405ba0
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x408648
call fcn.00406160
push 1
call fcn.00405547
pop ecx
test al, al
je 0x405b88
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00405515
mov byte [ebp - 0x24], al
mov eax, dword [0x40a2a0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x405b88
test eax, eax
jne 0x405aac
mov dword [0x40a2a0], ecx
push 0x407270
push 0x407260
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x405a8f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405b78
push 0x40725c
push 0x407244
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a2a0], 2
jmp 0x405ab1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040569b
pop ecx
call fcn.004062b8
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x405ae2
push esi
call fcn.00405607
pop ecx
test al, al
je 0x405ae2
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x407240]
call esi
call fcn.004062be
mov esi, eax
cmp dword [esi], edi
je 0x405b00
push esi
call fcn.00405607
pop ecx
test al, al
je 0x405b00
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00406064
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004060a3
test al, al
je 0x405b8f
test bl, bl
jne 0x405b2e
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004056b8
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x405b78
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00405f4a
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00499000
jmp 0x405a22
Function at 0x45807d
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4fc504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, 0x800
push esi
mov esi, ecx
test dword [ebp + 0xc], ebx
je 0x4581c8
push edi
push dword [esi + 0x2ac]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov edi, eax
mov dword [ebp - 0x40c], edi
test edi, edi
je 0x4581c3
push 0x18e
lea eax, [ebp - 0x194]
push eax
push ebx
push edi
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
cdq
mov ecx, esi
sub eax, edx
mov edx, eax
sar edx, 1
call fcn.00422dd7
test al, al
je 0x458128
lea ecx, [ebp - 0x194]
call fcn.00488fc0
mov edi, eax
lea eax, [ebp - 0x3ec]
push edi
push eax
call fcn.00489008
pop ecx
pop ecx
cmp edi, 0x258
jae 0x4581f1
mov eax, dword [esi]
lea ecx, [ebp - 0x3ec]
xor ebx, ebx
push ebx
push edi
push ecx
mov ecx, esi
mov byte [ebp + edi - 0x3ec], bl
call dword [eax + 0x4c]
jmp 0x458168
xor ebx, ebx
lea eax, [ebp - 0x324]
push ebx
push ebx
push 0x18f
push eax
push edx
lea eax, [ebp - 0x194]
push eax
push ebx
call fcn.00457bc7
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x45816e
mov edi, eax
movzx ecx, byte [ebp + ebx - 0x324]
push ecx
mov ecx, esi
call fcn.0041abbd
inc ebx
cmp ebx, edi
jl 0x458153
mov edi, dword [ebp - 0x40c]
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00418ca7
fld dword [ebp - 0x414]
mov dword [ebp - 0x408], 2
call fcn.004b7d00
fld dword [ebp - 0x410]
mov dword [ebp - 0x404], eax
call fcn.004b7d00
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
push edi
push dword [esi + 0x2ac]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
xor eax, eax
pop edi
jmp 0x4581df
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x10f
push dword [esi + 0x2ac]
invalid
invalid
invalid
invalid
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

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

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 0x40a3f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp + 4], 0xcb
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], str.Starting_WinBox...
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004130bc
mov dword [esp + 4], str.RouterOS_WinBox
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xce
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcf
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xd0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0x418d17
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413094
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
leave
ret
Function at 0x10011140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10043a41
call fcn.1001f59e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100111a1
call fcn.1000e50a
mov esi, eax
jmp 0x10011279
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100111bf
call fcn.1000e50a
jmp 0x10011270
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x100111b5
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x100111f2
mov esi, 0x8007000e
jmp 0x10011272
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10023658
mov dword [ebp - 4], 1
jmp 0x10011226
cmp dword [ebp - 0x418], 0
je 0x100111e8
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100111b5
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10023658
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10011292
lea ecx, [ebp - 0x418]
call fcn.10011348
mov eax, esi
call fcn.1001f5f7
ret 0x10
Function at 0x1001f1ed
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x100463b8
call fcn.10021546
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1001f27b
call fcn.10021514
test eax, eax
jne 0x1001f211
xor eax, eax
jmp 0x1001f347
call fcn.10020948
test eax, eax
jne 0x1001f221
call fcn.10021532
jmp 0x1001f20a
call fcn.100214c8
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x10193274], eax
call fcn.10023658
mov dword [0x101913dc], eax
call fcn.10023658
test eax, eax
jns 0x1001f24b
call fcn.10020621
jmp 0x1001f21a
call fcn.10023658
test eax, eax
js 0x1001f274
call fcn.10021100
test eax, eax
js 0x1001f274
push 0
call fcn.10023658
pop ecx
test eax, eax
jne 0x1001f274
inc dword [0x101913d8]
jmp 0x1001f344
call fcn.100210ad
jmp 0x1001f244
xor edi, edi
cmp eax, edi
jne 0x1001f2da
cmp dword [0x101913d8], edi
jle 0x1001f20a
dec dword [0x101913d8]
mov dword [ebp - 4], edi
cmp dword [0x10191744], edi
jne 0x1001f29f
call fcn.10020e3b
cmp dword [ebp + 0x10], edi
jne 0x1001f2b3
call fcn.100210ad
call fcn.10020621
call fcn.10021532
mov dword [ebp - 4], 0xfffffffe
call fcn.1001f2c6
jmp 0x1001f344
cmp eax, 2
jne 0x1001f338
call fcn.100205ed
push 0x214
push 1
call fcn.10023658
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x1001f20a
push esi
push dword [0x1004a940]
push dword [0x10191724]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x1001f32c
push edi
push esi
call fcn.10020662
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x1001f344
push esi
call fcn.10023658
pop ecx
jmp 0x1001f20a
cmp eax, 3
jne 0x1001f344
push edi
call fcn.10023658
pop ecx
xor eax, eax
inc eax
call fcn.1002158b
ret 0xc

Function at 0x1001f4a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a900]
jne 0x1001fc43
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10191500], eax
mov dword [0x101914fc], ecx
mov dword [0x101914f8], edx
mov dword [0x101914f4], ebx
mov dword [0x101914f0], esi
mov dword [0x101914ec], edi
mov word [0x10191518], ss
mov word [0x1019150c], cs
mov word [0x101914e8], ds
mov word [0x101914e4], es
mov word [0x101914e0], fs
mov word [0x101914dc], gs
pushfd
pop dword [0x10191510]
mov eax, dword [ebp]
mov dword [0x10191504], eax
mov eax, dword [ebp + 4]
mov dword [0x10191508], eax
lea eax, [ebp + 8]
mov dword [0x10191514], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10191450], 0x10001
mov eax, dword [0x10191508]
mov dword [0x10191404], eax
mov dword [0x101913f8], 0xc0000409
mov dword [0x101913fc], 1
mov eax, dword [0x1004a900]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1004a904]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10191448], eax
push 1
call fcn.10022bfb
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10003a64
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10191448], 0
jne 0x1001fd2f
push 1
call fcn.10022bfb
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x10023658
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10023667
pop dword [ebp - 0x28]
mov eax, 0x6a4ef1ba
add eax, 0xa5b344ad
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3d45a
push 0
mov eax, 0x61f75240
sub eax, 0x51f740c0
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x37dd
xor edi, edi
add edi, eax
mov ebx, 0x870c2063
add ebx, 0x890dd79d
add ebx, dword [ebp - 0x28]
mov esi, 0x53c9f587
add esi, 0x529cf123
xor dword [ebp - 0x1c], esi
mov edx, dword [ebx]
add dword [ebp - 0x1c], ecx
add edx, esi
add dword [ebp - 0x1c], 0xa7fbe2d9
mov dword [edi], edx
add dword [ebp - 0x14], 0x1a117588
add edi, 0xa24fe9e3
add edi, 0x5db01621
add ebx, 0xa93e1b1a
add ebx, 0x56c1e4ea
loop 0x100236c2
add eax, 0xd247
xor ebx, ebx
add ebx, eax
add eax, 0x27cd54c0
sub eax, 0x27cd54bb
mov ecx, 0x10000000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x10033620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x34], ebx
je 0x10033636
push dword [esi + 0x34]
call fcn.10023658
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10033646
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x44], ebx
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x10033656
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x48], ebx
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10033666
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x50], ebx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10033676
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], ebx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x10033686
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x54], ebx
push edi
push 7
lea edi, [esi + 0x58]
pop ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x1003369c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [edi], 0
add edi, 4
dec ebx
jne 0x1003368d
mov ecx, dword [esi + 0x7c]
pop edi
test ecx, ecx
je 0x100336b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x7c], ebx
jmp 0x100336b7
xor ebx, ebx
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x100336c7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x78], ebx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100336d7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x264], ebx
cmp dword [esi + 0x260], ebx
je 0x100336f1
mov dword [esi + 0x260], ebx
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x10033708
push eax
call fcn.10023658
pop ecx
mov dword [esi + 0x2d4], ebx
mov eax, dword [esi + 0x150]
test eax, eax
je 0x1003371f
push eax
call fcn.10023658
pop ecx
mov dword [esi + 0x150], ebx
mov ecx, esi
pop esi
pop ebx
Function at 0x401110
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x400
test eax, 0x684d1f90
test ecx, ecx
cmc
jbe 0x40112a
cmp eax, 0xba24c7cb
push esi
test ax, 0x9cb3
pop esi
jno 0x40113a
jl 0x40113a
push ebx
test ax, 0x2123
pop ebx
push esi
push ebx
push ebx
mov bx, 0x5266
pop ebx
pop ebx
pop esi
lea eax, [eax]
jno 0x40114e
cmp edi, 0xd308ee38
push ebx
add esp, 4
test ax, 0x5bec
test dl, dl
jne 0x401160
add edx, 0
sub eax, 0
jae 0x40116c
test eax, 0x145d5460
nop
or al, al
xor eax, 0
clc
jge 0x40117f
push ecx
cmp ecx, 0xdd3868af
pop ecx
or eax, 0
test ebp, ebp
push ebp
je 0x40118d
push eax
mov eax, edx
pop eax
pop ebp
cld
jge 0x401195
add sp, 0
nop
push esi
jns 0x40119f
jne 0x40119f
push edx
add esp, 4
pop esi
clc
sub ecx, 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.ntdll.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret

Function at 0x4011d0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x7fe]
push ecx
mov word [ebp - 0x800], ax
call sub.ntdll.dll_memset
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x800]
push 0x800
push ecx
call dword [sym.imp.ntdll.dll__vsnwprintf]
add esp, 0x1c
lea edx, [ebp - 0x800]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Inspect section memory permissions

Disassembly:
xor eax, eax
test ecx, 0x4000000
je 0x40177f
mov eax, 0x200
test ecx, 0x20000000
je 0x40185a
push ecx
pop ecx
jge 0x401797
push eax
push esi
jg 0x401795
test al, 0x31
pop esi
pop eax
jae 0x40179e
xor eax, 0
push ebx
mov bx, 0xc6c7
pop ebx
jnp 0x4017ad
push edi
sub eax, 0
pop edi
jb 0x4017b6
jne 0x4017b6
or eax, 0
rol cx, 0xb0
jl 0x4017c3
push edx
and eax, 0xffffffff
pop edx
push esi
push ecx
add ch, 0
pop ecx
pop esi
jg 0x4017d1
push 0x3b
add esp, 4
lea edx, [edx]
nop
cld
test edx, 0xb754d54b
test edx, 0x270ed3c8
stc
test ecx, 0x40000000
je 0x4017f6
test ecx, ecx
jns 0x4017f2
or eax, 0x40
ret
or eax, 0x20
ret
test ecx, ecx
jns 0x401801
or eax, 0x80
jmp 0x401804
or eax, 0x10
push eax
jno 0x40180a
cmp esi, 0xffffff99
pop eax
add bx, 0
push ebp
inc ebp
pop ebp
push eax
jle 0x40181a
cmp eax, 0xa593943d
pop eax
and edx, 0xffffffff
js 0x401826
add esi, 0
or esp, esp
inc ebx
dec ebx
cmp ax, 0xff94
push esi
push ecx
or eax, 0
pop ecx
pop esi
test ax, ax
push eax
push ebp
or eax, 0
pop ebp
pop eax
xor cx, 0
sub ebp, 0
push eax
push esi
pop esi
pop eax
js 0x401859
push ecx
rol cx, 0x30
pop ecx
ret
test ecx, 0x40000000
je 0x4018c1
add ax, 0
rol di, 0x20
sub ebp, 0
jns 0x401871
xchg edi, edi
xor dx, 0
nop
jl 0x40187f
jo 0x40187f
jle 0x40187f
sub esi, 0
and si, 0xffff
push edx
or eax, 0
pop edx
push esi
push 0x15
add esp, 4
pop esi
push edi
push 0x59
pop edi
pop edi
push edi
add eax, 0
pop edi
push ebp
add esp, 4
jg 0x4018a9
jne 0x4018a9
push eax
xchg esp, esp
pop eax
inc ecx
dec ecx
nop
push eax
sub dx, 0
pop eax
clc
cmc
cld
test ecx, ecx
jns 0x4018bd
or eax, 4
ret
or eax, 2
ret
jae 0x4018c5
cmp dl, bl
push edi
push ebp
cmp ebx, 0xa7091777
pop ebp
pop edi
push ebp
je 0x4018d8
push ebp
add di, 0
pop ebp
pop ebp
jno 0x4018e2
push ebx
or eax, 0
pop ebx
push eax
push ebx
test ax, 0x9240
pop ebx
pop eax
jae 0x4018ef
sar ecx, 0xe0
cmp eax, 0x9139edf2
test ax, 0x81d2
jns 0x4018fe
xor bp, 0
push esi
push 0x29
add esp, 4
pop esi
nop
jp 0x40190a
lea eax, [eax]
rol bp, 0xf0
push esi
jb 0x401915
sub ax, 0
pop esi
test ecx, ecx
jns 0x40191e
or eax, 8
ret
or eax, 1
ret

Function at 0x401ee0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ecx
push ebx
push edi
push 0x40308c
call fcn.00401c10
mov cl, byte [section..core]
add esp, 4
push eax
call fcn.00401ab0
mov ecx, dword [0x4033e0]
mov edi, dword [0x42c3f4]
mov cl, byte [ecx + 2]
add esp, 4
mov ebx, eax
xor eax, eax
mov dl, byte [edi + 4]
add dl, cl
xor byte [eax + esi], dl
mov ecx, dword [0x4033e0]
mov cl, byte [ecx + 2]
movzx edx, cl
inc eax
add edx, 0x28e8c
cmp eax, edx
jbe 0x401f14
cmp dword [0x42c454], 0
jne 0x401f5d
push 0x403148
call fcn.00401c10
mov cl, byte [section..core]
add esp, 4
push eax
call fcn.00401ab0
add esp, 4
mov dword [0x42c454], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x402390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
push esi
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40245e
push ebx
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4023e0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
cmp dword [ebp - 4], 0
pop ebx
je 0x402453
cmp esi, 0x26
je 0x40243c
cmp esi, 0x2b
jne 0x402453
push str.__x86_
push edi
call fcn.00558e99
mov edx, eax
add esp, 8
test edx, edx
je 0x402453
lea esi, [edx + 0xc]
mov ecx, esi
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402410
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push edx
call fcn.00558040
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.__x86_
push edi
call fcn.00558e99
add esp, 8
test eax, eax
je 0x402453
xor ecx, ecx
mov word [eax], cx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret