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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
and dword [rsp + 0x28], 0
lea rax, [0x14007d6a8]
cmp byte [0x14007d6ac], 0
mov ebp, 7
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov ecx, dword [0x14007d6a8]
lea ebx, [rbp - 6]
mov edx, ebx
je 0x140023548
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x14002354e
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140023557
mov rcx, rbp
int 0x29
lock xadd dword [rsp + 0x28], ebx
mov rcx, qword [rdi]
add rcx, 8
call fcn.14001f5a0
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400235a4
or eax, 0xffffffff
lock xadd dword [rsp + 0x28], eax
mov rdx, qword [rsp + 0x20]
cmp byte [rdx + 4], 0
mov ecx, dword [rdx]
je 0x140023591
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140023599
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140023569
mov rcx, rbp
int 0x29
jmp 0x140023569
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov r14, rcx
xor ebx, ebx
mov ecx, dword [0x14007d6a8]
cmp byte [0x14007d6ac], bl
je 0x140024ac0
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140024ac6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140024b96
mov ecx, dword [0x14007d698]
cmp byte [0x14007d69c], bl
je 0x140024ae5
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140024aeb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140024afa
mov ebx, 1
jmp 0x140024b96
lea rax, [0x14007d6a8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ebx
mov esi, 1
mov ecx, dword [0x14007d6a8]
mov edx, esi
cmp byte [0x14007d6ac], bl
je 0x140024b27
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140024b2d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024b36
lea ecx, [rax + 7]
int 0x29
lock xadd dword [rsp + 0x30], esi
mov rdx, qword [r14]
mov rcx, qword [rdx]
add rcx, 8
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
mov r8b, byte [rax]
mov edx, dword [rdx]
call fcn.14001ee60
mov sil, al
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140024b93
or eax, 0xffffffff
lock xadd dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x28]
xor edx, edx
cmp byte [rcx + 4], bl
mov ecx, dword [rcx]
je 0x140024b82
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140024b88
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024b5b
lea ecx, [rax + 7]
int 0x29
jmp 0x140024b5b
mov bl, sil
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret
Function at 0x140024bac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov r14, rcx
xor ebx, ebx
mov ecx, dword [0x14007d6a8]
cmp byte [0x14007d6ac], bl
je 0x140024be0
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140024be6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140024cad
mov ecx, dword [0x14007d698]
cmp byte [0x14007d69c], bl
je 0x140024c05
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140024c0b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140024c1a
mov ebx, 1
jmp 0x140024cad
lea rax, [0x14007d6a8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ebx
mov esi, 1
mov ecx, dword [0x14007d6a8]
mov edx, esi
cmp byte [0x14007d6ac], bl
je 0x140024c47
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140024c4d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024c56
lea ecx, [rax + 7]
int 0x29
lock xadd dword [rsp + 0x30], esi
mov rdx, qword [r14]
mov rcx, qword [rdx]
add rcx, 8
mov rdx, qword [rdx + 8]
call fcn.14001ef30
mov sil, al
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140024caa
or eax, 0xffffffff
lock xadd dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x28]
xor edx, edx
cmp byte [rcx + 4], bl
mov ecx, dword [rcx]
je 0x140024c99
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140024c9f
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024c72
lea ecx, [rax + 7]
int 0x29
jmp 0x140024c72
mov bl, sil
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret
Function at 0x140024cc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov r14, rcx
xor ebx, ebx
mov ecx, dword [0x14007d6a8]
cmp byte [0x14007d6ac], bl
je 0x140024cf4
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140024cfa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140024dc1
mov ecx, dword [0x14007d698]
cmp byte [0x14007d69c], bl
je 0x140024d19
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140024d1f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140024d2e
mov ebx, 1
jmp 0x140024dc1
lea rax, [0x14007d6a8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ebx
mov esi, 1
mov ecx, dword [0x14007d6a8]
mov edx, esi
cmp byte [0x14007d6ac], bl
je 0x140024d5b
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140024d61
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024d6a
lea ecx, [rax + 7]
int 0x29
lock xadd dword [rsp + 0x30], esi
mov rdx, qword [r14]
mov rcx, qword [rdx]
add rcx, 8
mov rdx, qword [rdx + 8]
call fcn.14001eff0
mov sil, al
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140024dbe
or eax, 0xffffffff
lock xadd dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x28]
xor edx, edx
cmp byte [rcx + 4], bl
mov ecx, dword [rcx]
je 0x140024dad
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140024db3
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140024d86
lea ecx, [rax + 7]
int 0x29
jmp 0x140024d86
mov bl, sil
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret

Function at 0x140029a5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029b29
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029b1a
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029b1a
cmp dword [rbp + 0x18], 4
jne 0x140029b1a
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x140029b1a
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140029b2b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140029b2b
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140029b29
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140029b3a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140029ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14007f3d4], 0
je 0x140029f16
mov eax, dword [0x14007f3d8]
jmp 0x14002a01a
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14007f3d8]
test eax, eax
jne 0x140029f82
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029f82
cmp dword [rbp + 0x10], ebx
je 0x140029ff1
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x140029f96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029ff9
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029ff9
cmp dword [rbp + 0x10], ebx
jne 0x140029ff9
mov ebx, dword [0x14007f3d8]
jmp 0x14002a002
and dword [0x14007f3d8], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x14007f3d4], 1
test rcx, rcx
je 0x14002a018
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x14002a3d8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
cmp byte [0x14007d74c], bl
mov ecx, dword [0x14007d748]
je 0x14002a3fd
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14002a403
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a461
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x14002a461
mov rdx, qword [rax]
mov r8, qword [rax + 0x18]
mov rax, rbx
test rdx, rdx
je 0x14002a42b
mov rdx, qword [rdx]
test rdx, rdx
je 0x14002a42b
mov rax, qword [rdx]
lea rdx, [rcx - 1]
add rdx, r8
test rax, rax
je 0x14002a44a
mov rax, qword [rax]
test rax, rax
je 0x14002a44a
mov rax, qword [rax]
test rax, rax
je 0x14002a44a
mov rbx, qword [rax]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
dec rcx
and rcx, rdx
mov rcx, qword [rax + rcx*8]
movups xmm0, xmmword [rcx]
jmp 0x14002a472
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
movdqu xmmword [rdi], xmm0
add rsp, 0x30
pop rdi
ret
Function at 0x14002a484
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14007d748]
xor edi, edi
cmp byte [0x14007d74c], dil
je 0x14002a4ac
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14002a4b2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002a550
mov rax, qword [rax + 0x50]
cmp rax, 8
jb 0x14002a4f6
mov rcx, qword [rbx + 0x38]
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14002a4f0
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002a53a
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x48], rdi
lea rcx, [rbx + 0x28]
mov esi, 7
mov qword [rbx + 0x50], rsi
mov word [rbx + 0x38], di
call fcn.1400121c0
mov rcx, rbx
call fcn.140027b34
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [0x14007d748]
xor edx, edx
cmp byte [0x14007d74c], dil
je 0x14002a541
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x14002a547
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14002a550
mov rcx, rsi
int 0x29
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140036218
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov r15, rdx
mov r14, qword [r8 + 0x10]
mov rdx, r8
mov rdi, r8
mov rbp, rcx
jb 0x14003624e
mov rdx, qword [r8]
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
test r14, r14
je 0x14003627c
movzx eax, byte [rcx + rdx]
movabs r9, 0x100000001b3
xor r8, rax
inc rcx
imul r8, r9
cmp rcx, r14
jb 0x14003625f
mov rax, qword [rbp + 0x18]
mov r12, qword [rbp + 0x30]
mov rbp, qword [rbp + 8]
and r12, r8
add r12, r12
mov qword [rsp + 0x50], rax
mov rbx, qword [rax + r12*8]
cmp qword [rax + r12*8], rbp
jne 0x1400362a2
mov rax, rbp
jmp 0x1400362aa
mov rax, qword [rax + r12*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14003631f
cmp qword [rdi + 0x18], 0x10
lea rsi, [rbx + 0x10]
mov rdx, rdi
jb 0x1400362c0
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
mov r13, qword [rsi + 0x10]
jb 0x1400362d1
mov rcx, qword [rsi]
cmp r13, r14
jne 0x1400362e2
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400362ec
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x50]
jmp 0x140036297
cmp qword [rsi + 0x18], 0x10
jb 0x1400362f6
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 0x10
jb 0x140036300
mov rdi, qword [rdi]
cmp r14, r13
jne 0x140036317
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003631a
mov rbx, rbp
mov qword [r15], rbx
jmp 0x140036322
mov qword [r15], rbp
mov rbx, qword [rsp + 0x58]
mov rax, r15
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140036c48
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [r8 + 0x10]
mov rdi, rdx
cmp qword [r9 + 0x18], 0x10
mov r11, rcx
mov rbx, qword [r9 + 0x10]
jb 0x140036c6a
mov r9, qword [r9]
xor r10d, r10d
movabs rcx, 0xcbf29ce484222325
test rbx, rbx
je 0x140036c9a
movzx eax, byte [r10 + r9]
movabs rdx, 0x100000001b3
xor rcx, rax
inc r10
imul rcx, rdx
cmp r10, rbx
jb 0x140036c7c
mov rdx, qword [r11 + 0x30]
and rdx, rcx
mov rcx, qword [r11 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x140036cd2
cmp qword [rcx + rdx*8], r8
jne 0x140036cc7
mov rax, qword [r11 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r11 + 0x18]
mov rax, qword [r11 + 8]
jmp 0x140036ccb
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140036cdf
cmp qword [rcx + rdx*8], r8
jne 0x140036cdf
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
lea rcx, [r11 + 8]
mov rdx, rdi
call fcn.140036ad4
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14003dc58
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rbp, qword [rdx + 0x10]
mov r15, rcx
mov r8, rdx
jb 0x14003dc8b
mov r8, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rbp, rbp
je 0x14003dcba
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc rcx
imul rdx, r9
cmp rcx, rbp
jb 0x14003dc9c
mov r12, qword [r15 + 0x30]
mov rax, qword [r15 + 0x18]
and r12, rdx
mov rsi, qword [r15 + 8]
add r12, r12
mov rbx, qword [rax + r12*8]
cmp qword [rax + r12*8], rsi
jne 0x14003dcdb
mov rax, rsi
jmp 0x14003dce3
mov rax, qword [rax + r12*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14003dd57
cmp qword [rdi + 0x18], 0x10
lea r14, [rbx + 0x10]
mov rdx, rdi
jb 0x14003dcf9
mov rdx, qword [rdi]
cmp qword [r14 + 0x18], 0x10
mov rcx, r14
mov r13, qword [r14 + 0x10]
jb 0x14003dd0a
mov rcx, qword [r14]
cmp r13, rbp
jne 0x14003dd1b
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003dd24
mov rbx, qword [rbx]
mov rax, qword [r15 + 0x18]
jmp 0x14003dcd0
cmp qword [r14 + 0x18], 0x10
jb 0x14003dd2e
mov r14, qword [r14]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x14003dd3b
mov rcx, qword [rdi]
cmp rbp, r13
jne 0x14003dd4f
mov r8, rbp
mov rdx, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003dd52
mov rbx, rsi
mov rax, rbx
jmp 0x14003dd5d
mov rbx, rsi
mov rax, rsi
cmp rax, rsi
jne 0x14003ddd6
mov rbx, qword [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rdi, qword [rbx + 8]
mov r8, rdi
call fcn.14003e0f0
mov rdx, rax
movabs rcx, 0x492492492492491
mov rax, qword [r15 + 0x10]
sub rcx, rax
cmp rcx, 1
jae 0x14003ddab
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
mov rcx, r15
mov qword [r15 + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rdi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [r15 + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.1400366b4
mov rbx, qword [rsp + 0x30]
lea r11, [rsp + 0x40]
mov rbp, qword [r11 + 0x40]
lea rax, [rbx + 0x30]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003ecbc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14003f4e8
test al, al
je 0x14003ee0c
xor dil, dil
mov byte [rsp + 0x20], dil
call fcn.14003f4ac
mov bl, al
mov ecx, dword [0x14007e270]
cmp ecx, 1
je 0x14003ee1b
test ecx, ecx
jne 0x14003ed44
mov dword [0x14007e270], 1
lea rdx, [0x140043870]
lea rcx, [0x140043840]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14003ed25
mov eax, 0xff
jmp 0x14003ee01
lea rdx, [0x140043828]
lea rcx, [0x140043718]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x14007e270], 2
jmp 0x14003ed4c
mov dil, 1
mov byte [rsp + 0x20], dil
mov cl, bl
call fcn.14003f6a8
call fcn.14003fb98
mov rbx, rax
cmp qword [rax], 0
je 0x14003ed7f
mov rcx, rax
call fcn.14003f60c
test al, al
je 0x14003ed7f
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [case.0x14003f18e.0]
call fcn.14003fba0
mov rbx, rax
cmp qword [rax], 0
je 0x14003eda1
mov rcx, rax
call fcn.14003f60c
test al, al
je 0x14003eda1
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call fcn.14003fcfc
movzx ebx, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
mov r8, rax
mov r9d, ebx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000c77c
nop
jmp 0x14003edc6
mov ebx, eax
call fcn.14003fd40
test al, al
je 0x14003ee21
test dil, dil
jne 0x14003eddb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14003f6cc
mov eax, ebx
jmp 0x14003ee01
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.14003fbb0
nop
jmp 0x14003ee1a
nop
mov ecx, 7
call fcn.14003fbb0
nop
jmp 0x14003ee28
mov ecx, dword [0x12b93ee27]
add byte [rbx + 0x1357e8cb], cl
add byte [rax], al
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub rsp, 0x28
call fcn.14003faac
add rsp, 0x28
jmp 0x14003ecbc
Function at 0x140002b98
Capabilities:
Check for debugger via api
Check for outputdebugstring error
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
setne al
test al, al
je 0x140002bbc
mov ecx, 1
call sym.exit
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov eax, dword [rbp - 4]
test eax, eax
je 0x140002bf0
mov ecx, 1
call sym.exit
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
lea rax, [0x140011249]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x140002c2d
mov ecx, 1
call sym.exit
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140003f90
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140004bc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400191a8]
test eax, eax
je 0x140004c5a
lea rax, [0x140019180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400191b0]
mov qword [rbp - 8], rax
jmp 0x140004c3e
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 0x140004c32
cmp qword [rbp - 0x10], 0
je 0x140004c32
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 0x140004bf8
lea rax, [0x140019180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140004c5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140004d60
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 0x140004d88
mov eax, 0
jmp 0x140004dd6
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 0x140004db1
mov eax, 0
jmp 0x140004dd6
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 0x140004dd1
mov eax, 0
jmp 0x140004dd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140004ddc
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 0x140004e5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140004e51
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 0x140004e51
mov rax, qword [rbp - 8]
jmp 0x140004e6f
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 0x140004e24
mov eax, 0
add rsp, 0x20
pop rbp
ret