joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411190
cmp edx, dword [eax]
je 0x40d78b
add eax, 8
inc ecx
cmp eax, 0x411220
jl 0x40d77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411190]
jne 0x40d8b9
mov eax, dword [0x411bb0]
cmp eax, 1
je 0x40d893
test eax, eax
jne 0x40d7bc
cmp dword [0x4110e4], 1
je 0x40d893
cmp edx, 0xfc
je 0x40d8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41045c
push edi
call fcn.0040ef00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e680
lea eax, [ebp - 0xa0]
push 0x41043c
push eax
call fcn.0040e680
push dword [esi + 0x411194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ee75
add esp, 0x2c
pop edi
jmp 0x40d8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x411194]
push 0
push eax
push dword [esi]
call fcn.0040e490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
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 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c030]
jne 0x401116
repz ret
jmp fcn.00401b21

Function at 0x40a4bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405c15
and dword [ebp - 4], 0
cmp dword [0x44e894], 0
mov ebx, eax
jne 0x40a56d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a61e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a61e
push eax
call fcn.00405ba3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44e894], eax
call esi
push eax
call fcn.00405ba3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44e898], eax
call esi
push eax
call fcn.00405ba3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e89c], eax
call esi
push eax
call fcn.00405ba3
pop ecx
mov dword [0x44e8a4], eax
test eax, eax
je 0x40a56d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ba3
pop ecx
mov dword [0x44e8a0], eax
mov eax, dword [0x44e8a0]
cmp eax, ebx
je 0x40a5c5
cmp dword [0x44e8a4], ebx
je 0x40a5c5
push eax
call fcn.00405c1e
push dword [0x44e8a4]
mov esi, eax
call fcn.00405c1e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a5c5
test edi, edi
je 0x40a5c5
call esi
test eax, eax
je 0x40a5bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a5bc
test byte [ebp - 0xc], 1
jne 0x40a5c5
or dword [ebp + 0x10], 0x200000
jmp 0x40a5fe
mov eax, dword [0x44e898]
cmp eax, ebx
je 0x40a5fe
push eax
call fcn.00405c1e
pop ecx
test eax, eax
je 0x40a5fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a5fe
mov eax, dword [0x44e89c]
cmp eax, ebx
je 0x40a5fe
push eax
call fcn.00405c1e
pop ecx
test eax, eax
je 0x40a5fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e894]
call fcn.00405c1e
pop ecx
test eax, eax
je 0x40a61e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a620
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cea0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44c030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b072d4]
push ebx
mov ebx, dword [0x2b06ff4]
push esi
mov esi, dword [0x44d060]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cee1
push str.duxafodaz
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b072d4]
mov dword [0x2b06ff0], esi
cmp eax, 0x114e
jne 0x40cf06
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2b072d4]
cmp eax, 0x2f
jne 0x40cf34
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push edi
push ebx
call fcn.0040cd50
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x40e27b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409431
mov dword [ebp - 0x14], eax
cmp dword [0x4afcbc], esi
jne 0x40e36e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e2fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e44e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e44e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e44e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4afcbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4afcc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4afcc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4afccc], eax
test eax, eax
je 0x40e36b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4afcc8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e393
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e386
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e3a8
push 4
pop eax
jmp 0x40e450
cmp dword [ebp - 0x14], esi
je 0x40e3a8
push dword [0x4afcbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e38d
mov eax, dword [0x4afcc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e406
cmp dword [0x4afccc], edi
je 0x40e406
push eax
call ebx
push dword [0x4afccc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e406
test eax, eax
je 0x40e406
call ecx
test eax, eax
je 0x40e3fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e3fb
test byte [ebp - 8], 1
jne 0x40e406
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e436
mov eax, dword [0x4afcc0]
cmp eax, edi
je 0x40e433
push eax
call ebx
test eax, eax
je 0x40e433
call eax
mov esi, eax
test esi, esi
je 0x40e433
mov eax, dword [0x4afcc4]
cmp eax, edi
je 0x40e433
push eax
call ebx
test eax, eax
je 0x40e433
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4afcbc]
call ebx
test eax, eax
je 0x40e44e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e450
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404483
mov esp, ebp
pop ebp
ret
Function at 0x476089
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x478f10
call fcn.004767c8
push 1
call fcn.0047632c
pop ecx
test al, al
jne 0x475f32
push 7
call fcn.00476593
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004762f7
mov byte [ebp - 0x24], al
mov eax, dword [0x49dd84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x475f2b
test eax, eax
jne 0x475f9c
mov dword [0x49dd84], ecx
push 0x4783d8
push 0x4783c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x475f7f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x476083
push 0x4783c4
push 0x4783bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x49dd84], 2
jmp 0x475fa1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00476489
pop ecx
call fcn.00476587
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x475fd1
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fd1
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004767c2
call esi
call fcn.0047658d
mov esi, eax
cmp dword [esi], edi
je 0x475fef
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fef
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004766a8
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004766db
test al, al
jne 0x476028
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x476031
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004764a6
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476083
call fcn.0047680e
ret
call fcn.00475da3
jmp 0x475f13

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3559544b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x8b342d0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x43b64f
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
inc edi
sub ebx, edi
call fcn.0043b671
dec ebx
dec ebx
xor dword [edx], esi
dec ebx
inc edx
sub edi, 0xb50154f8
cmp edx, ecx
jne fcn.0043b64f
or ebx, ebx
ret
Function at 0x4011d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
push 4
mov edi, ecx
call fcn.004473d8
mov esi, eax
mov eax, edi
pop ecx
mov dword [esi], 0xb
cmp dword [edi + 0x14], 8
jb 0x401203
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40121c
mov dword [esi], 1
xor bl, bl
jmp 0x401319
xor ebx, ebx
mov dword [esp + 0x4c], 0xaac56b
cmp dword [edi + 0x14], 8
mov dword [esp + 0x50], 0x11d0cd44
mov dword [esp + 0x54], 0xc000c28c
mov dword [esp + 0x58], 0xee95c24f
mov dword [esp + 0x3c], 0x10
jb 0x40124e
mov edi, dword [edi]
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], edi
mov edi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x44], ebx
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], ebx
push eax
push 0xffffffffffffffff
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x44], ebx
call edi
cmp eax, 0x800b0100
jne 0x4012c0
mov dword [esi], 3
jmp 0x4012f6
cmp eax, 0x80092003
jne 0x4012cf
mov dword [esi], 4
jmp 0x4012f6
cmp eax, 0x80096010
jne 0x4012de
mov dword [esi], 2
jmp 0x4012f6
cmp eax, 0x800b0001
jne 0x4012ed
mov dword [esi], 8
jmp 0x4012f6
neg eax
sbb eax, eax
and eax, 0xb
mov dword [esi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 2
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], 2
push eax
push 0xffffffffffffffff
call edi
cmp dword [esi], ebx
sete bl
push 4
push esi
call fcn.00447408
pop ecx
pop ecx
mov ecx, dword [esp + 0x5c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004473b9
mov esp, ebp
pop ebp
ret
Function at 0x40150e
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
xor eax, eax
mov esi, ecx
push eax
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x4015e4
push ebx
push 8
pop ebx
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x401538
mov eax, dword [esi]
push edi
push eax
call fcn.00452867
add eax, ebp
lea eax, [eax*2 + 2]
push eax
call fcn.00452882
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4015e2
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4015e2
push 0x48e2c0
push edi
call fcn.00452867
pop ecx
lea eax, [edi + eax*2]
push eax
call fcn.0045288d
pop ecx
pop ecx
cmp dword [esi + 0x14], ebx
jb 0x401584
mov esi, dword [esi]
push esi
push edi
call fcn.00452867
pop ecx
lea eax, [edi + eax*2]
push eax
call fcn.0045288d
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4015e2
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4a483c]
cmp eax, dword [ecx + 4]
jg 0x4015ec
cmp byte [0x4a4840], 0
mov eax, 0x800
cmovne ebx, eax
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov dword [esp + 0x14], eax
call fcn.004528af
pop ecx
pop edi
pop ebx
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret
mov esi, 0x4a483c
push esi
call fcn.004475d3
cmp dword [0x4a483c], 0xffffffff
pop ecx
jne 0x4015be
push 0x48e2a0
push 0x48e2c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push esi
setne byte [0x4a4840]
call fcn.00447589
pop ecx
jmp 0x4015be

Function at 0x40197f
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
xor eax, eax
mov ebx, edx
push esi
push edi
lea edi, [esp + 0x14]
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x20]
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor ebp, ebp
lea eax, [esp + 0x20]
push ebp
push ebp
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [esp + 0x38]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0xc
mov edx, esi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.004018ed
pop ecx
push dword [eax]
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040219c
test esi, esi
je 0x401a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401a26
push ebp
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401a22
push edi
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov eax, esi
jmp 0x401a28
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x401ff7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40204b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40204b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40203d
cmp esi, ecx
jae 0x40204b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40202b
cmp esi, ecx
jae 0x40204b
cmp word [esi], 0
je 0x40204b
mov eax, esi
jmp 0x40204d
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x402e22
Capabilities:
Get process image filename

Disassembly:
push 4
mov eax, 0x47ec5c
call fcn.00447de8
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x402e93
mov ecx, dword [ebp + 0xc]
push 0x104
call fcn.004022b3
mov ecx, dword [ebp + 0xc]
mov edi, eax
push 0x104
call fcn.004023d2
push 0x104
push edi
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x402e88
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00402e9d
mov ebx, eax
test esi, esi
je 0x402e93
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00447dc2
ret 8
Function at 0x402f80
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x47ec7f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a2074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor eax, eax
push eax
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x402fd5
xor eax, eax
jmp 0x4030b2
xor ecx, ecx
lea eax, [esi + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004473ca
pop ecx
mov edi, eax
push edi
push esi
call ebx
test eax, eax
je 0x402fce
push 0x208
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
call fcn.00449590
add esp, 0xc
jmp 0x4030a6
mov word [edi + 4], ax
lea eax, [ebp]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4030a3
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402497
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
add ebx, 4
push eax
mov ecx, ebx
call fcn.0040891b
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebx]
je 0x403062
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00407131
test eax, eax
jns 0x403089
lea eax, [ebp - 0x10]
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.004089b9
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.00408a1c
mov esi, dword [ebp - 0x20]
push edi
lea ecx, [esi + 0x14]
call fcn.0040246d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040219c
xor ebx, ebx
add edi, 8
xor eax, eax
cmp word [edi], bx
jne 0x403010
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004473b9
add ebp, 0x20c
leave
ret

Function at 0x4030d5
Capabilities:
Acquire debug privileges
Enumerate gui resources
Terminate process

Disassembly:
push 0x10
mov eax, 0x47ecaf
call fcn.00447de8
mov esi, ecx
test esi, esi
jne 0x4030ef
xor eax, eax
inc eax
jmp 0x403171
push esi
push 0x403177
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [ebp - 0x18]
call fcn.00402c20
and dword [ebp - 4], 0
xor edx, edx
inc edx
mov ecx, str.SeDebugPrivilege
call fcn.00402c99
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x403138
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [eax - 0x57]
neg edi
sbb edi, edi
inc edi
jmp 0x403167
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xbb8
push esi
call edi
test eax, eax
je 0x403153
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push esi
call edi
neg eax
push esi
sbb edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00402c48
mov eax, edi
call fcn.00447dc2
ret
Function at 0x403234
Capabilities:
Enumerate processes

Disassembly:
push 0x27c
mov eax, 0x47ecda
call fcn.00447e1c
test ecx, ecx
jne 0x40324e
xor eax, eax
jmp 0x4033a1
push ecx
lea ecx, [ebp - 0x40]
xor edi, edi
call fcn.0040162b
push edi
mov dword [ebp - 4], edi
push 2
mov dword [ebp - 0x288], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
or esi, 0xffffffff
cmp ebx, esi
je 0x403397
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 1
jmp 0x403376
lea eax, [ebp - 0x264]
push eax
push str.______s_n
call fcn.0040983d
push dword [ebp - 0x280]
push str.__ID__u_n_n
call fcn.0040983d
lea eax, [ebp - 0x264]
push eax
call fcn.00452867
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004017a6
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
test eax, eax
je 0x403317
dec eax
mov ecx, esi
cmp eax, esi
push 0x5c
cmovb ecx, eax
lea eax, [edx + ecx*2]
pop ecx
jmp 0x40330c
cmp eax, edx
je 0x403317
sub eax, 2
cmp word [eax], cx
jne 0x403305
sub eax, edx
sar eax, 1
jmp 0x403319
mov eax, esi
push dword [ebp - 0x18]
inc eax
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040696b
push eax
lea ecx, [ebp - 0x28]
call fcn.00406a34
lea ecx, [ebp - 0x58]
call fcn.0040183f
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x30]
jne 0x403368
push edx
push eax
push ecx
call fcn.00408ebd
add esp, 0xc
test eax, eax
je 0x403380
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4032a3
jmp 0x403386
mov edi, dword [ebp - 0x280]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0040183f
mov esi, edi
lea ecx, [ebp - 0x40]
call fcn.0040183f
mov eax, esi
call fcn.00447dd7
ret