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

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x140249dc4
xor eax, eax
jmp 0x140249e87
mov rbp, rbx
cmp word [rax], si
je 0x140249de9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140249dd0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140249dcc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140249cb4
movsxd r14, eax
test eax, eax
jne 0x140249e27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140249dbd
mov rcx, r14
call fcn.14024a828
mov rdi, rax
test rax, rax
jne 0x140249e40
xor ecx, ecx
call fcn.1402482ec
jmp 0x140249e1c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140249cb4
test eax, eax
jne 0x140249e71
mov rcx, rdi
call fcn.1402482ec
jmp 0x140249e7b
xor ecx, ecx
call fcn.1402482ec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x14024f5f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14024f618
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14024f618
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001132f
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140014500
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x548
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xea
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x568]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x518], rax
mov dword [rbp + 0x504], 1
lea rcx, [0x14002a0f7]
call fcn.140011640
nop
mov edx, 0x20
mov rcx, qword [rbp + 0x540]
call fcn.14001120d
mov rcx, qword [rbp + 0x540]
call fcn.140011082
nop
mov eax, dword [rbp + 0x504]
or eax, 1
mov dword [rbp + 0x504], eax
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.1400114f6
nop
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.1400114f6
nop
mov dword [rbp + 0x10], 0x68
mov r8d, 0x238
xor edx, edx
lea rcx, [rbp + 0xd0]
call fcn.1400114f6
nop
mov dword [rbp + 0xd0], 0x238
xor edx, edx
mov ecx, 2
call fcn.14001130c
mov qword [rbp + 0x328], rax
cmp qword [rbp + 0x328], 0xffffffffffffffff
jne 0x140014627
mov dword [rbp + 0x504], 0
mov eax, dword [rbp + 0x504]
and eax, 1
test eax, eax
je 0x14001461b
and dword [rbp + 0x504], 0xfffffffe
mov rcx, qword [rbp + 0x540]
call fcn.140011226
nop
mov rax, qword [rbp + 0x540]
jmp 0x1400146f8
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 0x328]
call fcn.1400113f7
test eax, eax
jne 0x140014675
mov dword [rbp + 0x504], 0
mov eax, dword [rbp + 0x504]
and eax, 1
test eax, eax
je 0x140014669
and dword [rbp + 0x504], 0xfffffffe
mov rcx, qword [rbp + 0x540]
call fcn.140011226
nop
mov rax, qword [rbp + 0x540]
jmp 0x1400146f8
mov rdx, qword [rbp + 0x548]
lea rcx, [rbp + 0xfc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400146a1
lea rdx, [rbp + 0xd8]
mov rcx, qword [rbp + 0x540]
call fcn.1400112e9
nop
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 0x328]
call fcn.1400115aa
test eax, eax
jne 0x140014675
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rbp + 0x504], 0
mov eax, dword [rbp + 0x504]
and eax, 1
test eax, eax
je 0x1400146f1
and dword [rbp + 0x504], 0xfffffffe
mov rcx, qword [rbp + 0x540]
call fcn.140011226
nop
mov rax, qword [rbp + 0x540]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001fd50]
call fcn.14001156e
mov rax, rdi
mov rcx, qword [rbp + 0x518]
xor rcx, rbp
call fcn.140011325
lea rsp, [rbp + 0x528]
pop rdi
pop rbp
ret

Function at 0x14001139d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400178a0
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 0x140011492
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018bf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018c10
xor al, al
jmp 0x140018c91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018c23
xor al, al
jmp 0x140018c91
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 0x140018c4d
xor al, al
jmp 0x140018c91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018c61
xor al, al
jmp 0x140018c91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018c73
xor al, al
jmp 0x140018c91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018c8f
xor al, al
jmp 0x140018c91
mov al, 1
add rsp, 0x38
ret
Function at 0x1400169f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011672
movzx eax, al
test eax, eax
jne 0x140016a10
mov ecx, 7
call fcn.140011578
nop
mov byte [rsp + 0x20], 0
call fcn.1400115a5
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140016a34
mov ecx, 7
call fcn.140011578
nop
jmp 0x140016a8c
cmp dword [0x140024b78], 0
jne 0x140016a87
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.140011307
test eax, eax
je 0x140016a68
mov eax, 0xff
jmp 0x140016b91
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011591
mov dword [0x140024b78], 2
jmp 0x140016a8c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011564
call fcn.1400114c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016ae9
mov rcx, qword [rsp + 0x30]
call fcn.14001127b
movzx eax, al
test eax, eax
je 0x140016ae9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.140011505
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140016b1d
mov rcx, qword [rsp + 0x38]
call fcn.14001127b
movzx eax, al
test eax, eax
je 0x140016b1d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001161d
nop
call fcn.140016c40
mov dword [rsp + 0x28], eax
call fcn.140011492
movzx eax, al
test eax, eax
jne 0x140016b3c
mov ecx, dword [rsp + 0x28]
call fcn.140011087
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140016b4b
call fcn.14001162c
nop
xor edx, edx
mov cl, 1
call fcn.140011249
mov eax, dword [rsp + 0x28]
jmp 0x140016b91
add rsp, 0x68
ret
Function at 0x1400099e0
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 0x140009a60
cmp r11, r10
ja 0x140009ad7
cmp r10, rdx
ja 0x140009ae9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140009a62
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140009a40
jmp 0x140009ac4
ja 0x140009a6a
mov r11, r10
cmp rax, r8
jne 0x140009a0e
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 0x140009aa0
mov rdi, r8
sub ecx, edx
jns 0x140009abb
jmp 0x140009ac6
cmp r8, rsi
je 0x140009af8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140009ac6
xor al, 1
cmp rdi, rsi
jne 0x140009a80
jmp 0x140009ac6
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.1400085e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140007270
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140008650
int3

Function at 0x140010090
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400100b5
cmp rax, rcx
je 0x1400100bb
cmp rdx, 4
jae 0x1400100c2
xor eax, eax
xor r8d, r8d
jmp 0x140010160
pop rbp
jmp fcn.140006e00
xor eax, eax
jmp 0x140010177
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003a6b0]
movdqa xmm3, xmmword [0x14003a6c0]
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 0x1400100f0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140010177
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140010160
pop rbp
ret
Function at 0x140011160
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 0x1400111e4
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x1400111e4
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x1400111fd
cmp eax, 0x42
jne 0x1400111e4
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14001132d
cmp byte [r10 + rsi], 0x5f
jne 0x1400112bc
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14001132d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x140011387
mov dil, 1
xor r9d, r9d
jmp 0x14001132f
xor edx, edx
call fcn.14000cb60
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.14000cb60
test al, al
jne 0x14001136d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001123c
lea rdx, [0x140041f23]
mov r8d, 1
call fcn.1400072e0
mov rdx, rbx
test al, al
jne 0x14001136d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x1400111f0
xor r14d, r14d
lea rdi, [0x140042279]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x140011274
cmp byte [rax + rcx], 0x45
je 0x1400113c0
sub r14, 1
jb 0x14001129c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14001129c
mov r8d, 2
mov rdx, rdi
call fcn.1400072e0
mov rdx, rbx
test al, al
jne 0x14001136d
mov rcx, rdx
call fcn.14000e3f0
test al, al
jne 0x14001136d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x140011260
jmp 0x1400111f0
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14001131d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x1400112ff
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x1400112f1
add dl, 0xa9
jmp 0x1400112fd
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14001132d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14001132d
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x14001132f
cmp rsi, r11
jb 0x1400112d0
jmp 0x14001132f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x1400111bf
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x140011375
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, [0x140042258]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.1400072e0
mov rcx, rbx
test al, al
je 0x140011375
mov sil, 2
jmp 0x1400111f0
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x1400111f0
cmp qword [rcx + 0x20], 0
je 0x140011380
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.140011160
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400111f2
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x1400111f0
Function at 0x140013270
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 0x140013305
mov rax, qword [0x14004e038]
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 0x140013344
cmp dword [rbp], 0
je 0x140013328
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140013359
mov edi, eax
mov rax, qword [0x14004b0e0]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14004b0e0], rsi
jne 0x1400132e0
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 0x140013339
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14001339b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001332d
mov edi, dword [rbp + 4]
jmp 0x140013339
mov edi, dword [rsi + 0x18]
jmp 0x140013337
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.140014090
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_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.1400068f0
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.1400140e0
int3
Function at 0x140015110
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 ecx, dword [0x1400390c8]
test ecx, ecx
je 0x1400151df
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140015141
add rax, 8
jmp 0x1400151d6
je 0x1400151d4
movzx eax, byte [0x14004b040]
mov ecx, 0x10
call fcn.1400323e0
test rax, rax
je 0x140015212
mov rbx, rax
mov rsi, rax
lea rax, [0x1400390b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400390c8]
test ecx, ecx
je 0x1400151f2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400390c8]
test ecx, ecx
je 0x140015202
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400151cf
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400151c2
lock dec qword [rax]
jne 0x1400151c2
mov rcx, qword [rdi + 8]
call fcn.140014990
mov edx, 8
mov rcx, rdi
call fcn.140005c40
mov rax, rbx
jmp 0x1400151d6
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400390b0]
call fcn.140013270
mov ecx, eax
jmp 0x14001512d
lea rcx, [0x1400390b0]
call fcn.140013270
mov ecx, eax
jmp 0x140015185
lea rcx, [0x1400390b0]
call fcn.140013270
mov ecx, eax
jmp 0x140015199
mov ecx, 8
mov edx, 0x10
call fcn.1400052f0
int3

Function at 0x140015690
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 ecx, dword [0x140039088]
test ecx, ecx
je 0x14001573c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400156be
add rax, 8
jmp 0x140015733
je 0x140015731
movzx eax, byte [0x14004b040]
mov ecx, 0x10
call fcn.1400323e0
test rax, rax
je 0x14001576f
mov rbx, rax
mov rsi, rax
lea rax, [0x140039070]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140039088]
test ecx, ecx
je 0x14001574f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140039088]
test ecx, ecx
je 0x14001575f
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14001572c
mov edx, 8
mov rcx, rdi
call fcn.140005c40
mov rax, rbx
jmp 0x140015733
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140039070]
call fcn.140013270
mov ecx, eax
jmp 0x1400156ad
lea rcx, [0x140039070]
call fcn.140013270
mov ecx, eax
jmp 0x1400156fa
lea rcx, [0x140039070]
call fcn.140013270
mov ecx, eax
jmp 0x14001570e
mov ecx, 8
mov edx, 0x10
call fcn.1400052f0
int3
Function at 0x140015b80
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 ecx, dword [0x140039068]
test ecx, ecx
je 0x140015c34
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140015bae
add rax, 8
jmp 0x140015c2b
je 0x140015c29
movzx eax, byte [0x14004b040]
mov ecx, 0x18
call fcn.1400323e0
test rax, rax
je 0x140015c67
mov rbx, rax
mov rsi, rax
lea rax, [0x140039050]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x140039068]
test ecx, ecx
je case.0x140015fa6.316
dec ecx
xor eax, eax
lea rcx, [0x140039050]
call fcn.140013270
mov ecx, eax
jmp 0x140015b9d
invalid
invalid
mov ecx, 8
mov edx, 0x18
call fcn.1400052f0
int3

Function at 0x140018520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
Function at 0x140031e00
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 ecx, dword [0x1400390a8]
test ecx, ecx
je 0x140031ecf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140031e31
add rax, 8
jmp 0x140031ec6
je 0x140031ec4
movzx eax, byte [0x14004b040]
mov ecx, 0x10
call fcn.1400323e0
test rax, rax
je 0x140031f02
mov rbx, rax
mov rsi, rax
lea rax, [0x140039090]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400390a8]
test ecx, ecx
je 0x140031ee2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400390a8]
test ecx, ecx
je 0x140031ef2
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140031ebf
mov rax, qword [rdi + 8]
test rax, rax
je 0x140031eb2
lock dec qword [rax]
jne 0x140031eb2
mov rcx, qword [rdi + 8]
call fcn.140031f20
mov edx, 8
mov rcx, rdi
call fcn.140005c40
mov rax, rbx
jmp 0x140031ec6
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140039090]
call fcn.140013270
mov ecx, eax
jmp 0x140031e1d
lea rcx, [0x140039090]
call fcn.140013270
mov ecx, eax
jmp 0x140031e75
lea rcx, [0x140039090]
call fcn.140013270
mov ecx, eax
jmp 0x140031e89
mov ecx, 8
mov edx, 0x10
call fcn.1400052f0
int3

Function at 0x140037750
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.1400385e0
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.1400385e0
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 0x1400377c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004b154]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140037950
mov rax, qword [0x14004b158]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14003780c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140037895
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400377f0
mov rcx, rdi
call fcn.140038320
test rax, rax
mov r12, rax
je 0x1400379a2
mov rax, qword [0x14004b158]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140038460
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14004b158]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140037985
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14003788e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140037900
add dword [0x14004b154], 1
cmp ebx, 8
jae 0x1400378c1
test bl, 4
jne 0x140037960
test ebx, ebx
je 0x1400378b6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140037974
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 0x1400378b6
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 0x1400378da
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 [0x14004b158]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003788e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140037750
xor esi, esi
jmp 0x140037817
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400378b6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400378b6
mov rax, qword [0x14004b158]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140037750
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140037750
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140037f70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14004b1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004b1a0]
test rbx, rbx
je 0x140037fc4
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 0x140037fbb
test rsi, rsi
je 0x140037fbb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140037fa0
lea rcx, [0x14004b1c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140038320
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140045040]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14003838f
mov rcx, r9
call fcn.1400381f0
test eax, eax
je 0x14003838f
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 0x14003838d
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 0x140038384
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14003838f
add rdx, 0x28
cmp rdx, r9
jne 0x140038370
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret