joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800296a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18003d040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1800296ef
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18003dcc0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18002972d
cmp rsi, r14
jb 0x180029725
cmp rsi, r15
jae 0x180029725
cmp qword [rsi + 8], 0
jne 0x1800298f7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180029710
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800297c2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800297b9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800297b9
cmp dword [rsp + 0x40], 0x10000
je 0x18002983b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800297b9
sub rbx, rbp
cmp rbx, r14
jae 0x180029780
test rsi, rsi
jne 0x1800298a0
cmp rdi, r15
ja 0x1800298df
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800298df
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800298df
cmp dword [rsp + 0x40], 0x10000
je 0x180029871
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800297f2
jmp 0x1800298df
test rbx, rbx
je 0x1800297b9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800298a0
cmp rbx, r14
jae 0x180029760
jmp 0x1800297c2
test rdi, rdi
je 0x1800298df
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800298a0
cmp rdi, r15
jbe 0x1800297d0
jmp 0x1800298df
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800298b0
mov rax, qword [0x18003dcc0]
mov qword [rsi], rax
mov qword [0x18003dcc0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002bad0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18002a290
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18003d040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002a3bb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18002a3b2
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18002a394
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18002a394
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18002a394
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18002a352
mov rcx, qword [0x18003db08]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18002a3b2
jmp 0x18002a387
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18002a387
mov rcx, qword [0x18003db08]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18002a3b2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18002a300
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18002a415
cmp dword [rbx + 0xc], esi
jbe 0x18002a415
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002a40e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18002a0e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18002a3d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002bad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18002a440
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18003d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18003dcb0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18002a4b3
mov eax, 0xa
jmp 0x18002a546
test esi, esi
je 0x18002a4d5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18002a4f8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18002a4f8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18002a4f1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18002a4f8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002bad0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18002a570
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18003dcbc]
mov ebx, edi
test ecx, ecx
je 0x18002a6ad
mov rax, qword [0x18003dcb0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18002a5c8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002a5a0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18002a6ad
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18002a290
mov r8d, dword [0x18003dcbc]
cmp ebx, r8d
jae 0x18002a638
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18003dcb0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18002a631
mov edx, esi
mov ecx, ebx
call fcn.18002a440
mov edi, eax
test eax, eax
jne 0x18002a638
mov r8d, dword [0x18003dcbc]
inc ebx
cmp ebx, r8d
jb 0x18002a600
cmp qword [rsp + 0x20], 0
je 0x18002a6ad
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002a699
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002a68a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18002a660
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003db08]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18002aa20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18003db00], ebp
je 0x18002aa77
cmp rbx, 0x20
jae 0x18002aa60
xor ecx, ecx
jmp 0x18002aa62
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18003db00], ebp
jne 0x18002aa56
cmp qword [0x18003db08], r15
je 0x18002ab73
test rdi, rdi
jne 0x18002aa97
mov ecx, esi
call fcn.18002a570
mov ebp, eax
jmp 0x18002ab78
mov ecx, dword [0x18003dcbc]
mov ebx, r15d
test ecx, ecx
je 0x18002aabf
mov r8, qword [0x18003dcb0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18002aac9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002aab0
mov ebp, 4
jmp 0x18002ab78
cmp ebx, 0xffffffff
je 0x18002aabf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18002ab6a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18002a290
mov edx, esi
mov ecx, ebx
call fcn.18002a440
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18002ab78
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002ab54
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002ab4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18002ab20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003db08]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002ab78
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18002ab78
mov ebp, 2
xchg dword [0x18003db00], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18002b9d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x18002ba12
cmp edx, 1
jne 0x18002ba3c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x18002b7e0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x18003dc00], 0
je 0x18002ba3c
call fcn.18002aba0
mov rcx, qword [0x18003dbf8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x18003dbf8], rax
mov dword [0x18003dc00], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140132845
Capabilities:
Execute syscall

Disassembly:
add dword [rax], eax
add byte [rsi - 1], ah
pop rsi
inc edi
test dword [rax], esi
add dword [rax], eax
add dh, dh
div dh
test bh, 0x85
add dword [rax], r8d
add byte [rdi - 1], ch
ja 0x140132860
inc edi
test dword [rdx + 1], ecx
add byte [rax], al
jp 0x140132868
jmp qword [rsi - 1]
jmp qword [rsi + 0x66]
Function at 0x140dc7108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140dc728f
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 0x140dc7139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dc711f
add dl, dl
jne 0x140dc7146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dc71a6
xor eax, eax
add dl, dl
jne 0x140dc7155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dc725d
add dl, dl
jne 0x140dc7166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc7173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc7180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc718d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140dc719a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140dc712e
mov eax, 1
add dl, dl
jne 0x140dc71b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dc71c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dc71ab
sub eax, ebx
mov ebx, 1
jne 0x140dc71fc
mov ecx, 1
add dl, dl
jne 0x140dc71de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140dc71eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dc71d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dc712e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140dc7218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140dc7225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dc720d
cmp eax, 0x7d00
jae 0x140dc724b
cmp eax, 0x500
jb 0x140dc7246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dc712e
cmp eax, 0x7f
ja 0x140dc724e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dc712e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140dc7282
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 0x140dc712e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
sub rsp, 0x118
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x28], 0
lea rdx, str.RtlCompareUnicodeString
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
lea rdx, str.RtlCreateUnicodeString
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.RtlAllocateHeap
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
lea rdx, str.NtGetContextThread
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
lea rdx, str.RtlFreeHeap
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
lea rdx, str.NtContinue
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
lea rdx, str.NtCreateSection
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, str.NtUnmapViewOfSection
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.NtOpenSection
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rdx, str.NtMapViewOfSection
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rdx, str.NtClose
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea rdx, str.NtQueryObject
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
lea rdx, str.KnownDlls
lea rcx, [rsp + 0xc8]
call qword [rsp + 0x48]
lea rdx, str.KnownDlls32
lea rcx, [rsp + 0xd8]
call qword [rsp + 0x48]
lea rdx, [0x140011458]
lea rcx, [rsp + 0xe8]
call qword [rsp + 0x48]
lea rdx, section..data
lea rcx, [rsp + 0x40]
call fcn.140001a80
test rax, rax
jne 0x140001f27
mov eax, 0xffffffff
jmp 0x140001fb1
mov byte [rsp + 0xa0], 0
lea rdx, [0x140001100]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call section..text
lea rcx, str.fakedll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
cmp dword [rsp + 0xc0], 0
jne 0x140001faf
call fcn.140001fc0
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
call qword [rsp + 0x38]
xor eax, eax
add rsp, 0x118
ret

Function at 0x140006a2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006828
Function at 0x140009aec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140009b1c
xor eax, eax
jmp 0x140009bdf
mov rbp, rbx
cmp word [rax], si
je 0x140009b41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009b28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009b24
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140009a0c
movsxd r14, eax
test eax, eax
jne 0x140009b7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009b15
mov rcx, r14
call fcn.14000a9c8
mov rdi, rax
test rax, rax
jne 0x140009b98
xor ecx, ecx
call fcn.14000806c
jmp 0x140009b74
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140009a0c
test eax, eax
jne 0x140009bc9
mov rcx, rdi
call fcn.14000806c
jmp 0x140009bd3
xor ecx, ecx
call fcn.14000806c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000d0d0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140008adc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000d15a
cmp byte [rbp - 0x21], r15b
je 0x14000d155
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000d190
call fcn.14000b1d8
test eax, eax
jne 0x14000d17c
cmp byte [rbp - 0x21], r15b
je 0x14000d174
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000d190
cmp byte [rbp - 0x21], r15b
je 0x14000d18d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400080bc
test eax, eax
jne 0x14000d230
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140008adc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000d1cf
cmp byte [rbp - 0x21], r15b
je 0x14000d204
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000d204
call fcn.14000b1d8
test eax, eax
jne 0x14000d1f0
cmp byte [rbp - 0x21], r15b
je 0x14000d1e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000d204
cmp byte [rbp - 0x21], r15b
je 0x14000d201
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400080bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000d230
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000d233
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000d241
mov rcx, rdi
call fcn.14000806c
cmp byte [rbp + 0x3f], r15b
je 0x14000d250
mov rcx, qword [rbp + 0x27]
call fcn.14000806c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400013f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x1080
call fcn.14001abf0
sub rsp, rax
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbx, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x170]
mov r8d, 0x700
call fcn.140009410
xor edx, edx
lea rcx, [rsp + 0x870]
mov r8d, 0x800
call fcn.140009410
xor edx, edx
mov qword [rsp + 0x60], 0
mov r8d, 0x100
lea rcx, [rsp + 0x70]
lea rsi, [rsp + 0x10b0]
call fcn.140009410
call fcn.140001020
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x7fffffff
mov rcx, qword [rax]
call fcn.14000dc08
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp edi, 2
jne 0x1400014b5
lea r11, str.__ERR_
jmp 0x1400014ca
cmp edi, 1
lea rax, str.__WAR_
lea r11, [0x1400245c0]
cmove r11, rax
movzx ecx, word [rsp + 0x6c]
lea rbx, [rsp + 0x70]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], r11
lea r11, str.ELANFPSERVICE
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x870]
mov dword [rsp + 0x30], edx
mov edx, 0x400
mov dword [rsp + 0x28], r8d
lea r8, str.__02d__02d__02d:_02d:_02d_03d____s__s__s_r_n
mov dword [rsp + 0x20], r10d
call fcn.140001030
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.140007310
add rsp, 0x1080
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400019b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001a25
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001a25
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001a15
nop
cmp rbx, rcx
jae 0x140001a25
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001a00
cmp rbx, rcx
jae 0x140001a25
cmp word [rbx], 0
je 0x140001a25
mov rax, rbx
jmp 0x140001a27
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret