joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1800158c1
mov ecx, edx
jmp 0x18001590a
mov ecx, 1
call fcn.1800159c0
mov rcx, rax
call fcn.180015930
mov rcx, rax
mov rdx, rbx
call 0x180015ac0
test rax, rax
jne 0x180015927
mov ecx, 3
call fcn.1800159c0
mov rcx, rax
call fcn.180015930
mov rcx, rax
mov rdx, rbx
call 0x180015ac0
test rax, rax
jne 0x180015927
mov ecx, 2
call fcn.1800159c0
mov rcx, rax
call fcn.180015930
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x180015ac0
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbp, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x24]
add r12, rcx
add r13, rcx
cmp rdx, 0xffff
ja 0x180015b1f
sub bp, word [rdi + 0x10]
movzx eax, bp
cmp eax, dword [rdi + 0x14]
jae 0x180015b4a
movzx eax, bp
mov eax, dword [r12 + rax*4]
add rax, rcx
jmp 0x180015b4c
mov r15d, dword [rdi + 0x20]
xor ebx, ebx
add r15, rsi
cmp dword [rdi + 0x18], ebx
jbe 0x180015b4a
nop dword [rax]
mov edx, dword [r15 + rbx*4]
mov rcx, rbp
add rdx, rsi
call 0x1800177b0
test eax, eax
je 0x180015b69
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x180015b30
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, word [r13 + rbx*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x180015b4c

Function at 0x180015b80
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x180015bc4
nop word [rax + rax]
cmp qword [rax + 0x30], rcx
je 0x180015baf
mov rax, qword [rax]
test rax, rax
jne 0x180015ba0
ret
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
ret

Function at 0x1800176a0
Capabilities:
Check for software breakpoints

Disassembly:
sub rsp, 8
movzx r11d, byte [rcx]
xor r10d, r10d
mov r8d, r10d
mov r9d, r10d
cmp r11b, 0xcc
je 0x1800176e4
mov qword [rsp], rbx
mov ebx, r10d
nop
cmp r11b, byte [rbx + rdx]
lea eax, [r8 + 1]
cmovne eax, r8d
inc r9d
mov r8d, eax
mov ebx, r9d
movzx r11d, byte [r9 + rcx]
cmp r11b, 0xcc
jne 0x1800176c0
mov rbx, qword [rsp]
cmp r8d, r9d
sete r10b
mov eax, r10d
add rsp, 8
ret
Function at 0x18001ed20
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001ed8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001ed8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001ed8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001ed8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001ed8f
cmp dword [rcx + 0x84], 0xe
jbe 0x18001ed8f
cmp dword [rcx + 0xf8], 0
je 0x18001ed8f
mov ecx, ebx
call fcn.18001ee34
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001ec28
nop
cmp dword [rbp + 0x20], 0
jne 0x18001edf0
call fcn.180022b84
cmp eax, 1
jne 0x18001ede0
xor dl, dl
jmp 0x18001edea
call fcn.180022b50
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18001edfb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001ee04
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001ed20

Function at 0x18002243c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18004b050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1800224a1
test rax, rax
jne 0x18002248f
lea r9, str.GetLocaleInfoEx
lea r8, [0x180034808]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180022110
test rax, rax
je 0x1800224a1
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18002eb80
jmp 0x1800224bb
xor edx, edx
mov rcx, rbp
call fcn.18002272c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800246d4
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 0x180024704
xor eax, eax
jmp 0x1800247c7
mov rbp, rbx
cmp word [rax], si
je 0x180024729
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180024710
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002470c
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.1800245f4
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18002476a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800246fd
call fcn.180022af0
mov rdi, rax
test rax, rax
jne 0x180024780
xor ecx, ecx
call fcn.180021b10
jmp 0x18002475f
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.1800245f4
test eax, eax
jne 0x1800247b1
mov rcx, rdi
call fcn.180021b10
jmp 0x1800247bb
xor ecx, ecx
call fcn.180021b10
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 0x180028a98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x180028b0b
cmp word [rcx], si
je 0x180028b0b
lea rdx, [0x180035938]
call fcn.18002b9a8
test eax, eax
je 0x180028b0b
lea rdx, [0x180035950]
mov rcx, rbx
call fcn.18002b9a8
test eax, eax
jne 0x180028b01
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180028b28
mov eax, dword [rsp + 0x30]
jmp 0x180028b3a
mov rcx, rbx
call fcn.18001fb48
jmp 0x180028b3a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x180028b2c
xor eax, eax
jmp 0x180028b3a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180028b3a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180028b4c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1800200a4
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180028bef
cmp edi, dword [rsp + 0x30]
je 0x180028be8
test ebp, ebp
je 0x180028be8
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180028bc4
sub dx, 0x61
cmp dx, 0x19
ja 0x180028bd0
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x180028bb1
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180028bd4
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180028bf1
mov eax, 1
jmp 0x180028bf1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18002dd00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002dd28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002dd28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140870b28
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140870caf
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140870b59
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140870b3f
add dl, dl
jne 0x140870b66
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140870bc6
xor eax, eax
add dl, dl
jne 0x140870b75
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140870c7d
add dl, dl
jne 0x140870b86
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140870b93
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140870ba0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140870bad
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140870bba
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140870b4e
mov eax, 1
add dl, dl
jne 0x140870bd6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140870be3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140870bcb
sub eax, ebx
mov ebx, 1
jne 0x140870c1c
mov ecx, 1
add dl, dl
jne 0x140870bfe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140870c0b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140870bf3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140870b4e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140870c38
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140870c45
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140870c2d
cmp eax, 0x7d00
jae 0x140870c6b
cmp eax, 0x500
jb 0x140870c66
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140870b4e
cmp eax, 0x7f
ja 0x140870c6e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140870b4e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140870ca2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140870b4e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x18a71e4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18a71ee
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x18a7217
pop rbp
sub rbp, 0x33
sub rbp, 0x14a71e4
sub rsp, 0x20
jmp 0x18a7236
mov rax, 0x14a71e4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x587eec25
xor byte [rax], dl
inc rax
dec rcx
jne 0x18a7255
jmp 0x18a726c
insd dword [rdi], dx
lodsb al, byte [rsi]
int3
Function at 0x180001c40
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x180001c82
mov rdi, rcx
movsxd rax, dword [rcx + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x180001c82
mov rsi, rdx
cmp dword [0x180004068], 0xa
jl 0x180001cab
mov ecx, dword [0x18000406c]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x180001cab
nop
jmp 0x180001c80
xor eax, eax
cmp dword [0x180004060], 0xa
jl 0x180001ca2
mov ecx, dword [0x180004064]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x180001ca2
nop
jmp 0x180001ca0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
cmp dword [0x180004050], 0xa
jl 0x180001cd2
mov ecx, dword [0x180004054]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x180001cd2
nop word cs:[rax + rax]
nop
jmp 0x180001cd0
add rax, rdi
movzx ecx, word [rax + 4]
cmp ecx, 0x8664
je 0x180001d12
movzx ecx, cx
cmp ecx, 0x14c
jne 0x180001d92
mov ecx, dword [rax + 0xa0]
test ecx, ecx
je 0x180001d92
cmp dword [rax + 0x74], 6
jb 0x180001d92
lea rdx, [rax + 0x78]
add rdx, 0x2c
jmp 0x180001d2c
mov ecx, dword [rax + 0xb0]
test ecx, ecx
je 0x180001d92
cmp dword [rax + 0x84], 6
jb 0x180001d92
lea rdx, [rax + 0xb4]
mov ebp, dword [rdx]
test ebp, ebp
je 0x180001d92
mov r8d, ecx
add r8, rdi
jmp 0x180001d42
sub ebp, ebx
je 0x180001c84
mov ecx, dword [r8]
mov ebx, dword [r8 + 4]
lea edx, [rbx - 8]
shr edx, 1
add r8, 8
add rcx, rdi
mov r9, rsi
call fcn.180002030
mov r8, rax
mov al, 1
test r8, r8
je 0x180001c84
cmp dword [0x180004060], 0xa
jl 0x180001d3a
mov ecx, dword [0x180004064]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x180001d3a
nop word cs:[rax + rax]
nop
jmp 0x180001d90
cmp dword [0x180004060], 0xa
jl 0x180001db2
mov ecx, dword [0x180004064]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x180001db2
nop dword [rax]
jmp 0x180001db0
mov al, byte [rax + 0x16]
not al
and al, 1
jmp 0x180001c84
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004560]
mov rcx, qword [0x1400044e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140004570]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140004580]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140004550]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004620]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004600]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400044c0]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001b90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001bdc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001bd6
test eax, eax
jne 0x140001bd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001bae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001d90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001db3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001db3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001db4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001dee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001de5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001df0
inc r8d
add rax, 0x28
jmp 0x140001dcc
xor eax, eax
ret

Function at 0x140001e61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400044e0]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001e8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x531820
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x53194f
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
mov rcx, rax
lea rax, [rsp + 0x38]
mov rbx, rcx
call fcn.00531660
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
lea rcx, [rsp + 0x18]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 1
call fcn.0053d380
xorps xmm15, xmm15
mov r14, qword [0x00947048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x58]
xor eax, eax
xor edx, edx
jmp 0x5318c0
test byte [rcx], al
lea rsi, [rax + 1]
mov rdi, qword [rsp + rax*8 + 0x18]
xor rdi, qword [rcx + rax*8]
or rdx, rdi
mov rax, rsi
nop dword [rax]
cmp rax, 4
jl 0x5318a8
nop
not rdx
mov rcx, rdx
shr rdx, 0x20
and rcx, rdx
mov rdx, rcx
shr rcx, 0x10
and rcx, rdx
mov rdx, rcx
shr rcx, 8
and rcx, rdx
mov rdx, rcx
shr rcx, 4
and rcx, rdx
mov rdx, rcx
shr rcx, 2
and rcx, rdx
mov rdx, rcx
shr rcx, 1
and rcx, rdx
and ecx, 1
cmp rcx, 1
je 0x531941
lea rax, [0x0069f6e0]
call fcn.0040d960
mov qword [rax + 8], 0x17
lea rcx, [0x006e11b2]
mov qword [rax], rcx
mov rbx, rax
lea rax, [0x00755980]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
nop
ret
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00463760
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00531820
Function at 0x55bea0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x55c0e6
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x88], rax
mov rsi, qword [rdi]
nop
mov rsi, qword [rsi + 8]
mov qword [rsp + 0x70], rsi
mov r8, qword [rax + 8]
mov r9, qword [rax]
cmp qword [rax + 0x10], rsi
jl 0x55bf3e
test r8, r8
je 0x55bf2b
shl r8, 3
mov rax, r9
mov rbx, r8
call fcn.00466460
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xa0]
mov rdx, qword [rax + 0x10]
cmp rdx, rsi
jb 0x55c0da
mov qword [rax + 8], rsi
jmp 0x55bf93
lea rax, [0x00686a20]
mov rbx, rsi
mov rcx, rbx
call fcn.0044a840
mov rdx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
cmp dword [0x009472c0], 0
jne 0x55bf73
mov qword [rdi], rax
jmp 0x55bf78
call fcn.00465920
mov rax, rdi
mov rcx, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa0]
mov rdx, qword [rdi]
mov rsi, qword [rbx + 8]
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
mov r10, qword [rdx + 8]
mov r11, qword [rdx]
mov rdx, qword [rdx + 0x10]
cmp r10, rsi
jne 0x55c0c7
mov r12, qword [rcx + 8]
mov r13, qword [rcx]
mov rcx, qword [rcx + 0x10]
cmp r10, r12
jne 0x55c0c7
mov rbx, qword [rax]
mov r15, qword [rax + 8]
mov rax, qword [rax + 0x10]
mov rdi, qword [rdi + 0x10]
mov qword [rsp], rbx
mov qword [rsp + 8], r15
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rdi
call fcn.0055d1e0
xorps xmm15, xmm15
mov r14, qword [0x00947048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x88]
mov rbx, qword [rdx + 8]
mov rsi, qword [rdx]
mov rdi, qword [rcx + 0x10]
mov r8, qword [rcx]
cmp rdi, rbx
jb 0x55c0bc
xor edi, edi
xor r9d, r9d
nop
jmp 0x55c080
lea r10, [rdi + 1]
mov r11, qword [rsi + rdi*8]
sub r11, qword [r8 + rdi*8]
sub r11, r9
shr r11, 0x3f
mov rdi, r10
mov r9, r11
nop dword [rax + rax]
cmp rdi, rbx
jl 0x55c062
mov rsi, rax
sub rax, r9
sbb rbx, rbx
sub r9, rsi
sbb rsi, rsi
nop
neg rbx
neg rsi
or rbx, rsi
xor rbx, 1
mov rax, rdx
call fcn.0055b2e0
mov rax, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rcx, rbx
mov rdx, rdi
call fcn.00465e40
lea rax, [0x00686960]
lea rbx, [0x00754930]
call fcn.00436420
mov rcx, rsi
nop dword [rax]
call fcn.00465e40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00463760
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0055bea0