joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800765c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov r9, qword [0x1800b1d38]
lea rax, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x180076760]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800b1d28], rax
test rax, rax
jne 0x180076672
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x180076617
movzx ebx, ax
or ebx, 0x80070000
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180076629
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x38], eax
lea rax, [0x18001d4f8]
mov r9d, 0x58
mov qword [rsp + 0x30], rax
lea rax, [0x180001ef0]
lea r8, [0x18001d520]
mov qword [rsp + 0x28], rax
lea rdx, [0x18001d3b0]
lea ecx, [r9 - 0x57]
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
mov eax, ebx
add rsp, 0x40
pop rbx
ret
lea rcx, [0x18001d5a0]
mov qword [rsp + 0x30], rax
mov r9d, 0x59
mov qword [rsp + 0x28], rcx
lea r8, [0x18001d520]
lea rdx, [0x18001d3b0]
lea ecx, [r9 - 0x58]
mov dword [rsp + 0x20], 3
call sym.StorageClientLib.dll_qriteLog
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x180076af0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, 1
lock xadd dword [0x1800b1d30], ebx
lea rax, [0x18001da10]
inc ebx
lea r8, [0x18001da60]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rdx, [0x18001d3b0]
mov r9d, SHAnsiToUnicode
mov ecx, 1
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
cmp ebx, 0x80
jle 0x180076ba2
lea rax, [0x18001daf0]
mov dword [rsp + 0x30], 0x80
lea r8, [0x18001da60]
mov qword [rsp + 0x28], rax
lea rdx, [0x18001d3b0]
mov r9d, 0xd8
mov ecx, 1
mov dword [rsp + 0x20], 5
call sym.StorageClientLib.dll_qriteLog
mov ecx, 0x2bf20
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xfec
mov rcx, rax
add rsp, 0x40
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x40
pop rbx
ret
Function at 0x18007ee00
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x208
mov rax, qword [0x1800b0070]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
test edx, edx
je 0x18007ef69
dec edx
jne 0x18007ef6f
xor eax, eax
xorps xmm0, xmm0
xor ecx, ecx
mov dword [0x1800b1d50], 1
mov qword [0x1800b1d58], rax
mov qword [0x1800b1d60], rax
movdqa xmmword [0x1800b1d70], xmm0
mov qword [0x1800b1d68], rax
mov qword [0x1800b1d80], rax
mov dword [0x1800b1d88], eax
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
mov qword [0x1800b1d90], rax
test rax, rax
jne 0x18007eeb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x17
lea r8, [0x1800222b0]
mov dword [rsp + 0x30], eax
lea rax, [0x180022250]
lea rdx, [0x1800222c0]
mov qword [rsp + 0x28], rax
lea ecx, [r9 - 0x16]
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
jmp 0x18007eeba
mov qword [0x1800b1d58], rax
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18007ef09
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 0x21
lea r8, [0x1800222b0]
mov dword [rsp + 0x30], eax
lea rax, [0x180022330]
lea rdx, [0x1800222c0]
mov qword [rsp + 0x28], rax
lea ecx, [r9 - 0x20]
mov dword [rsp + 0x20], 3
call sym.StorageClientLib.dll_qriteLog
mov r9d, 4
lea r8, [rsp + 0x40]
xor ecx, ecx
lea edx, [r9 + 0x4c]
mov dword [rsp + 0x40], 0x200
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x18007ef6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x28
lea r8, [0x1800222b0]
mov dword [rsp + 0x30], eax
lea rax, [0x180022380]
lea rdx, [0x1800222c0]
mov qword [rsp + 0x28], rax
lea ecx, [r9 - 0x27]
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
jmp 0x18007ef6f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.18003b8c0
add rsp, 0x208
ret
Function at 0x180083900
Capabilities:
Create process memory minidump
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x1800b0070]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea rcx, [rsp + 0x52]
xor ebp, ebp
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x50], bp
call sub.msvcrt.dll_memset
mov r8, qword [0x1800b1d10]
test r8, r8
je 0x1800839b9
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bp
jne 0x180083955
test rax, rax
je 0x1800839b9
lea rax, [rsp + 0x50]
mov ebx, 0x400
lea rcx, [rsp + 0x50]
sub r8, rax
mov edx, ebx
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x1800839ab
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1800839ab
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x180083980
sub rcx, 2
mov word [rcx], bp
jmp 0x1800839cb
test rdx, rdx
jne 0x1800839b4
sub rcx, 2
mov word [rcx], bp
jmp 0x1800839cb
mov ebx, 0x400
lea rdx, [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rbx
lea rax, [rsp + 0x50]
cmp word [rax], bp
je 0x1800839e3
add rax, 2
dec rcx
jne 0x1800839d3
jmp 0x180083a3c
test rcx, rcx
je 0x180083a3c
mov rdx, rbx
lea rax, [rsp + 0x50]
sub rdx, rcx
lea rax, [rax + rdx*2]
sub rbx, rdx
je 0x180083a35
lea rcx, [rdx + 0x7ffffbfe]
lea r8, [0x1800269a0]
add rcx, rbx
sub r8, rax
test rcx, rcx
je 0x180083a30
movzx edx, word [r8 + rax]
test dx, dx
je 0x180083a30
mov word [rax], dx
add rax, 2
dec rcx
dec rbx
jne 0x180083a10
jmp 0x180083a35
test rbx, rbx
jne 0x180083a39
sub rax, 2
mov word [rax], bp
lea rax, [rsp + 0x50]
lea r8, [0x180026a50]
lea rdx, [0x180026610]
mov qword [rsp + 0x30], rax
lea rax, [0x1800269e0]
mov r9d, 0x92
mov qword [rsp + 0x28], rax
mov ecx, 1
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180083af5
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x44], rsi
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], rbp
mov rcx, rax
lea rax, [rsp + 0x40]
mov r9d, 0x1906
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.18003b8c0
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800956b0
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x60
cmp qword [rcx + 0x18], 0
mov ebx, r8d
je 0x180095700
cmp qword [rcx + 0x40], 0
jne 0x1800956cc
xor r9d, r9d
jmp 0x1800956dd
cmp qword [rcx + 0x48], 8
jb 0x1800956d9
mov r9, qword [rcx + 0x30]
jmp 0x1800956dd
lea r9, [rcx + 0x30]
cmp qword [rcx + 0x20], 8
jb 0x1800956f2
mov r8, qword [rcx + 8]
mov edx, 3
jmp 0x1800957c2
lea r8, [rcx + 8]
mov edx, 3
jmp 0x1800957c2
cmp byte [rcx + 0xf0], 0
je 0x1800957ba
lea rcx, [rsp + 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x18009577f
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x18009574c
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x180095730
test rax, rax
je 0x18009574c
mov r9, qword [rsp + 0x58]
mov edx, 3
jmp 0x1800957c2
mov r9d, 0x27
lea rax, [0x18002e320]
lea r8, [0x18002e3f0]
mov qword [rsp + 0x28], rax
lea ecx, [r9 - 0x26]
lea rdx, [0x18002e440]
mov dword [rsp + 0x20], 2
call sym.StorageClientLib.dll_qriteLog
jmp 0x1800957ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x2c
lea r8, [0x18002e3f0]
mov dword [rsp + 0x30], eax
lea rax, [0x18002e4c0]
lea rdx, [0x18002e440]
mov qword [rsp + 0x28], rax
lea ecx, [r9 - 0x2b]
mov dword [rsp + 0x20], 2
call sym.StorageClientLib.dll_qriteLog
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x18001dbf0]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
add rsp, 0x60
pop rbx
ret
Function at 0x180097bc0
Capabilities:
Receive http response

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1800b0070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r9
mov r15, r8
mov rdi, rdx
mov r14, rcx
test r9, r9
jne 0x180097bfc
lea rax, [0x18000b290]
mov r9d, 0x27f
jmp 0x180097c0e
test rdx, rdx
jne 0x180097c4d
lea rax, [0x18000a698]
mov r9d, 0x280
mov ebx, 0x80070057
lea r8, [0x1800307d0]
lea rdx, [0x18002eb30]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
lea rax, [0x180001ef0]
mov qword [rsp + 0x28], rax
mov ecx, 1
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
jmp 0x180097de5
mov rcx, qword [rdx + 0x80]
xor ebx, ebx
mov r10d, ebx
mov esi, ebx
test rcx, rcx
jne 0x180097c64
mov eax, ebx
jmp 0x180097c72
mov rax, qword [rdx + 0x88]
sub rax, rcx
sar rax, 3
movsxd rdx, dword [rdx + 0x9c]
cmp edx, eax
jge 0x180097cb9
test rcx, rcx
je 0x180097e01
mov rax, qword [rdi + 0x88]
sub rax, rcx
sar rax, 3
cmp rax, rdx
jbe 0x180097e01
mov rcx, qword [rcx + rdx*8]
lea eax, [rdx + 1]
mov r10, qword [rcx]
mov esi, dword [rcx + 8]
mov dword [rdi + 0x9c], eax
mov eax, dword [rcx + 8]
mov dword [rdi + 0xa0], eax
test r10, r10
jne 0x180097d6d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor edx, edx
mov rcx, rbp
mov qword [rdi + 0x100], rax
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180097de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x2f00
jne 0x180097d06
lea rcx, [r14 + 0x50]
mov rdx, rbp
mov dword [rsp + 0x30], ebx
call fcn.1800957e0
jmp 0x180097de5
mov rax, qword [rdi + 0x10]
lea r8, [0x1800307d0]
lea rdx, [0x18002eb30]
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x18]
mov r9d, 0x299
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 8]
mov ecx, 1
mov qword [rsp + 0x38], rax
lea rax, [0x180030830]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_qriteLog
test esi, esi
jg 0x180097d62
mov ebx, esi
jmp 0x180097de5
movzx ebx, si
or ebx, 0x80070000
jmp 0x180097de5
xor r9d, r9d
mov r8d, esi
mov rdx, r10
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x180097de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], esi
lea r8, [0x1800307d0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x58], eax
lea rax, [0x180030900]
mov qword [rsp + 0x28], rax
lea rdx, [0x18002eb30]
mov r9d, 0x2a7
mov ecx, 1
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x50], 4
call sym.StorageClientLib.dll_qriteLog
mov r10, qword [r14]
lea r9, [rsp + 0x50]
mov r8, r15
mov rdx, rdi
mov rcx, r14
call qword [r10 + 0x40]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18003b8c0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.180089c40
int3
Function at 0x180099b2d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x180099ce3
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
cmp ax, ax
je 0x180099d2b
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp di, di
je 0x180099d12
mov dword [rsp + 8], ecx
sub rsp, 0xa8
jmp 0x180099cf0
mov qword [rsp + 0x60], 0
mov rax, qword gs:[0x60]
cmp al, al
je 0x180099cb7
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x180099ca9
Function at 0x140003200
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400042e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400042e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003270
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400033a0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400032bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003345
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400032a0
mov rcx, rbx
call fcn.140003cc0
mov rdi, rax
test rax, rax
je 0x1400033c2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003e00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400033a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000333e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003350
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000333e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003200
nop dword [rax]
xor esi, esi
jmp 0x1400032c8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003200
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003200
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003930
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000398c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003983
test rsi, rsi
je 0x140003983
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003968
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003cc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003ce0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003ce8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003ce0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003d3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003d34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003ce0
add rax, 0x28
cmp rax, r9
jne 0x140003d20
xor eax, eax
ret

Function at 0x140003d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006990]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003d5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003d68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003d5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006990]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003e1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003e28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001000
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get ntdll base address

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x180016008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
xor r15d, r15d
cmp qword [rsi + 0x30], 0
je 0x1800011d8
lea rdi, [0x18000d2cc]
mov rcx, qword [rsi + 0x60]
mov r8d, 9
mov rdx, rdi
call fcn.180003544
test eax, eax
je 0x180001065
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
jne 0x180001040
jmp 0x1800011d8
mov r14, qword [rsi + 0x30]
movsxd rax, dword [r14 + 0x3c]
movzx esi, word [rax + r14 + 6]
test rsi, rsi
je 0x1800011d8
movzx ecx, word [rax + r14 + 0x14]
add rax, r14
lea rdi, [rcx + rax]
add rdi, 0x18
lea rbx, [0x18000d2e0]
nop word cs:[rax + rax]
nop
mov rcx, rdi
mov rdx, rbx
call fcn.180003730
test eax, eax
je 0x1800010be
add rdi, 0x28
add rsi, 0xffffffffffffffff
jne 0x1800010a0
jmp 0x1800011d8
mov eax, dword [rdi + 0xc]
add rax, r14
je 0x1800011d8
mov ecx, dword [rdi + 8]
cmp ecx, 0x50
jb 0x1800011d8
add ecx, 0xffffffb0
je 0x1800011d8
mov edx, ecx
xor ecx, ecx
jmp 0x180001100
add rcx, 1
xor r15d, r15d
cmp rdx, rcx
je 0x1800011d8
cmp dword [rax + rcx], 0xb8d18b4c
jne 0x1800010f0
cmp dword [rax + rcx + 0x10], 0xb8d18b4c
jne 0x1800010f0
cmp dword [rax + rcx + 0x20], 0xb8d18b4c
jne 0x1800010f0
cmp dword [rax + rcx + 0x30], 0xb8d18b4c
jne 0x1800010f0
cmp dword [rax + rcx + 0x40], 0xb8d18b4c
jne 0x1800010f0
mov esi, dword [rax + rcx + 0x44]
test esi, esi
je 0x1800011d5
mov edi, dword [rax + rcx + 0x34]
xor r15d, r15d
mov edx, pe_nt_image_headers64
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1800011d8
lea rcx, [rax + 0x80]
mov edx, 0xb8d18b4c
mov qword [rax + 0x80], rdx
mov dword [rax + 0x87], 0xc3050f00
mov dword [rax + 0x84], edi
mov qword [0x1800169f0], rcx
mov rcx, rax
add rcx, 0xc0
mov qword [rax + 0xc0], rdx
mov dword [rax + 0xc7], 0xc3050f00
mov dword [rax + 0xc4], esi
mov qword [0x1800169f8], rcx
lea r9, [rsp + 0x24]
mov edx, pe_nt_image_headers64
mov rcx, rax
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r15d, 1
jmp 0x1800011d8
xor r15d, r15d
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180001600
mov eax, r15d
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140aaa1b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140aaa33f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140aaa1e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aaa1cf
add dl, dl
jne 0x140aaa1f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aaa256
xor eax, eax
add dl, dl
jne 0x140aaa205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aaa30d
add dl, dl
jne 0x140aaa216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aaa223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aaa230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aaa23d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140aaa24a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140aaa1de
mov eax, 1
add dl, dl
jne 0x140aaa266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aaa273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aaa25b
sub eax, ebx
mov ebx, 1
jne 0x140aaa2ac
mov ecx, 1
add dl, dl
jne 0x140aaa28e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aaa29b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aaa283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aaa1de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140aaa2c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aaa2d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aaa2bd
cmp eax, 0x7d00
jae 0x140aaa2fb
cmp eax, 0x500
jb 0x140aaa2f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aaa1de
cmp eax, 0x7f
ja 0x140aaa2fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aaa1de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140aaa332
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140aaa1de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14009a58c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test rax, rax
jne 0x14009a5ba
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x14009a60f
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add eax, ecx
je 0x14009a60f
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x14009a601
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14009a620
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x14009a708
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x14009a708
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x14009a6a7
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x14009a69b
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x14009a6e0
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14009a686
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x14009a708
cmp dword [0x1400e6e28], 0
jne 0x14009a6e9
mov dword [0x1400e6e28], 1
test eax, eax
js 0x14009a6d4
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.14009a58c
jmp 0x14009a6eb
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x14009a6b1
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
test eax, eax
jne 0x14009a70e
lea ecx, [rax + 0x19]
int 0x29
jmp 0x14009a70e
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret