joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab6f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400fc700]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400e95e0]
mov rbp, rcx
call fcn.1400b5074
xor edi, edi
test rax, rax
je 0x1400ab7d6
mov ebx, edi
call fcn.1400a18f8
mov r14d, dword [rax]
call fcn.1400a18f8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400b4fc0
mov rsi, rax
test rax, rax
je 0x1400ab767
call fcn.1400a18f8
mov dword [rax], r14d
jmp 0x1400ab791
call fcn.1400a18f8
cmp dword [rax], 0x22
jne 0x1400ab7ce
call fcn.1400a18f8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400b4fc0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400ab7ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400ab795
cmp rax, 3
je 0x1400ab7b0
mov rcx, rsi
call fcn.1400ab64c
test al, al
je 0x1400ab7c1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ab7c1
mov dil, 1
mov rcx, rbx
call fcn.1400a1a28
mov al, dil
jmp 0x1400ab7d8
mov rcx, rbx
call fcn.1400a1a28
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140096300
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400ac368
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400ac39f
call fcn.1400a18f8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.14009ea60
xor eax, eax
jmp 0x1400ac42d
mov rdx, r9
mov rcx, r8
call fcn.1400ac304
mov rbx, rax
test rax, rax
je 0x1400ac42a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400ac230]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400ac417
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a186c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ac3fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ac40d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400b0b38
jmp 0x1400ac42a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ac427
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ae148
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140113a20]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400ae19f
cmp word [rdx], r13w
jne 0x1400ae19f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ae1a4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ae2c9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ae2ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ae1dd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ae204
cmp r9, r8
jae 0x1400ae214
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400ae1be
jmp 0x1400ae2c9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ae2be
cmp dword [rsp + 0x80], esi
je 0x1400ae2be
lea r8, [0x140113a20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ae296
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ae266
mov word [rbx], r13w
jmp 0x1400ae2c6
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400ae273
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ae2c6
cmp word [rsp + 0x70], r13w
jne 0x1400ae2a3
cmp rbx, r14
je 0x1400ae260
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ac6c0
cmp word [rsp + 0x70], r13w
je 0x1400ae2c9
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140113a20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ae2c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ae2c9
Function at 0x1400b3fe0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b3ff6
mov al, 1
jmp 0x1400b4056
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b4007
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b4054
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b49f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b4054
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b4054
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b4054
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b4056
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b4b04
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400ac6c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ac6c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b4c54
cmp rax, 0xffffffffffffffff
je 0x1400b4c54
xor edi, edi
test rbp, rbp
jle 0x1400b4bff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b0ac0
mov rbx, rax
test rax, rax
jne 0x1400b4b8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b4bf5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400add80
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400af500
cmp eax, 0xffffffff
je 0x1400b4bd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b4b9c
mov edx, r15d
mov ecx, r14d
call fcn.1400add80
jmp 0x1400b4bf5
cmp byte [rsi + 0x38], dil
je 0x1400b4bec
cmp dword [rsi + 0x34], 5
jne 0x1400b4bec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b4bf5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b0b38
jmp 0x1400b4c68
jns 0x1400b4c68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ac6c0
cmp rax, 0xffffffffffffffff
jne 0x1400b4c20
cmp byte [rsi + 0x30], dil
je 0x1400b4c68
mov edi, dword [rsi + 0x2c]
jmp 0x1400b4c68
mov ecx, r14d
call fcn.1400b49f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b4c68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b4c68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b4c61
mov eax, dword [rsi + 0x2c]
jmp 0x1400b4c66
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ac6c0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400b84e4
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 0x1400b8514
xor eax, eax
jmp 0x1400b85d7
mov rbp, rbx
cmp word [rax], si
je 0x1400b8539
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b8520
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b851c
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.1400b54a0
movsxd r14, eax
test eax, eax
jne 0x1400b8577
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b850d
mov rcx, r14
call fcn.1400b171c
mov rdi, rax
test rax, rax
jne 0x1400b8590
xor ecx, ecx
call fcn.1400b0b38
jmp 0x1400b856c
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.1400b54a0
test eax, eax
jne 0x1400b85c1
mov rcx, rdi
call fcn.1400b0b38
jmp 0x1400b85cb
xor ecx, ecx
call fcn.1400b0b38
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 0x1400b85f4
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 0x1400b867b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b863a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b8624
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b8620
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b171c
mov rdi, rax
test rax, rax
je 0x1400b8668
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bfd40
mov rbp, rdi
xor ecx, ecx
call fcn.1400b0b38
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 0x1400b9d7c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b9d9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a186c
or eax, 0xffffffff
jmp 0x1400b9d9e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400bc6e8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400fc700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400bc732
call fcn.1400a18d8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400a18f8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009ea60
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140096300
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400bc73d
lea eax, [rbx + 1]
jmp 0x1400bc71f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400bc71d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400bc71f
Function at 0x1400bdb84
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a1918
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bdc0e
cmp byte [rbp - 0x21], r15b
je 0x1400bdc09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bdc44
call fcn.1400b0de0
test eax, eax
jne 0x1400bdc30
cmp byte [rbp - 0x21], r15b
je 0x1400bdc28
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bdc44
cmp byte [rbp - 0x21], r15b
je 0x1400bdc41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400aa168
test eax, eax
jne 0x1400bdce4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a1918
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bdc83
cmp byte [rbp - 0x21], r15b
je 0x1400bdcb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bdcb8
call fcn.1400b0de0
test eax, eax
jne 0x1400bdca4
cmp byte [rbp - 0x21], r15b
je 0x1400bdc9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bdcb8
cmp byte [rbp - 0x21], r15b
je 0x1400bdcb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400aa168
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bdce4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bdce7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bdcf5
mov rcx, rdi
call fcn.1400b0b38
cmp byte [rbp + 0x3f], r15b
je 0x1400bdd04
mov rcx, qword [rbp + 0x27]
call fcn.1400b0b38
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x40b600
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x40b625
cmp rax, rcx
je 0x40b62b
cmp rdx, 4
jae 0x40b632
xor eax, eax
xor r8d, r8d
jmp 0x40b6d0
pop rbp
jmp fcn.004028c0
xor eax, eax
jmp 0x40b6e7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x00438380]
movdqa xmm3, xmmword [0x00438390]
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 0x40b660
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x40b6e7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x40b6d0
pop rbp
ret
Function at 0x410af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x00437088]
test esi, esi
je 0x410b93
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x410b8a
je 0x410b39
test rdi, rdi
je 0x410b3d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x410b3f
mov rbx, qword [rdi + 8]
jmp 0x410b3f
xor eax, eax
jmp 0x410b8a
xor ebx, ebx
movzx eax, byte [0x00444030]
mov ecx, 0x10
call fcn.00431ed0
test rax, rax
je 0x410ba6
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x410b87
mov edx, 8
mov rcx, rdi
call fcn.00401a50
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x00437070]
call fcn.00410d80
mov esi, eax
jmp 0x410b10
mov ecx, 8
mov edx, 0x10
call fcn.00401d90
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x004370a8]
test esi, esi
je 0x410c5e
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x410c55
je 0x410c53
movzx eax, byte [0x00444030]
mov ecx, 0x10
call fcn.00431ed0
test rax, rax
je 0x410c71
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x410c4e
mov rax, qword [rdi]
test rax, rax
je 0x410c41
lock dec qword [rax]
jne 0x410c41
mov rcx, rdi
call fcn.0040f160
mov edx, 8
mov rcx, rdi
call fcn.00401a50
mov rax, rsi
jmp 0x410c55
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x00437090]
call fcn.00410d80
mov esi, eax
jmp 0x410bdd
mov ecx, 8
mov edx, 0x10
call fcn.00401d90
int3
Function at 0x410d80
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 0x410e15
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 0x410e54
cmp dword [rbp], 0
je 0x410e38
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x410e69
mov edi, eax
mov rax, qword [0x00446040]
mov rax, qword [0x004440b8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004440b8], rsi
jne 0x410df0
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 0x410e49
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x410eab
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x410e3d
mov edi, dword [rbp + 4]
jmp 0x410e49
mov edi, dword [rsi + 0x18]
jmp 0x410e47
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.00410ee0
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.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.004025f0
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.00410f30
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x00437068]
test esi, esi
je 0x4113f8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x4113ef
je 0x4113ed
movzx eax, byte [0x00444030]
mov ecx, 0x18
call fcn.00431ed0
test rax, rax
je 0x411408
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x4113e8
mov edx, 8
mov rcx, rdi
call fcn.00401a50
mov rax, rsi
jmp 0x4113ef
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x00437050]
call fcn.00410d80
mov esi, eax
jmp 0x411389
mov ecx, 8
mov edx, 0x18
call fcn.00401d90
int3

Function at 0x413080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x4130ee
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x435800
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.004368c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004368c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x435870
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004446b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x435a18
mov rax, qword [0x004446b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4358bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x435947
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4358a0
mov rcx, r12
call fcn.004365d0
mov rbp, rax
test rax, rax
je 0x435a52
mov rax, qword [0x004446b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00436700
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004446b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x435a61
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x435940
sub eax, 4
and eax, 0xfffffffb
jne 0x4359d0
add dword [0x004446b4], 1
cmp ebx, 8
jae 0x435978
test bl, 4
jne 0x435a20
test ebx, ebx
je 0x435969
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x435a40
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x435969
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x4359aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004446b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x435940
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00435800
nop dword [rax]
xor edi, edi
jmp 0x4358c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x435969
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x435969
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00435800
mov rax, qword [0x004446b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00435800
nop
nop dword [rax]