joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027510
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x1400275dd
movzx ebp, di
lea r9d, [r14 + 9]
lea r8, [rsp + 0x28]
lea edx, [r14 + 0x59]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x1400275dd
dec eax
lea rdx, [rsp + 0x28]
mov rcx, rsi
movsxd r8, eax
call fcn.140009524
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], r14
jb 0x140027595
mov rax, qword [rbx]
jmp 0x140027598
mov rax, rbx
mov word [rax], r14w
mov eax, 0xfc00
and di, ax
cmp r14w, di
je 0x1400275d9
mov r9d, 9
lea r8, [rsp + 0x28]
mov ecx, ebp
lea edx, [r9 + 0x51]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x1400275d9
lea edx, [rax - 1]
mov rcx, rbx
movsxd r8, edx
lea rdx, [rsp + 0x28]
call fcn.140009524
mov al, 1
jmp 0x1400275df
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009c5b0
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 0x140029224
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov dword [rsp + 0x30], ebx
mov rsi, rcx
jb 0x14002213f
mov rbp, qword [rcx]
jmp 0x140022142
mov rbp, rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002216d
test al, 0x10
je 0x14002215b
mov al, 1
jmp 0x14002220d
test rdi, rdi
je 0x140022166
mov dword [rdi], 0xfffffff7
xor al, al
jmp 0x14002220d
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140010670
cmp qword [rsi + 0x18], 8
mov rax, qword [rsi + 0x10]
jb 0x14002218a
mov r9, qword [rsi]
jmp 0x14002218d
mov r9, rsi
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400034bc
test eax, eax
jne 0x1400221b4
test rdi, rdi
je 0x140022201
mov dword [rdi], 0xfffffffc
jmp 0x140022201
lea rcx, [rsp + 0x38]
mov rdx, rdi
call 0x14002210c
test al, al
je 0x140022201
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400221ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400221ef
mov rcx, rsi
call fcn.14002222c
test al, al
jne 0x1400221ff
test rdi, rdi
je 0x140022201
mov ecx, ebp
call fcn.140027094
mov dword [rdi], eax
jmp 0x140022201
mov bl, 1
lea rcx, [rsp + 0x38]
call fcn.14000f514
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
jmp 0x14002210c
Function at 0x14002922c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x78], rbx
je 0x14002937c
cmp byte [rcx + 0x81], bl
je 0x14002937c
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140029285
xor al, al
jmp 0x140029381
xor r8d, r8d
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
lea edx, [r8 + 8]
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
call fcn.140005d3c
mov esi, 1
cmp qword [rbp - 0x10], 0x10
mov rcx, qword [rdi + 0x78]
mov r9, qword [rbp - 0x18]
mov r10, qword [rcx]
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x28]
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
mov qword [rsp + 0x20], rax
cmovae r8, qword [rbp - 0x28]
add r9, rdx
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x1400292f3
dec ecx
je 0x1400292f9
cmp ecx, 2
jne 0x140029368
jmp 0x140029365
mov byte [rdi + 0x81], bl
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov r14, qword [rbp - 0x30]
cmp r10, 0x10
lea rax, [rbp - 0x28]
cmovae rax, r9
sub r14, rax
je 0x140029339
cmp r10, 0x10
lea rcx, [rbp - 0x28]
mov r8, r14
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov rdx, rsi
call fcn.14009e490
cmp r14, rax
jne 0x140029362
cmp byte [rdi + 0x81], bl
je 0x14002935f
test r14, r14
jne 0x1400292a9
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
xor r8d, r8d
call fcn.140012cf4
jmp 0x1400292a9
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x10], 0x10
jb 0x140029378
mov rcx, qword [rbp - 0x28]
call fcn.14009bc2c
mov al, bl
jmp 0x140029381
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029628
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp - 8], rax
or ebx, 0xffffffff
mov esi, edx
mov rdi, rcx
cmp edx, ebx
jne 0x14002965f
xor eax, eax
jmp 0x14002981d
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140029699
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140029699
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14002981d
cmp qword [rdi + 0x90], 0
je 0x14002981b
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [r8], rax
jne 0x1400296d1
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
sub edx, ecx
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x78], 0
jne 0x1400296f2
mov rdx, qword [rdi + 0x90]
movsx ecx, sil
call fcn.1400a17ac
cmp eax, ebx
cmovne ebx, esi
jmp 0x14002981b
and qword [rbp - 0x18], 0
xor r8d, r8d
lea rcx, [rbp - 0x28]
lea edx, [r8 + 8]
mov byte [rbp - 0x40], sil
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
call fcn.140005d3c
cmp qword [rbp - 0x10], 0x10
mov rcx, qword [rdi + 0x78]
lea rax, [rbp - 0x38]
mov r10, qword [rcx]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
lea rdx, [rbp - 0x28]
lea r8, [rbp - 0x28]
lea r9, [rbp - 0x3f]
cmovae r8, qword [rbp - 0x28]
cmovae rdx, qword [rbp - 0x28]
add rdx, qword [rbp - 0x18]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x40]
lea rdx, [rdi + 0x84]
mov qword [rsp + 0x20], rax
call qword [r10 + 0x38]
test eax, eax
js 0x14002980b
cmp eax, 1
jg 0x1400297f1
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov r14, qword [rbp - 0x38]
cmp r10, 0x10
lea rax, [rbp - 0x28]
cmovae rax, r9
sub r14, rax
je 0x1400297b7
cmp r10, 0x10
lea rcx, [rbp - 0x28]
mov r8, r14
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov edx, 1
call fcn.14009e490
cmp r14, rax
jne 0x14002980b
lea rax, [rbp - 0x40]
mov byte [rdi + 0x81], 1
cmp qword [rbp - 0x30], rax
jne 0x1400297ed
test r14, r14
jne 0x140029717
cmp qword [rbp - 0x18], 0x20
jae 0x14002980b
lea edx, [r14 + 8]
lea rcx, [rbp - 0x28]
xor r8d, r8d
call fcn.140012cf4
jmp 0x140029717
mov ebx, esi
jmp 0x14002980b
cmp eax, 3
jne 0x14002980b
movsx ecx, byte [rbp - 0x40]
mov rdx, qword [rdi + 0x90]
call fcn.1400a17ac
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp - 0x10], 0x10
jb 0x14002981b
mov rcx, qword [rbp - 0x28]
call fcn.14009bc2c
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ae38
Capabilities:
Create thread

Disassembly:
and dword [rsp + 0x20], 0
jmp 0x14002ae38
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
xor ebp, ebp
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x14002ae72
call fcn.140023dd8
cmp eax, 1
jl 0x14002ae72
mov ebp, 0x10000
jmp 0x14002ae74
xor edi, edi
mov ecx, reloc.WS2_32.dll_recv
call fcn.14009bbc0
test rbx, rbx
lea r8, [0x14002b0c8]
setne cl
and qword [rsp + 0x28], 0
mov rdx, rdi
mov byte [rax + 8], cl
mov r9, rax
xor ecx, ecx
mov rsi, rax
mov qword [rax], r14
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14002aebd
mov rcx, rsi
call fcn.14009bc2c
xor al, al
jmp 0x14002aee2
test rbx, rbx
je 0x14002aed7
and dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx], xmm0
jmp 0x14002aee0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
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 0x14002d560
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401c9d78]
test rax, 0xfffffffffffffffe
jne 0x14002d5b3
lea rcx, [0x1401c9d78]
call fcn.140018754
test al, al
je 0x14002d5b3
and dword [0x1401c9d80], 0
lea rcx, [0x1401c9d80]
call fcn.14002d704
lea r8, [0x1401c9d78]
lea rdx, [0x1401c9d80]
lea rcx, [0x1401c9d78]
xor r9d, r9d
call fcn.140018738
mov rax, qword [0x1401c9d78]
mov ecx, dword [rax]
call sub.KERNEL32.dll_TlsGetValue
add rsp, 0x28
ret

Function at 0x14002d704
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x14002d724
call fcn.140018794
add rsp, 0x20
pop rbx
ret

Function at 0x14002d72c
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rsp + 0x150], ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14002d78e
call fcn.140018da4
lea r9d, [rbx + 3]
cmp eax, r9d
jg 0x14002d77f
lea r8d, [r9 + 0x20]
lea rdx, str.b:core_src_base_threading_thread_local_win.cc
lea rcx, [rsp + 0x20]
lea ebx, [r9 - 2]
call fcn.140018824
lea rdx, str.Failed_to_TlsSetValue__.
lea rcx, [rax + 8]
call fcn.1400013e0
test bl, 1
je 0x14002d78e
lea rcx, [rsp + 0x20]
call fcn.1400188b0
add rsp, 0x130
pop rbx
ret

Function at 0x14002f3f8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x48], 0
mov sil, r8b
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x14002f434
test sil, sil
je 0x14002f434
mov edx, 0xea60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003199c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, qword [rcx]
mov r8, qword [rcx + 8]
sub r8, r9
sar r8, 2
test r8, r8
je 0x1400319ea
mov r10, r8
mov eax, dword [r9]
xor r11d, r11d
mov dword [rsp + 8], eax
movzx edx, byte [rsp + r11 + 8]
movzx ecx, r8b
shr r8d, 8
xor rdx, rcx
lea rax, [0x1400cd7d0]
inc r11
xor r8d, dword [rax + rdx*4]
cmp r11, 4
jb 0x1400319bc
add r9, 4
dec r10
jne 0x1400319b2
mov eax, r8d
ret

Function at 0x1400377d8
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1401caa28]
and dword [rsp + 0x30], 0
mov rbx, rcx
test rax, 0xfffffffffffffffe
jne 0x140037839
lea rcx, [0x1401caa28]
call fcn.140018754
test al, al
je 0x140037839
and dword [0x1401caa30], 0
lea rcx, [0x1401caa30]
call fcn.14002d704
lea r9, [0x1400bffd8]
lea r8, [0x1401caa28]
lea rdx, [0x1401caa30]
lea rcx, [0x1401caa28]
call fcn.140018738
mov rax, qword [0x1401caa28]
mov ecx, dword [rax]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rax]
mov qword [rbx], rcx
test rcx, rcx
je 0x14003785b
add rcx, 8
call fcn.14002ad18
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140037a28
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x140037acd
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x130
xor edi, edi
mov r14d, 0xffffffff
mov rbx, rdx
mov dword [rsp + 0x150], edi
mov qword [rax + 8], r14
mov rsi, rcx
lea rcx, [rsp + 0x158]
lea rax, [rsp + 0x150]
cmp rbx, r14
cmovbe rax, rcx
mov rcx, rsi
mov ebp, dword [rax]
mov edx, ebp
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140037a90
call fcn.140018794
test dil, 1
je 0x140037aa3
lea rcx, [rsp + 0x20]
and edi, 0xfffffffe
call fcn.1400188b0
sub rbx, rbp
add rsi, rbp
mov qword [rsp + 0x158], rbx
test rbx, rbx
jne 0x140037a64
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140038aa0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x740]
sub rsp, 0x840
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x730], rax
and dword [rsp + 0x20], 0
mov eax, dword [0x1401c6430]
or ebx, 0xffffffff
mov dword [rsp + 0x20], eax
mov ecx, eax
cmp eax, ebx
jne 0x140038b3d
lea rcx, [rsp + 0x20]
call fcn.140038fb0
test al, al
jne 0x140038af1
call fcn.140018794
mov ecx, dword [rsp + 0x20]
cmp ecx, ebx
jne 0x140038b1d
lea rcx, [rsp + 0x20]
call fcn.140038fb0
test al, al
je 0x140038b0d
cmp dword [rsp + 0x20], ebx
jne 0x140038b12
call fcn.140018794
mov ecx, ebx
call fcn.140038fd4
mov ecx, dword [rsp + 0x20]
or eax, 0xffffffff
lock cmpxchg dword [0x1401c6430], ecx
mov ecx, dword [rsp + 0x20]
je 0x140038b3d
call fcn.140038fd4
mov ecx, dword [0x1401c6430]
mov dword [rsp + 0x20], ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140038b4c
call fcn.140018794
mov ebx, 0x800
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, ebx
call fcn.14009c6c0
mov ecx, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.140038fe8
mov ecx, ebx
call fcn.14009b1fc
lea rdx, [rsp + 0x30]
mov rbx, rax
mov rcx, rax
mov eax, reloc.WS2_32.dll_recv
lea r8d, [rax + 0x70]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
movups xmm1, xmmword [rdx + 0x70]
add rcx, r8
add rdx, r8
movups xmmword [rcx - 0x10], xmm1
dec rax
jne 0x140038b89
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
call fcn.140038fe8
mov rax, rbx
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x850]
add rsp, 0x840
pop rbp
ret

