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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
xor r14d, r14d
lea rsi, [rsp + 0x40]
mov edi, r14d
mov rbx, rcx
lea eax, [rdi*4]
mov ecx, dword [rax + rbx + 0x28]
call fcn.140029a18
inc edi
mov dword [rsi], eax
lea rsi, [rsi + 4]
cmp edi, 0x10
jb 0x1400159ed
lea r10, [rbp - 0x80]
mov r11d, 0x30
lea r9, [rsp + 0x78]
mov ecx, dword [r9 - 0x34]
mov r8d, ecx
mov edx, dword [r9]
mov eax, ecx
rol r8d, 0xe
lea r9, [r9 + 4]
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r9 - 0x3c]
add r8d, dword [r9 - 0x18]
mov dword [r10], r8d
lea r10, [r10 + 4]
sub r11, 1
jne 0x140015a19
movups xmm0, xmmword [rbx]
lea r12d, [r11 + 0x40]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x20], xmm0
mov r11d, dword [rsp + 0x28]
mov edi, dword [rsp + 0x24]
mov r10d, dword [rsp + 0x20]
mov ebx, dword [rsp + 0x2c]
movups xmmword [rsp + 0x30], xmm1
mov r13d, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r15d, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x30]
mov eax, r9d
mov r8d, r9d
rol eax, 7
mov ecx, r9d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, esi
mov eax, r9d
mov edx, r10d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, r15d
and eax, r9d
xor ecx, eax
lea rax, [0x14003a600]
add r8d, ecx
mov ecx, edi
add r8d, dword [r14 + rax]
xor ecx, r11d
add r8d, dword [rsp + r14 + 0x40]
lea r14, [r14 + 4]
add r8d, r13d
and ecx, r10d
mov eax, r10d
mov r13d, esi
rol eax, 0xa
mov esi, r15d
xor edx, eax
mov r15d, r9d
mov eax, r10d
lea r9d, [rbx + r8]
ror eax, 2
mov ebx, r11d
xor edx, eax
mov eax, edi
and eax, r11d
mov r11d, edi
xor ecx, eax
mov edi, r10d
add edx, ecx
lea r10d, [rdx + r8]
sub r12, 1
jne 0x140015a9c
mov dword [rsp + 0x2c], ebx
lea rcx, [rsp + 0x20]
mov rbx, qword [rbp + 0x70]
lea edx, [r12 + 8]
sub rcx, rbx
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x20], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x24], edi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x3c], r13d
mov eax, dword [rcx + rbx]
add dword [rbx], eax
lea rbx, [rbx + 4]
sub rdx, 1
jne 0x140015b5f
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140016448
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x1400164c7
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
test eax, eax
setne al
add rsp, 0x60
pop rbp
ret

Function at 0x1400164d0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1020
call fcn.140021670
sub rsp, rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400164fa
xor eax, eax
jmp 0x14001651d
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140011190
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
add rsp, 0x1020
pop rbx
ret
Function at 0x140016de0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x140016e82
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140016f90]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140016e58
lea rdx, str.CreateThread_failed
lea rcx, [0x1400547f8]
call fcn.140009270
lea rcx, [0x1400547f8]
call fcn.140009554
lea edx, [rsi + 2]
lea rcx, [0x1400547f8]
call fcn.140009244
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x14005f95c]
test edx, edx
je 0x140016e78
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x140016dfc
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140020fc4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14002103c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14002103c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14002103c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140021030
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14002104e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14002101e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14002103e

Function at 0x140021f8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021fd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021fd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021fd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021fd6
cmp dword [rcx + 0x84], 0xe
jbe 0x140021fd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021fd8
xor al, al
add rsp, 0x28
ret
Function at 0x1400292b0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140029084
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029084
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029084
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029084
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029084
cmp dword [rcx + 0x84], 0xe
jbe 0x140029084
cmp dword [rcx + 0xf8], esi
je 0x140029084
mov ecx, r14d
call fcn.1400291cc
mov ecx, 2
call fcn.14002dfd8
nop
cmp byte [0x14005fde8], 0
jne 0x14002914e
mov r15d, 1
mov eax, r15d
xchg dword [0x14005fdd8], eax
test ebx, ebx
jne 0x1400290f7
mov rdi, qword [0x140049c68]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14005fde0]
cmp rcx, rax
je 0x1400290ee
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000a790]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14005ff48]
jmp 0x140029103
cmp ebx, r15d
jne 0x140029109
lea rcx, [0x14005ff60]
call fcn.14002bcc4
nop
test ebx, ebx
jne 0x140029120
lea rdx, [0x140037518]
lea rcx, [0x1400374f8]
call fcn.14002bfc0
lea rdx, [0x140037528]
lea rcx, [0x140037520]
call fcn.14002bfc0
movzx eax, byte [0x14005fde8]
test esi, esi
cmove eax, r15d
mov byte [0x14005fde8], al
jmp 0x14002914e
mov ecx, 2
call fcn.14002e038
test esi, esi
jne 0x140029165
mov ecx, r14d
call fcn.140029180
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140029014
Function at 0x14004d490
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004d49d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004d4ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004d495
lea eax, [rcx + 1]
jmp 0x14004d4bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004d4ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004d4b4
sub eax, 3
jb 0x14004d4ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004d53d
sar eax, 1
movsxd rbp, eax
jb 0x14004d524
jmp 0x14004d4fc
add ebx, ebx
jne 0x14004d4fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004d524
inc ecx
add ebx, ebx
jne 0x14004d50a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004d524
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004d51d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004d50c
add ecx, 2
jmp 0x14004d529
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004d452
jmp 0x14004d49d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29c00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004d589
cmp rsi, rcx
jae 0x14004d591
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004d570
cmp al, 0x8f
ja 0x14004d570
cmp byte [rsi - 2], 0xf
je 0x14004d576
sub al, 0xe8
cmp al, 1
ja 0x14004d55a
cmp rsi, rcx
jae 0x14004d591
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004d560
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004d591
lodsb al, byte [rsi]
jmp 0x14004d570
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4b000]
mov eax, dword [rdi]
or eax, eax
je 0x14004d5fa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x51840]
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 0x14004d59e
jns 0x14004d5d3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14004d5dd
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 0x14004d5f4
mov qword [rbx], rax
add rbx, 8
jmp 0x14004d5be
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 0x14004d634
cmp al, 0xef
ja 0x14004d626
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004d606
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004d615
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 + 0x227]
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 0x14004d688
sub rsp, 0xffffffffffffff80
jmp 0x14000c200
Function at 0x140001fd7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140004018]
jne 0x140001bca
rol rcx, 0x10
test cx, 0xffff
jne 0x140001bc6
repz ret
ror rcx, 0x10
jmp 0x140001f30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140004208]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001fb5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001fd7
mov rax, qword [rsp + 0x88]
mov qword [0x140004208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400041a8], rax
mov rax, qword [0x140004208]
mov qword [0x140004080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140004190], rax
mov dword [0x140004070], 0xc0000409
mov dword [0x140004074], 1
mov rax, qword [0x140004018]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140004020]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140004108], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140003458]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140004108], 0
jne 0x14000205e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000187f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14009fc80
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.14009ecd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009fcb7
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140112020]
jmp 0x14009fcbd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x140002491
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140082550
mov rax, rcx
neg rcx
test rax, 7
je 0x14008256d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400825c8
test al, 7
jne 0x140082560
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 0x140082581
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400825f2
test dh, dh
je 0x1400825ec
shr rdx, 0x10
test dl, dl
je 0x1400825e6
test dh, dh
je 0x1400825e0
shr rdx, 0x10
test dl, dl
je 0x1400825da
test dh, dh
je 0x1400825d4
shr edx, 0x10
test dl, dl
je 0x1400825ce
test dh, dh
jne 0x140082581
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 0x140002775
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400227f0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140022170
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002282f
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 [0x140112020]
jmp 0x140022839
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400028b0
Capabilities:
Query environment variable

Disassembly:
jmp 0x140093620
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x140093708
mov rsi, rax
cmp word [rax], r14w
je 0x140093673
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14009365b
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140093657
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.1400031f2
movsxd rbp, eax
test eax, eax
je 0x140093708
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.14000268f
mov rdi, rax
test rax, rax
je 0x1400936f6
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400031f2
test eax, eax
je 0x1400936f6
mov rsi, rdi
mov rdi, r14
jmp 0x1400936f9
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400017fd
jmp 0x14009370b
mov rsi, r14
test rbx, rbx
je 0x140093719
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400028ba
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140022720
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400220f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140022761
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 [0x140112020]
jmp 0x140022767
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x14000292d
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009ff50
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14009eed0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14009ffa3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140112020]
jmp 0x14009ffc5
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140002243
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x140002937
Capabilities:
Terminate process

Disassembly:
jmp 0x140009240
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]
add rsp, 0x28
ret
Function at 0x140002af9
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400ac8c0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140102008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400ac8e6
jmp 0x1400ac963
mov rcx, qword [rbp + 0x30]
call fcn.140002491
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400ac8ff
jmp 0x1400ac963
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400ac91c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001825
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.140001bc2
test eax, eax
jne 0x1400ac963
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14000261c
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140002bf8
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400c8740
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400c8764
xor eax, eax
jmp 0x1400c87b2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400c878c
xor eax, eax
jmp 0x1400c87b2
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x20b
je 0x1400c87ad
xor eax, eax
jmp 0x1400c87b2
mov eax, 1
add rsp, 0x28
ret
Function at 0x140002f0e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000a590
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000a5b0
xor al, al
jmp 0x14000a631
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000a5c3
xor al, al
jmp 0x14000a631
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 0x14000a5ed
xor al, al
jmp 0x14000a631
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14000a601
xor al, al
jmp 0x14000a631
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14000a613
xor al, al
jmp 0x14000a631
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000a62f
xor al, al
jmp 0x14000a631
mov al, 1
add rsp, 0x38
ret
Function at 0x140003175
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400c85b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
jmp 0x1400c860e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x1400c864d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x38], rax
jb 0x1400c864b
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x1400c864b
mov rax, qword [rsp + 8]
jmp 0x1400c864f
jmp 0x1400c85f8
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003341
Capabilities:
Terminate process

Disassembly:
jmp 0x140082d30
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 0x140082d5e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400039db
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 0x1400033e6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14009fd40
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14009ed50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009fd75
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140112020]
jmp 0x14009fd7f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x1400037d8
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14009fda0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14009ed90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009fddf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140112020]
jmp 0x14009fdee
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140003a3a
Capabilities:
Print debug messages

Disassembly:
jmp 0x14008a780
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