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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x48]
test rax, rax
je 0x140022c02
lea rbx, [rsi + 0x38]
lea rcx, [rsi + rax]
add rcx, 0x38
mov r8d, 0x10
sub r8, rax
xor edx, edx
call fcn.140002794
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rsi + 0x18]
mov r9d, 0x10
mov r8, rbx
call qword [rax + 0x30]
cmp qword [rsi + 0x50], 0
je 0x140022c21
xor eax, eax
mov cl, byte [rsi + rax + 0x28]
xor byte [rsi + rax + 0x18], cl
inc rax
mov r8, qword [rsi + 0x50]
cmp rax, r8
jb 0x140022c0b
jmp 0x140022c24
xor r8d, r8d
lea rdx, [rsi + 0x18]
mov rcx, rdi
call fcn.1400027aa
mov rax, qword [rsi + 0x50]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400285a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x140037114]
test eax, eax
jle 0x1400285fe
mov rcx, qword [0x140037150]
lea rdx, [rax*8]
lea rdx, [rdx + rdx*4]
xor r8d, r8d
mov r9, qword [rcx + r8 + 0x18]
cmp r9, rsi
ja 0x1400285f3
mov r10, qword [rcx + r8 + 0x20]
mov r10d, dword [r10 + 8]
add r9, r10
cmp r9, rsi
ja 0x140028712
add r8, 0x28
cmp rdx, r8
jne 0x1400285d4
jmp 0x140028600
xor eax, eax
mov rcx, qword [0x14002c010]
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x14002866a
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14002866a
add rcx, rdx
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x14002866a
movzx edx, word [rcx + 6]
test edx, edx
je 0x14002866a
mov r8, rsi
sub r8, qword [0x14002c010]
movzx r9d, word [rcx + 0x14]
lea r15, [rcx + r9]
add r15, 0x18
mov ecx, dword [r15 + 0xc]
cmp r8, rcx
jb 0x140028662
mov r9d, dword [r15 + 8]
add r9d, ecx
cmp r8, r9
jb 0x140028679
add r15, 0x28
dec edx
jne 0x14002864d
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.14002875d
mov rdx, qword [0x140037150]
lea r14, [rax + rax*4]
mov qword [rdx + r14*8 + 0x20], r15
mov dword [rdx + r14*8], 0
add rcx, qword [0x14002c010]
mov qword [rdx + r14*8 + 0x18], rcx
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002872d
mov eax, dword [rsp + 0x44]
cmp eax, 7
jle 0x1400286cf
cmp eax, 8
je 0x14002870c
cmp eax, 0x40
je 0x14002870c
cmp eax, 0x80
je 0x14002870c
jmp 0x1400286df
mov r8d, 4
cmp eax, 2
je 0x1400286e5
cmp eax, 4
je 0x14002870c
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rax, qword [0x140037150]
lea r9, [rax + r14*8]
mov qword [r9 + 8], rcx
mov rdx, qword [rsp + 0x38]
mov qword [r9 + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140028749
inc dword [0x140037114]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1400027aa
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov edx, dword [r15 + 8]
mov rax, qword [0x140037150]
mov r8, qword [rax + r14*8 + 0x18]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.14002875d
call sub.KERNEL32.dll_GetLastError
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14002875d
int3
Function at 0x140006a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006b10
cmp r11, r10
ja 0x140006b86
cmp r10, rdx
ja 0x140006b98
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140006b12
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006af0
jmp 0x140006b74
ja 0x140006b1a
mov r11, r10
cmp rax, r8
jne 0x140006ab4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006b50
mov rdi, r8
sub ecx, edx
jns 0x140006b6b
jmp 0x140006b76
cmp r8, rsi
je 0x140006ba7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006b76
xor al, 1
cmp rdi, rsi
jne 0x140006b30
jmp 0x140006b76
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400048a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140003e70
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140004210
int3

Function at 0x14000954d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.14000963b
cmp eax, 0x1edab0ed
jne 0x140009575
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x14000960d
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x14000960f
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rax, rcx
mov rdx, rax
inc rax
cmp byte [rdx], 0
jne 0x1400095da
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.14000963b
cmp eax, esi
jne 0x1400095c8
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x14000962b
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x14000960f
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._home_kali_.cargo_git_checkouts_rust_syscalls_37fffce23c87cda7_162451a_src_syscall_resolve.rs
mov rdx, rdi
call fcn.140003590
int3
Function at 0x14000963b
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x140009677
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x140009656
inc r8
jmp 0x140009643
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140009651
ret

Function at 0x14000cf50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140003a00
cmp rax, rcx
je 0x14000cf75
cmp rdx, 4
jae 0x14000cf78
xor eax, eax
xor r8d, r8d
jmp 0x14000d010
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003a470]
movdqa xmm3, xmmword [0x14003a480]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000cfa0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000d027
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000d010
ret
Function at 0x14000df90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x14000dfeb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000dfeb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14000e006
cmp eax, 0x42
jne 0x14000dfeb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000e0b6
cmp byte [r8 + r11], 0x5f
jne 0x14000e0b6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000e11e
mov rcx, rsi
xor edx, edx
call fcn.140009980
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140009980
test al, al
jne 0x14000e1b1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e042
lea rdx, [0x14003d933]
mov r8d, 1
call fcn.140003ef0
test al, al
jne 0x14000e1b1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000dffa
xor r14d, r14d
lea rbx, [0x14003dca1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000e074
cmp byte [rax + rcx], 0x45
je 0x14000e1d3
sub r14, 1
jb 0x14000e099
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e099
mov r8d, 2
mov rdx, rbx
call fcn.140003ef0
test al, al
jne 0x14000e1b1
mov rcx, rsi
call fcn.14000b1b0
test al, al
jne 0x14000e1b1
mov rax, qword [rsi]
test rax, rax
jne 0x14000e060
jmp 0x14000dffa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x14000e178
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14000e112
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000e0fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000e0eb
add dl, 0xa9
jmp 0x14000e0fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000e178
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000e178
movzx edx, bl
add rax, rdx
jae 0x14000e0c0
jmp 0x14000e178
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000e178
cmp rax, rcx
jae 0x14000e175
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000e1cb
cmp qword [rsi + 0x20], 0
je 0x14000e1c4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000df90
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000dffc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e1b9
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14003dc80]
test r9b, r9b
cmovne rdx, rax
call fcn.140003ef0
test al, al
je 0x14000e1b9
mov dil, 2
jmp 0x14000dffa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000dffa
mov dil, 1
xor r9d, r9d
jmp 0x14000e17a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000dffa
Function at 0x140011540
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400115c5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140011606
cmp dword [rsp + 0x2c], 0
je 0x1400115ea
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001161e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400470d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400470d8], rsi
jne 0x1400115a0
mov byte [0x1400470d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400115fc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140011668
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400115ef
mov edi, dword [rsp + 0x28]
jmp 0x1400115fc
mov edi, dword [rsi + 0x18]
jmp 0x1400115fa
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140011ac0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1400034d0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140011b10
int3
Function at 0x140011990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140039098]
test ecx, ecx
je 0x140011a70
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400119c4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400119c4
add rdi, 0x10
jmp 0x140011a66
mov ecx, dword [0x140039098]
test ecx, ecx
je 0x140011a83
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140011a64
mov rsi, rax
test rax, rax
jne 0x140011a33
movzx eax, byte [0x1400470f0]
mov ecx, 0x18
mov edx, 8
call fcn.140002890
test rax, rax
je 0x140011aa6
mov rsi, rax
lea rax, [0x140039080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140039098]
test ecx, ecx
je 0x140011a96
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140011a66
test rcx, rcx
je 0x140011a66
lock dec qword [rcx]
jne 0x140011a66
call fcn.1400114f0
jmp 0x140011a66
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140039080]
call fcn.140011540
mov ecx, eax
jmp 0x1400119a6
lea rcx, [0x140039080]
call fcn.140011540
mov ecx, eax
jmp 0x1400119d4
lea rcx, [0x140039080]
call fcn.140011540
mov ecx, eax
jmp 0x140011a2b
mov ecx, 8
mov edx, 0x18
call fcn.140002cd0
int3

Function at 0x140012080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400390b8]
test ecx, ecx
je 0x14001211f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400120a9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14001210e
mov ecx, dword [0x1400390b8]
test ecx, ecx
je 0x140012132
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140012114
mov rsi, rax
test rax, rax
jne 0x140012108
movzx eax, byte [0x1400470f0]
mov ecx, 0x10
mov edx, 8
call fcn.140002890
test rax, rax
je 0x140012155
mov rsi, rax
lea rax, [0x1400390a0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400390b8]
test ecx, ecx
je 0x140012145
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140012116
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400390a0]
call fcn.140011540
mov ecx, eax
jmp 0x140012095
lea rcx, [0x1400390a0]
call fcn.140011540
mov ecx, eax
jmp 0x1400120b5
lea rcx, [0x1400390a0]
call fcn.140011540
mov ecx, eax
jmp 0x140012100
mov ecx, 8
mov edx, 0x10
call fcn.140002cd0
int3
Function at 0x140012d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140039078]
test ecx, ecx
je 0x140012ddd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140012d50
cmp qword [rax + 8], 0
je 0x140012d50
add rax, 0x10
jmp 0x140012dd7
mov ecx, dword [0x140039078]
test ecx, ecx
je 0x140012df0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140012dd5
mov rsi, rax
test rax, rax
jne 0x140012dbb
movzx eax, byte [0x1400470f0]
mov ecx, 0x20
mov edx, 8
call fcn.140002890
test rax, rax
je 0x140012e13
mov rsi, rax
lea rax, [0x140039060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140039078]
test ecx, ecx
je 0x140012e03
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140012dd7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140039060]
call fcn.140011540
mov ecx, eax
jmp 0x140012d35
lea rcx, [0x140039060]
call fcn.140011540
mov ecx, eax
jmp 0x140012d60
lea rcx, [0x140039060]
call fcn.140011540
mov ecx, eax
jmp 0x140012db3
mov ecx, 8
mov edx, 0x20
call fcn.140002cd0
int3

Function at 0x140015f60
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 7
mov qword [rsp + 0x5c], 0
mov word [rsp + 0x64], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.14002e7a0
mov rdi, rdx
test rax, rax
je 0x140015fcf
mov rcx, rdi
call fcn.140010d40
mov qword [rsi], 0
jmp 0x1400160fb
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14002ef90
cmp dword [rsp + 0x40], 2
jne 0x14001600c
mov rcx, qword [rsp + 0x48]
call fcn.140010d40
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rdi, rdi
je 0x14001605e
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400160da
mov rbx, qword [rsp + 0x40]
jmp 0x140016060
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1400160c9
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1400160c9
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400160f3
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400160f3
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.140010d40
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140031140
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140040328]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400311aa
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400311b9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400311f0
cmp eax, 0x103
je 0x1400311fa
test eax, eax
js 0x1400311d6
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400311f0
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
add byte [rdi], cl
push rdi
ror byte [rdi], 0x11
test byte [rax + rdx*4], ah
add byte [rax], al
invalid

Function at 0x1400379b0
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.140038750
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.140038750
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 0x140037a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140047184]
mov rbx, rcx
test esi, esi
jle 0x140037b50
mov rax, qword [0x140047188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140037a6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140037af5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140037a50
mov rcx, rbx
call fcn.140038470
mov rdi, rax
test rax, rax
je 0x140037b72
mov rax, qword [0x140047188]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400385b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140047188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140037b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140037aee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140037b00
add dword [0x140047184], 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 [0x140047188]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140037aee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400379b0
nop dword [rax]
xor esi, esi
jmp 0x140037a78
mov rax, qword [0x140047188]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400379b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400379b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400380e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400471e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400471c0]
test rbx, rbx
je 0x14003813c
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 eax, eax
jne 0x140038133
test rsi, rsi
je 0x140038133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140038118
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 0x140038470
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400384f0
Capabilities:
Parse pe header

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

Function at 0x1400385b0
Capabilities:
Parse pe header

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