joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1803cbd
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x18016f0
call fcn.01803b93
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x180b090
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1805438
xor esi, esi
inc esi
mov eax, dword [0x180b08c]
cmp eax, esi
je 0x1805457
mov eax, dword [0x180b08c]
test eax, eax
jne 0x18016c6
mov dword [0x180b08c], esi
push 0x18016e8
push 0x18016dc
call fcn.01803be5
pop ecx
pop ecx
test eax, eax
jne 0x1805464
mov eax, dword [0x180b08c]
cmp eax, esi
jne 0x180167b
push 0x18016d8
push 0x18016d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x180b08c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1801688
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1817f14], ebx
jne 0x1805472
push dword [0x1817ef4]
push dword [0x1817ef8]
push dword [0x1817ef0]
call fcn.01801711
add esp, 0xc
mov dword [0x1817ec8], eax
cmp dword [0x1817ec4], ebx
jne 0x18054c4
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x1817f20], esi
jmp 0x1801657
call fcn.01803ccc
jmp 0x18015e8
cmp eax, esi
jne 0x1805447
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x180161e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180160a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1801657
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x18054de
push 0x1817f14
call fcn.018094c5
pop ecx
test eax, eax
je 0x1801694
push ebx
push 2
push ebx
call dword [0x1817f14]
jmp 0x1801694
cmp dword [0x1817f20], ebx
jne 0x18054d2
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1817ec8]
call fcn.01803fcc
ret
Function at 0x1803e1a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x1803ed0
push edi
push dword [ebp - 4]
call fcn.01801c9c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x1801c17
pop edi
cmp dword [ebp - 8], ebx
je 0x1801c6a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1801c7c
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], ebx
je 0x1801c8e
push dword [ebp - 0x14]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.0180256b
pop esi
pop ebx
leave
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x20019
push ebx
push 0x1803ee0
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
jne 0x1801c5c
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1801c5c
cmp dword [ebp - 0x10], ebx
je 0x1801c5c
mov eax, dword [ebp - 0x1c]
push edi
lea eax, [eax + eax + 2]
push eax
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x18043b2
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 8
call esi
push eax
call edi
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x18043a2
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], ebx
ja 0x1801c17
jmp 0x1801c5b
cmp eax, 0x103
jne 0x1801c50
jmp 0x1801c5b
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], ebx
push 0x68
push dword [0x180b074]
call sym.NETSH.EXE_PrintMessageFromModule
pop ecx
pop ecx
jmp 0x1801c5b
Function at 0x1806a9f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x180b058], edi
jbe 0x1806ae0
xor esi, esi
push dword [ebp + 8]
mov eax, dword [0x180b07c]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1806aea
inc ebx
add esi, 0x14
mov dword [ebp - 4], ebx
cmp ebx, dword [0x180b058]
jb 0x1806aba
mov eax, 0x490
jmp 0x1806c7b
xor esi, esi
cmp dword [0x180b054], edi
jbe 0x1806b17
mov eax, dword [0x180b080]
cmp dword [edi + eax + 0x30], ebx
jne 0x1806b09
push esi
call fcn.018069bd
dec esi
sub edi, 0x48
inc esi
add edi, 0x48
cmp esi, dword [0x180b054]
jb 0x1806af4
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1806b80
lea eax, [ebp - 8]
push eax
push 0xf003f
push edi
push 0x1803ee0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1806b63
mov ecx, dword [0x180b07c]
mov eax, ebx
imul eax, eax, 0x14
push dword [eax + ecx + 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x1806b80
push dword [ebp + 8]
push 0x3e9
push dword [0x180b074]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
mov eax, esi
jmp 0x1806c7b
mov eax, dword [0x180b07c]
mov esi, ebx
imul esi, esi, 0x14
push dword [esi + eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
mov eax, dword [0x180b07c]
and dword [esi + eax], 0
mov eax, dword [0x180b07c]
push dword [esi + eax + 4]
push 0
call edi
push eax
call ebx
mov eax, dword [0x180b07c]
and dword [esi + eax + 4], 0
mov eax, dword [0x180b058]
dec eax
imul eax, eax, 0x14
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1806be6
push 8
pop eax
jmp 0x1806c7b
push esi
push dword [0x180b07c]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [0x180b058]
sub eax, dword [ebp - 4]
dec eax
imul eax, eax, 0x14
push eax
mov eax, dword [0x180b07c]
lea eax, [esi + eax + 0x14]
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
dec dword [0x180b058]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp dword [0x180b054], ecx
jbe 0x1806c4e
mov eax, dword [0x180b080]
mov edx, dword [ebp - 4]
lea eax, [ecx + eax + 0x30]
cmp dword [eax], edx
jbe 0x1806c3d
dec dword [eax]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ecx, 0x48
cmp eax, dword [0x180b054]
jb 0x1806c2b
mov eax, dword [0x180b07c]
add esi, eax
cmp dword [esi + 8], 0
je 0x1806c64
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x180b07c]
push 0
call edi
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov dword [0x180b07c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1806d9b
Capabilities:
Persist via netsh registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x180b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0xa8], eax
cmp dword [0x180b058], ebx
jbe 0x1806df4
xor esi, esi
push dword [ebp - 0xa8]
mov eax, dword [0x180b07c]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1806ef5
inc edi
add esi, 0x14
cmp edi, dword [0x180b058]
jb 0x1806dca
push ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push 0xf003f
push ebx
push 0x1806f24
push ebx
push 0x1803ee0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1806eda
push dword [ebp - 0xa8]
call dword [sym.imp.msvcrt.dll__wcsdup]
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x1806e4a
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 8
pop eax
jmp 0x1806f10
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x2f
push edi
mov ebx, edi
call esi
pop ecx
pop ecx
test eax, eax
jne 0x1806e68
push 0x5c
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x1806e6b
lea ebx, [eax + 2]
push ebx
push 0x50
lea eax, [ebp - 0xa4]
push eax
call fcn.01801e5f
lea eax, [ebp - 0xa4]
push 0x2e
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x1806e90
xor ecx, ecx
mov word [eax], cx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1806e95
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
je 0x1806ef5
push dword [ebp - 0xa8]
push 0x3e8
push dword [0x180b074]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
jmp 0x1806f0e
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
push eax
call fcn.01801c9c
mov esi, eax
call fcn.0180256b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01801579
leave
ret 4
Function at 0x1807861
Capabilities:
Connect network resource
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x180b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x210], eax
mov eax, dword [0x1817ec0]
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp eax, ebx
je 0x18078a8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.0180227a
cmp edi, ebx
je 0x18078f4
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x18078b6
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1817ec0], eax
cmp eax, ebx
jne 0x18078ea
push 8
pop eax
jmp 0x1807a30
push edi
push esi
push eax
call fcn.01801e5f
jmp 0x18078fa
mov dword [0x1817ec0], ebx
push 0x1801784
call fcn.018073ee
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push dword [0x1817ec0]
call fcn.018039d5
mov edi, eax
cmp edi, ebx
mov esi, 0x104
jge 0x180796c
mov eax, dword [0x1817ec0]
cmp eax, ebx
jne 0x180794f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x20c]
push eax
push 0xb4
push dword [0x180b074]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
push edi
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
mov eax, dword [0x1817ec0]
cmp eax, ebx
je 0x1807a2e
cmp dword [ebp - 0x214], ebx
jne 0x180798d
cmp dword [ebp - 0x210], ebx
je 0x1807a2e
push eax
push 0x1807a44
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01801843
add esp, 0x10
push 8
pop ecx
xor eax, eax
push 0x808
push dword [ebp - 0x214]
lea edi, [ebp - 0x238]
push dword [ebp - 0x210]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x21c], ebx
call sub.MPR.dll_WNetAddConnection2W
cmp eax, ebx
jne 0x1807a25
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1817edc], eax
cmp eax, ebx
jne 0x1807a15
push 0xe
push ebx
call sym.NETSH.EXE_PrintMessageFromModule
jmp 0x1807a2c
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call fcn.01801e5f
jmp 0x1807a2e
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01801579
leave
ret 0xc
Function at 0x1807ccc
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov word [ebp - 4], ax
mov word [ebp - 2], ax
lea eax, [ebp - 0x1c]
push eax
push ebx
call edi
movzx eax, word [ebp - 0x1c]
movzx esi, word [ebp - 0x1a]
imul esi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push esi
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
lea eax, [ebp - 0x1c]
push eax
push ebx
call edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 4]
shr eax, 4
xor eax, dword [ebp - 0x14]
push esi
and eax, 0xf
xor eax, dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1807e1a
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov word [ebp - 4], ax
mov word [ebp - 2], ax
cmp dword [ebp + 0x10], eax
je 0x1807e73
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1807e79
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0x1807c89
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
pop esi
xor eax, eax
leave
ret 0xc
push dword [ebp + 0xc]
call fcn.01807ccc
xor eax, eax
inc eax
jmp 0x1807e75
Function at 0x180823b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.01801bec
mov eax, dword [0x180b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2014], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
mov esi, dword [ebp + 0xc]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
push esi
lea eax, [ebp - 0x2004]
push 0x2000
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0x10
test eax, eax
je 0x180839b
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
mov eax, dword [0x1817ee8]
mov dword [ebp - 0x2008], ecx
cmp eax, ebx
je 0x180834c
push edi
push ebx
lea edx, [ebp - 0x2010]
push edx
add ecx, 0xfffffffe
mov esi, 0x18083ac
lea edi, [ebp - 0x200c]
movsw word es:[edi], word [esi]
push ecx
lea ecx, [ebp - 0x2004]
push ecx
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1808311
push dword [0x1817ee8]
call edi
mov dword [0x1817ee8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x2010]
push eax
push 2
lea eax, [ebp - 0x200c]
push eax
push dword [0x1817ee8]
call esi
test eax, eax
jne 0x180834b
push dword [0x1817ee8]
call edi
mov dword [0x1817ee8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 0x2008]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x180838a
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push esi
push 0x2000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x2008]
mov ecx, dword [ebp - 0x2014]
mov dword [ecx], eax
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01801579
leave
ret 8
Function at 0x1118a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x1127d
cmp dword [ebp - 4], 2
jne 0x111e7
mov dword [0x14020], 0x179
mov dword [0x14024], 0x193
mov dword [0x1402c], 0x137
mov dword [0x14028], 0x1e1
mov dword [0x14030], 0x24c
leave
ret
cmp dword [ebp - 4], 1
jne 0x1123f
mov dword [0x14034], 0x174
mov dword [0x14020], 0x17a
mov dword [0x14024], 0x194
mov dword [0x1402c], 0x138
mov dword [0x14028], 0x1e3
mov dword [0x14030], 0x250
mov dword [0x14038], 0x7a
mov dword [0x1403c], 0xad
leave
ret
cmp dword [ebp - 4], 0
jne 0x112d9
mov dword [0x14020], 0x170
mov dword [0x14024], 0x189
mov dword [0x1402c], 0x12e
mov dword [0x14028], 0x1d2
mov dword [0x14030], 0x238
leave
ret
cmp dword [ebp - 8], 6
jne 0x112d9
cmp dword [ebp - 4], 1
jne 0x112d9
mov dword [0x14034], 0x16c
mov dword [0x14020], 0x18c
mov dword [0x14024], 0x1a7
mov dword [0x1402c], 0x143
mov dword [0x14028], 0x203
mov dword [0x14030], 0x275
mov dword [0x14038], 0xbe
mov dword [0x1403c], 0x105
leave
ret

Function at 0x112e0
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x14004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push esi
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jl 0x11340
mov eax, dword [0x14034]
mov ecx, dword [ebp - 0x18]
add eax, ecx
push 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_strncpy]
lea eax, [ebp - 0x14]
push 0x11fde
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 0x14
test eax, eax
je 0x1135b
add esi, 4
cmp esi, 0xffff
jb 0x11305
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00011c05
leave
ret
mov eax, esi
jmp 0x1134d

Function at 0x1503e
Capabilities:
Create device object
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00015005
pop ebp
jmp fcn.00011950
Function at 0x401360
Capabilities:
Create pipe
Query environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004092c0
mov eax, dword [0x458aac]
mov ecx, dword [0x458538]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
je 0x401487
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x458aac], 0x959
jne 0x401471
push 0
lea eax, [ebp - 0xc08]
push eax
push 0
push 0
push 0
push 0
call edi
push str.mekopid
push 0
call ebx
push 0
lea ecx, [ebp - 0x1808]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.hupetapicigilacusafudoziki
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [ebp - 0x2008]
push ecx
push 0
call esi
mov edx, dword [ebp - 4]
push edx
call fcn.004010e0
add dword [ebp - 4], 8
dec dword [ebp - 8]
jne 0x40139e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e1e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449500]
jne 0x403e28
repz ret
jmp fcn.0040735c

Function at 0x408d1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449500]
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.004053f8
and dword [ebp - 0x14], 0
cmp dword [0x44fbb0], 0
mov dword [ebp - 0x18], eax
jne 0x408dce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408e76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408e76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44fbb0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44fbb4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44fbb8], eax
call edi
push eax
call esi
mov dword [0x44fbc0], eax
test eax, eax
je 0x408dce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44fbbc], eax
mov eax, dword [0x44fbbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408e27
cmp dword [0x44fbc0], ecx
je 0x408e27
push eax
call esi
push dword [0x44fbc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408e27
test ebx, ebx
je 0x408e27
call edi
test eax, eax
je 0x408e1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408e1e
test byte [ebp - 8], 1
jne 0x408e27
or dword [ebp + 0x10], 0x200000
jmp 0x408e5a
mov eax, dword [0x44fbb4]
cmp eax, dword [ebp - 0x18]
je 0x408e5a
push eax
call esi
test eax, eax
je 0x408e5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408e5a
mov eax, dword [0x44fbb8]
cmp eax, dword [ebp - 0x18]
je 0x408e5a
push eax
call esi
test eax, eax
je 0x408e5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44fbb0]
call esi
test eax, eax
je 0x408e76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408e78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e1e
leave
ret
Function at 0x40489f
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44fa38], 2
push esi
push edi
mov edi, eax
mov esi, ecx
jl 0x4048b3
call fcn.0040372c
mov ecx, esi
call fcn.0040487c
xor eax, eax
mov edx, dword [eax + 0x42a498]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x4048bc
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4