joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018c40
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x14009f9c0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140018d88
cmp eax, 1
je 0x140018cad
call fcn.140017b50
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.1400174f0
mov r13d, dword [rbx]
test r13d, r13d
je 0x140018cd0
cmp r13d, 1
jne 0x140018d60
mov rcx, r12
call fcn.1400177c0
test rdi, rdi
je 0x140018cad
mov rcx, rdi
call fcn.140017ef0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x140018ddb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140017fd0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140018270
mov ecx, dword [0x140092168]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x140018dc8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140018270
mov ecx, dword [0x140092168]
call r13
test rax, rax
je 0x140018db0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140018270
mov ecx, dword [0x140092168]
call r13
test rax, rax
je 0x140018d98
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018c98
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140016f30
jmp 0x140018c98
mov eax, 0x16
jmp 0x140018caf
call fcn.140018320
test rax, rax
jne 0x140018d49
jmp 0x14002aa7e
call fcn.140018320
test rax, rax
jne 0x140018d25
jmp 0x14002aa6f
call fcn.140018320
test rax, rax
jne 0x140018cff
jmp 0x14002aa65
call fcn.140016e80
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x140019060
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400190d8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001b940
cmp esi, dword [rbx + 0x48]
jae 0x1400190b3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400190b3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001b980
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140018320
mov rbx, rax
jmp 0x14001908d
Function at 0x1400190f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400191f0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001b940
cmp esi, dword [rbx + 0x48]
jae 0x140019170
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001b980
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400191fd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x1400191fd
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001913f
call fcn.140018320
mov rbx, rax
jmp 0x14001912a
mov rcx, r13
call fcn.14001b980
mov eax, 0xc
jmp 0x14001915d

Function at 0x140019280
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400192a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140018320
test rax, rax
jne 0x14001929a
add rsp, 0x28
ret

Function at 0x140019310
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019338
add rax, 0x18
add rsp, 0x28
ret
call fcn.140018320
test rax, rax
jne 0x14001932a
jmp 0x14001932e

Function at 0x140019450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400a8248]
test eax, eax
jne 0x140019468
xor eax, eax
add rsp, 0x28
ret
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019498
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001945e
test byte [rax + 0x40], 3
je 0x14001945e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140019460
call fcn.140018320
test rax, rax
jne 0x14001947e
jmp 0x14001945e
Function at 0x1400194b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400194f0
test ebx, ebx
jle 0x1400194e0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140018320
test rax, rax
jne 0x1400194cd
add rsp, 0x20
pop rbx
ret

Function at 0x1400195e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019658
test byte [rbx + 0x40], 0xc
jne 0x14001960f
mov eax, dword [0x1400a8248]
test eax, eax
jne 0x140019620
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400174f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140019643
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140019643
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001966c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400177c0
call fcn.140018320
mov rbx, rax
test rax, rax
jne 0x1400195ff
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001968a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400177c0
call fcn.140019500
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140019710
call fcn.14001a930
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140019748
call fcn.140018270
mov ecx, dword [0x140092168]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400197a0
test esi, esi
je 0x140019726
call fcn.1400195e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019780
mov edx, edi
call fcn.14001aa00
call fcn.1400195e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019790
call fcn.1400195e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400195e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018270
mov ecx, dword [0x140092168]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400196e5
call fcn.140018320
mov rbx, rax
jmp 0x1400196e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400196fe
call fcn.140018320
jmp 0x140019726
call fcn.140018320
mov rbx, rax
jmp 0x1400196e1
Function at 0x1400196a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019658
test byte [rbx + 0x40], 0xc
jne 0x14001960f
mov eax, dword [0x1400a8248]
test eax, eax
jne 0x140019620
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400174f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140019643
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140019643
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001966c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400177c0
call fcn.140018320
mov rbx, rax
test rax, rax
jne 0x1400195ff
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001968a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400177c0
call fcn.140019500
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140019710
call fcn.14001a930
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140019748
call fcn.140018270
mov ecx, dword [0x140092168]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400197a0
test esi, esi
je 0x140019726
call fcn.1400195e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019780
mov edx, edi
call fcn.14001aa00
call fcn.1400195e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019790
call fcn.1400195e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400195e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140018270
mov ecx, dword [0x140092168]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400196e5
call fcn.140018320
mov rbx, rax
jmp 0x1400196e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400196fe
call fcn.140018320
jmp 0x140019726
call fcn.140018320
mov rbx, rax
jmp 0x1400196e1

Function at 0x1400197b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019820
test esi, esi
je 0x140019800
call fcn.1400195e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019830
mov edx, esi
call fcn.14001aa00
call fcn.1400195e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400195e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400195e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018320
mov rbx, rax
jmp 0x1400197d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400197ea
Function at 0x14001ad00
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140092178]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.14001b940
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x14001ad49
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x14001ad49
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.14001b980
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.140016f30
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.1400177c0
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.1400177c0

Function at 0x14001b190
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14001afd0
test eax, eax
je 0x14001b1b8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.1400174f0
test eax, eax
jne 0x14001b1e1
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x14001b1f8
mov rcx, rdi
call fcn.1400177c0
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14001ad00
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.1400174f0
mov ebp, eax
test eax, eax
je 0x14001b220
mov rcx, rdi
call fcn.1400177c0
mov edx, ebp
jmp 0x14001b1e3
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.1400177c0
mov rcx, rdi
mov esi, eax
call fcn.1400177c0
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x14001b1e3

Function at 0x14001b4c0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14001ac90
test eax, eax
jne 0x14001b540
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x14001b510
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.1400177c0
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.1400177c0
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.14001ad00
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.1400174f0
mov edx, eax
test eax, eax
jne 0x14001b4fd
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x14001b550
mov rcx, rdi
call fcn.1400177c0
mov edx, eax
jmp 0x14001b4fd
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.14001c2b0
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.1400177c0
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14001b4fd
Function at 0x1400e5750
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400e9d90
sub rsp, rax
mov rax, qword [0x14012a4d8]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1400e5812
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400e57bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400e57b0
cmp rcx, 1
jb 0x1400e586a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400e57e0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400f8fd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400e57a0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400e5843
lea rcx, [rsp + 0x80]
call fcn.1400fbccc
jmp 0x1400e5845
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400e9ac0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400edca8
int3
Function at 0x1400e9610
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14012a4d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x1400e96b5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400e966d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400e9660
cmp rcx, 1
jb 0x1400e96e6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400e9683
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400f8fd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400e9650
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400e9ac0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400edca8
int3
Function at 0x1400e9790
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x14012a4d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140133800]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1400e97e0
lea rcx, [0x14010939c]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x140133800], rax
test rax, rax
je 0x1400e9a1a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python38.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x1400e9916
test dl, dl
je 0x1400e98b2
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400e985d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400e9850
cmp rcx, 1
jb 0x1400e9a20
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400e9880
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400f8fd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400e9840
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
je 0x1400e98fd
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x1400e99b7
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400e99b7
test dl, dl
je 0x1400e9992
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400e993d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400e9930
cmp rcx, 1
jb 0x1400e9a14
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400e9960
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400f8fd4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400e9920
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x1400e99b7
mov rcx, r14
call fcn.1400cd100
sub qword [r13], 1
jne 0x1400e99c8
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x1400e99d8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400e9ac0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.1400edca8
int3
call fcn.1400edca8
int3
call fcn.1400edca8
int3
Function at 0x1400ea53c
Capabilities:
Parse pe header

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

Function at 0x1400ef4f4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400ef353
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ef353
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ef353
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ef353
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ef353
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ef353
cmp dword [rcx + 0xf8], 0
je 0x1400ef353
mov ecx, ebx
call fcn.1400ef410
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400ef1e0
nop
cmp dword [rbp + 0x20], 0
je 0x1400ef3a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ef3ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ef2e4
Function at 0x140100dd4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140100e5b
mov rsi, rbx
cmp word [rax], bp
je 0x140100e1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140100e04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140100e00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400fc4c0
mov rdi, rax
test rax, rax
je 0x140100e48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ea8e0
mov rbp, rdi
xor ecx, ecx
call fcn.1400fcfe0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180392f0a
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsi]
mov qword [rsp], 0xffffffff868d69be
mov rdx, qword [rsi + 8]
push 0x38afec0f
add rsi, 0xc
xor ecx, ecx
jmp 0x1803a5b1f
test rdx, rdx
push 0xffffffffaf3b763e
lea rsp, [rsp + 0x18]
je 0x1803a5b7f
lea r11, [0x18038e998]
movzx r10d, byte [rax]
xor r10d, ecx
and r10d, 0xff
push 0x553495a4
mov r10d, dword [r11 + r10*4]
shr ecx, 8
rol word [rsp + 6], 0x43
xor ecx, r10d
inc rax
mov dword [rsp + 2], 0xfdb44ea3
xor ecx, 0x9435e89e
dec rdx
not dword [rsp + 1]
lea rsp, [rsp + 8]
jne 0x1803a5b39
jmp 0x1803a5d88
push 0x2bb93a82
not ecx
mov dword [rsi], ecx
lea rsp, [rsp + 8]
jmp fcn.1803c648f