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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, qword [0x1402d2890]
mov r14, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x1401b7132
lea rcx, [rbp - 0x50]
call fcn.1401b6fb0
mov rbx, qword [rax]
test rbx, rbx
jne 0x1401b716e
mov eax, 2
jmp 0x1401b7299
test rsi, rsi
je 0x1401b715d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1401b715d
movups xmm0, xmmword [rsi + 0x10]
jmp 0x1401b7166
test r14, r14
je 0x1401b7128
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x50], xmm0
mov rbx, qword [rbp - 0x50]
mov qword [rsp + 0x90], r15
xor r15d, r15d
mov esi, r15d
test rdi, rdi
je 0x1401b728f
test rbx, rbx
je 0x1401b727a
cmp qword [rdi + 8], rsi
je 0x1401b727a
test r14, r14
je 0x1401b727a
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.1401b8620
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x40]
call fcn.1401b8620
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x1401b71d3
cmp qword [rax + 8], rdi
je 0x1401b71e0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401b71c4
mov rdx, rdi
mov rcx, rbx
call fcn.1401b96d0
mov esi, eax
mov rdx, qword [rbp - 0x40]
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
or rbx, 0xffffffffffffffff
test rcx, rcx
jne 0x1401b721a
lea rax, [rbp - 0x40]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x40]
cmp rcx, rax
je 0x1401b722d
lea rcx, [rbp - 0x28]
call fcn.1401b85c0
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x1401b722d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbp - 0x20]
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x1401b7263
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x1401b7276
lea rcx, [rbp - 8]
call fcn.1401b85c0
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x1401b7276
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x1401b728f
mov ecx, dword [rdi]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, reloc.WS2_32.dll_inet_addr
test eax, eax
cmove esi, ecx
mov r15, qword [rsp + 0x90]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401b7650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x1402d2888], 0
je 0x1401b7878
mov qword [rsp + 0x80], rdi
mov rdi, qword [0x1402d2890]
test rdi, rdi
je 0x1401b7865
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401b784d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], r14
movaps xmmword [rbp - 0x40], xmm0
call fcn.1401b7900
xor esi, esi
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rcx
xchg qword [rcx], rdx
or r14, 0xffffffffffffffff
test rdx, rdx
je 0x1401b7746
lea rax, [rbp - 0x20]
mov qword [rdx + 8], rax
xor eax, eax
lock cmpxchg qword [rdx + 0x18], r14
je 0x1401b7706
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, rsi
lock xadd qword [rbp - 0x10], rax
test rax, rax
jne 0x1401b7746
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
xor eax, eax
lock cmpxchg qword [rbp - 0x10], rbx
jne 0x1401b773d
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x20]
mov dword [rdi + 0x28], 6
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x1401b7783
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], rsi
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x1401b7796
lea rcx, [rbp - 8]
call fcn.1401b85c0
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], r14
je 0x1401b7796
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
mov rsi, qword [rsp + 0x78]
je 0x1401b781a
nop word [rax + rax]
mov rax, qword [rdi + 0x178]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov r8, qword [rcx + 0x10]
mov qword [rcx + 0x10], rdi
mov r9, qword [rdx + 0x18]
test r9, r9
je 0x1401b77d7
mov rax, qword [rdx + 0x10]
mov qword [r9 + 0x10], rax
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x1401b77e8
mov rax, qword [rdx + 0x18]
mov qword [r9 + 0x18], rax
cmp qword [r8 + 0x178], rdx
jne 0x1401b77fc
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x178], rax
mov rdx, qword [rcx + 0x28]
mov eax, r14d
xchg dword [rdx + 8], eax
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
jne 0x1401b77b0
cmp dword [rdi + 0x184], 1
mov r14, qword [rsp + 0x88]
jne 0x1401b784d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
call fcn.1401b9090
mov rax, qword [0x1402d2890]
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x60
pop rbp
ret
mov eax, 1
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x1401b8250
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x1401b8250
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x70], ebp
test rcx, rcx
je 0x1401b8394
mov rax, qword [rcx]
test rax, rax
je 0x1401b8394
cmp rax, 0xffffffffffffffff
jne 0x1401b8298
call fcn.1401b8120
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x1401b82cf
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.1401b9c70
test eax, eax
jne 0x1401b82bf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.1401b99b0
test eax, eax
je 0x1401b82e1
call qword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [rax]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x1402d2898]
mov qword [rsp + 0x30], rax
lea rax, [0x1401b84f0]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x1401b833e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1402d2898]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.1401b70f0
mov rcx, r14
call fcn.1401b6e60
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401b8381
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.1401b9b30
test eax, eax
je 0x1401b8381
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.1401b89c0
mov eax, dword [rsp + 0x70]
jmp 0x1401b82c7
mov eax, reloc.WS2_32.dll_shutdown
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret

Function at 0x1401b89c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x1402d2898]
mov esi, ecx
test rdi, rdi
jne 0x1401b89e5
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
test rdi, rdi
je 0x1401b8a31
test esi, esi
je 0x1401b8a21
mov rax, qword [rdi]
test rax, rax
je 0x1401b8a21
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x1402d2898]
call fcn.1401b70f0
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b8a40
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x1402d2888], 0
je 0x1401b8a57
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
xor edi, edi
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
mov dword [0x1402d2888], 1
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1401b8a8a
mov qword [0x1402d2890], rdi
jmp 0x1401b8af7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x1401b8aa7
mov rcx, rbx
mov edi, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.MSVCR120.dll_free]
xor ebx, ebx
mov qword [0x1402d2890], rbx
test edi, edi
jne 0x1401b8af7
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1401b8acf
mov qword [0x1402d2898], rdi
jmp 0x1401b8af7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x1401b8aec
mov rcx, rbx
mov edi, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.MSVCR120.dll_free]
xor ebx, ebx
mov qword [0x1402d2898], rbx
test edi, edi
je 0x1401b8afc
call fcn.1401b8b20
mov eax, dword [0x1402d2888]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1401b95e0
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x1402d2890]
xor edi, edi
mov ebp, ecx
test rsi, rsi
jne 0x1401b9608
mov esi, edi
jmp 0x1401b9623
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [rbp - 1]
mov dword [rsi + 0x28], 5
cmp ecx, 1
jbe 0x1401b963e
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
test byte [rsi + 0x194], 1
je 0x1401b9670
mov eax, ebp
dec eax
je 0x1401b9656
dec eax
jne 0x1401b9659
or edi, 0xffffffff
jmp 0x1401b9659
mov edi, dword [rsi + 0x48]
call fcn.1401b7650
mov ecx, edi
call qword [sym.imp.MSVCR120.dll__endthreadex]
nop word [rax + rax]
mov rdi, qword [0x1402d2898]
test rdi, rdi
je 0x1401b96bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401b96bc
mov rax, qword [rdi]
test rax, rax
je 0x1401b96aa
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x1402d2898]
call fcn.1401b70f0
jmp 0x1401b9670
lea rcx, [rsi + 0x70]
mov edx, ebp
call qword [sym.imp.MSVCR120.dll_longjmp]
int3
Function at 0x1401b9b30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, qword [rcx]
xor ebp, ebp
mov rbx, rdx
mov dword [rsp + 0x70], ebp
mov r14, rcx
call fcn.1401b72b0
test rbx, rbx
jne 0x1401b9b67
or r15d, 0xffffffff
jmp 0x1401b9b72
mov rcx, rbx
call fcn.1401b8c90
mov r15d, eax
lea rcx, [rdi + 8]
call fcn.1401b6880
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401b9c3a
lea rcx, [rdi + 8]
cmp qword [r14], rbp
jne 0x1401b9ba6
call fcn.1401b6e60
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1401b9c46
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.1401b6e60
test ebx, ebx
jns 0x1401b9c2f
mov rsi, qword [0x1402d2898]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea rax, [0x1401b8da0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x1401b9c06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1402d2898]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x40], rbp
call fcn.1401b70f0
mov rcx, qword [rdi + 0x10]
mov edx, r15d
call fcn.1401b7f20
mov ecx, eax
mov dword [rsp + 0x70], eax
call fcn.1401b89c0
cmp dword [rsp + 0x70], 0
jne 0x1401b9c3a
xor eax, eax
jmp 0x1401b9c49
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
or eax, 0xffffffff
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1401b9c70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, qword [rcx]
mov r14, rcx
call fcn.1401b72b0
test rdi, rdi
jne 0x1401b9cb9
lea ebx, [rdi + 0x16]
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], ebx
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
lea rcx, [rdi + 8]
call fcn.1401b6880
mov ebx, eax
test eax, eax
jne 0x1401b9c98
cmp qword [r14], 0
lea rcx, [rdi + 8]
jne 0x1401b9ce4
call fcn.1401b6e60
call qword [sym.imp.MSVCR120.dll__errno]
mov ebx, reloc.WS2_32.dll_shutdown
jmp 0x1401b9c9e
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.1401b6e60
test ebx, ebx
jns 0x1401b9d6d
mov rsi, qword [0x1402d2898]
lea rax, [0x1401b8e00]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
test rsi, rsi
jne 0x1401b9d17
xor ebp, ebp
jmp 0x1401b9d39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1402d2898]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x30], rbp
call fcn.1401b70f0
mov rcx, qword [rdi + 0x10]
or edx, 0xffffffff
call fcn.1401b7f20
mov ecx, eax
mov ebx, eax
call fcn.1401b89c0
mov rbp, qword [rsp + 0x50]
test ebx, ebx
jne 0x1401b9c98
xor eax, eax
jmp 0x1401b9ca3
Function at 0x2fc4d2dc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3ea0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d37c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d385a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d383e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3832
cmp qword [rbp - 0x10], 0
je 0x2fc4d3832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d37f8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d385b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3960
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3988
mov eax, 0
jmp 0x2fc4d39d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d39b1
mov eax, 0
jmp 0x2fc4d39d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d39d1
mov eax, 0
jmp 0x2fc4d39d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d39dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d3a5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3a51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3a51
mov rax, qword [rbp - 8]
jmp 0x2fc4d3a6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3a24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c5c
xor al, al
add rsp, 0x28
ret
Function at 0x140006020
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 0x1400060b0
cmp r11, r10
ja 0x140006126
cmp r10, rdx
ja 0x140006138
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400060b2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006090
jmp 0x140006114
ja 0x1400060ba
mov r11, r10
cmp rax, r8
jne 0x140006054
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 0x1400060f0
mov rdi, r8
sub ecx, edx
jns 0x14000610b
jmp 0x140006116
cmp r8, rsi
je 0x140006147
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006116
xor al, 1
cmp rdi, rsi
jne 0x1400060d0
jmp 0x140006116
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.14001ac00
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001a990
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_f688dd684faca5b31b156fac2c6e0ae81fc9bc90librarycore_srcio_borrowed_buf.rs__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001aa10
int3

Function at 0x140006c7d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.140006d6b
cmp eax, 0x1edab0ed
jne 0x140006ca5
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x140006d3d
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x140006d3f
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x140006d0a
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.140006d6b
cmp eax, esi
jne 0x140006cf8
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x140006d5b
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x140006d3f
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Usersdrishal.cargogitcheckouts_rust_syscalls_37fffce23c87cda7162451a_src_syscall_resolve.rs
mov rdx, rdi
call fcn.14001a910
int3
Function at 0x140006d6b
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x140006da7
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x140006d86
inc r8
jmp 0x140006d73
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140006d81
ret

Function at 0x14000a690
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400035b0
cmp rax, rcx
je 0x14000a6b5
cmp rdx, 4
jae 0x14000a6b8
xor eax, eax
xor r8d, r8d
jmp 0x14000a750
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001c3f0]
movdqa xmm3, xmmword [0x14001c400]
pxor xmm1, xmm1
nop dword [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 0x14000a6e0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000a767
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000a750
ret
Function at 0x140012720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140012794
test al, al
jne 0x140012779
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140012779
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x140012770
cmp sil, 6
je 0x140012770
mov r11d, 2
cmp rax, 2
jb 0x14001297d
cmp r11, rax
jne 0x1400128c7
xor eax, eax
xor r8d, r8d
xor eax, eax
xor r10d, r10d
add rax, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, rax
sete al
movzx r10d, byte [r10 + r11]
Function at 0x140015a30
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
sub esp, 0xa8

Function at 0x14001a380
Capabilities:
Parse pe header

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