joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401478c8
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x1401479fd
mov ebx, dword [rdx + 0x10]
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1401479fd
cmp ebx, 0x43
je 0x140147914
cmp ebx, 0x2d
jne 0x1401479fd
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401479fd
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.14001a264
mov rcx, rax
test rax, rax
je 0x140147a1a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004948a.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.140010a94
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1401479d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401479d4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, ntohs
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401479fd
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14004948a.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.14000acc0
int3
Function at 0x140199998
Capabilities:
Parse pe header

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

Function at 0x1401a3920
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401a3710

Function at 0x1401a5b1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401991a0
sub rsp, rax
mov rax, qword [0x1417fff28]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401a54d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a5b6b
mov rax, rbp
jmp 0x1401a5c73
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1877bc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401b79bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1877bc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a5c6f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a5c6f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401b79bc
test rax, rax
js 0x1401a5c6f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a5c6f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a5c61
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a5c61
cmp byte [rcx], 0xd
jne 0x1401a5c47
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a5c56
cmp byte [rcx + 1], 0xa
jne 0x1401a5c56
inc rcx
jmp 0x1401a5c56
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1800270]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a5c29
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a5c73
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140198c70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b676c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x141877bc0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1401b67ca
cmp word [rdx], r12w
jne 0x1401b67ca
or byte [rax + r8*8 + 0x38], cl
jmp 0x1401b67d0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401b692b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401b6906
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1401b6809
mov rcx, r9
jmp 0x1401b682c
cmp r9, rdx
jae 0x1401b6843
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1401b67ed
jmp 0x1401b692b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401b6900
cmp dword [rsp + 0x80], edi
je 0x1401b6900
mov rdx, r14
lea r11, [0x141877bc0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1401b68d9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401b68ac
mov word [rbx], r12w
jmp 0x1401b6927
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401b68b5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401b6927
cmp word [rsp + 0x70], r12w
jne 0x1401b68e6
cmp rbx, rsi
je 0x1401b68a6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1401b79c4
cmp word [rsp + 0x70], r12w
je 0x1401b692b
mov word [rbx], r13w
jmp 0x1401b6927
lea r11, [0x141877bc0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401b6923
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401b692b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b7328
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 0x1401b735a
call fcn.1401a4520
mov dword [rax], socket
call fcn.1401a43e4
jmp 0x1401b7479
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401b7479
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401b7479
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401b7389
lock or dword [rcx + 0x14], 0x10
jmp 0x1401b7479
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401b739d
call fcn.1401bb704
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1401a54d4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401b6c18
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401b7467
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401b7432
mov rcx, rsi
call fcn.1401a54d4
cmp eax, edi
je 0x1401b741d
mov rcx, rsi
call fcn.1401a54d4
cmp eax, 0xfffffffe
je 0x1401b741d
mov rcx, rsi
call fcn.1401a54d4
movsxd rbx, eax
lea r14, [0x141877bc0]
mov rcx, rsi
sar rbx, 6
call fcn.1401a54d4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401b7424
lea rdx, [0x141800220]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401b7432
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401b7456
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401b7456
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401b7456
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 0x1401b747c
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 0x1401b7494
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1401b71b6
call fcn.1401a4520
mov dword [rax], socket
call fcn.1401a43e4
jmp 0x1401b7306
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401b7306
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401b7306
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401b71e5
lock or dword [rcx + 0x14], 0x10
jmp 0x1401b7306
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401b71f9
call fcn.1401bb704
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1401b7209
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1401b720c
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1401a54d4
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1401b6c18
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401b72f4
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401b729f
mov rcx, rbx
call fcn.1401a54d4
cmp eax, 0xffffffff
je 0x1401b728a
mov rcx, rbx
call fcn.1401a54d4
cmp eax, 0xfffffffe
je 0x1401b728a
mov rcx, rbx
call fcn.1401a54d4
movsxd rdi, eax
lea rsi, [0x141877bc0]
mov rcx, rbx
sar rdi, 6
call fcn.1401a54d4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401b7291
lea rdx, [0x141800220]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401b729f
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401b72c3
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401b72c3
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401b72c3
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1401b72e1
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1401b72ec
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1401b730b
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1401b7180

Function at 0x1401b7744
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401b7721
call fcn.1401a4520
mov dword [rax], socket
call fcn.1401a43e4
or eax, 0xffffffff
jmp 0x1401b773e
sub dword [rcx + 0x10], 1
jns 0x1401b7730
add rsp, 0x28
jmp fcn.1401b7328
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401b7700
Function at 0x1401ba498
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 0x1401ba51f
mov rsi, rbx
cmp word [rax], bp
je 0x1401ba4de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401ba4c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401ba4c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401b5188
mov rdi, rax
test rax, rax
je 0x1401ba50c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140199cd0
mov rbp, rdi
xor ecx, ecx
call fcn.1401b2e48
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 0x1401bec30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401bec58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401bec58
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
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
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]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
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
pop r8
pop rsi
add rax, rdx
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 0x180001ae0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0x100
jge 0x180001bbf
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x2c], 8
cmp dword [rsp + 0x2c], 0
jle 0x180001b89
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov ecx, 0x5db3a857
call fcn.1800107f0
mov ecx, dword [rsp + 0x28]
and ecx, eax
xor edx, edx
call fcn.180022cd0
test eax, 1
je 0x180001b65
mov ecx, dword [rsp + 0x34]
shr ecx, 1
mov eax, ecx
xor eax, 0xffffffff
and eax, 0xedb88320
mov edx, 0xffffffff
xor edx, 0xedb88320
and ecx, edx
or eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x180001b70
mov eax, dword [rsp + 0x34]
shr eax, 1
mov dword [rsp + 0x34], eax
jmp 0x180001b72
mov eax, dword [rsp + 0x2c]
add eax, 0xff6fe54b
add eax, 0xffffffff
sub eax, 0xff6fe54b
mov dword [rsp + 0x2c], eax
jmp 0x180001b12
mov edx, dword [rsp + 0x34]
movsxd rcx, dword [rsp + 0x30]
lea rax, [0x18002d120]
mov dword [rax + rcx*4], edx
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
mov ecx, 0x5db3a857
call fcn.1800107f0
mov ecx, eax
mov eax, dword [rsp + 0x24]
add eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180001af4
mov dword [0x18002b284], 0
add rsp, 0x38
ret
Function at 0x180003e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x6c], edx
mov qword [rsp + 0x60], rcx
cmp qword [rsp + 0x70], 0
jne 0x180003e1f
jmp 0x180003fab
mov rax, qword [rsp + 0x70]
mov al, byte [rax + 0x100]
mov byte [rsp + 0x5e], al
mov rax, qword [rsp + 0x70]
mov al, byte [rax + 0x101]
mov byte [rsp + 0x5d], al
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x6c]
jae 0x180003f8d
movzx ecx, byte [rsp + 0x5e]
sub ecx, 0x1caee78e
mov edx, 1
call fcn.180023340
add eax, 0x1caee78e
mov dword [rsp + 0x24], eax
mov ecx, 0x5db3a857
call fcn.1800107f0
mov eax, dword [rsp + 0x24]
and eax, 0xff
mov byte [rsp + 0x5e], al
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x5e]
movzx eax, byte [rax + rcx]
movzx ecx, byte [rsp + 0x5d]
add eax, ecx
and eax, 0xff
mov byte [rsp + 0x5d], al
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x5e]
mov al, byte [rax + rcx]
mov byte [rsp + 0x5f], al
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x5d]
mov dl, byte [rax + rcx]
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x5e]
mov byte [rax + rcx], dl
mov dl, byte [rsp + 0x5f]
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x5d]
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x5e]
movzx ecx, byte [rax + rcx]
mov rax, qword [rsp + 0x50]
movzx edx, byte [rsp + 0x5d]
movzx edx, byte [rax + rdx]
call fcn.180023340
mov ecx, eax
mov rax, qword [rsp + 0x28]
and ecx, 0xff
movsxd rcx, ecx
movzx eax, byte [rax + rcx]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x4c]
mov qword [rsp + 0x38], rcx
movzx ecx, byte [rax + rcx]
mov dword [rsp + 0x30], ecx
mov edx, 0xffffffff
call fcn.18001a630
mov edx, dword [rsp + 0x30]
mov r8d, eax
mov eax, dword [rsp + 0x34]
mov ecx, eax
and ecx, r8d
xor eax, 0xffffffff
and edx, eax
call fcn.180017f10
mov rcx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
jmp 0x180003e4f
mov cl, byte [rsp + 0x5e]
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x100], cl
mov cl, byte [rsp + 0x5d]
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x101], cl
add rsp, 0x78
ret
Function at 0x1800105c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
mov dword [rsp + 0x24], ecx
mov eax, dword [rsp + 0x24]
and eax, 0xffffffff
mov dword [0x18002b420], eax
mov ecx, 0x5db3a857
call fcn.1800107f0
mov dword [0x18002d530], eax
cmp dword [0x18002d530], 0x270
jge 0x18001069a
mov eax, dword [0x18002d530]
sub eax, 1
movsxd rcx, eax
lea rax, [0x18002b420]
mov ecx, dword [rax + rcx*4]
mov eax, dword [0x18002d530]
sub eax, 1
movsxd rdx, eax
lea rax, [0x18002b420]
mov edx, dword [rax + rdx*4]
shr edx, 0x1e
call fcn.18001a630
imul eax, eax, 0x6c078965
mov ecx, dword [0x18002d530]
add eax, 0x37634301
add eax, ecx
mov dword [rsp + 0x20], eax
mov ecx, 0x6ad0eb57
call fcn.1800107f0
mov edx, dword [rsp + 0x20]
sub edx, eax
movsxd rcx, dword [0x18002d530]
lea rax, [0x18002b420]
mov dword [rax + rcx*4], edx
movsxd rcx, dword [0x18002d530]
lea rax, [0x18002b420]
mov edx, dword [rax + rcx*4]
and edx, 0xffffffff
lea rax, [0x18002b420]
mov dword [rax + rcx*4], edx
mov ecx, dword [0x18002d530]
mov edx, 1
call fcn.180023340
mov dword [0x18002d530], eax
jmp 0x1800105e5
add rsp, 0x28
ret
Function at 0x180026130
Capabilities:
Create thread

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x80], rcx
call fcn.180025830
mov ecx, 0x20
call fcn.18001c490
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.1800257f0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x50]
call fcn.1800259a0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rcx
add rax, 8
mov r9, qword [rsp + 0x68]
xor ecx, ecx
mov edx, 0x20000
lea r8, [0x180026220]
xor r10d, r10d
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov rax, qword [rsp + 0x48]
mov qword [rax], rcx
cmp qword [rax], 0
jne 0x180026202
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp rax, 0
je 0x180026200
mov rcx, qword [rsp + 0x30]
call fcn.1800265f0
mov rcx, qword [rsp + 0x30]
call fcn.180024460
jmp 0x180026202
mov rcx, qword [rsp + 0x38]
call fcn.180024c50
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret
Function at 0x4158c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415a4b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00605478]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415925
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415934
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415953
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415963
cmp rbx, 0x1000
jae 0x41592b
jmp 0x4159cd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415975
xor edx, edx
jmp 0x4159c4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00605478]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x415959
jmp 0x415948
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00605478]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004ec0ad]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004ec69b]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004ef0dd]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS