joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010afb8
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.1800de3b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18010b042
cmp byte [rbp - 0x21], r15b
je 0x18010b03d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18010b078
call fcn.1800fce24
test eax, eax
jne 0x18010b064
cmp byte [rbp - 0x21], r15b
je 0x18010b05c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18010b078
cmp byte [rbp - 0x21], r15b
je 0x18010b075
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.1800f1c60
test eax, eax
jne 0x18010b118
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800de3b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18010b0b7
cmp byte [rbp - 0x21], r15b
je 0x18010b0ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18010b0ec
call fcn.1800fce24
test eax, eax
jne 0x18010b0d8
cmp byte [rbp - 0x21], r15b
je 0x18010b0d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18010b0ec
cmp byte [rbp - 0x21], r15b
je 0x18010b0e9
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.1800f1c60
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18010b118
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18010b11b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18010b129
mov rcx, rdi
call fcn.1800fc530
cmp byte [rbp + 0x3f], r15b
je 0x18010b138
mov rcx, qword [rbp + 0x27]
call fcn.1800fc530
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 0x18010c720
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18010c748
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18010c748
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140079847
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14011a6f0
mov rax, rcx
neg rcx
test rax, 7
je 0x14011a70d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14011a768
test al, 7
jne 0x14011a700
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14011a721
mov rdx, qword [rax - 8]
test dl, dl
je 0x14011a792
test dh, dh
je 0x14011a78c
shr rdx, 0x10
test dl, dl
je 0x14011a786
test dh, dh
je 0x14011a780
shr rdx, 0x10
test dl, dl
je 0x14011a77a
test dh, dh
je 0x14011a774
shr edx, 0x10
test dl, dl
je 0x14011a76e
test dh, dh
jne 0x14011a721
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140079c02
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400ae9c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400ae340
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ae9ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401c4020]
jmp 0x1400aea09
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140079d74
Capabilities:
Query environment variable

Disassembly:
jmp 0x140135330
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140135160
lea rcx, [rsp + 0x40]
call fcn.1401352e0
movzx eax, al
test eax, eax
jne 0x140135378
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140135190
mov rax, qword [rsp + 0x70]
jmp 0x140135549
lea rcx, [rsp + 0x40]
call fcn.1401352b0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140135250
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401352b0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007a8fa
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14013541e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140135190
mov rax, qword [rsp + 0x80]
jmp 0x140135549
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140079ae0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140079987
lea rcx, [rsp + 0x48]
call fcn.1400795c7
movzx eax, al
test eax, eax
jne 0x140135485
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140078839
lea rcx, [rsp + 0x40]
call fcn.140135190
mov rax, qword [rsp + 0x88]
jmp 0x140135549
lea rcx, [rsp + 0x48]
call fcn.14007a0a3
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401352b0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007a8fa
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14013551b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140078839
lea rcx, [rsp + 0x40]
call fcn.140135190
mov rax, qword [rsp + 0xa0]
jmp 0x140135549
lea rcx, [rsp + 0x48]
call fcn.140079955
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140078839
lea rcx, [rsp + 0x40]
call fcn.140135190
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140079d7e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400ae8f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400ae2c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ae931
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401c4020]
jmp 0x1400ae937
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140079e0f
Capabilities:
Get geographical location

Disassembly:
jmp 0x14012d9b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14012c8e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14012da17
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401c4030]
jmp 0x14012da39
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140079559
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140079e1e
Capabilities:
Terminate process

Disassembly:
jmp 0x14008c7c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14007a049
Capabilities:
Print debug messages

Disassembly:
jmp 0x140151240
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401b0040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140151266
jmp 0x1401512e3
mov rcx, qword [rbp + 0x30]
call fcn.140079847
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14015127f
jmp 0x1401512e3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14015129c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400789b0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140078dd4
test eax, eax
jne 0x1401512e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140079a5e
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x14007a2ba
Capabilities:
Create process on windows

Disassembly:
jmp 0x14014bef0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.140079423
lea rcx, [rsp + 0xb8]
call fcn.140079423
lea rcx, [rsp + 0x88]
call fcn.140079423
call fcn.140079d1f
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.14007921b
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14014bf92
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.140079766
lea rcx, [rsp + 0xb8]
call fcn.140079766
lea rcx, [rsp + 0xe8]
call fcn.140079766
mov eax, dword [rsp + 0x54]
jmp 0x14014c138
call fcn.140079d1f
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.14007921b
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14014bff2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.140079766
lea rcx, [rsp + 0xb8]
call fcn.140079766
lea rcx, [rsp + 0xe8]
call fcn.140079766
mov eax, dword [rsp + 0x5c]
jmp 0x14014c138
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14014c078
call fcn.140079d1f
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.14007921b
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14014c066
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.140079766
lea rcx, [rsp + 0xb8]
call fcn.140079766
lea rcx, [rsp + 0xe8]
call fcn.140079766
mov eax, dword [rsp + 0x64]
jmp 0x14014c138
lea rcx, [rsp + 0x88]
call fcn.1400793a1
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400793a1
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400793a1
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.140079766
lea rcx, [rsp + 0xb8]
call fcn.140079766
lea rcx, [rsp + 0xe8]
call fcn.140079766
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x14007a549
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008d2f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008d310
xor al, al
jmp 0x14008d391
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008d323
xor al, al
jmp 0x14008d391
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14008d34d
xor al, al
jmp 0x14008d391
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14008d361
xor al, al
jmp 0x14008d391
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14008d373
xor al, al
jmp 0x14008d391
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008d38f
xor al, al
jmp 0x14008d391
mov al, 1
add rsp, 0x38
ret
Function at 0x14007aaa3
Capabilities:
Terminate process

Disassembly:
jmp 0x1400afa90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400afabe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14007b2be
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14007b31d
Capabilities:
Print debug messages

Disassembly:
jmp 0x14012b000
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14007b3db
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400aea30
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400ae380
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400aea79
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401c4020]
jmp 0x1400aea88
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14007b4a8
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401537c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140079423
lea rcx, [rsp + 0x48]
call fcn.140079423
call fcn.140079d1f
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14007921b
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14015382f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140079766
lea rcx, [rsp + 0x78]
call fcn.140079766
mov eax, dword [rsp + 0x24]
jmp 0x1401538c0
call fcn.140079d1f
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14007921b
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140153876
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140079766
lea rcx, [rsp + 0x78]
call fcn.140079766
mov eax, dword [rsp + 0x2c]
jmp 0x1401538c0
lea rcx, [rsp + 0x48]
call fcn.1400793a1
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400793a1
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140079766
lea rcx, [rsp + 0x78]
call fcn.140079766
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1401611a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400789b0
sub rsp, rax
mov rax, qword [0x1401b0040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401b3190]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140161392
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401612e6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401612e6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401612cb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140161268
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140161352
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401613b1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14016138d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401613b1
jmp 0x14016123e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140079a5e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140161460
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400789b0
sub rsp, rax
mov rax, qword [0x1401b0040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401b3190]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14016166d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1401615b9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401615b9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140161599
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140161528
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016162d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016168c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140161668
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016168c
jmp 0x1401614fe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140079a5e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1bcd6d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1bcd6dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1bcd6ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1bcd6d5
lea eax, [rcx + 1]
jmp 0x1bcd6fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1bcd70e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1bcd6f4
sub eax, 3
jb 0x1bcd72e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1bcd77d
sar eax, 1
movsxd rbp, eax
jb 0x1bcd764
jmp 0x1bcd73c
add ebx, ebx
jne 0x1bcd73a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1bcd764
inc ecx
add ebx, ebx
jne 0x1bcd74a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1bcd764
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1bcd75d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1bcd74c
add ecx, 2
jmp 0x1bcd769
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01bcd692
jmp 0x1bcd6dd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x17b8000]
mov eax, dword [rdi]
or eax, eax
je 0x1bcd7d9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x17cd000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1bcd789
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1bcd7d3
mov qword [rbx], rax
add rbx, 8
jmp 0x1bcd7a9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1bcd81d
cmp al, 0xef
ja 0x1bcd805
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1bcd7e5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1bcd7f4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1bcd7f4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1bcd871
sub rsp, 0xffffffffffffff80
jmp 0x467c60