joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b280
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14001d21c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14000b2dc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000b2bc
mov dword [0x14001d21c], 1
jmp 0x14000b2ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14000b2d6
mov dword [0x14001d21c], 2
jmp 0x14000b359
mov eax, dword [0x14001d21c]
cmp eax, 1
jne 0x14000b350
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000b32a
cmp word [rdi], bp
mov rax, rdi
je 0x14000b309
add rax, 2
cmp word [rax], bp
jne 0x14000b2f7
add rax, 2
cmp word [rax], bp
jne 0x14000b2f7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14000d4b0
test rax, rax
mov rbx, rax
jne 0x14000b331
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14000b44b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140006320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14000b44b
cmp eax, 2
je 0x14000b359
test eax, eax
jne 0x14000b32a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14000b32a
cmp byte [rax], bpl
mov rbx, rax
je 0x14000b3a8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000b32a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14000b370
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14000d520
test rax, rax
mov r12, rax
jne 0x14000b3cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14000b44b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14000b435
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000b45e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14000b3e0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400062c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14000b446
Function at 0x140011720
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400091a0
xor ebx, ebx
cmp qword [0x14001d540], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001184c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001195f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001195f
mov rcx, rax
call fcn.1400090d0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001d540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400090d0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001d548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400090d0
lea rcx, [rsp + 0x98]
mov qword [0x14001d550], rax
call fcn.140009b30
test eax, eax
je 0x1400117ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140007920
cmp dword [rsp + 0x98], 2
jne 0x14001184c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400090d0
test rax, rax
mov qword [0x14001d560], rax
je 0x14001184c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400090d0
mov qword [0x14001d558], rax
mov rcx, qword [0x14001d558]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400118f8
cmp qword [0x14001d560], rbp
je 0x1400118f8
call fcn.140009290
mov rcx, qword [0x14001d560]
mov rsi, rax
call fcn.140009290
test rsi, rsi
mov r12, rax
je 0x1400118f8
test rax, rax
je 0x1400118f8
call rsi
test rax, rax
je 0x1400118c3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400118c3
test byte [rsp + 0x40], 1
jne 0x1400118f8
lea rcx, [rsp + 0x30]
call fcn.140009b80
test eax, eax
je 0x1400118e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140007920
cmp dword [rsp + 0x30], 4
jb 0x1400118f2
bts edi, 0x15
jmp 0x140011936
bts edi, 0x12
jmp 0x140011936
mov rcx, qword [0x14001d548]
cmp rcx, rbp
je 0x140011936
call fcn.140009290
test rax, rax
je 0x140011936
call rax
test rax, rax
mov rbx, rax
je 0x140011936
mov rcx, qword [0x14001d550]
cmp rcx, rbp
je 0x140011936
call fcn.140009290
test rax, rax
je 0x140011936
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001d540]
call fcn.140009290
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001195f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140011961
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400119e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14001b0c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140011a27
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140012bc0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x38
ret
Function at 0x180005ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x180005c20
cmp r10, r11
jb 0x180005c97
cmp r10, rdx
ja 0x180005ca9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x180005c22
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x180005c00
jmp 0x180005c84
ja 0x180005c2a
mov r11, r10
cmp rax, r8
jne 0x180005bce
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x180005c60
mov rdi, r8
sub ecx, edx
jns 0x180005c7b
jmp 0x180005c86
cmp r8, rsi
je 0x180005cb8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x180005c86
xor al, 1
cmp rdi, rsi
jne 0x180005c40
jmp 0x180005c86
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180004bd0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1800038c0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.180004c40
int3

Function at 0x18000be70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x18000be95
cmp rax, rcx
je 0x18000be9b
cmp rdx, 4
jae 0x18000bea2
xor eax, eax
xor r8d, r8d
jmp 0x18000bf40
pop rbp
jmp fcn.180003450
xor eax, eax
jmp 0x18000bf57
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1800373d0]
movdqa xmm3, xmmword [0x1800373e0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x18000bed0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x18000bf57
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x18000bf40
pop rbp
ret
Function at 0x18000d1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x18000d221
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x18000d221
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x18000d23a
cmp eax, 0x42
jne 0x18000d221
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
cmp rsi, r11
jae 0x18000d2ec
cmp byte [r10 + rsi], 0x5f
jne 0x18000d2ec
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x18000d36b
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x18000d3c8
mov sil, 1
xor r9d, r9d
jmp 0x18000d370
xor edx, edx
call fcn.180008a60
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.180008a60
test al, al
jne 0x18000d3ae
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18000d279
lea rdx, [0x180062774]
mov r8d, 1
call fcn.180003930
mov rdx, rbx
test al, al
jne 0x18000d3ae
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x18000d22d
xor r14d, r14d
lea rdi, [0x180062ac9]
nop
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x18000d2a4
cmp byte [rax + rcx], 0x45
je 0x18000d401
sub r14, 1
jb 0x18000d2cc
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x18000d2cc
mov r8d, 2
mov rdx, rdi
call fcn.180003930
mov rdx, rbx
test al, al
jne 0x18000d3ae
mov rcx, rdx
call fcn.18000a270
test al, al
jne 0x18000d3ae
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x18000d290
jmp 0x18000d22d
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp rsi, r11
jae 0x18000d36e
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x18000d352
lea r14d, [rdx - 0x30]
cmp r14b, 0xa
jb 0x18000d33b
lea r14d, [rdx - 0x61]
cmp r14b, 0x1a
jae 0x18000d32b
add dl, 0xa9
jmp 0x18000d338
lea r14d, [rdx - 0x41]
cmp r14b, 0x1a
jae 0x18000d36e
add dl, 0xe3
mov r14d, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul rdi
jo 0x18000d36e
movzx edx, r14b
add rax, rdx
jae 0x18000d300
jmp 0x18000d36e
inc rsi
mov qword [rcx + 0x10], rsi
cmp rax, 0xffffffffffffffff
je 0x18000d36e
inc rax
cmp rax, r8
jb 0x18000d205
mov r9b, 1
xor esi, esi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x18000d3b6
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x180062aa8]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.180003930
mov rcx, rbx
test al, al
je 0x18000d3b6
mov sil, 2
jmp 0x18000d22d
mov qword [rcx], 0
mov byte [rcx + 8], sil
xor esi, esi
jmp 0x18000d22d
cmp qword [rcx + 0x20], 0
je 0x18000d3c1
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.18000d1a0
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x18000d22f
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x18000d22d
Function at 0x180010930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x180036070]
test esi, esi
je 0x1800109d3
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1800109ca
je 0x180010979
test rdi, rdi
je 0x18001097d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x18001097f
mov rbx, qword [rdi + 8]
jmp 0x18001097f
xor eax, eax
jmp 0x1800109ca
xor ebx, ebx
movzx eax, byte [0x18006a020]
mov ecx, 0x10
call fcn.180031070
test rax, rax
je 0x1800109e6
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1800109c7
mov edx, 8
mov rcx, rdi
call fcn.1800069a0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x180036058]
call fcn.180010c50
mov esi, eax
jmp 0x180010950
mov ecx, 8
mov edx, 0x10
call fcn.180002bc0
int3

Function at 0x180010a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x180036090]
test esi, esi
je 0x180010a9e
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x180010a95
je 0x180010a93
movzx eax, byte [0x18006a020]
mov ecx, 0x10
call fcn.180031070
test rax, rax
je 0x180010ab1
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x180010a8e
mov rax, qword [rdi]
test rax, rax
je 0x180010a81
lock dec qword [rax]
jne 0x180010a81
mov rcx, qword [rdi]
call fcn.18000fb50
mov edx, 8
mov rcx, rdi
call fcn.1800069a0
mov rax, rsi
jmp 0x180010a95
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x180036078]
call fcn.180010c50
mov esi, eax
jmp 0x180010a1d
mov ecx, 8
mov edx, 0x10
call fcn.180002bc0
int3
Function at 0x180010c50
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x180010ce5
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x180010d24
cmp dword [rbp], 0
je 0x180010d08
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x180010d39
mov edi, eax
mov rax, qword [0x18006d030]
mov rax, qword [0x18006a060]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x18006a060], rsi
jne 0x180010cc0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x180010d19
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x180010d7b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x180010d0d
mov edi, dword [rbp + 4]
jmp 0x180010d19
mov edi, dword [rsi + 0x18]
jmp 0x180010d17
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.180010db0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.180002f40
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.180010e00
int3

Function at 0x180011270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x180036050]
test esi, esi
je 0x1800112f8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1800112ef
je 0x1800112ed
movzx eax, byte [0x18006a020]
mov ecx, 0x18
call fcn.180031070
test rax, rax
je 0x180011308
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1800112e8
mov edx, 8
mov rcx, rdi
call fcn.1800069a0
mov rax, rsi
jmp 0x1800112ef
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x180036038]
call fcn.180010c50
mov esi, eax
jmp 0x180011289
mov ecx, 8
mov edx, 0x18
call fcn.180002bc0
int3

Function at 0x180012fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
Function at 0x180029520
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xd0], xmm15
movaps xmmword [rbp + 0xc0], xmm14
movaps xmmword [rbp + 0xb0], xmm13
movaps xmmword [rbp + 0xa0], xmm12
movaps xmmword [rbp + 0x90], xmm11
movaps xmmword [rbp + 0x80], xmm10
movaps xmmword [rbp + 0x70], xmm9
movaps xmmword [rbp + 0x60], xmm8
movaps xmmword [rbp + 0x50], xmm7
movaps xmmword [rbp + 0x40], xmm6
mov rsi, r8
mov rbx, rdx
cmp rdx, 0x21
jb 0x1800299f7
mov r15, r9
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x30], rax
mov edi, dword [rbp + 0x150]
lea rax, [rsi - 0x20]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], r9
Function at 0x180030880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
add rsi, r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x30], 0x81
mov byte [rbp - 0x24], 0x81
mov r14b, 0x81
lea r8, [0x180038a00]
jmp 0x1800308df

Function at 0x1800345d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.180035230
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.180035230
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x180034640
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x18006a0a4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1800347d0
mov rax, qword [0x18006a0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x18003468c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x180034715
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x180034670
mov rcx, rdi
call fcn.180034f60
test rax, rax
mov r12, rax
je 0x180034822
mov rax, qword [0x18006a0a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1800350a0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x18006a0a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180034805
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x18003470e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x180034780
add dword [0x18006a0a4], 1
cmp ebx, 8
jae 0x180034741
test bl, 4
jne 0x1800347e0
test ebx, ebx
je 0x180034736
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1800347f4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x180034736
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x18003475a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x18006a0a8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003470e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1800345d0
xor esi, esi
jmp 0x180034697
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x180034736
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x180034736
mov rax, qword [0x18006a0a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1800345d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1800345d0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x180034bb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x18006a0e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x18006a0c0]
test rbx, rbx
je 0x180034c04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x180034bfb
test rsi, rsi
je 0x180034bfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180034be0
lea rcx, [0x18006a0e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x180034f60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x180064a90]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x180034fcf
mov rcx, r9
call fcn.180034e30
test eax, eax
je 0x180034fcf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x180034fcd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x180034fc4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x180034fcf
add rdx, 0x28
cmp rdx, r9
jne 0x180034fb0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret