joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400490a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001be0
mov rax, qword [0x1400490a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001a7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b07
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001a60
mov rcx, r12
call fcn.1400024e0
mov rbp, rax
test rax, rax
je 0x140001c3d
mov rax, qword [0x1400490a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002610
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400490a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c22
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b00
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b90
add dword [0x1400490a4], 1
cmp ebx, 8
jae 0x140001b38
test bl, 4
jne 0x140001bf0
test ebx, ebx
je 0x140001b29
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001c10
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 0x140001b29
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 0x140001b6a
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 [0x1400490a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b00
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400019c0
xor edi, edi
jmp 0x140001a87
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001b29
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001b29
mov rax, qword [0x1400490a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400019c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400019c0
nop
nop dword [rax]
Function at 0x140002150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140049100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400490e0]
test rbx, rbx
je 0x1400021a4
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 0x14000219b
test r12, r12
je 0x14000219b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002180
lea rcx, [0x140049100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140046360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002559
mov rcx, r10
call fcn.1400023b0
test eax, eax
je 0x140002559
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 0x140002556
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 0x14000254d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002559
add r8, 0x28
cmp r8, r9
jne 0x140002538
xor r8d, r8d
mov rax, r8
add rsp, 0x28
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
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
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]
push r9
add rax, rdx
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]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
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
add rax, rdx
pop r8
pop rsi
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 0x14001130c
Capabilities:
Terminate process

Disassembly:
jmp 0x140017b60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400113f7
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016b30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016b50
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016b63
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140016b8d
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016ba1
xor al, al
jmp 0x140016bd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016bb3
xor al, al
jmp 0x140016bd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140016bcf
xor al, al
jmp 0x140016bd1
mov al, 1
add rsp, 0x38
ret
Function at 0x670021e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rdx, sym.QtCoreVBox4.dll_struct_QMetaObject_const_QAbstractAnimation::staticMetaObject
xor r9d, r9d
xor r8d, r8d
jmp sym.QtCoreVBox4.dll_public:_static_void___cdecl_QMetaObject::activate_class_QObject____ptr64__struct_QMetaObject_const____ptr64__int__void____ptr64____ptr64_

Function at 0x67006180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call 0xbc8da99d
add byte [rax + 0x30458b02], cl
shr eax, 0x10
lea rdx, [rbp]
inc rdx
mov byte [rdx], al
mov eax, dword [rbp + 0x30]
shr eax, 8
lea rdx, [rbp]
add rdx, 2
mov byte [rdx], al
mov eax, dword [rbp + 0x30]
lea rdx, [rbp]
add rdx, 3
mov byte [rdx], al
mov dword [rbp + 4], 0
mov dword [rbp + 8], 0
mov eax, dword [rbp + 4]
mov edx, dword [rbp + 0x28]
cmp eax, edx
jb 0x670061db
jmp 0x6700621f
mov eax, 1
add eax, dword [rbp + 4]
mov dword [rbp + 4], eax
jmp 0x670061c2
mov eax, dword [rbp + 4]
add rax, qword [rbp + 0x20]
movzx eax, byte [rax]
movzx eax, al
lea rdx, [rbp]
mov ecx, dword [rbp + 8]
add rdx, rcx
add edx, ecx
movzx edx, byte [rdx]
movzx edx, dl
xor eax, edx
mov edx, dword [rbp + 4]
add rdx, qword [rbp + 0x20]
mov byte [rdx], al
mov eax, 1
add eax, dword [rbp + 8]
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
cmp eax, 4
jne 0x670061ce
mov dword [rbp + 8], 0
jmp 0x670061ce
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x401a88
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x401aa9
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.0041a958

Function at 0x4045a4
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x48
mov byte [rsp + 0x3f], 1
mov al, byte [rsp + 0x3f]
mov r13, rcx
mov qword [rsp + 0x28], rdx
test al, al
je 0x4045f4
mov ecx, 2
call qword [fcn.0041af50]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x48
pop r12
pop r13
jmp fcn.0041a958
add rsp, 0x48
pop r12
pop r13
ret

Function at 0x404b9e
Capabilities:
Read file on windows

Disassembly:
push r13
push rbx
sub rsp, 0x38
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sub.msvcrt.dll_fread
cmp rbx, rax
je 0x404bd2
mov rcx, r13
mov qword [rsp + 0x28], rax
call fcn.00404ad5
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop r13
ret

Function at 0x4053ce
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov edx, 0x30
mov r13, rcx
lea rcx, [0x00440480]
call fcn.004039d0
mov ecx, 0xf
mov r12, rax
lea rax, [0x004404c0]
mov qword [r12], rax
lea rax, str.KeyError
mov qword [r12 + 0x10], rax
test r13, r13
je 0x40536c
mov rax, qword [r13]
lea rcx, [rax + 0xf]
call fcn.00403c25
lea rdx, [0x00423ee0]
mov r9, rax
mov rcx, rax
call fcn.00401da5
mov rcx, r9
mov rdx, r13
call fcn.00401dcb
mov rdx, r9
lea rcx, [r12 + 0x18]
call fcn.00402d25
lea rcx, [r12 + 8]
xor edx, edx
call fcn.00402d25
lea r9, str.tables.nim
lea r8, str.raiseKeyError
mov rcx, r12
mov qword [rsp + 0x20], 0xea
lea rdx, str.KeyError
call fcn.00404947
nop
push r13
push r12
push rbx
sub rsp, 0x30
mov r9, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r13, qword [r9 + 0x58]
mov r9, r13
call sub.msvcrt.dll_fwrite
mov rcx, r13
mov r12, rax
call fcn.00404ad5
movsxd r12, r12d
cmp rbx, r12
je 0x405479
mov edx, 0x30
lea rcx, [0x0043d800]
call fcn.004039d0
lea rcx, [0x00423e00]
mov r12, rax
lea rax, [0x0043d7c0]
mov qword [r12], rax
lea rax, [0x00423132]
mov r13, qword [r12 + 0x18]
mov qword [r12 + 0x10], rax
call fcn.00403bbe
mov qword [r12 + 0x18], rax
test r13, r13
je 0x405452
mov rcx, r13
call fcn.00402d7a
mov qword [rsp + 0x20], 0x528
lea r9, str.streams.nim
mov rcx, r12
lea r8, str.fsWriteData
lea rdx, [0x00423132]
call fcn.00404947
nop
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
Function at 0x412376
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
xor ecx, ecx
test rdx, rdx
je 0x412390
mov rcx, qword [rdx]
mov rax, rcx
mov r9d, 4
xor ebx, ebx
cqo
idiv r9
xor r9d, r9d
shl rax, 2
cmp rax, r9
jg 0x4123cf
cmp rax, 0xfffffffffffffffd
mov r9d, 0
mov r10d, 4
cmovge r9, rax
mov rax, rcx
cqo
idiv r10
add r9, rsi
xor eax, eax
jmp 0x412406
mov edx, dword [rsi + r9 + 0x10]
add r9, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, ebx
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea ebx, [rdx - 0x19ab949c]
jmp 0x4123a7
dec rdx
shl eax, 8
movzx r10d, byte [r9 + rdx + 0x10]
or eax, r10d
test rdx, rdx
jg 0x4123f7
imul eax, eax, 0xcc9e2d51
xor ebx, ecx
mov edx, ebx
rol eax, 0xf
imul ebx, eax, 0x1b873593
xor ebx, edx
mov eax, ebx
shr eax, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor ebx, eax
imul ebx, ebx, 0xc2b2ae35
mov eax, ebx
shr eax, 0x10
xor ebx, eax
test rbx, rbx
jne 0x41244b
mov ebx, 0x12b9b0a1
mov qword [r8], rbx
or r12, 0xffffffffffffffff
test rdi, rdi
je 0x412497
mov rbp, qword [rdi]
test rbp, rbp
je 0x412497
dec rbp
mov r12, rbx
and r12, rbp
imul rax, r12, 0x18
add rax, rdi
mov rdx, qword [rax + 0x10]
test rdx, rdx
jne 0x41247d
not r12
jmp 0x412497
cmp rbx, rdx
jne 0x412492
mov rcx, qword [rax + 0x18]
mov rdx, rsi
call fcn.004095ea
test al, al
jne 0x412497
inc r12
jmp 0x412465
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x413b55
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rdx]
mov r12, rcx
mov r15, rdx
mov esi, r8d
mov r14, r9
test rax, rax
je 0x413b7d
cmp qword [rax], 0
jne 0x413bf9
mov rcx, qword [0x004296c0]
mov edx, 0x30
call fcn.004039d0
lea rcx, [0x004288c0]
mov r13, rax
mov rax, qword [0x004297d0]
mov rbx, qword [r13 + 0x18]
mov qword [r13], rax
lea rax, str.ValueError
mov qword [r13 + 0x10], rax
call fcn.00403bbe
mov qword [r13 + 0x18], rax
test rbx, rbx
je 0x413bc8
mov rcx, rbx
call fcn.00402d7a
lea rcx, [r13 + 8]
xor edx, edx
call fcn.00402d25
lea r9, str.httpclient.nim
lea r8, str.requestAux
mov rcx, r13
mov qword [rsp + 0x20], 0x3eb
lea rdx, str.ValueError
call fcn.00404947
mov rdx, r15
mov rcx, r12
call fcn.0040adfc
mov rcx, qword [r12 + 0x58]
call fcn.00412c45
lea rdx, [0x004288a0]
mov rcx, rax
mov rbx, rax
call fcn.00409862
test al, al
jne 0x413c61
test r14, r14
je 0x413c31
mov rcx, qword [r14]
test rcx, rcx
jne 0x413c4a
mov ecx, esi
mov eax, 3
and ecx, 0xf
sar eax, cl
test al, 1
jne 0x413c61
lea r8, [0x00428880]
jmp 0x413c52
call fcn.0040428a
mov r8, rax
lea rdx, [0x004288a0]
mov rcx, rbx
call fcn.00409969
lea rdx, [0x00428860]
mov rcx, rbx
call fcn.00409862
test al, al
jne 0x413c84
mov r8, qword [r12 + 0x68]
test r8, r8
je 0x413c84
cmp qword [r8], 0
jg 0x413cec
mov r9, qword [r12 + 0x78]
movzx edx, sil
mov rcx, r15
mov r8, rbx
call fcn.00409a9f
mov rcx, qword [r12]
mov rdx, rax
call fcn.00413162
test r14, r14
je 0x413cbb
cmp qword [r14], 0
jle 0x413cbb
mov rcx, qword [r12]
mov rdx, r14
call fcn.00413162
mov ecx, esi
mov eax, 0x81
xor edx, edx
and ecx, 0xf
sar eax, cl
test al, 1
jne 0x413cd6
movzx edx, byte [r12 + 0xc0]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.0040a524
lea rdx, [0x00428840]
mov rcx, rbx
call fcn.00409969
jmp 0x413c84

Function at 0x413cfd
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.0041af50]
lea r12, [0x00427f80]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rcx, rsi
mov rdi, rax
call fcn.00401c99
lea rdx, [0x00427f80]
mov rcx, rdi
mov r8, rax
call fcn.0041150c
mov ebx, eax
movsxd rax, ebx
xor edx, edx
test rsi, rsi
je 0x413d4b
mov rdx, qword [rsi]
cmp rax, rdx
jge 0x413d81
cmp byte [rsi + rax + 0x10], 0
jne 0x413d69
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x413d81
inc ebx
jmp 0x413d3e
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call fcn.0041150c
test eax, eax
jle 0x413d81
add ebx, eax
jmp 0x413d3e
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x00428058]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.0041a958
Function at 0x414d80
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 fcn.0041af50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0041af50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x414df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x00447894]
mov r12, rcx
test ebx, ebx
jle 0x414f20
mov rax, qword [0x00447898]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x414e3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x414ec3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x414e20
mov rcx, r12
call fcn.004157a0
mov rsi, rax
test rax, rax
je 0x414f42
mov rax, qword [0x00447898]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004158d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00447898]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x414f27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x414ebc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x414ed0
add dword [0x00447894], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x00447898]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x414ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00414d80
nop dword [rax]
xor ebx, ebx
jmp 0x414e47
mov rax, qword [0x00447898]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00414d80
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00414d80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x415410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00447900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004478e0]
test rbx, rbx
je 0x415464
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 0x41545b
test r12, r12
je 0x41545b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x415440
lea rcx, [0x00447900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4157a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004299a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4157c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4157c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4157c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x415815
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x41580c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4157c0
add rax, 0x28
cmp rax, r9
jne 0x4157f8
xor eax, eax
ret

Function at 0x415820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004299a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x415840
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x415848
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x415840
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4158d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004299a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4158f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4158f8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000f188
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400b04b8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
lea rax, [rsp + 0x30]
mov qword [rdx], r12
lea r8, [rsp + 0x30]
mov r14d, r12d
sub rcx, rax
mov r15, rdx
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000f1fd
movzx eax, word [rcx + r8]
test ax, ax
je 0x14000f1fd
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x14000f1d9
lea rax, [r8 - 2]
test r9, r9
lea rcx, [rsp + 0x30]
cmovne rax, r8
lea r8, [0x1400856c0]
mov word [rax], r12w
call fcn.14000718c
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000f26c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000f361
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.140008a6c
mov esi, eax
jmp 0x14000f345
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r12d
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.140009018
mov esi, eax
test eax, eax
jns 0x14000f2aa
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.140008a30
mov rcx, rbx
call fcn.140008b44
jmp 0x14000f345
lea r8, [0x1400856c8]
lea rcx, [rsp + 0x30]
call fcn.14000718c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000f2ed
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.140008a6c
mov esi, eax
jmp 0x14000f29d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140009018
mov esi, eax
test eax, eax
jns 0x14000f321
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.140008a30
mov rcx, rdi
call fcn.140008b44
jmp 0x14000f29d
mov rcx, rdi
call fcn.140008b44
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.140008b44
mov esi, r12d
test esi, esi
jns 0x14000f361
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.140008a30
mov eax, esi
jmp 0x14000f366
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140064bf0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret