joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d102f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140193850
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140193220
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140193891
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 [0x1402f2020]
jmp 0x140193897
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400d110b
Capabilities:
Get geographical location

Disassembly:
jmp 0x140235c00
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.140234b30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140235c67
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 [0x1402f2030]
jmp 0x140235c89
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400d0292
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 0x1400d111f
Capabilities:
Terminate process

Disassembly:
jmp 0x140171070
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 0x1400d1534
Capabilities:
Print debug messages

Disassembly:
jmp 0x14025b590
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402d4080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14025b5b6
jmp 0x14025b633
mov rcx, qword [rbp + 0x30]
call fcn.1400d07b0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14025b5cf
jmp 0x14025b633
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14025b5ec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400cf04a
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.1400cf6a3
test eax, eax
jne 0x14025b633
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400d0ad0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400d18f9
Capabilities:
Create process on windows

Disassembly:
jmp 0x14025f5a0
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.1400d0094
lea rcx, [rsp + 0xb8]
call fcn.1400d0094
lea rcx, [rsp + 0x88]
call fcn.1400d0094
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400cfd3d
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14025f642
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x54]
jmp 0x14025f7e8
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400cfd3d
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14025f6a2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x5c]
jmp 0x14025f7e8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14025f728
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400cfd3d
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14025f716
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x64]
jmp 0x14025f7e8
lea rcx, [rsp + 0x88]
call fcn.1400cffa4
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400cffa4
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400cffa4
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.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400d19c1
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402504c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400d1b9c
Capabilities:
Set console window title

Disassembly:
jmp 0x1400fe410
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402d4080]
xor rax, rbp
mov qword [rbp + 0x3d8], rax
lea rcx, [0x1402f1100]
call fcn.1400d39ab
nop
lea rax, str.ignac
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call fcn.1400d1e80
movzx eax, al
test eax, eax
jne 0x1400fe474
mov ecx, 1
call fcn.1400ce6d6
nop
call fcn.1400d0fe4
nop
lea rcx, str.KillerMacros
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 0x28], rax
mov edx, 0xfffffff0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowLongW]
btr eax, 0x10
btr eax, 0x11
btr eax, 0x12
mov r8d, eax
mov edx, 0xfffffff0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_SetWindowLongW]
nop
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x44]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
nop
mov eax, dword [rbp + 0x44]
and eax, 0xffffffbf
bts eax, 7
mov edx, eax
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
nop
mov dword [rsp + 0x30], 0x43
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_SetWindowPos]
nop
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 2
mov dword [rbp + 0xe4], 1
mov dword [rbp + 0x104], 1
mov dword [rbp + 0x124], 1
mov dword [rbp + 0x144], 0
mov dword [rbp + 0x164], 0
mov dword [rbp + 0x184], 0
mov dword [rbp + 0x1a4], 1
mov edx, 0x22
mov ecx, 0x52
call fcn.1400ce0b4
nop
call fcn.1400d19bc
nop
mov eax, dword [rbp + 0x184]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xe4]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x1a4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x164]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x144]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x124]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x104]
mov r8d, dword [rbp + 0xc4]
mov edx, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0x84]
call fcn.1400d20ab
nop
mov edx, 0x78
lea rcx, [rbp + 0x1d0]
call fcn.1400d1d6d
lea rcx, [rbp + 0x1d0]
call fcn.1400d2ba5
nop
lea rcx, [rbp + 0x1d0]
call fcn.1400ce032
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140282b10]
call fcn.1400d2a15
mov rax, rdi
mov rcx, qword [rbp + 0x3d8]
xor rcx, rbp
call fcn.1400d0ad0
lea rsp, [rbp + 0x3e8]
pop rdi
pop rbp
ret
Function at 0x1400d1d40
Capabilities:
Parse pe header

Disassembly:
jmp 0x140172c40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140172c60
xor al, al
jmp 0x140172ce1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140172c73
xor al, al
jmp 0x140172ce1
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 0x140172c9d
xor al, al
jmp 0x140172ce1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140172cb1
xor al, al
jmp 0x140172ce1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140172cc3
xor al, al
jmp 0x140172ce1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140172cdf
xor al, al
jmp 0x140172ce1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400d2687
Capabilities:
Terminate process

Disassembly:
jmp 0x140194910
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 0x14019493e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400d3339
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 0x1400d33c0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140223590
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 0x1400d3541
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140193990
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401932e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401939d9
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 [0x1402f2020]
jmp 0x1401939e8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400d3668
Capabilities:
Set environment variable

Disassembly:
jmp 0x140268430
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400d0094
lea rcx, [rsp + 0x48]
call fcn.1400d0094
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400cfd3d
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14026849f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400d0648
lea rcx, [rsp + 0x78]
call fcn.1400d0648
mov eax, dword [rsp + 0x24]
jmp 0x140268530
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400cfd3d
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1402684e6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400d0648
lea rcx, [rsp + 0x78]
call fcn.1400d0648
mov eax, dword [rsp + 0x2c]
jmp 0x140268530
lea rcx, [rsp + 0x48]
call fcn.1400cffa4
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400cffa4
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.1400d0648
lea rcx, [rsp + 0x78]
call fcn.1400d0648
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14023cd30
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.1400cf04a
sub rsp, rax
mov rax, qword [0x1402d4080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402d8cc0]
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 0x14023cf22
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 0x14023ce76
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14023ce76
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 0x14023ce5b
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 0x14023cdf8
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 0x14023cee2
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 0x14023cf41
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 0x14023cf1d
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 0x14023cf41
jmp 0x14023cdce
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.1400d0ad0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14023cff0
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.1400cf04a
sub rsp, rax
mov rax, qword [0x1402d4080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402d8cc0]
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 0x14023d1fd
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 0x14023d149
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14023d149
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 0x14023d129
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 0x14023d0b8
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 0x14023d1bd
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 0x14023d21c
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 0x14023d1f8
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 0x14023d21c
jmp 0x14023d08e
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.1400d0ad0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1800016f4
Capabilities:
Print debug messages

Disassembly:
jmp 0x180059d64
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x180059dac
test rdi, rdi
je 0x180059d9b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.18000184d
cmp eax, 1
je 0x180059dac
mov eax, 4
jmp 0x180059df1
call fcn.180003b75
cmp eax, 2
jne 0x180059de8
call fcn.1800018ac
test al, al
je 0x180059de8
call fcn.180002c2a
test al, al
jne 0x180059dde
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.180003bb1
jmp 0x180059df1
call fcn.180003a3f
mov rcx, rax
jmp 0x180059dce
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002211
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1800668f4
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x1800a4280]
xor r12d, r12d
lea rdi, [0x18008a144]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x180066962
mov rax, 0xfffffffffffffffe
jmp 0x180066a95
cmp word [rbx + 6], r12w
jne 0x1800669b8
mov rcx, rdi
call fcn.180003ab7
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x1800669a8
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x180066a8a
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x1800669e1
test r14, r14
je 0x1800669b0
mov dword [r14], eax
mov rax, r8
jmp 0x180066a95
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180066a8a
cmp r9b, 1
jb 0x180066a8a
cmp r9b, r8b
jae 0x180066a8a
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x180066a0f
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180066a8a
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x1800669f1
cmp r10, r11
jae 0x180066a39
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x180066956
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180066a8a
cmp edx, 0x110000
jae 0x180066a8a
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180066a8a
test r14, r14
je 0x180066a78
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.180003bac
jmp 0x180066a95
mov rdx, rsi
mov rcx, rbx
call fcn.18000424b
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800026cb
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180002257
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x18000a0c0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000a14d
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000a14d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000a14d
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18000a134
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000a12e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000a136
add rdx, 0x28
jmp 0x18000a113
xor edx, edx
test rdx, rdx
jne 0x18000a13f
xor al, al
jmp 0x18000a153
cmp dword [rdx + 0x24], 0
jge 0x18000a149
xor al, al
jmp 0x18000a153
mov al, 1
jmp 0x18000a153
xor al, al
jmp 0x18000a153
add rsp, 0x18
ret
Function at 0x180002554
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005fbd8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18005fc5f
mov rsi, rbx
cmp word [rax], bp
je 0x18005fc1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005fc08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005fc04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001037
mov rdi, rax
test rax, rax
je 0x18005fc4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800026d0
mov rbp, rdi
xor ecx, ecx
call fcn.180001177
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800025b3
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18007e19c
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.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18007e1ca
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x18007e223
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x18007e223
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x18007e215
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x18000280b
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180019b60
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x18008b2b0]
mov ecx, 2
lea r8, [0x18008b2a8]
lea rdx, str.FlsGetValue
call fcn.180019630
mov ecx, ebx
test rax, rax
je 0x180019b9a
add rsp, 0x20
pop rbx
jmp qword [0x1800ae020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]