joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4572ac
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457457
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457438
mov dl, 1
mov eax, dword [0x4123b4]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457427
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00448930
test al, al
je 0x45741a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x457468
lea eax, [ebp - 0x254]
call fcn.004093fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45741a
xor eax, eax
push ebp
push 0x457413
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4574a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4573fc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4573fc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45741a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45731d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041608c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45745e
lea eax, [ebp - 0x260]
call fcn.00404814
ret

Function at 0x457dd0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x463c94]
cmp byte [eax + 0xad], 0
jne 0x457e41
cmp dword [0x463cb0], 0
jne 0x457e02
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457d8c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463cb0], eax
cmp dword [0x463cac], 0
jne 0x457e1d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463cac], eax
cmp dword [0x463cb4], 0
jne 0x457e41
push esp
push 0
push 0
push 0x457d30
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463cb4], eax
pop edx
ret
Function at 0x458044
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45805b
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1e0
mov eax, dword [0x45e99c]
cmp word [eax + 2], 0
jne 0x458083
mov eax, dword [0x45e99c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459d34
mov eax, dword [0x45ea40]
cmp word [eax + 2], 0
jne 0x45809d
mov eax, dword [0x45ea40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459f40
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e560]
call fcn.00424468
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x458254
mov eax, dword [0x45e8c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042483c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a604
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e8c4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cb38
test eax, eax
je 0x4581a4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408db4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb6c
test eax, eax
je 0x4581b8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x4597c0
call fcn.0041b35c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45e7d0]
cmp byte [eax], 0
jne 0x458209
mov eax, ebx
call fcn.00458398
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045a818
mov eax, ebx
call fcn.0045b37c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458249
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458618
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4586b7
cmp dword [ebx + 0x94], 0
jne 0x4586b1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4585a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4586b1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x458677
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4586b1
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414334
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458686
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4588d0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x463c94]
cmp dword [eax + 0x30], 0
je 0x458a2d
test bl, bl
jne 0x45897e
cmp dword [esi + 0x9c], 0
jne 0x458973
mov eax, esi
call fcn.0045b1f8
push eax
push 0x4587fc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x458944
mov eax, dword [0x463c94]
call fcn.0045b8d8
test al, al
je 0x458944
mov eax, dword [0x463cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x458944
push 0
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45892e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x458973
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414334
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x458953
inc dword [esi + 0x9c]
jmp 0x458a2d
cmp dword [esi + 0x9c], 0
jle 0x458a2d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x458a2d
cmp dword [esi + 0x44], 0
je 0x4589d9
mov eax, dword [0x463c94]
call fcn.0045b8d8
test al, al
je 0x4589d9
mov eax, dword [0x463cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x4589d9
push 5
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4589c3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x458a08
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414334
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4589e8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x463cb8
mov ecx, 1
mov edx, dword [0x4587dc]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x459514
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45957e
mov eax, ebx
call fcn.0045b8d8
test al, al
jne 0x45957e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45956b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45958b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x45958b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45a9fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45aa6a
mov eax, esi
call fcn.00443538
test al, al
je 0x45aa6a
mov eax, dword [ebx + 0x84]
call fcn.00443198
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45aa6a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45aa5e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443198
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043b008
jmp 0x45aa6a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045a838
pop esi
pop ebx
ret
Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4033c0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x407028]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push edi
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x36
push 0xffffffffffffffff
xor edi, edi
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push 0x4067d0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
push 1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push 0x407384
mov dword [0x40737c], eax
mov dword [0x40738c], 0x407388
mov dword [0x407388], 0x407388
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeSRWLock]
push 0x407360
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeSRWLock]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDisablePredefinedCacheEx]
push 0x4073c8
push edi
push edi
push 0x40137c
call dword [sym.imp.ntdll.dll_EtwEventRegister]
test byte [0x7ffe02f0], 0x20
jne 0x406407
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov ecx, eax
call fcn.00404190
mov esi, eax
test esi, esi
je 0x403508
push 0x90
lea eax, [esp + 0x14]
push 0
push eax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov dword [esp + 0x28], 1
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
test ecx, ecx
jne 0x406423
push eax
push 0x401370
lea eax, [esp + 0x28]
push 0x40
push eax
call fcn.00404130
add esp, 0x10
push 0x90
lea eax, [esp + 0x14]
push eax
push 0x52
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov edx, esi
call fcn.004036f0
call fcn.00403690
mov edi, eax
test edi, edi
je 0x4034f2
mov ecx, esi
call fcn.00403540
test eax, eax
je 0x40352f
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x40351e
push esi
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004057a0
mov esp, ebp
pop ebp
ret
push eax
push 0
push dword [0x40737c]
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x4034f9
push 1
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
push 1
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetProcessAffinityUpdateMode]
test eax, eax
je 0x40352f
jmp 0x403466
push ecx
push eax
push 0x401d30
lea eax, [esp + 0x2c]
push 0x40
push eax
call fcn.00404130
add esp, 0x14
jmp 0x4034bc
Function at 0x403540
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x40355e
call fcn.00404410
test eax, eax
je 0x403672
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40356b
shl eax, 0xa
push eax
jmp 0x403581
mov eax, dword fs:[0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x403587
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x40], 1
jne 0x403593
call dword [sym.imp.RPCRT4.dll_I_RpcServerDisableExceptionFilter]
cmp dword [esi + 0x44], 0
je 0x4035a8
push 1
push 0
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4035c0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 2
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4035d8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 8
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4035e4
call fcn.004059d5
cmp dword [esi + 0x58], 0
je 0x40360e
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 6
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
push 0
push 1
push 0x401a20
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_SetProtectedPolicy]
push 0
push 0
push 1
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
test byte [esi + 0x5c], 4
je 0x40363d
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x240]
mov eax, dword fs:[0x30]
or ecx, 1
mov dword [eax + 0x240], ecx
call fcn.00405ec0
test byte [esi + 0x5c], 8
je 0x403679
xor eax, eax
mov dword [ebp - 0x14], 0
or eax, 1
mov dword [ebp - 0x14], 4
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x34
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
test eax, eax
jns 0x403679
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x11fffffc]
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004039ca
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040397f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004039ba
push edi
push edx
inc ebp
pop ss
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004039ba
call 0x80a9e8e7
loopne 0x4049d8
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
Function at 0x4059d5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]

Function at 0x405e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
push 0
push 0x401440
push 0x80000002
mov esi, 0x19000
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ebb
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x401a90
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x405eb1
cmp dword [ebp - 0xc], edi
jne 0x405eb1
cmp dword [ebp - 4], edi
jne 0x405eb1
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x403010
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4595d8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x4595dc]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00403000
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4595e0]
mov edx, dword [str.r_]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x460dcc]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40309c
mov dword [0x460dc8], 0xedeb2e40
jmp 0x4030b7
cmp eax, 0x3eb
jne 0x4030b7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x460858], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x460dcc], 0x9e6
mov dword [0x460dc4], 0xf4ea3dee
jne 0x4030ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 4], esi
cmp dword [0x460dcc], 0x213
jne 0x40316a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x460dcc], 0xc
jne 0x40318e
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
lea ecx, [edi + ebx]
xor esi, ecx
cmp dword [0x460dcc], 0xb03
jne 0x4031c9
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x403070
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403200
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x460dcc]
mov ecx, dword [0x46085c]
shr eax, 3
test eax, eax
jbe 0x403288
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, ecx
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x460dcc], 0x959
jne 0x403276
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push edi
call fcn.00403010
add edi, 8
sub dword [ebp - 4], 1
jne 0x403230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40943c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458870]
jne 0x409446
repz ret
jmp fcn.0040d1b8

Function at 0x40cdea
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.00408b3b
and dword [ebp - 4], 0
cmp dword [0x45e848], 0
mov ebx, eax
jne 0x40ce9b
push 0x401bf8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cf4c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401bec
push edi
call esi
test eax, eax
je 0x40cf4c
push eax
call fcn.00408ac9
mov dword [esp], 0x401bdc
push edi
mov dword [0x45e848], eax
call esi
push eax
call fcn.00408ac9
mov dword [esp], 0x401bc8
push edi
mov dword [0x45e84c], eax
call esi
push eax
call fcn.00408ac9
mov dword [esp], 0x401bac
push edi
mov dword [0x45e850], eax
call esi
push eax
call fcn.00408ac9
pop ecx
mov dword [0x45e858], eax
test eax, eax
je 0x40ce9b
push 0x401b94
push edi
call esi
push eax
call fcn.00408ac9
pop ecx
mov dword [0x45e854], eax
mov eax, dword [0x45e854]
cmp eax, ebx
je 0x40cef3
cmp dword [0x45e858], ebx
je 0x40cef3
push eax
call fcn.00408b44
push dword [0x45e858]
mov esi, eax
call fcn.00408b44
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cef3
test edi, edi
je 0x40cef3
call esi
test eax, eax
je 0x40ceea
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ceea
test byte [ebp - 0xc], 1
jne 0x40cef3
or dword [ebp + 0x10], 0x200000
jmp 0x40cf2c
mov eax, dword [0x45e84c]
cmp eax, ebx
je 0x40cf2c
push eax
call fcn.00408b44
pop ecx
test eax, eax
je 0x40cf2c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cf2c
mov eax, dword [0x45e850]
cmp eax, ebx
je 0x40cf2c
push eax
call fcn.00408b44
pop ecx
test eax, eax
je 0x40cf2c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e848]
call fcn.00408b44
pop ecx
test eax, eax
je 0x40cf4c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cf4e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
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
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219