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

Disassembly:
push rbx
movabs rbx, 0xd255fdf5fdf0809
mov qword [rsp + 0x10], 0x10407bb0
pushfq
add ebx, 0x1e13087a
push r11
mov r11, rbx
add qword [rsp + 0x18], 0xffffffffbfe39ea9
xor r11d, ebx
test bl, 0xac
mov rbx, qword [rsp + 0x10]
not r11
jge fcn.14010af32
call fcn.1400462b1
mov rbx, qword [rsp]
call fcn.14020371f

Function at 0x14018a156
Capabilities:
Encode data using xor

Disassembly:
mov rbp, qword [rsp + 0x20]
mov rbp, qword [rbp + riz]
jbe 0x14009eb17
movabs r11, 0x5cf259fe5753091c
movsx edx, dx
add r11, rdx
call fcn.1400d8b95
or al, 0xbd
push rdx
insb byte [rdi], dx
insb byte [rdi], dx
sbb byte [rax - 0x21704681], dl
mov esp, 0xe00bc148
xchg ebx, eax
xor dh, ah
mov al, 0xc
push rax
jne 0x14018a0fc
movabs al, byte ds:[0xf60a77102444c766]
push rsp
and al, 0x10
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
ret
push rsp
and al, 0x18
mov qword [rsp + 0x18], 0xffffffffe4be5cad
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x18]
call fcn.1402c053c
test bpl, 0x63
push rdx
movabs rdx, 0x20ff63087766470e
push r11
jg 0x1400f08cc
jbe 0x14018a100
pop rax
add ch, byte [rbx - 0x73]
cli
cmpsq qword [rsi], qword [rdi]
movsd dword [rdi], dword [rsi]
lodsd eax, dword [rsi]
in al, dx
or byte [r14 + 0x5eb600b0], spl
mov dh, 0x3f
jae 0x14018a13b
out 0x29, al
mov dh, 0x1e
mov dh, 0x36
invalid

Function at 0x1401c4aaa
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 8]
call fcn.140285c67
push r10
push r15
movabs r10, 0x6c8b28fe772c7041
push r14
mov qword [rsp + 0x20], 0x20087411
pushfq
add qword [rsp + 0x20], 0xfffffffffff3cd07
test r10, r10
push rbx
mov r14, r10
movabs rbx, 0x204a0203078e443f
mov rbx, qword [rsp]
jb 0x1401c4b06
xor r14w, 0x5680
jle 0x1401c4ae9
neg r10d
mov r14, qword [rsp + 0x10]
not r10
jge 0x140044db1
mov r10, qword [rsp + 0x20]
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x28]
ret

Function at 0x1401ddf9c
Capabilities:
Encode data using xor

Disassembly:
nop
add qword [rsp], 0xffffffffbfdf0802
movabs rsi, 0x70d024ab38b32403
push rsi
xor word [rsp], 0x56a5
xor word [rsp], 0x28aa
setns byte [rsp]
or dx, 0x823
push r14
mov r14, rsi
mov rsi, qword [rsp + 0x18]
mov rsi, qword [rsi + rdx - 0x4d807f27]
mov qword [rsp + 0x18], rdx
xor byte [rsp + 8], 0x5d
call fcn.1400af002
mov dh, 0xf4
sub ebx, dword [rsi - 0x114fc6fc]
fld qword [rbx - 0x5be52fa6]
loopne 0x1401ddfcb
shl dword [rsi], 1
xchg ecx, eax
leave
mov edi, 0x779c7644
iretd
Function at 0x1401efdf7
Capabilities:
Encode data using xor

Disassembly:
test dword [rsp + 0x30], 0x528b3434
jae 0x140192564
movabs rbp, 0x608262e706880f68
setge bpl
xor rbp, rbp
mov rbp, qword [rsp + 0x10]
call fcn.140192579
mov r9, qword [rsp + 0x30]
add r9b, r9b
call fcn.140207765
sbb cl, byte [rdx + 0x53]
mov dil, byte [r15]
jb 0x14013e470
jb 0x14013e470
call fcn.14019c195
call fcn.1401dcd55
mov r10w, word [rsp + 0x33]
mov rdi, qword [rsp + 0x30]
mov r10, qword [rsp + 0x20]
lea rdi, [rdi + rdi*8 + 0x7a5d3a2d]
jl 0x140041eff
mov dh, 0xa1
adc al, byte [rax]
mov word [rsi + 0x14f80ca1], ss
xor esi, dword [rbx + 0x11]
add byte [rax - 0x20], dl
rcl dword [rax + rcx + 0x5b]
xchg dword [rbp + 0x12], ebp
or byte [rsp + rdi*2 + 0x3ff83c2d], ch
ror dword [rsi - 0x52fd081a], 1
scasb al, byte [rdi]
idiv dword [rdi + 0x7992d14]
idiv dword [rdi + 0x7992d14]
xchg byte [rdi - 0x6b], bh
push rdx
or ch, dl
cdq
xlatb
out 0xff, al
mov ecx, dword [rdx + 0x3f]
out dx, eax
idiv ecx
xor ah, byte [rax - 0x4037f801]
jb 0x1401ebcc4
push rbp
xor al, 0xd0
cmpsd dword [rsi], dword [rdi]
test esi, 0xf7e16cab
jns 0x1401ebd67
sub al, 0xcf
invalid
or dword [r9], 0x64
add dword [rsi + 0x6d], ecx
sbb al, 0x66
sub al, 0xa5
invalid
add word [rsp + 0x48], 0x5626
jns 0x1401ebc80
not word [rsp + 0x48]
call fcn.140178f16

Function at 0x140212667
Capabilities:
Encode data using xor

Disassembly:
call 0x1401ffabf
mov cl, ah
sub ebx, 0xffffffba
mov bh, 0x41
cdq
jmp 0x140212683
adc al, 0xb7
mov word [rcx], es
adc ah, ah
xchg edi, eax
fistp qword [rcx + 0x79b5ebd9]
sti
insd dword [rdi], dx
sbb al, 0x43
adc esp, dword [rsp + rdx - 0x50]
sbb cl, byte [rsp + rsi*2 + 0x5ebf98e4]
imul ebx, dword [rsp + rdx*8], 0x142cfcd4
jae 0x1402126ea
push 0x14
mov cl, 0x90
add byte [rsp + riz*8 + 0x5a], al
add eax, 0x27eb9ea3
imul eax, dword [rbx + 0x282eb8b], 0xd97132af
imul esp, dword [rbx - 0x596ee594], 0x7bb31ec0
mov edx, 0x36dd8cec
sub bh, byte [rsi]
xor bh, ah
sal byte [rbx - 8], 0x23
jnp 0x1402126c1
mov dword [rsi - 0x2b], esi
adc byte [rbx + 0x63], dh
imul ebx, dword [rdx + rbx*4 - 0x1bef882], 0xffffffff
call [rdi + 0x381d9c1f]
xchg edi, eax
imul ecx, dword [rdi], 0xedfc7033
idiv byte [rdi]
adc dword [rcx + 0x1b], esi
mov esp, 0xbffffffe
hlt
lahf
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14026e240]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14026e250]
mov dword [rax], 1
mov rax, qword [0x14026e260]
mov dword [rax], 1
mov rax, qword [0x14026e1a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14026e230]
mov dword [0x14029500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [str.0_2_]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14026e300]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14026d610]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140016360
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400163d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140322814]
mov rbx, rcx
test esi, esi
jle 0x140016500
mov rax, qword [0x140322818]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001641b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400164a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140016400
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140016522
mov rax, qword [0x140322818]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140322818]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140016507
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001649e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400164b0
add dword [0x140322814], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140322818]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001649e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140016428
mov rax, qword [0x140322818]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140016ab0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140322880]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140322860]
test rbx, rbx
je 0x140016b0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140016b03
test eax, eax
jne 0x140016b03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016ae8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140016d20
Capabilities:
Parse pe header

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

Function at 0x140016d50
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140016d9d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140016d94
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140016d9f
add rax, 0x28
cmp rax, r9
jne 0x140016d80
xor eax, eax
ret

Function at 0x140016da0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140016e30
mov rdx, qword [0x14026e1a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140016e1e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140016e1e
cmp word [rax + 0x18], 0x20b
jne 0x140016e1e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140016e30
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140016e09
add rbx, 0x28
cmp rbx, rdi
je 0x140016e30
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140016e00
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 0x140016e40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14026e1a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140016e60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140016e68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140016e60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140016ebd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140016eb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140016e60
add rax, 0x28
cmp rax, r9
jne 0x140016ea0
xor eax, eax
ret

Function at 0x140016ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14026e1a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140016edf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140016ee8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140016edf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140016f00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14026e1a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140016f20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140016f28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140016f20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140016f70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140016f67
test rcx, rcx
je 0x140016f20
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140016f58
xor eax, eax
ret

Function at 0x140016f80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14026e1a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140016f9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140016fa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140016fc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14026e1a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140016fe0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140016fe8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140016fe0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140016fe0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140017034
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140017040
add rdx, 0x28
cmp rdx, r9
jne 0x140017020
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140017050
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14026e1a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140017072
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140017080
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140017072
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140017072
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140017072
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400170d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400170e8
add rdx, 0x28
cmp r10, rdx
jne 0x1400170c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400170f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140017107
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400170de
test ecx, ecx
jg 0x1400170f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x1400173d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140017400
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140017440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
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

Function at 0x140017470
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140017488
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140017ca0
Capabilities:
Allocate thread local storage
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, 0x28
mov rsi, qword [0x14026d600]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140017cd8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140017d40
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140017d50
mov esi, dword [0x140322908]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140017da8
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140017df0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140017cc7
mov rcx, rbx
call fcn.140017c00
mov qword [rsi + r12*8 + 8], rax
jmp 0x140017cc7
call fcn.140017c00
mov qword [rbx + 0x10], rax
jmp 0x140017cc7
mov r10d, dword [rsi]
test r10d, r10d
je 0x140017e81
mov r9d, dword [0x1400dfd50]
test r9d, r9d
je 0x140017ea9
lea rcx, [0x140322920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140017e8e
mov eax, dword [rsi]
test eax, eax
je 0x140017ce1
lea rcx, [0x140322920]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140017ce1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x140017ee4
mov qword [rax], rdi
mov ecx, dword [0x140322908]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140017d1b
call r13
jmp 0x140017d1b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x140017ee4
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140017dcb
lea rcx, [0x140322920]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140017edc
lea rdx, [0x140017bb0]
mov ecx, eax
mov dword [0x140322908], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140017ee4
mov dword [0x1400dfd50], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140017d6c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140017ce1
mov rax, qword [0x140322900]
lea r12, [rax + 1]
mov qword [0x140322900], r12
mov qword [rbx + 0x10], r12
jmp 0x140017d86
lock add dword [0x1400dfd54], 1
je 0x140017e39
mov r8d, dword [0x1400dfd50]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400dfd50]
test r8d, r8d
jne 0x140017e77
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140017ed0
jmp 0x140017e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017e69
call sym.abort
nop
nop word [rax + rax]
Function at 0x140024b50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140024b98
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140323340], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x140024b7e

Function at 0x1400272d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x1400272fc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140027f70
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400e2ee0], 0
jne 0x140028076
mov byte [0x1400e2ee0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14002804c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14002803d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x140269971]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140028038
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140028007
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002810b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140028071
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140028071
Function at 0x1400880f0
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 rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140088138
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008810a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14009bb10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14009bb38
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14009bb80
cdqe
add rsi, rax
sub rbx, rax
jne 0x14009bb50
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14009bb8c
call rbp
cmp dword [rax], 4
je 0x14009bb50
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400c2a20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400e2f00]
jmp sym.__emutls_get_address

Function at 0x1400c2a30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400e2f00]
jmp sym.__emutls_get_address
Function at 0x140003770
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400037cd
lea rbx, [0x1400cde90]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400037b4
cmp r10, 2
jb 0x1400037b4
cmp byte [r9], r8b
jne 0x1400037b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003790
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000380f
lea rbx, [0x1400cde90]
cmp r8b, 0x23
jne 0x1400037f3
cmp byte [r9], r8b
jne 0x1400037f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400037e0
mov rbx, qword [rsp + 8]
not eax
ret