Function at 0x140038c04
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401c6430]
call sub.KERNEL32.dll_TlsGetValue
mov rdx, rax
test rax, rax
jne 0x140038c28
call fcn.140038aa0
mov rdx, rax
movsxd rax, dword [rbx + 4]
mov rax, qword [rdx + rax*8]
add rsp, 0x20
pop rbx
ret

Function at 0x140038c38
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rbx, rcx
mov ecx, dword [0x1401c6430]
mov rdi, rdx
cmp ecx, 0xffffffff
je 0x140038c62
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140038c67
call fcn.140038aa0
mov ecx, 1
lock xadd dword [0x1401caa60], ecx
inc ecx
mov dword [rbx + 4], ecx
cmp ecx, 0x100
jl 0x140038c86
call fcn.140018794
movsxd rcx, dword [rbx + 4]
lea rdx, [0x1401caa70]
mov al, 1
mov qword [rdx + rcx*8], rdi
mov byte [rbx], 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140038ca8
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401c6430]
cmp ecx, 0xffffffff
je 0x140038cc9
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140038cc9
mov rcx, rax
call fcn.140038cd0
add rsp, 0x28
ret

Function at 0x140038dec
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1401c6430]
mov rbx, rdx
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
jne 0x140038e17
call fcn.140038aa0
mov r8, rax
movsxd rax, dword [rdi + 4]
mov qword [r8 + rax*8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140038fb0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140038fca
mov dword [rbx], eax
mov al, 1
jmp 0x140038fcc
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140038fe8
Capabilities:
Set thread local storage value

Disassembly:
and dword [rsp + 0x18], 0
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x140038ff4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rsi, rdx
mov rbx, rcx
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
mov rax, qword [rcx]
mov edx, dword [rdx + 0x88]
call qword [rax]
xor ebp, ebp
mov rdi, rax
test rax, rax
jne 0x140039032
xor eax, eax
jmp 0x140039065
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
mov word [rsp + 0x30], bp
call fcn.14003919c
test al, al
je 0x14003902e
mov rax, qword [rbx]
mov edx, dword [rdi + 0x1c]
mov rcx, rbx
call qword [rax]
mov ecx, dword [rdi + 0x10]
movzx edx, word [rsp + 0x30]
sub rdx, rcx
lea rax, [rax + rdx*4]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14003919c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
je 0x1400392ac
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov rax, qword [rdi]
mov edx, dword [rcx + 0x88]
mov rcx, rdi
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1400392ac
cmp r14d, 0xffff
ja 0x140039201
mov word [r15], r14w
jmp 0x1400392a8
mov rax, qword [rdi]
mov edx, dword [rsi + 0x20]
mov rcx, rdi
call qword [rax]
mov ecx, dword [rsi + 0x18]
lea rbp, [rcx*4]
mov r13, rax
mov rbx, rax
add rbp, rax
cmp rax, rbp
je 0x1400392ac
mov rax, rbp
mov rcx, rdi
sub rax, rbx
sar rax, 2
cqo
sub rax, rdx
sar rax, 1
lea r12, [rbx + rax*4]
mov rax, qword [rdi]
mov edx, dword [r12]
call qword [rax]
mov dl, byte [r14]
mov rcx, r14
jmp 0x14003925f
cmp dl, byte [rax]
jne 0x140039263
inc rcx
inc rax
mov dl, byte [rcx]
test dl, dl
jne 0x140039253
movzx ecx, byte [rcx]
movzx eax, byte [rax]
sub ecx, eax
je 0x140039282
test ecx, ecx
jle 0x140039278
lea rbx, [r12 + 4]
jmp 0x14003927b
mov rbp, r12
cmp rbx, rbp
jne 0x140039229
jmp 0x140039285
mov rbx, r12
test ecx, ecx
jne 0x1400392ac
mov r8, qword [rdi]
mov edx, dword [rsi + 0x24]
mov rcx, rdi
call qword [r8]
sub rbx, r13
sar rbx, 2
movzx ecx, word [rax + rbx*2]
add cx, word [rsi + 0x10]
mov word [r15], cx
mov al, 1
jmp 0x1400392ae
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140039308
Capabilities:
Parse pe header

Disassembly:
mov rdx, qword [rcx + 8]
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x140039319
xor al, al
ret
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140039316
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x140039316
mov ecx, 0x20b
cmp word [rax + 0x18], cx
sete al
ret

Function at 0x1400393f0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub rsp, 0xe8
mov rcx, r9
call fcn.14003b820
test al, al
jne 0x14003948f
call fcn.140039384
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x28]
test al, al
je 0x14003948f
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], WSAGetLastError
lea r8d, [rdx + 0x60]
call fcn.14009c6c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003948f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0xe8
ret
Function at 0x14003a05c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1401cb2a0]
test rcx, rcx
je 0x14003a09a
call fcn.1400c2264
mov rbx, qword [0x1401cb358]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
test rbx, rbx
jne 0x14003a098
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14003a09a
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14003a0dc
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor eax, eax
lea r9, [0x14003949c]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
add rsp, 0x48
ret

