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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140109c28]
cmp rdi, 1
jbe 0x14009ba39
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140051710
lea rcx, [0x140109c28]
call fcn.140047cb0
test al, al
je 0x14009ba7f
mov qword [0x140109c30], 0
lea rbx, [0x140109c28]
lea rdi, [0x140109c30]
mov rcx, rdi
xor edx, edx
call fcn.140036aa0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140047c20
jmp 0x14009ba27
mov rdi, qword [0x140109c28]
jmp 0x14009ba27

Function at 0x14009bc60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140108480]
cmp rdi, 1
jbe 0x14009bcaa
mov ecx, dword [0x140102430]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14009bcf0
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140108480]
call fcn.140047cb0
test al, al
je 0x14009bcfc
mov qword [0x140108488], 0
lea rbx, [0x140108480]
lea rdi, [0x140108488]
mov rcx, rdi
xor edx, edx
call fcn.140036aa0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140047c20
jmp 0x14009bc77
test rsi, rsi
je 0x14009bca2
call fcn.140006940
jmp 0x14009bc89
mov rdi, qword [0x140108480]
jmp 0x14009bc77

Function at 0x14009c400
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140069b10
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r15, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r15
mov dl, 0xaa
call fcn.14006c1b0
lea r12, [rsp + 0x3c]
mov dword [r12], 1
lea rsi, [rsp + 0x38]
mov dword [rsi], 0x800
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.14003e340
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdx, rdi
xor r8d, r8d
mov r9, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c4dd
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14009c4e1
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140052ece
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140069b80
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x14009c4ba
cmp eax, 2
jne 0x14009c526
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14006c1b0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x14009c52d
lea rdx, [rsp + 0x40]
jmp 0x14009c4b0
mov edi, 0x3f4
jmp 0x14009c4ba
mov edi, 0xea
jmp 0x14009c4ba
Function at 0x14009c770
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14009c7aa
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x14009c806
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14009c7f5
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14006bb00
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14009c78f
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x14009c89c
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140067648
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x14009c870
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x14009c85f
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x14009c78f
mov rcx, r15
call fcn.140067638
mov rbx, qword [rsi + 0x10]
jmp 0x14009c78f
call fcn.140067970
int3
Function at 0x14009fe90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400e7b58]
mov qword [rcx], rax
lea rdi, [rcx + 8]
lea rax, str.pC_f_
mov qword [rcx + 8], rax
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.140037b00
mov rcx, rbx
mov rdx, rsi
call fcn.14009fff0
call fcn.1400378d0
mov rcx, rax
mov rdx, rdi
call fcn.140056320
mov rdi, qword [rsi + 0x10]
add rdi, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009ff99
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14009ffa6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x20]
mov dword [rdx], eax
mov ecx, 0x308
add rcx, qword [rsi + 0x10]
call fcn.1400a0000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [rsi + 0x10]
mov ecx, dword [0x140102430]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14009ff72
movsxd rcx, dword [rdi + 0x2f0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 0x2f4]
movsxd rdx, dword [rdi + 0x2f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [rsi + 0x18]
mov qword [rsi + 0x18], 0
test rdi, rdi
jne 0x14009ffdd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140069b80
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.140035f20
jmp 0x14009ff03
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rcx + 0x360]
cmp dword [rsi + 0x28], edx
jne 0x14009ff10
mov rcx, qword [rcx + 0x20]
mov qword [rsi + 0x18], 0
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov rdx, qword [rsi + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14009ff10
mov rcx, rdi
call fcn.1400923f0
mov rcx, rdi
call fcn.140067638
jmp 0x14009ff83
Function at 0x1400a2926
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
test r8d, r8d
jne 0x1400a2950
movabs rax, 0x100000001
mov qword [rsi], rax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov edi, r8d
mov dword [rsi], 0
test dl, 1
jne 0x1400a2971
xor ebx, ebx
movzx edx, dx
shr edx, 1
inc ebx
mov r14d, edx
test dl, 1
je 0x1400a2960
jmp 0x1400a2977
movzx r14d, dx
xor ebx, ebx
bsr eax, r14d
xor eax, 0x1f
mov ecx, 0x20
sub ecx, eax
imul ecx, edi
cmp ecx, 0xde3
jg 0x1400a2a49
mov ecx, 1
mov ebp, ecx
lea ecx, [rbp + rbp]
cmp ebp, edi
jle 0x1400a2999
xor r8d, r8d
sar ebp, 2
movzx r9d, dx
jne 0x1400a2a01
xor ebp, ebp
mov rdx, r9
mov dword [rsi], 0
test rdx, rdx
je 0x1400a29dc
xor eax, eax
mov ecx, edx
and ecx, 0xfffffff
mov dword [rsi + rax*4 + 4], ecx
shr rdx, 0x1c
inc rax
test rdx, rdx
jne 0x1400a29c1
mov word [rsi], ax
test r8b, 1
jne 0x1400a2a6b
test ebp, ebp
jne 0x1400a2a4e
imul ebx, edi
mov rcx, rsi
mov edx, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.1400a234c
xor r8d, r8d
mov r10d, 1
mov rdx, r9
imul rdx, rdx
test ebp, edi
jne 0x1400a2a24
sar ebp, 1
je 0x1400a29b4
mov rcx, rdx
shr rcx, 0x20
jne 0x1400a29b4
jmp 0x1400a2a0d
mov ecx, eax
or cl, 0x20
mov r11, rdx
shr r11, cl
test r11, r11
mov ecx, 1
cmove rcx, r9
movzx r8d, r8b
cmovne r8d, r10d
imul rdx, rcx
jmp 0x1400a2a15
call fcn.1400c32f0
mov rcx, rsi
call fcn.1400d1a62
test ebp, edi
je 0x1400a2a65
mov rcx, rsi
mov edx, r14d
call fcn.1400a260e
sar ebp, 1
je 0x1400a29ea
jmp 0x1400a2a4e
mov rcx, rsi
mov edx, r14d
call fcn.1400a260e
jmp 0x1400a29e6
Function at 0x1400a3180
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
lea rax, [0x1400e8020]
mov qword [rcx], rax
add rcx, 8
call fcn.14004ae00
lea rcx, [rsi + 0x10]
call fcn.14004ae00
xor edi, edi
mov byte [rsi + 0x18], dil
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], edi
call fcn.14004ae00
mov byte [rsi + 0x48], dil
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rdi
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebx, 0x3f800000
mov dword [rsi + 0xd0], ebx
mov dword [rsi + 0xd8], edi
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebx
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebx
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebx
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebx
mov qword [rsi + 0x198], rdi
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], edi
mov dword [rsi + 0x1a0], 1
lea rcx, [rsi + 0x1a8]
call fcn.1400a3440
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.140036aa0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140036aa0
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140036aa0
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
mov dword [rsi + 0x328], ebx
movups xmmword [rsi + 0x330], xmm6
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x359], xmm6
movups xmmword [rsi + 0x370], xmm6
movups xmmword [rsi + 0x380], xmm6
call fcn.140007660
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.1400a3390
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400a337e
call fcn.1400378d0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140037bb0
mov qword [0x1401055d8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x1400a334d
Function at 0x1400a69ad
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140067648
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400be060]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14006817c
mov qword [rbx], rax
test rax, rax
je 0x1400a6a04
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400a7640
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rdi, [rcx + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400a766b
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.KERNEL32.dll_ReleaseSRWLockExclusive
lock inc dword [rsi]
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.1400cdc70
lock dec dword [rsi]
je 0x1400a768a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.1400cdc10
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400013b0
Function at 0x1400c0420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400e8af0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x281
call fcn.14003e340
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14003e360
cmp byte [rdi + 0x17], 0
jns 0x1400c04a4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14003dcc0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140069b80
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400c29e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140102430]
cmp ecx, 0xffffffff
je 0x1400c2a05
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1400c2a00

Function at 0x1400c7360
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
lea r15, [rsp + 0x3c]
mov dword [r15], eax
lea r12, [rsp + 0x38]
mov dword [r12], eax
lea rsi, [rsp + 0x34]
mov dword [rsi], 0
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.14003e340
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c7422
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400c7405
cmp dword [rsp + 0x38], 4
jne 0x1400c7405
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140069b80
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x1400c7405
Function at 0x1400ccbd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400ccc4e
mov rax, 0xffffffffffffffff
xor edx, edx
div rsi
mov rcx, 0xfffffffffffffffe
sub rcx, rdx
mov rax, qword [rsp + 0x20]
cmp rax, rcx
ja 0x1400ccbf8
xor edx, edx
div rsi
mov rsi, rdx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140069b80
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
int3
Function at 0x1400cdc10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
add rcx, 0x90
call fcn.1400d14f0
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1400cdc36
mov qword [rsi + 0x70], rcx
call fcn.1400013b0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x1400cdc48
mov qword [rsi + 0x50], rcx
call fcn.1400013b0
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x1400cdc5a
mov qword [rsi + 0x30], rcx
call fcn.1400013b0
mov rdx, qword [rsi + 0x18]
add rsi, 0x10
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x1400d1520
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
jne 0x1400d1532
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rdx]
call 0x1400d1520
mov rdx, qword [rsi + 8]
mov rcx, rdi
call 0x1400d1520
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400013b0

Function at 0x1400d0720
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov rcx, qword [rcx]
mov rbx, qword [r15 + 8]
sub rbx, rcx
sar rbx, 4
lea rax, [rbx + 1]
mov rdx, rax
shr rdx, 0x3c
jne 0x1400d0834
movabs rdx, 0xfffffffffffffff
mov rdi, qword [r15 + 0x10]
sub rdi, rcx
mov rcx, rdi
sar rcx, 4
sar rdi, 3
cmp rdi, rax
cmovb rdi, rax
movabs rax, 0x7ffffffffffffff
cmp rcx, rax
cmovae rdi, rdx
test rdi, rdi
jne 0x1400d0827
xor eax, eax
shl rbx, 4
lea rdx, [rax + rbx]
shl rdi, 4
add rdi, rax
mov rcx, qword [r14]
lea r8, [rax + rbx]
add r8, 0x10
mov qword [r8 - 0x10], rcx
mov cl, byte [r14 + 8]
and cl, 1
mov byte [r8 - 8], cl
mov cl, byte [r14 + 9]
and cl, 1
mov byte [r8 - 7], cl
mov rbx, qword [r15]
mov rcx, qword [r15 + 8]
cmp rcx, rbx
je 0x1400d07fa
mov rax, qword [rcx - 0x10]
mov qword [rdx - 0x10], rax
mov al, byte [rcx - 8]
and al, 1
mov byte [rdx - 8], al
mov al, byte [rcx - 7]
lea rsi, [rcx - 0x10]
and al, 1
mov byte [rdx - 7], al
add rdx, 0xfffffffffffffff0
mov rcx, rsi
cmp rbx, rsi
jne 0x1400d07cf
mov rcx, qword [r15]
mov qword [r15], rdx
mov qword [r15 + 8], r8
mov qword [r15 + 0x10], rdi
test rcx, rcx
je 0x1400d081a
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400013b0
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.1400d0a00
jmp 0x1400d078f
mov rcx, r15
call fcn.1400a85b4
int3

Function at 0x1400d14f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
add rcx, 0x38
call 0x1400d5f30
add rsi, 8
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x1400d5f30
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400d5f52
mov rdi, qword [rcx]
call fcn.14000d1b0
mov rcx, rdi
test rdi, rdi
jne 0x1400d5f42
mov rdx, qword [rsi]
mov qword [rsi], 0
test rdx, rdx
je 0x1400d5f77
mov r8, qword [rsi + 8]
add rsi, 0x10
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000c750
nop
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400d5f30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
add rcx, 0x38
call 0x1400d5f30
add rsi, 8
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x1400d5f30
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400d5f52
mov rdi, qword [rcx]
call fcn.14000d1b0
mov rcx, rdi
test rdi, rdi
jne 0x1400d5f42
mov rdx, qword [rsi]
mov qword [rsi], 0
test rdx, rdx
je 0x1400d5f77
mov r8, qword [rsi + 8]
add rsi, 0x10
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000c750
nop
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.1015b000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x1400012df
Capabilities:
Terminate process

Disassembly:
jmp 0x1400072a0
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140006ee8
Capabilities:
Parse pe header

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