joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ce0
Capabilities:
Check if process is running under wine

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x230
lea rdx, str.SoftwareWineWineBrowser
mov r12, rcx
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
lea r13, [rsp + 0x30]
test eax, eax
je 0x401db0
mov rax, qword [0x00405430]
movdqu xmm0, xmmword [str.xdg_open]
movdqu xmm1, xmmword [0x004053d0]
movdqu xmm2, xmmword [0x004053e0]
mov qword [rsp + 0xa0], rax
mov eax, dword [0x00405438]
movdqu xmm3, xmmword [0x004053f0]
movdqu xmm4, xmmword [0x00405400]
movups xmmword [rsp + 0x30], xmm0
movdqu xmm5, xmmword [0x00405410]
movdqu xmm0, xmmword [0x00405420]
movups xmmword [rsp + 0x40], xmm1
mov dword [rsp + 0xa8], eax
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm3
movups xmmword [rsp + 0x70], xmm4
movups xmmword [rsp + 0x80], xmm5
movups xmmword [rsp + 0x90], xmm0
mov rdx, r12
mov rcx, r13
call sym.launch_app
add rsp, 0x230
pop rbx
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x28]
mov r8, r13
lea rdx, str.Browsers
call sym.get_commands.constprop.0
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x401d92
jmp 0x401d15
Function at 0x403320
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x403373
cmp byte [r12 + rbx - 1], 0xa
je 0x40334e
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x00408124], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x403a50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x100
mov ebx, ecx
mov rcx, rdx
mov rsi, rdx
mov rdi, r8
call sym.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, ebx
jae 0x403c28
mov ecx, dword [0x00408124]
xor eax, eax
mov rdx, qword gs:[0x30]
cmp dword [rdx + 0x48], ecx
je 0x403b34
test byte [0x00404020], 8
jne 0x403bd0
lea r12, [rsp + 0x30]
mov rbp, r12
test byte [0x00404030], 8
jne 0x403b90
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x48]
lea rdx, str._04x:
mov rcx, rbp
call sym.sprintf
test rdi, rdi
je 0x403adb
cmp ebx, 3
jbe 0x403b48
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, r12
mov r9, rax
mov ecx, dword [r8]
add r8, 4
lea edx, [rcx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x403aec
mov eax, edx
mov rcx, r12
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea rax, [r8 + 2]
cmove r8, rax
mov eax, edx
add al, dl
mov edx, 1
sbb r8, 3
sub r8, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x100
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cdqe
add rsi, 1
mov qword [rsp + 0x28], rdi
lea r8, str._s:_s:_s
lea rcx, [rbp + rax]
mov rax, r12
mov qword [rsp + 0x20], rsi
sub rax, rcx
lea rdx, [rax + 0xc8]
lea rax, str.fixme
mov r9, qword [rax + rbx*8]
call sym.snprintf.constprop.0
jmp 0x403adb
lea rcx, [0x00404030]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x403ab5
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x40]
mov rcx, rbp
lea rdx, str._04x:
call sym.sprintf
cdqe
add rbp, rax
jmp 0x403ab5
lea rcx, [0x00404020]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x403aa0
call qword [sym.imp.kernel32.dll_GetTickCount]
lea r12, [rsp + 0x30]
lea rdx, str._3u._03u:
mov r8d, eax
mov rcx, r12
mov r9, r8
imul r8, r8, 0x10624dd3
shr r8, 0x26
imul eax, r8d, 0x3e8
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x403aa8
mov eax, 0xffffffff
jmp 0x403b34

Function at 0x403d90
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sym._configure_wide_argv
call sym._initialize_wide_environment
call sym.__p___argc
mov r12d, dword [rax]
call sym.__p___wargv
mov r13, qword [rax]
call sym._get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sym._set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call sym.wmain
mov ecx, eax
call sym.exit
nop
nop
nop
nop
Function at 0x14001b950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14001b980
test ecx, ecx
jne 0x14001b9d0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001b98c
test ecx, ecx
jne 0x14001b9d0
mov rcx, rdi
call fcn.14001b830
movzx eax, al
test bpl, bpl
jne 0x14001b9d7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14001b9c3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14001bb48]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14001b9c3.2
xor eax, eax
test bpl, bpl
je 0x14001b99c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14001bb29
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001ba0a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14001ba89
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14001ba50
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001ba6b
inc rax
dec rdi
cmp rax, 1
jne 0x14001ba30
jmp 0x14001ba89
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001ba6b
cmp ebx, 0x5c
je 0x14001ba6b
inc rax
dec rdi
cmp rax, 1
jne 0x14001ba50
jmp 0x14001ba89
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14001bb37
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14001bab3
mov al, 9
cmp rdx, 2
je 0x14001bab7
cmp rdx, 1
jne 0x14001bac7
cmp byte [r8], 0x2e
jne 0x14001bac7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14001bac7
mov al, 0xa
jmp 0x14001bac7
cmp byte [r8], 0x2e
jne 0x14001bac7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14001b9c3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14001b9c3.2
mov ecx, 2
jmp case.0x14001b9c3.2
lea r8, [0x14003c2e8]
call fcn.14002b290
ud2
lea r8, [0x14003c300]
call fcn.14002b290
ud2
Function at 0x140022380
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400223fe
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14002243f
cmp dword [rsp + 0x2c], 0
je 0x140022423
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140022459
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400460e0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400460e0], rsi
jne 0x1400223e0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140022435
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400224a5
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140022428
mov edi, dword [rsp + 0x28]
jmp 0x140022435
mov edi, dword [rsi + 0x18]
jmp 0x140022433
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140005850
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrarycore_srcops_function.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14002aa00
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrarycore_srcops_function.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140005780
ud2
Function at 0x140029380
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003a048]
test ecx, ecx
je 0x1400293ad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400293c6
cmp qword [rax + 8], 0
je 0x1400293c6
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003a030]
call fcn.140022380
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002939c
mov ecx, dword [0x14003a048]
test ecx, ecx
je 0x140029471
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14002948e
mov rsi, rax
test rax, rax
jne 0x140029453
movzx eax, byte [0x140046158]
mov rcx, qword [0x1400460d8]
test rcx, rcx
jne 0x140029418
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400294a6
mov rcx, rax
mov qword [0x1400460d8], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400294a6
mov rsi, rax
lea rax, [0x14003a030]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003a048]
test ecx, ecx
je 0x140029496
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003a030]
call fcn.140022380
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400293e5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003a030]
call fcn.140022380
mov ecx, eax
jmp 0x14002944b
mov ecx, 8
mov edx, 0x20
call fcn.14002a150
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14003a068]
test ecx, ecx
je 0x1400294f0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140029509
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140029509
add rdi, 0x10
jmp 0x1400295e9
lea rcx, [0x14003a050]
call fcn.140022380
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400294dd
mov ecx, dword [0x14003a068]
test ecx, ecx
je 0x1400295ca
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400295e7
mov rsi, rax
test rax, rax
jne 0x14002959a
movzx eax, byte [0x140046158]
mov rcx, qword [0x1400460d8]
test rcx, rcx
jne 0x14002955b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140029603
mov rcx, rax
mov qword [0x1400460d8], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140029603
mov rsi, rax
lea rax, [0x14003a050]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003a068]
test ecx, ecx
je 0x1400295f3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x1400295e9
test rcx, rcx
je 0x1400295e9
lock dec qword [rcx]
jne 0x1400295e9
call fcn.1400068b0
jmp 0x1400295e9
lea rcx, [0x14003a050]
call fcn.140022380
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140029528
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14003a050]
call fcn.140022380
mov ecx, eax
jmp 0x140029592
mov ecx, 8
mov edx, 0x20
call fcn.14002a150
ud2
Function at 0x140029620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003a088]
test ecx, ecx
je 0x1400296e6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002964d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400296e0
mov ecx, dword [0x14003a088]
test ecx, ecx
je 0x140029708
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140029725
mov rsi, rax
test rax, rax
jne 0x1400296da
movzx eax, byte [0x140046158]
mov rcx, qword [0x1400460d8]
test rcx, rcx
jne 0x14002969f
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140029740
mov rcx, rax
mov qword [0x1400460d8], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140029740
mov rsi, rax
lea rax, [0x14003a070]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14003a088]
test ecx, ecx
je 0x140029730
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140029727
lea rcx, [0x14003a070]
call fcn.140022380
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140029640
jmp 0x14002964d
lea rcx, [0x14003a070]
call fcn.140022380
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14002966c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003a070]
call fcn.140022380
mov ecx, eax
jmp 0x1400296d2
mov ecx, 8
mov edx, 0x10
call fcn.14002a150
ud2

Function at 0x14002d2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x14002d360
cmp r10, r11
jb 0x14002d3d6
cmp r10, rdx
ja 0x14002d3ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14002d362
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14002d340
jmp 0x14002d3c4
ja 0x14002d36a
mov r11, r10
cmp rax, r8
jne 0x14002d304
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 0x14002d3a0
mov rdi, r8
sub ecx, edx
jns 0x14002d3bb
jmp 0x14002d3c6
cmp r8, rsi
je 0x14002d3fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14002d3c6
xor al, 1
cmp rdi, rsi
jne 0x14002d380
jmp 0x14002d3c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002bd70
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002b310
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002b6d0
ud2
Function at 0x140035e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140035ebb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140035ebb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140035ed6
cmp eax, 0x42
jne 0x140035ebb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140035f86
cmp byte [r9 + r11], 0x5f
jne 0x140035f86
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140035fee
mov rcx, rsi
xor edx, edx
call fcn.140030e20
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140030e20
test al, al
jne 0x140036081
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140035f12
lea rdx, [0x14003f47c]
mov r8d, 1
call fcn.14002b390
test al, al
jne 0x140036081
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140035eca
xor r14d, r14d
lea rbx, [0x14003f860]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140035f44
cmp byte [rax + rcx], 0x45
je 0x1400360aa
sub r14, 1
jb 0x140035f69
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140035f69
mov r8d, 2
mov rdx, rbx
call fcn.14002b390
test al, al
jne 0x140036081
mov rcx, rsi
call fcn.140032720
test al, al
jne 0x140036081
mov rax, qword [rsi]
test rax, rax
jne 0x140035f30
jmp 0x140035eca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140036048
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140035fe2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140035fcc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140035fbb
add dl, 0xa9
jmp 0x140035fca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140036048
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140036048
movzx edx, bl
add rax, rdx
jae 0x140035f90
jmp 0x140036048
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140036048
cmp rax, rcx
jae 0x140036045
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140036089
cmp qword [rsi + 0x20], 0
je 0x1400360a3
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140035e60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140035ecc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140036098
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003f820]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14002b390
test al, al
je 0x140036098
mov dil, 2
jmp 0x140035eca
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140036053
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140035eca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140035eca
Function at 0x140038ea0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140039c60
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.140039c60
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 0x140038f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400461e4]
mov rbx, rcx
test esi, esi
jle 0x140039040
mov rax, qword [0x1400461e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140038f5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140038fe5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140038f40
mov rcx, rbx
call fcn.140039980
mov rdi, rax
test rax, rax
je 0x140039062
mov rax, qword [0x1400461e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140039ac0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400461e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140039047
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140038fde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140038ff0
add dword [0x1400461e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400461e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140038fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140038ea0
nop dword [rax]
xor esi, esi
jmp 0x140038f68
mov rax, qword [0x1400461e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140038ea0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140038ea0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400395f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140046240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140046220]
test rbx, rbx
je 0x14003964c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140039643
test eax, eax
jne 0x140039643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140039628
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140039980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003ff70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400399a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400399a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400399a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400399fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400399f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400399a0
add rax, 0x28
cmp rax, r9
jne 0x1400399e0
xor eax, eax
ret

Function at 0x140039a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003ff70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140039a1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140039a28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140039a1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140039ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003ff70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140039adf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140039ae8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret