joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030020
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r10, [r8 + 0x10]
mov r11, qword [r8 + 0x20]
mov rdi, r8
mov r15, rdx
mov rsi, rcx
jb 0x140030056
mov r10, qword [r8 + 0x10]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x140030094
movabs rcx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r11
jb 0x140030080
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x18]
and rdx, r9
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], rdi
jne 0x1400300d4
cmp rax, rdi
jne 0x1400300ca
mov rax, qword [rsi + 8]
mov qword [rcx], rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x1400300df
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x1400300df
cmp rax, rdi
jne 0x1400300df
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [rsi + 0x10]
call fcn.1400198d0
mov edx, 0x50
mov rcx, rdi
call fcn.14003f61c
mov rsi, qword [rsp + 0x38]
mov rax, r15
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov qword [r15], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r15
ret

Function at 0x140030700
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rcx], rdx
mov rbx, rcx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], r8
mov byte [rcx + 0x40], 0
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x140031920]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140031b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
sub rsp, 0x460
mov r14, rcx
mov qword [rax + 0x10], rbx
add rcx, 8
movaps xmmword [rax - 0x38], xmm6
call fcn.140010b60
mov rcx, qword [r14 + 0xa0]
call fcn.1400337a0
cmp qword [r14 + 0x58], 8
lea rcx, [r14 + 0x40]
movaps xmm6, xmm0
jb 0x140031b3f
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x140031b62
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebp, ebp
jmp 0x140031ce8
xor ebp, ebp
lea r9, [rsp + 0x480]
lea r8, [0x140033bf0]
mov qword [rsp + 0x480], rbp
mov rcx, rbx
lea edx, [rbp + 0xe]
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov rdx, qword [rsp + 0x480]
mov rcx, rbx
test rdx, rdx
jne 0x140031ba2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031ce8
mov r8d, 0xe
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
test rax, rax
jne 0x140031bc1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031ce8
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140031bdd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031ce8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x140031bf9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031ce8
mov r9d, 0x100
mov qword [rsp + 0x458], r12
mov r8d, r9d
mov dword [rsp + 0x20], ebp
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx edx, ax
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
mov rcx, rbx
test rax, rax
jne 0x140031c44
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031ce0
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140031c60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031ce0
mov rcx, rax
mov qword [rsp + 0x450], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rcx, rbx
test rax, rax
jne 0x140031c84
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140031cd8
mulss xmm6, dword [0x140069a8c]
mov rdx, r12
mov qword [rsp + 0x490], rsi
cvttss2si esi, xmm6
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebp
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], esi
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x490]
mov r15, qword [rsp + 0x450]
mov r12, qword [rsp + 0x458]
movaps xmm6, xmmword [rsp + 0x440]
lea rax, [r14 + 0x80]
cmp qword [rax + 0x18], 8
mov rbx, qword [rsp + 0x488]
jb 0x140031d09
mov rax, qword [rax]
cmp qword [r14 + 0x78], 8
lea r9, [r14 + 0x60]
jb 0x140031d17
mov r9, qword [r9]
lea r8, str._s____s
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.140014770
mov rcx, qword [r14 + 0xa0]
lea r9, [rsp + 0x40]
mov r8, rbp
mov edx, 0x501
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [r14 + 8]
call fcn.140010b70
add rsp, 0x460
pop r14
pop rdi
pop rbp
ret
Function at 0x140032530
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13, rcx
mov r12, rdx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x54]
xor edx, edx
mov eax, 0x40000000
xor edi, edi
div rsi
mov r14d, edi
lea ebp, [rdi + 1]
mov r15, rax
shl r15, 2
test r15, r15
je 0x14003260a
mov qword [rsp + 0xb0], rbx
nop dword [rax]
mov rdx, rdi
lea r8, [rsp + 0x20]
imul rdx, rsi
mov r9d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor edx, edx
test rax, rax
je 0x1400325ef
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400325ef
div rsi
cmp dword [rsp + 0x40], 0x1000
mov rbx, rax
jne 0x1400325fa
mov r8, qword [rsp + 0x28]
cmp r8, r14
jbe 0x1400325fa
mov r9d, ebp
mov rdx, r12
mov rcx, r13
mov r14, r8
call fcn.140032190
test al, al
je 0x1400325fa
inc ebp
jmp 0x1400325fa
mov eax, 0x10000
div rsi
mov rbx, rax
add rdi, rbx
cmp rdi, r15
jb 0x140032590
mov rbx, qword [rsp + 0xb0]
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140032630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x1400637b8]
call fcn.14003a530
lea rdx, str.Context:_r_n
mov rcx, rdi
call fcn.14003a530
mov rax, qword [rbx + 0x78]
lea rdx, str.RDI:____0x_016llx__RSI:_0x_016llx__RAX:___0x_016llx_r_n
mov r9, qword [rbx + 0xa8]
mov rcx, rdi
mov r8, qword [rbx + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.14003a530
mov rax, qword [rbx + 0x88]
lea rdx, str.RBX:____0x_016llx__RCX:_0x_016llx__RDX:___0x_016llx_r_n
mov r9, qword [rbx + 0x80]
mov rcx, rdi
mov r8, qword [rbx + 0x90]
mov qword [rsp + 0x20], rax
call fcn.14003a530
movzx eax, word [rbx + 0x38]
lea rdx, str.RIP:____0x_016llx__RBP:_0x_016llx__SegCs:_0x_016llx_r_n
mov r9, qword [rbx + 0xa0]
mov rcx, rdi
mov r8, qword [rbx + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.14003a530
movzx eax, word [rbx + 0x42]
lea rdx, str.EFlags:_0x_016llx__RSP:_0x_016llx__SegSs:_0x_016llx_r_n
mov r9, qword [rbx + 0x98]
mov rcx, rdi
mov r8d, dword [rbx + 0x44]
mov dword [rsp + 0x20], eax
call fcn.14003a530
mov rax, qword [rbx + 0xc8]
lea rdx, str.R8:_____0x_016llx__R9:__0x_016llx__R10:___0x_016llx_r_n
mov r9, qword [rbx + 0xc0]
mov rcx, rdi
mov r8, qword [rbx + 0xb8]
mov qword [rsp + 0x20], rax
call fcn.14003a530
mov rax, qword [rbx + 0xe0]
lea rdx, str.R11:____0x_016llx__R12:_0x_016llx__R13:___0x_016llx_r_n
mov r9, qword [rbx + 0xd8]
mov rcx, rdi
mov r8, qword [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call fcn.14003a530
mov r9, qword [rbx + 0xf0]
lea rdx, str.R14:____0x_016llx__R15:_0x_016llx_r_n
mov r8, qword [rbx + 0xe8]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14003a530
Function at 0x1400351e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov ebx, r14d
test r8, r8
je 0x14003525e
mov r15d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
mov dword [rsp + 0x58], r14d
sub rax, rbx
mov qword [rsp + 0x20], r14
cmp rax, r15
lea r9, [rsp + 0x58]
mov rdx, rdi
mov rcx, rbp
cmova eax, r15d
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140035279
mov eax, dword [rsp + 0x58]
add rbx, rax
add rdi, rax
cmp rbx, rsi
jb 0x140035220
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
xor al, al
jmp 0x140035260
Function at 0x140036c40
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rcx
je 0x140036d70
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi]
mov byte [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Kernel32.dll
mov qword [rdi], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.CancelSynchronousIo
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140036d05
mov rcx, qword [rdi + 8]
call rbx
test eax, eax
jne 0x140036cdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140036cdb
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140036cdb
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140036ca3
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x30]
jmp 0x140036d55
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140036d33
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x38]
xor ebx, ebx
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x38]
jmp 0x140036d55
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14003a4d0
Capabilities:
Write file on windows

Disassembly:
cmp rcx, 0xffffffffffffffff
je 0x14003a524
push rbx
sub rsp, 0x30
cmp dword [0x1400882a8], 0
mov rbx, rcx
jle 0x14003a51f
lea rcx, [0x1400882d0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x1400882d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x1400882a8], 0
add rsp, 0x30
pop rbx
ret

Function at 0x14003a530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x60
lea rax, [rcx - 1]
mov r8, rdx
mov rbx, rcx
cmp rax, 0xfffffffffffffffd
ja 0x14003a5f7
mov eax, dword [0x1400882a8]
mov qword [rsp + 0x58], rdi
lea rdi, [0x1400882d0]
cmp eax, 0x1c00
jle 0x14003a5a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x78]
xor eax, eax
mov dword [0x1400882a8], eax
cdqe
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], r9
mov edx, 0x2000
mov qword [rsp + 0x28], r8
sub rdx, rax
xor r9d, r9d
mov qword [rsp + 0x40], 0
lea rcx, [rax + rdi]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
call fcn.140036d80
test eax, eax
js 0x14003a5f2
mov eax, dword [rsp + 0x40]
sub eax, edi
mov dword [0x1400882a8], eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop rbx
ret

Function at 0x14003aef0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14003af1a
mov edx, eax
lea rcx, str.CoInitializeEx_failed_with_code_0x_0x_n
call fcn.140001f50
mov eax, 1
add rsp, 0x38
ret
mov ecx, 3
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x140033d30]
call fcn.14004a418
mov edx, 2
mov ecx, edx
call fcn.140045d80
lea rdx, [0x1400314c0]
mov ecx, 0x16
call fcn.14004df64
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rcx, qword [str.__console]
lea rdx, [rsp + 0x20]
mov r8, rax
mov rbx, rax
call fcn.14001f710
test al, al
je 0x14003af8f
call fcn.14001e9d0
mov rcx, qword [str.__wait_for_debugger]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.14001f710
test al, al
je 0x14003afac
call fcn.140020dc0
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, str.__attach
call fcn.14001f710
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
test al, al
je 0x14003aff8
mov qword [rsp + 0x30], rdi
call fcn.14001ad70
mov edi, eax
test eax, eax
js 0x14003afe7
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
call fcn.140035e10
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
call fcn.140035730
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x14004419c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x1400718c0]
xor ecx, ecx
lea r8, [0x1400718b8]
lea rdx, str.FlsAlloc
call fcn.140043fc4
mov rbx, rax
test rax, rax
je 0x1400441dc
mov rcx, rax
call fcn.140040304
mov rcx, rdi
call rbx
jmp 0x1400441e2
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140044244
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400718d0]
mov ecx, 2
lea r8, [0x1400718c8]
lea rdx, str.FlsGetValue
call fcn.140043fc4
mov rdi, rax
test rax, rax
je 0x140044285
mov rcx, rax
call fcn.140040304
mov ecx, ebx
call rdi
jmp 0x14004428d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140044298
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400718d8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400718d0]
call fcn.140043fc4
mov rsi, rax
test rax, rax
je 0x1400442e4
mov rcx, rax
call fcn.140040304
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400442ef
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140010ed0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140010f27
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140010f69
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010f00
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.14001dc30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x140010f7a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140010f50
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140010f69
mov rcx, rdi
cmp eax, 1
je 0x140010f95
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140010ee0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x140012770
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
xor edi, edi
mov rbx, r9
lea ecx, [rdi + 0x20]
call fcn.14001b888
mov rsi, rax
lea r8, [0x140011000]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rax + 9], edi
mov word [rax + 0xd], di
mov byte [rax + 0xf], dil
mov qword [rax], rbp
mov qword [rax + 0x10], rbx
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov byte [rsi + 8], 1
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14001281a
cmp byte [rsp + 0x78], dil
je 0x14001282f
lea rcx, [rbp + 0xa0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x14001280b
mov eax, dword [rsp + 0x80]
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x14001282f
lea r8, [rsp + 0x80]
call fcn.1400128d0
jmp 0x14001282f
mov edx, 0x20
mov rcx, rsi
call fcn.14001b8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140012a60
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x140012a7e
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012ac7
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140012b09
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012aa0
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.14001dc30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x140012b1c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140012af0
xor eax, eax
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.140003950
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x140013580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140013719
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140013719
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140013719
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140013719
mov r14d, eax
mov ecx, eax
call fcn.14001b8cc
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.14001d590
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.14001b8cc
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.14001dc30
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.14001d590
mov rdx, rsi
mov rcx, rbx
call fcn.140013900
mov rcx, rsi
test al, al
jne 0x14001366a
call fcn.14001b8c4
mov rcx, rdi
call fcn.14001b8c4
xor al, al
jmp 0x140013719
call fcn.14001b8c4
mov r14d, dword [rdi]
add r14, 4
add r14, rdi
movzx eax, byte [r14]
mov qword [rbx + 0x28], rax
movzx eax, byte [r14]
test al, al
je 0x1400136f8
mov esi, eax
lea rcx, [rax + 1]
call fcn.14001b8cc
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.14001dc30
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.14001d590
movzx eax, byte [r14]
add r14, rax
mov eax, dword [r14 + 1]
mov qword [rbx + 0x38], rax
mov r15d, dword [r14 + 1]
mov ecx, r15d
call fcn.14001b8cc
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14001dc30
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.14001d590
mov rcx, rdi
call fcn.14001b8c4
mov rcx, qword [rbx + 0x18]
call fcn.1400130b0
mov rcx, qword [rbx + 0x20]
call fcn.1400130b0
nop
mov al, 1
jmp 0x140013719
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x140014960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x140014a9d
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1400149b7
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140014a86
lea rdx, [rsp + 0x90]
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x14004c060]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400149f1
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x140014a37
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014a47
add ebx, dword [rsp + 0x30]
jmp 0x140014a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140014a58
cmp ebx, edi
je 0x140014a5d
jmp 0x140014a10
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x140014a78
mov rcx, r13
call fcn.14001b8c4
test r14, r14
je 0x140014a86
mov rcx, r14
call fcn.14001b8c4
nop
jmp 0x140014a94
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret