joyce8/EMBER2024-capa huggingface dataset:
Function at 0x561790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
lea rdi, [rsp + 0x5f]
mov r12, r8
mov rsi, rcx
and rdi, 0xffffffffffffffc0
mov rcx, r12
mov rbp, r9
lea r13, [rdi + 0x200]
mov r9d, 0x20
lea rbx, [rdx - 0x20]
mov r8, r13
mov edx, 0x50
call fcn.00564450
mov rdx, qword [r12 + 0x48]
mov rcx, rdi
shr rbx, 4
add ebx, 1
call fcn.00561480
vmovdqu xmm1, xmmword [rdi + 0x200]
mov rcx, rdi
mov r9d, 0x811c9dc5
vmovdqu xmm0, xmmword [rdi + 0x210]
vmovdqu xmm2, xmmword [0x0061ab40]
nop word [rax + rax]
mov eax, dword [rcx]
xor edx, edx
add rcx, 4
xor eax, r9d
imul eax, eax, 0x1000193
div ebx
mov rax, rdx
shl rax, 4
add rax, rsi
xor r9d, dword [rax]
vpxor xmm1, xmm1, xmmword [rax]
vpxor xmm0, xmm0, xmmword [rax + 0x10]
vpmulld xmm1, xmm2, xmm1
vpmulld xmm0, xmm2, xmm0
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 4]
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 8]
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 0xc]
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 0x10]
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 0x14]
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 0x18]
imul r9d, r9d, 0x1000193
xor r9d, dword [rax + 0x1c]
imul r9d, r9d, 0x1000193
cmp r13, rcx
jne 0x561810
mov r11d, 1
mov ecx, r11d
mov r10, rdi
nop dword [rax]
mov eax, dword [r10]
xor edx, edx
add r10, 4
rol eax, cl
xor eax, r9d
imul eax, eax, 0x1000193
div ebx
shl rdx, 4
add rdx, rsi
xor r9d, dword [rdx]
vpxor xmm1, xmm1, xmmword [rdx]
vpxor xmm0, xmm0, xmmword [rdx + 0x10]
vpmulld xmm4, xmm2, xmm1
vpmulld xmm3, xmm2, xmm0
vmovdqu xmm1, xmm4
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 4]
vmovdqu xmm0, xmm3
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 8]
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 0xc]
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 0x10]
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 0x14]
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 0x18]
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx + 0x1c]
imul r9d, r9d, 0x1000193
cmp r13, r10
jne 0x5618b0
add r11, 1
cmp r11, 0x20
jne 0x5618a6
vmovups xmmword [rdi + 0x200], xmm4
vmovups xmmword [rdi + 0x210], xmm3
vmovups xmmword [rbp], xmm4
vmovups xmmword [rbp + 0x10], xmm3
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x566dd0
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x80]
and eax, 0x3f
mov rbx, rcx
mov rsi, rdx
lea ecx, [rax + 1]
mov byte [rbx + rax], pe_nt_image_headers64
lea rdi, [rbx + 0x40]
mov eax, ecx
add rax, rbx
cmp ecx, 0x20
jbe 0x566ef0
mov edx, 0x40
xor r9d, r9d
sub edx, ecx
cmp edx, 8
jb 0x566f60
mov ecx, edx
sub edx, 1
mov qword [rax + rcx - 8], 0
cmp edx, 8
jb 0x566e38
and edx, 0xfffffff8
xor ecx, ecx
mov r8d, ecx
add ecx, 8
mov qword [rax + r8], r9
cmp ecx, edx
jb 0x566e2a
mov rdx, rdi
mov rcx, rbx
call fcn.00564620
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rax, qword [rbx + 0x80]
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov rdx, rax
shr rdx, 0x3d
bswap rdx
mov qword [rbx + 0x30], rdx
shl rax, 3
bswap rax
mov qword [rbx + 0x38], rax
mov rdx, rdi
mov rcx, rbx
call fcn.00564620
lea rax, [rsi + 0x20]
cmp rdi, rax
jae 0x566eb3
lea rax, [rbx + 0x60]
cmp rsi, rax
jb 0x566f90
vmovdqu xmm1, xmmword [rbx + 0x40]
vinsertf128 ymm0, ymm1, xmmword [rbx + 0x50], 1
vmovups xmmword [rsi], xmm0
vextractf128 xmmword [rsi + 0x10], ymm0, 1
vmovdqu xmm2, xmmword [rbx + 0x60]
vinsertf128 ymm0, ymm2, xmmword [rbx + 0x70], 1
vmovups xmmword [rsi + 0x20], xmm0
vextractf128 xmmword [rsi + 0x30], ymm0, 1
vzeroupper
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x20
xor r9d, r9d
sub edx, ecx
cmp edx, 8
jb 0x566f30
mov ecx, edx
sub edx, 1
mov qword [rax + rcx - 8], 0
cmp edx, 8
jb 0x566e62
and edx, 0xfffffff8
xor ecx, ecx
mov r8d, ecx
add ecx, 8
mov qword [rax + r8], r9
cmp ecx, edx
jb 0x566f1b
jmp 0x566e62
test dl, 4
jne 0x566fd7
test edx, edx
je 0x566e62
mov byte [rax], 0
test dl, 2
je 0x566e62
xor ecx, ecx
mov word [rax + rdx - 2], cx
jmp 0x566e62
test dl, 4
jne 0x566fea
test edx, edx
je 0x566e38
mov byte [rax], 0
test dl, 2
je 0x566e38
xor r8d, r8d
mov word [rax + rdx - 2], r8w
jmp 0x566e38
mov rax, qword [rbx + 0x40]
mov qword [rsi], rax
mov rax, qword [rbx + 0x48]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x50]
mov qword [rsi + 0x10], rax
mov rax, qword [rbx + 0x58]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx + 0x60]
mov qword [rsi + 0x20], rax
mov rax, qword [rbx + 0x68]
mov qword [rsi + 0x28], rax
mov rax, qword [rbx + 0x70]
mov qword [rsi + 0x30], rax
mov rax, qword [rbx + 0x78]
mov qword [rsi + 0x38], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x566e62
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x566e38
Function at 0x567230
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x80]
and eax, 0x3f
mov rbx, rcx
mov rsi, rdx
lea ecx, [rax + 1]
mov byte [rbx + rax], pe_nt_image_headers64
lea rdi, [rbx + 0x40]
mov eax, ecx
add rax, rbx
cmp ecx, 0x20
jbe 0x567350
mov edx, 0x40
xor r9d, r9d
sub edx, ecx
cmp edx, 8
jb 0x5673c0
mov ecx, edx
sub edx, 1
mov qword [rax + rcx - 8], 0
cmp edx, 8
jb 0x567298
and edx, 0xfffffff8
xor ecx, ecx
mov r8d, ecx
add ecx, 8
mov qword [rax + r8], r9
cmp ecx, edx
jb 0x56728a
mov rdx, rdi
mov rcx, rbx
call fcn.00565c40
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rax, qword [rbx + 0x80]
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov rdx, rax
shr rdx, 0x3d
bswap rdx
mov qword [rbx + 0x30], rdx
shl rax, 3
bswap rax
mov qword [rbx + 0x38], rax
mov rdx, rdi
mov rcx, rbx
call fcn.00565c40
lea rax, [rsi + 0x20]
cmp rdi, rax
jae 0x567313
lea rax, [rbx + 0x60]
cmp rsi, rax
jb 0x5673f0
vmovdqu xmm1, xmmword [rbx + 0x40]
vinsertf128 ymm0, ymm1, xmmword [rbx + 0x50], 1
vmovups xmmword [rsi], xmm0
vextractf128 xmmword [rsi + 0x10], ymm0, 1
vmovdqu xmm2, xmmword [rbx + 0x60]
vinsertf128 ymm0, ymm2, xmmword [rbx + 0x70], 1
vmovups xmmword [rsi + 0x20], xmm0
vextractf128 xmmword [rsi + 0x30], ymm0, 1
vzeroupper
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x20
xor r9d, r9d
sub edx, ecx
cmp edx, 8
jb 0x567390
mov ecx, edx
sub edx, 1
mov qword [rax + rcx - 8], 0
cmp edx, 8
jb 0x5672c2
and edx, 0xfffffff8
xor ecx, ecx
mov r8d, ecx
add ecx, 8
mov qword [rax + r8], r9
cmp ecx, edx
jb 0x56737b
jmp 0x5672c2
test dl, 4
jne 0x567437
test edx, edx
je 0x5672c2
mov byte [rax], 0
test dl, 2
je 0x5672c2
xor ecx, ecx
mov word [rax + rdx - 2], cx
jmp 0x5672c2
test dl, 4
jne 0x56744a
test edx, edx
je 0x567298
mov byte [rax], 0
test dl, 2
je 0x567298
xor r8d, r8d
mov word [rax + rdx - 2], r8w
jmp 0x567298
mov rax, qword [rbx + 0x40]
mov qword [rsi], rax
mov rax, qword [rbx + 0x48]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x50]
mov qword [rsi + 0x10], rax
mov rax, qword [rbx + 0x58]
mov qword [rsi + 0x18], rax
mov rax, qword [rbx + 0x60]
mov qword [rsi + 0x20], rax
mov rax, qword [rbx + 0x68]
mov qword [rsi + 0x28], rax
mov rax, qword [rbx + 0x70]
mov qword [rsi + 0x30], rax
mov rax, qword [rbx + 0x78]
mov qword [rsi + 0x38], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x5672c2
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x567298
Function at 0x58f114
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdi
mov r11, rsi
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
xor rcx, rcx
mov ecx, edx
shr ecx, 6
mov rax, 0x40
movdqa xmm0, xmmword [rdi]
movdqa xmm1, xmmword [rdi + 0x10]
movdqa xmm2, xmmword [rdi + 0x20]
movdqa xmm3, xmmword [rdi + 0x30]
movdqa xmm4, xmmword [rsi]
movdqa xmm5, xmmword [rsi + 0x10]
movdqa xmm8, xmmword [rsi + 0x20]
movdqa xmm9, xmmword [rsi + 0x30]
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm8
pxor xmm3, xmm9
movdqa xmmword [rdi], xmm0
movdqa xmmword [rdi + 0x10], xmm1
movdqa xmmword [rdi + 0x20], xmm2
movdqa xmmword [rdi + 0x30], xmm3
add rdi, rax
add rsi, rax
dec ecx
jne 0x58f132
mov rdi, r10
mov rsi, r11
ret

Function at 0x58f190
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdi
mov r11, rsi
mov rdi, rcx
mov rsi, rdx
xor rcx, rcx
mov ecx, esi
shr ecx, 1
movdqa xmm0, xmmword [rdi]
movdqa xmm12, xmm0
movdqa xmm1, xmmword [rdi + 0x10]
movdqa xmm13, xmm1
movdqa xmm2, xmmword [rdi + 0x20]
movdqa xmm14, xmm2
movdqa xmm3, xmmword [rdi + 0x30]
movdqa xmm15, xmm3
movdqa xmm4, xmm1
paddd xmm4, xmm0
movdqa xmm5, xmm4
pslld xmm4, 7
psrld xmm5, 0x19
pxor xmm3, xmm4
movdqa xmm4, xmm0
pxor xmm3, xmm5
paddd xmm4, xmm3
movdqa xmm5, xmm4
pslld xmm4, 9
psrld xmm5, 0x17
pxor xmm2, xmm4
movdqa xmm4, xmm3
pxor xmm2, xmm5
pshufd xmm3, xmm3, 0x93
paddd xmm4, xmm2
movdqa xmm5, xmm4
pslld xmm4, 0xd
psrld xmm5, 0x13
pxor xmm1, xmm4
movdqa xmm4, xmm2
pxor xmm1, xmm5
pshufd xmm2, xmm2, 0x4e
paddd xmm4, xmm1
movdqa xmm5, xmm4
pslld xmm4, 0x12
psrld xmm5, 0xe
pxor xmm0, xmm4
movdqa xmm4, xmm3
pxor xmm0, xmm5
pshufd xmm1, xmm1, 0x39
paddd xmm4, xmm0
movdqa xmm5, xmm4
pslld xmm4, 7
psrld xmm5, 0x19
pxor xmm1, xmm4
movdqa xmm4, xmm0
pxor xmm1, xmm5
paddd xmm4, xmm1
movdqa xmm5, xmm4
pslld xmm4, 9
psrld xmm5, 0x17
pxor xmm2, xmm4
movdqa xmm4, xmm1
pxor xmm2, xmm5
pshufd xmm1, xmm1, 0x93
paddd xmm4, xmm2
movdqa xmm5, xmm4
pslld xmm4, 0xd
psrld xmm5, 0x13
pxor xmm3, xmm4
movdqa xmm4, xmm2
pxor xmm3, xmm5
pshufd xmm2, xmm2, 0x4e
paddd xmm4, xmm3
movdqa xmm5, xmm4
pslld xmm4, 0x12
psrld xmm5, 0xe
pxor xmm0, xmm4
pshufd xmm3, xmm3, 0x39
pxor xmm0, xmm5
dec ecx
jne 0x58f1ca
paddd xmm0, xmm12
movdqa xmmword [rdi], xmm0
paddd xmm1, xmm13
movdqa xmmword [rdi + 0x10], xmm1
paddd xmm2, xmm14
movdqa xmmword [rdi + 0x20], xmm2
paddd xmm3, xmm15
movdqa xmmword [rdi + 0x30], xmm3
mov rdi, r10
mov rsi, r11
ret
Function at 0x58f37c
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdi
mov r11, rsi
mov rdi, rcx
mov rsi, rdx
xor rcx, rcx
mov ecx, esi
shr ecx, 1
movdqa xmm0, xmmword [rdi]
movdqa xmm12, xmm0
movdqa xmm1, xmmword [rdi + 0x10]
movdqa xmm13, xmm1
movdqa xmm2, xmmword [rdi + 0x20]
movdqa xmm14, xmm2
movdqa xmm3, xmmword [rdi + 0x30]
movdqa xmm15, xmm3
paddd xmm0, xmm1
pxor xmm3, xmm0
pshuflw xmm3, xmm3, 0xb1
pshufhw xmm3, xmm3, 0xb1
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
pslld xmm1, 0xc
psrld xmm4, 0x14
pxor xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
movdqa xmm4, xmm3
pslld xmm3, 8
psrld xmm4, 0x18
pxor xmm3, xmm4
pshufd xmm0, xmm0, 0x93
paddd xmm2, xmm3
pshufd xmm3, xmm3, 0x4e
pxor xmm1, xmm2
pshufd xmm2, xmm2, 0x39
movdqa xmm4, xmm1
pslld xmm1, 7
psrld xmm4, 0x19
pxor xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
pshuflw xmm3, xmm3, 0xb1
pshufhw xmm3, xmm3, 0xb1
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
pslld xmm1, 0xc
psrld xmm4, 0x14
pxor xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
movdqa xmm4, xmm3
pslld xmm3, 8
psrld xmm4, 0x18
pxor xmm3, xmm4
pshufd xmm0, xmm0, 0x39
paddd xmm2, xmm3
pshufd xmm3, xmm3, 0x4e
pxor xmm1, xmm2
pshufd xmm2, xmm2, 0x93
movdqa xmm4, xmm1
pslld xmm1, 7
psrld xmm4, 0x19
pxor xmm1, xmm4
dec ecx
jne 0x58f3b6
paddd xmm0, xmm12
movdqa xmmword [rdi], xmm0
paddd xmm1, xmm13
movdqa xmmword [rdi + 0x10], xmm1
paddd xmm2, xmm14
movdqa xmmword [rdi + 0x20], xmm2
paddd xmm3, xmm15
movdqa xmmword [rdi + 0x30], xmm3
mov rdi, r10
mov rsi, r11
ret
Function at 0x591a60
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rdx
movsx rdx, byte [rdx]
test rdx, rdx
je 0x591b20
mov r8, rbp
mov esi, 0x1505
mov rax, rsi
add r8, 1
shl rax, 5
add rax, rdx
movsx rdx, byte [r8]
add rsi, rax
test rdx, rdx
jne 0x591a80
mov r8, qword [rcx + 0x10]
lea rdi, [0x00627ee0]
mov rax, rsi
xor edx, edx
add rcx, 0x18
div qword [rdi + r8*8]
mov rdi, qword [rcx - 0x10]
shl rdx, 4
add rdi, rdx
mov rbx, qword [rdi]
cmp rbx, rcx
jne 0x591ada
jmp 0x591b10
cmp rbx, qword [rdi + 8]
je 0x591b00
mov rbx, qword [rbx + 8]
cmp qword [rbx - 8], rsi
jne 0x591ad0
mov rdx, rbp
lea rcx, [rbx + 0x20]
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x591ad0
mov rax, qword [rbx + 0x10]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp rbx, qword [rdi + 8]
jne 0x591ada
jmp 0x591af4
mov esi, 0x1505
jmp 0x591a9a

Function at 0x594940
Capabilities:
Hash data using djb2

Disassembly:
test rcx, rcx
je 0x594958
mov eax, dword [rcx]
test eax, eax
jne 0x594958
add rcx, 0x10
jmp fcn.00591a60
xor eax, eax
ret
Function at 0x597520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [0x0063ff90]
test rbx, rbx
je 0x5976f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x5976f0
mov rax, qword [rbx + 0x10]
lea rbp, [rsp + 0x20]
mov rdx, qword [rbx + 0x18]
lea rsi, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call fcn.00596da0
lea rax, [rbx + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
xchg qword [rax], rcx
test rcx, rcx
je 0x5975ec
mov qword [rcx + 8], rsi
lea rdx, [rcx + 0x18]
xor eax, eax
mov rcx, 0xffffffffffffffff
lock cmpxchg qword [rdx], rcx
test rax, rax
mov rcx, rax
je 0x5975d7
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r12, [rsi + 0x10]
xor edi, edi
lock xadd qword [r12], rdi
test rdi, rdi
je 0x597700
mov dword [rbx + 0x28], 6
mov r8, qword [rsp + 0x30]
lea rax, [rsi + 8]
xor edx, edx
lock xadd qword [rax], rdx
test rdx, rdx
mov rcx, rdx
je 0x597740
add rcx, 0x10
xor eax, eax
mov rdx, 0xffffffffffffffff
lock cmpxchg qword [rcx], rdx
test rax, rax
mov rcx, rax
je 0x59762f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x178]
mov esi, 0xffffffff
mov rdi, qword [sym.imp.KERNEL32.dll_SetEvent]
test rax, rax
jne 0x59766b
jmp 0x5976b5
add r8, 8
mov eax, esi
xchg dword [r8], eax
mov rcx, qword [rdx + 0x20]
call rdi
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x5976b5
mov rdx, qword [rax]
mov r9, qword [rdx + 0x28]
mov r10, qword [rdx + 0x10]
mov qword [rdx + 0x10], rbx
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x59768b
mov rcx, qword [r9 + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x597698
mov qword [rcx + 0x18], rax
cmp r9, qword [r10 + 0x178]
mov r8, r9
jne 0x597650
mov rax, qword [r9 + 0x18]
mov qword [r10 + 0x178], rax
mov r8, qword [rdx + 0x28]
jmp 0x597650
cmp dword [rbx + 0x184], 1
jne 0x5976f0
mov rax, qword [rbx + 0x10]
mov rcx, rbp
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call fcn.00596aa0
mov rax, qword [0x0063ff90]
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r13, rax
mov rax, rdi
lock cmpxchg qword [r12], r13
test rax, rax
je 0x59772f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5975ec
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x597721
mov rax, rsi
lock cmpxchg qword [r8], rdx
cmp rsi, rax
je 0x59762f
lea rcx, [rsi + 0x18]
lock xadd qword [rcx], rdx
test rdx, rdx
je 0x59776f
add rsi, 8
xor ecx, ecx
lock xadd qword [rsi], rcx
jmp 0x59760f
call fcn.005967a0
jmp 0x59775f
Function at 0x59abf0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x0063ff88]
test rbx, rbx
je 0x59ac52
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x59ac52
test esi, esi
je 0x59ac37
mov rax, qword [rbx]
test rax, rax
je 0x59ac37
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x0063ff88]
call fcn.0059a730
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x0063ff88]
test rsi, rsi
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
je 0x59acc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x0063ff88]
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 0x10], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.0059a730
xor edi, edi
jmp 0x59aca0

Function at 0x59acd0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [0x0063ff90]
test rsi, rsi
mov rbx, rcx
je 0x59ad32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x59ad32
mov rdi, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x10]
mov qword [rbx], rsi
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x40]
mov rcx, r12
call fcn.00598150
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbp, rbp
mov rsi, rbp
je 0x59ad17
or byte [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbp + 0x198], eax
call r13
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r13
lea r9, [rbp + 8]
mov r8, r15
mov rdx, r14
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x59ade0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rcx, qword [0x0063ff90]
mov rdx, rbp
mov dword [rbp + 0x188], eax
call fcn.0059a730
jmp 0x59ad17
mov rcx, r12
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
call fcn.00597fb0
mov qword [rbx], 0
mov dword [rbx + 8], 0
jmp 0x59ad1e
Function at 0x59ae10
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rdx, rdx
mov r12, rcx
mov r14, r8
mov dword [rcx + 8], 0
mov r13, r9
je 0x59af50
mov rbp, qword [rdx]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.00598150
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x59af20
mov ecx, 0x20
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x59af20
test rbp, rbp
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
je 0x59af80
mov eax, dword [rbp + 0x18]
mov r14, qword [rbp + 0x10]
mov r13d, dword [rbp + 0x1c]
mov dword [rbx + 0x184], eax
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x59af60
mov dword [rbx + 0x28], 0
xor ecx, ecx
mov r9, rsi
mov edx, r14d
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x0059ab30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
je 0x59afd0
mov r8d, r13d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.00598dc0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [r12], rbx
xor eax, eax
mov qword [r12 + 8], r15
jmp 0x59af37
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.00596aa0
mov eax, 0xb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x59ae3c
mov rcx, rdi
call fcn.0059acd0
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x188]
jmp 0x59aea6
mov dword [rbx + 0x28], 0
xor edx, edx
xor ecx, ecx
mov r9, rsi
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x0059ab30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
jne 0x59af05
nop word [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.00596aa0
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, 0xb
jmp 0x59af37

Function at 0x5a1a10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x5a1a43
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
xor ebx, ebx
jmp 0x5a1a39
Function at 0x5a1a50
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, ecx
mov rcx, qword [0x0063ff90]
call fcn.005a1a10
mov rsi, rax
mov dword [rax + 0x28], 5
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x5a1a88
mov ecx, 1
call sub.msvcrt.dll_exit
test byte [rsi + 0x194], 1
jne 0x5a1b02
mov rbx, qword [0x0063ff88]
test rbx, rbx
je 0x5a1af7
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x5a1adf
mov r8, qword [rbx]
test r8, r8
je 0x5a1ac3
mov rcx, qword [rbx + 8]
call r8
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x0063ff88]
call fcn.0059a730
mov rbx, qword [0x0063ff88]
test rbx, rbx
je 0x5a1af7
call r13
mov ecx, dword [rbx]
mov r14d, eax
call r12
mov ecx, r14d
mov rbx, rax
call rbp
test rbx, rbx
jne 0x5a1ab4
lea rcx, [rsi + 0x70]
mov edx, edi
call sub.msvcrt.dll_longjmp
or ecx, 0xffffffff
cmp edi, 2
jne 0x5a1b19
cmp dword [0x0063ff98], 0
jne 0x5a1b1e
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ecx, dword [rsi + 0x48]
jmp 0x5a1b0a
mov dword [rsp + 0x2c], ecx
call fcn.00597520
mov ecx, dword [rsp + 0x2c]
jmp 0x5a1b13
Function at 0x5a8070
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, 1
test edx, edx
mov rbx, rcx
cmovg esi, edx
cmp edx, 0x3ffffff
jg 0x5a80e8
movsxd rdx, dword [rcx]
movsxd r8, esi
shl r8, 3
test edx, edx
je 0x5a80c8
mov rax, qword [0x0062c3c0]
shl rdx, 3
mov rcx, qword [rcx + 8]
call qword [rax]
mov edx, dword [rbx + 4]
mov ecx, dword [rbx + 4]
sar edx, 0x1f
xor ecx, edx
sub ecx, edx
cmp ecx, esi
jg 0x5a8118
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x0062c380]
mov rcx, r8
call qword [rax]
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.005cb4e0]
lea rcx, str.gmp:_overflow_in_mpz_type_n
mov r9, rax
mov r8d, 0x1a
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop word [rax + rax]
mov dword [rbx + 4], 0
jmp 0x5a80bb

Function at 0x5c3720
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.005cb4e0
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.005cb4e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]