joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14028e2cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14028e2fe
call fcn.140275c78
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14027612c
jmp 0x14028e41d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14028e41d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14028e41d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14028e32d
lock or dword [rcx + 0x14], 0x10
jmp 0x14028e41d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14028e341
call fcn.140293b7c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140281334
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14027833c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14028e40b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14028e3d6
mov rcx, rsi
call fcn.140281334
cmp eax, edi
je 0x14028e3c1
mov rcx, rsi
call fcn.140281334
cmp eax, 0xfffffffe
je 0x14028e3c1
mov rcx, rsi
call fcn.140281334
movsxd rbx, eax
lea r14, [0x1403a3bf0]
mov rcx, rsi
sar rbx, 6
call fcn.140281334
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14028e3c8
lea rdx, [0x14039c4f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14028e3d6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14028e3fa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14028e3fa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14028e3fa
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14028e420
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14028e47c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14028e459
call fcn.140275c78
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14027612c
or eax, 0xffffffff
jmp 0x14028e476
sub dword [rcx + 0x10], 1
jns 0x14028e468
add rsp, 0x28
jmp fcn.14028e2cc
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14028e438
Function at 0x14029121c
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 0x14029124c
xor eax, eax
jmp 0x14029130f
mov rbp, rbx
cmp word [rax], si
je 0x140291271
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140291258
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140291254
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.14028cac8
movsxd r14, eax
test eax, eax
jne 0x1402912af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140291245
mov rcx, r14
call fcn.140289dc4
mov rdi, rax
test rax, rax
jne 0x1402912c8
xor ecx, ecx
call fcn.140289d88
jmp 0x1402912a4
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.14028cac8
test eax, eax
jne 0x1402912f9
mov rcx, rdi
call fcn.140289d88
jmp 0x140291303
xor ecx, ecx
call fcn.140289d88
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 0x14029132c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402913b3
mov rsi, rbx
cmp word [rax], bp
je 0x140291372
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14029135c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140291358
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140289dc4
mov rdi, rax
test rax, rax
je 0x1402913a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140265d10
mov rbp, rdi
xor ecx, ecx
call fcn.140289d88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14029553c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140274d20
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402955c6
cmp byte [rbp - 0x21], r15b
je 0x1402955c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402955fc
call fcn.14028c334
test eax, eax
jne 0x1402955e8
cmp byte [rbp - 0x21], r15b
je 0x1402955e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402955fc
cmp byte [rbp - 0x21], r15b
je 0x1402955f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140274a1c
test eax, eax
jne 0x14029569c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140274d20
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14029563b
cmp byte [rbp - 0x21], r15b
je 0x140295670
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140295670
call fcn.14028c334
test eax, eax
jne 0x14029565c
cmp byte [rbp - 0x21], r15b
je 0x140295655
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140295670
cmp byte [rbp - 0x21], r15b
je 0x14029566d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140274a1c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14029569c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14029569f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402956ad
mov rcx, rdi
call fcn.140289d88
cmp byte [rbp + 0x3f], r15b
je 0x1402956bc
mov rcx, qword [rbp + 0x27]
call fcn.140289d88
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140017060
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140017084
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140017112
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400170e0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400170e0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14007a750
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400170fd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140017105
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400170a1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400171f0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140017129
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001712b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001715d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14007a750
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400171ed
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140017198
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400171ce
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14005b414
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400171ed
cmp rsi, rax
ja 0x1400171a1
test rsi, rsi
je 0x1400171ed
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14005b414
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140020240
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 0x18
mov rcx, qword [0x1400a5d90]
xor r9d, r9d
mov r11, r8
lea eax, [rcx*4]
test eax, eax
je 0x14002027f
nop dword [rax]
movzx eax, byte [r9 + rdx]
mov byte [r9 + r8], al
inc r9d
mov rcx, qword [0x1400a5d90]
lea eax, [rcx*4]
cmp r9d, eax
jb 0x140020260
mov eax, dword [0x1400a5d94]
lea r10d, [rcx*4]
inc eax
shl eax, 4
cmp r10d, eax
jae 0x140020430
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r14
lea r14d, [r10 + 2]
mov qword [rsp], r15
lea r15, str.cw
nop dword [rax]
nop word [rax + rax]
lea eax, [r10 - 4]
xor edx, edx
movzx r8d, byte [rax + r11]
lea eax, [r10 - 3]
movzx edi, byte [rax + r11]
movzx ebx, r8b
lea eax, [r10 - 2]
movzx esi, byte [rax + r11]
lea eax, [r10 - 1]
movzx ebp, byte [rax + r11]
mov eax, r10d
shr eax, 2
div ecx
test edx, edx
jne 0x14002035e
movzx ebx, byte [rdi + r15]
lea r9d, [rcx*4]
movzx edi, byte [rsi + r15]
xor edx, edx
movzx esi, byte [rbp + r15]
mov eax, r10d
movzx ebp, byte [r8 + r15]
mov r8b, 1
div r9d
sub eax, 1
je 0x140020359
mov r9d, eax
nop word [rax + rax]
movzx eax, r8b
add r8b, r8b
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor r8b, dl
sub r9, 1
jne 0x140020340
xor bl, r8b
jmp 0x14002037d
cmp ecx, 6
jbe 0x14002037d
cmp edx, 4
jne 0x14002037d
movzx ebx, byte [r8 + r15]
movzx edi, byte [rdi + r15]
movzx esi, byte [rsi + r15]
movzx ebp, byte [rbp + r15]
lea ecx, [rcx*4]
mov eax, r10d
sub eax, ecx
mov ecx, r10d
xor bl, byte [rax + r11]
mov byte [r10 + r11], bl
mov eax, dword [0x1400a5d90]
lea eax, [rax*4]
sub ecx, eax
lea eax, [r14 - 1]
inc ecx
xor dil, byte [rcx + r11]
mov ecx, r10d
mov byte [rax + r11], dil
mov eax, dword [0x1400a5d90]
lea eax, [rax*4]
sub ecx, eax
add ecx, 2
xor sil, byte [rcx + r11]
mov ecx, r10d
mov byte [r14 + r11], sil
add r10d, 4
mov eax, dword [0x1400a5d90]
lea eax, [rax*4]
sub ecx, eax
lea eax, [r14 + 1]
add ecx, 3
add r14d, 4
xor bpl, byte [rcx + r11]
mov byte [rax + r11], bpl
mov eax, dword [0x1400a5d94]
inc eax
shl eax, 4
cmp r10d, eax
jae 0x140020413
mov rcx, qword [0x1400a5d90]
jmp 0x1400202d0
mov r14, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
add rsp, 0x18
ret
Function at 0x1400217f0
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x1400a5100]
xor rax, rsp
mov qword [rsp + 0x500], rax
movsxd rbx, dword [rdx + 0x3c]
mov r15, rdx
add rbx, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rbx + 0x50]
mov rdx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x140021947
mov r9d, dword [rbx + 0x54]
xor r13d, r13d
mov rcx, qword [r14]
mov r8, r15
mov rdx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021947
mov edi, r13d
cmp r13w, word [rbx + 6]
jae 0x1400218c0
mov esi, r13d
movzx eax, word [rbx + 0x14]
mov rcx, qword [r14]
add rax, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, r15
mov r9d, dword [rax + rbx + 0x28]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021947
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x140021881
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call fcn.14007aed0
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140021947
mov rdx, qword [rsp + 0xb8]
lea r8, [rbx + 0x30]
mov rcx, qword [r14]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021947
mov eax, dword [rbx + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
add rax, rbp
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x140021947
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140021949
xor eax, eax
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140052020
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037070
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140037f90
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140049874
mov rcx, qword [rsp + 0x40]
call fcn.140049930
nop
jmp 0x14004988c
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14004988c
mov rcx, qword [rsp + 0x40]
call fcn.1400499e0
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0x270
jmp 0x14004994f
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x4e0
jae 0x1400499d1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x14004999d
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x1400499a5
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140049944
add rsp, 0x10
pop rdi
ret
Function at 0x1400499e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp], 0x26f
mov qword [rsp + 8], 0xe3
mov qword [rsp + 0x10], 0
jmp 0x140049a13
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0xe3
jae 0x140049a9a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x140049a64
mov dword [rsp + 0x3c], 0x9908b0df
jmp 0x140049a6c
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140049a06
mov qword [rsp + 0x20], 0xe3
jmp 0x140049ab2
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x26f
jae 0x140049b39
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x140049b03
mov dword [rsp + 0x40], 0x9908b0df
jmp 0x140049b0b
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140049aa5
mov qword [rsp + 0x30], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x140049b8d
mov dword [rsp + 0x44], 0x9908b0df
jmp 0x140049b95
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x38]
shr eax, 1
xor eax, dword [rsp + 0x44]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x60]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
add rsp, 0x50
pop rdi
ret
Function at 0x140051770
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400517aa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400517af
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400517f8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008a690]
cmp byte [rcx + rax], 0
je 0x1400517f8
dec r8
sub rdx, 1
jne 0x1400517de
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140053050
Capabilities:
Parse pe header

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

Function at 0x1400625ac
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 0x14006261b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006261b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006261b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006261b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006261b
cmp dword [rcx + 0x84], 0xe
jbe 0x14006261b
cmp dword [rcx + 0xf8], 0
je 0x14006261b
mov ecx, ebx
call fcn.1400626c0
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.1400624b4
nop
cmp dword [rbp + 0x20], 0
jne 0x14006267c
call fcn.14006dd7c
cmp eax, 1
jne 0x14006266c
xor dl, dl
jmp 0x140062676
call fcn.14006dd08
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140062687
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140062690
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400625ac