joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180d6e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180d6e1df
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 0x180d6e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180d6e06f
add dl, dl
jne 0x180d6e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180d6e0f6
xor eax, eax
add dl, dl
jne 0x180d6e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180d6e1ad
add dl, dl
jne 0x180d6e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d6e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d6e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d6e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180d6e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180d6e07e
mov eax, 1
add dl, dl
jne 0x180d6e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d6e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180d6e0fb
sub eax, ebx
mov ebx, 1
jne 0x180d6e14c
mov ecx, 1
add dl, dl
jne 0x180d6e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180d6e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180d6e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180d6e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180d6e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180d6e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180d6e15d
cmp eax, 0x7d00
jae 0x180d6e19b
cmp eax, 0x500
jb 0x180d6e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180d6e07e
cmp eax, 0x7f
ja 0x180d6e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180d6e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180d6e1d2
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 0x180d6e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x403394
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov ebx, edx
mov ebp, r8d
mov edi, r9d
mov byte [rsp + 0x27], 0x78
mov byte [rsp + 0x28], 0x71
mov byte [rsp + 0x29], 0x6c
mov byte [rsp + 0x2a], 0x69
mov byte [rsp + 0x2b], 0x7f
mov byte [rsp + 0x2c], 0x79
mov byte [rsp + 0x2d], 0x6a
mov byte [rsp + 0x2e], 0x72
mov byte [rsp + 0x2f], 0x3b
lea r8, [rsp + 0x27]
mov ecx, 0
mov r9d, 0x4bda12f7
mov eax, ecx
imul r9d
sar edx, 4
mov eax, ecx
sar eax, 0x1f
sub edx, eax
imul edx, edx, 0x36
mov eax, ecx
sub eax, edx
add eax, 0x33
xor byte [r8], al
add ecx, 1
add r8, 1
cmp ecx, 9
jne 0x4033e4
lea r8, [rsp + 0x27]
mov edx, 0x104
lea rcx, [0x005e03b0]
call qword [0x005b1c70]
cmp rsi, 0x1000
ja 0x40343a
add ebx, ebp
lea eax, [rbx + rdi]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [0x005e00a0]
mov qword [rsi], rax
jmp 0x40342c
Function at 0x404615
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2b8
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 0x410
call fcn.004acb70
mov rsi, rax
mov word [rsp + 0x2a0], 0x16
mov word [rsp + 0x2a2], 0x43
mov word [rsp + 0x2a4], 0x46
mov word [rsp + 0x2a6], 0x6a
mov word [rsp + 0x2a8], 0x1d
mov word [rsp + 0x2aa], 0x16
mov word [rsp + 0x2ac], 0x13
mov word [rsp + 0x2ae], 0x3a
lea r8, [rsp + 0x2a0]
mov ecx, 0
mov r9d, 0x4bda12f7
mov eax, ecx
imul r9d
sar edx, 4
mov eax, ecx
sar eax, 0x1f
sub edx, eax
imul edx, edx, 0x36
mov eax, ecx
sub eax, edx
add eax, 0x33
xor word [r8], ax
add ecx, 1
add r8, 2
cmp ecx, 8
jne 0x4046b1
mov r9, rdi
lea r8, [rsp + 0x2a0]
mov edx, 0x208
mov rcx, rsi
call sub.msvcrt.dll_swprintf_s
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov rax, qword [0x005bb190]
call qword [rax + 0x180]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x404860
lea r12, [rsp + 0x30]
lea rbp, [r12 + 0x10]
mov rdi, qword [0x005bb190]
jmp 0x404807
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x7c]
call sub.msvcrt.dll_wcslen
lea r13, [rax + rax]
mov rdx, r13
sar rdx, 1
mov qword [rsp + 0x28], rdx
cmp rdx, 7
ja 0x4047a2
mov rax, qword [rsp + 0x30]
cmp rdx, 1
jne 0x4047d6
movzx edx, word [rsp + 0x7c]
mov word [rax], dx
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], 0
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
je 0x4047f3
lea rax, [rcx + 0x10]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x30]
mov r9d, 0
mov rax, qword [rsp + 0x38]
lea r8, [rdx + rax*2]
call fcn.0049c4f0
jmp 0x4047dd
lea rdx, [rsp + 0x28]
mov r8d, 0
mov rcx, r12
call fcn.0049ddf0
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x7c]
mov r8, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x404761
test rdx, rdx
je 0x404761
jmp 0x4047c4
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x30]
cmp rcx, rbp
je 0x404812
call fcn.004acb50
jmp 0x404812
mov r8, r12
mov rdx, rcx
mov rcx, rbx
call fcn.004983c0
jmp 0x4047e2
test eax, eax
je 0x404822
test byte [rsp + 0x50], 0x10
je 0x40472a
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rdi + 0x188]
jmp 0x404803
mov rcx, rsi
mov rax, qword [0x005bb190]
call qword [rax + 0x190]
jmp 0x404860
mov rax, rbx
add rsp, 0x2b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x405b06
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r11d, dword [rcx + rax + 0x88]
add r11, rcx
mov r9d, dword [r11 + 0x20]
mov eax, dword [r11 + 0x18]
test eax, eax
je 0x405b87
lea r10d, [rax - 1]
mov r8d, 0
add r9, rcx
jmp 0x405b3c
lea rax, [r8 + 1]
cmp r8, r10
je 0x405b8e
mov r8, rax
mov edx, dword [r9 + r8*4]
add rdx, rcx
cmp dword [rdx], 0x50746547
jne 0x405b30
cmp dword [rdx + 4], 0x41636f72
jne 0x405b30
cmp dword [rdx + 8], 0x65726464
jne 0x405b30
cmp word [rdx + 0xc], 0x7373
jne 0x405b30
cmp byte [rdx + 0xe], 0
jne 0x405b30
mov eax, dword [r11 + 0x24]
lea rdx, [rcx + r8*2]
movzx edx, word [rdx + rax]
mov eax, dword [r11 + 0x1c]
lea rdx, [rcx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x405b93
mov eax, 0
jmp 0x405b93
mov eax, 0
ret
Function at 0x40a6c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rdx
mov r8, rcx
add rdx, 0x10
movzx r9d, byte [rax]
mov byte [rcx], r9b
movzx r9d, byte [rax + 1]
mov byte [rcx + 1], r9b
movzx r9d, byte [rax + 2]
mov byte [rcx + 2], r9b
movzx r9d, byte [rax + 3]
mov byte [rcx + 3], r9b
add rax, 4
add rcx, 4
cmp rax, rdx
jne 0x40a6cd
mov r11d, 4
lea rbx, [0x005b59a0]
lea rsi, [0x005b5880]
jmp 0x40a73b
xor r9b, byte [rax]
mov byte [rax + 0x10], r9b
xor cl, byte [rax + 1]
mov byte [rax + 0x11], cl
xor r10b, byte [rax + 2]
mov byte [rax + 0x12], r10b
xor dl, byte [rax + 3]
mov byte [rax + 0x13], dl
add r11d, 1
add r8, 4
cmp r11d, 0x2c
je 0x40a78c
mov rax, r8
movzx r9d, byte [r8 + 0xc]
movzx ecx, byte [r8 + 0xd]
movzx r10d, byte [r8 + 0xe]
movzx edx, byte [r8 + 0xf]
test r11b, 3
jne 0x40a712
movzx ecx, cl
movzx edi, byte [rbx + rcx]
movzx r10d, r10b
movzx ecx, byte [rbx + r10]
movzx edx, dl
movzx r10d, byte [rbx + rdx]
movzx r9d, r9b
movzx edx, byte [rbx + r9]
mov r9d, r11d
shr r9d, 2
mov r9d, r9d
xor dil, byte [rsi + r9]
mov r9d, edi
jmp 0x40a712
pop rbx
pop rsi
pop rdi
ret

Function at 0x40a790
Capabilities:
Encode data using xor

Disassembly:
lea r9, [rdx + 4]
lea r10, [rdx + 0x14]
shl rcx, 4
and ecx, 0xff0
sub r8, rdx
lea r8, [rcx + r8 - 4]
lea rax, [r9 - 4]
lea rdx, [r8 + r9]
movzx ecx, byte [rdx]
xor byte [rax], cl
add rax, 1
add rdx, 1
cmp rax, r9
jne 0x40a7b2
add r9, 4
cmp r9, r10
jne 0x40a7aa
ret
Function at 0x40ab04
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov qword [rsp + 0x98], rdx
mov r8, rdx
mov rdx, rcx
mov ecx, 0
call fcn.0040a790
mov r15d, 1
mov qword [rsp + 0x38], rbx
lea rax, [rbx + 4]
mov qword [rsp + 0x30], rax
jmp 0x40ab68
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x38]
mov ecx, r15d
call fcn.0040a790
add r15d, 1
cmp r15d, 0xa
je 0x40ac7e
mov rdx, rbx
mov rax, rdx
lea rcx, [rdx + 0x10]
movzx r8d, byte [rax]
lea rdi, [0x005b59a0]
movzx r8d, byte [rdi + r8]
mov byte [rax], r8b
add rax, 4
cmp rax, rcx
jne 0x40ab72
add rdx, 1
cmp rdx, qword [rsp + 0x30]
jne 0x40ab6b
movzx eax, byte [rbx + 1]
movzx edx, byte [rbx + 5]
mov byte [rbx + 1], dl
movzx edx, byte [rbx + 9]
mov byte [rbx + 5], dl
movzx edx, byte [rbx + 0xd]
mov byte [rbx + 9], dl
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 2]
movzx edx, byte [rbx + 0xa]
mov byte [rbx + 2], dl
mov byte [rbx + 0xa], al
movzx eax, byte [rbx + 6]
movzx edx, byte [rbx + 0xe]
mov byte [rbx + 6], dl
mov byte [rbx + 0xe], al
movzx eax, byte [rbx + 3]
movzx edx, byte [rbx + 0xf]
mov byte [rbx + 3], dl
movzx edx, byte [rbx + 0xb]
mov byte [rbx + 0xf], dl
movzx edx, byte [rbx + 7]
mov byte [rbx + 0xb], dl
mov byte [rbx + 7], al
lea r14, [rbx + 0x10]
mov rsi, rbx
movzx ebp, byte [rsi]
movzx r12d, byte [rsi + 1]
mov ecx, ebp
xor ecx, r12d
movzx eax, byte [rsi + 2]
movzx edi, byte [rsi + 3]
mov byte [rsp + 0x2e], al
mov edx, eax
xor edx, edi
mov r13d, edx
mov byte [rsp + 0x2f], dl
xor r13d, ecx
movzx ecx, cl
call fcn.0040a7ce
xor eax, ebp
xor eax, r13d
mov byte [rsi], al
movzx ecx, byte [rsp + 0x2e]
xor ecx, r12d
movzx ecx, cl
call fcn.0040a7ce
xor r12d, eax
xor r12d, r13d
mov byte [rsi + 1], r12b
movzx ecx, byte [rsp + 0x2f]
call fcn.0040a7ce
xor al, byte [rsp + 0x2e]
xor eax, r13d
mov byte [rsi + 2], al
xor ebp, edi
movzx ecx, bpl
call fcn.0040a7ce
xor edi, eax
xor r13d, edi
mov byte [rsi + 3], r13b
add rsi, 4
cmp rsi, r14
jne 0x40abf4
jmp 0x40ab45
mov rcx, qword [rsp + 0x38]
add rcx, 0x14
lea r8, [0x005b59a0]
lea rax, [r14 - 0x10]
movzx edx, byte [rax]
movzx edx, byte [r8 + rdx]
mov byte [rax], dl
add rax, 4
cmp rax, r14
jne 0x40ac92
add r14, 1
cmp r14, rcx
jne 0x40ac8e
movzx eax, byte [rbx + 1]
movzx edx, byte [rbx + 5]
mov byte [rbx + 1], dl
movzx edx, byte [rbx + 9]
mov byte [rbx + 5], dl
movzx edx, byte [rbx + 0xd]
mov byte [rbx + 9], dl
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 2]
movzx edx, byte [rbx + 0xa]
mov byte [rbx + 2], dl
mov byte [rbx + 0xa], al
movzx eax, byte [rbx + 6]
movzx edx, byte [rbx + 0xe]
mov byte [rbx + 6], dl
mov byte [rbx + 0xe], al
movzx eax, byte [rbx + 3]
movzx edx, byte [rbx + 0xf]
mov byte [rbx + 3], dl
movzx edx, byte [rbx + 0xb]
mov byte [rbx + 0xf], dl
movzx edx, byte [rbx + 7]
mov byte [rbx + 0xb], dl
mov byte [rbx + 7], al
mov r8, qword [rsp + 0x98]
mov rdx, rbx
mov ecx, 0xa
call fcn.0040a790
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x40ae20
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm7
mov rsi, rcx
mov rbx, rdx
mov r8d, r8d
test r8, r8
je 0x40ae80
sub r8, 1
and r8, 0xfffffffffffffff0
lea rdi, [rdx + r8 + 0x10]
movdqu xmm7, xmmword [rbx]
mov rdx, rsi
mov rcx, rbx
call fcn.0040a7e1
mov eax, 0
movzx edx, byte [rsi + rax + 0xb0]
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x10
jne 0x40ae5b
movups xmmword [rsi + 0xb0], xmm7
add rbx, 0x10
cmp rbx, rdi
jne 0x40ae47
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
Function at 0x415b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005e19e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x415ce8
mov rax, qword [0x005e19e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x415bac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x415c35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x415b90
mov rcx, rbx
call fcn.00416800
test rax, rax
mov r12, rax
je 0x415d1d
mov rax, qword [0x005e19e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00416930
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005e19e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x415d00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x415c2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x415c90
add dword [0x005e19e4], 1
cmp edi, 8
jae 0x415c63
test dil, 4
jne 0x415cd4
test edi, edi
je 0x415c58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x415cef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x415c58
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x415c7c
jmp 0x415c58
add rsi, qword [0x005e19e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x415c2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004adb40
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x415c58
xor esi, esi
jmp 0x415bb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x415c58
mov rax, qword [0x005e19e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004adb40
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004adb40
nop
nop dword [rax]

Function at 0x416470
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005e1cc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005e1ca0]
test rbx, rbx
je 0x4164c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4164bb
test rsi, rsi
je 0x4164bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4164a0
lea rcx, [0x005e1cc0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x416800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005bb010]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41686d
mov rcx, r8
call fcn.004166e0
test eax, eax
je 0x41686d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41686d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x416864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41686f
add rax, 0x28
cmp rax, r9
jne 0x416850
xor eax, eax
add rsp, 0x28
ret

Function at 0x4233c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x005b1ce8], eax
je 0x4233da
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x4238e0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x423903
call fcn.00423280
cmp eax, 1
je 0x42390e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x423985
mov eax, 0x28
jmp 0x42396a
add rax, 1
cmp rax, 0x6b
je 0x423977
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x423960
cmp eax, 0x6a
jne 0x42398a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x423977
Function at 0x423a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x005e27a0], 1
je 0x423a46
call fcn.004239a0
mov ecx, dword [0x005b1ce8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x423a70
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00423820
cmp qword [0x005e5050], 0
mov rsi, rax
je 0x423a5a
test rax, rax
je 0x423a5a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.004238e0
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x423b60
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x005b1ce8]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x423b60
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x477260
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x477288
call r12
cmp dword [rax], 4
jne 0x4772a6
mov rcx, rbp
call fcn.00477080
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x477280
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x488dc0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, str.mt19937
mov rcx, rsi
call fcn.00434cc0
mov ecx, 0x1571
test eax, eax
jne 0x488e25
mov dword [rbx], ecx
mov edx, 1
jmp 0x488df4
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x488df0
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x488e49
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x488de4
lea rcx, str.random_device::_M_strtoul_const_std::string_
call fcn.004a7fc0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x005b615c]
mov rcx, rsi
call fcn.0042b9c0
mov ecx, 0x1571
test eax, eax
jne 0x488ec5
mov dword [rbx], ecx
mov edx, 1
jmp 0x488e94
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x488e90
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x488ee9
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x488e84
lea rcx, [0x005b6128]
call fcn.004a7fc0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x488e60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, str.mt19937
mov rcx, rsi
call fcn.00434cc0
mov ecx, 0x1571
test eax, eax
jne 0x488e25
mov dword [rbx], ecx
mov edx, 1
jmp 0x488df4
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x488df0
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x488e49
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x488de4
lea rcx, str.random_device::_M_strtoul_const_std::string_
call fcn.004a7fc0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x005b615c]
mov rcx, rsi
call fcn.0042b9c0
mov ecx, 0x1571
test eax, eax
jne 0x488ec5
mov dword [rbx], ecx
mov edx, 1
jmp 0x488e94
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x488e90
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x488ee9
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x488e84
lea rcx, [0x005b6128]
call fcn.004a7fc0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x494d10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea r11, [rcx + 0x38c]
mov rax, rcx
mov rdx, rcx
nop dword [rax]
mov r9d, dword [rdx]
mov r8d, dword [rdx + 4]
and r9d, 0x80000000
and r8d, 0x7fffffff
or r9d, r8d
mov r8d, r9d
shr r8d, 1
xor r8d, dword [rdx + 0x634]
mov r10d, r8d
xor r10d, 0x9908b0df
and r9d, 1
cmovne r8d, r10d
add rdx, 4
mov dword [rdx - 4], r8d
cmp r11, rdx
jne 0x494d20
lea r10, [rcx + 0x630]
nop dword [rax + rax]
mov r8d, dword [rax + 0x38c]
mov edx, dword [rax + 0x390]
and r8d, 0x80000000
and edx, 0x7fffffff
or r8d, edx
mov edx, r8d
shr edx, 1
xor edx, dword [rax]
mov r9d, edx
xor r9d, 0x9908b0df
and r8d, 1
cmovne edx, r9d
add rax, 4
mov dword [rax + 0x388], edx
cmp r10, rax
jne 0x494d70
mov qword [rcx + 0x9c0], 0
mov eax, dword [rcx]
mov edx, dword [rcx + 0x9bc]
and eax, 0x7fffffff
and edx, 0x80000000
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [rcx + 0x630]
mov r8d, eax
xor r8d, 0x9908b0df
and edx, 1
cmovne eax, r8d
mov dword [rcx + 0x9bc], eax
ret