Function at 0x14003a108
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor eax, eax
lea r9, [0x140039544]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
add rsp, 0x48
ret

Function at 0x14003e248
Capabilities:
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rax, qword [rcx]
mov rcx, qword [rax + 8]
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x14003e268
call fcn.140018794
lea rcx, [rsp + 0x30]
call fcn.1400a2a24
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
add rsp, 0x20
pop rbx
ret
Function at 0x140040834
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x108]
sub rsp, 0x208
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, qword [rbp + 0x160]
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, 0x40
jbe 0x1400408b3
lea rcx, [rsp + 0x20]
call fcn.140040cfc
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
call fcn.140040c78
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x20]
mov r9d, 0x20
xor r8d, r8d
call fcn.1400413b0
mov r8d, 0x20
lea rcx, [rbp + 0x70]
jmp 0x1400408d8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.14009bfb0
cmp rbx, 0x40
jae 0x1400408df
lea rcx, [rbp + 0x50]
mov r8d, 0x40
sub r8, rbx
add rcx, rbx
xor edx, edx
call fcn.14009c6c0
xor ebx, ebx
mov ecx, ebx
mov al, byte [rbp + rcx + 0x50]
inc rcx
xor al, 0x36
mov byte [rbp + rcx + 0x8f], al
cmp rcx, 0x40
jl 0x1400408e3
lea rcx, [rsp + 0x20]
call fcn.140040cfc
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
call fcn.1400415c8
lea rcx, [rsp + 0x20]
mov r8, r15
mov rdx, r14
call fcn.140040c78
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x20]
mov r9d, 0x20
xor r8d, r8d
call fcn.1400413b0
mov al, byte [rbp + rbx + 0x50]
inc rbx
xor al, 0x5c
mov byte [rbp + rbx + 0x8f], al
cmp rbx, 0x40
jl 0x140040944
lea rcx, [rsp + 0x20]
call fcn.140040cfc
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
call fcn.1400415c8
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x20]
mov r8d, 0x20
call fcn.1400415c8
mov r9d, dword [rbp + 0x168]
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rsi
call fcn.1400413b0
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x208
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret