joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401908b0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14020ba18]
test rbx, rbx
je 0x140190912
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140190912
test esi, esi
je 0x1401908f7
mov rax, qword [rbx]
test rax, rax
je 0x1401908f7
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x14020ba18]
call sym.pthread_setspecific
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 0x140190920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14020ba18]
test rsi, rsi
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
je 0x140190980
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x14020ba18]
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 0x10], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.pthread_setspecific
xor edi, edi
jmp 0x140190960

Function at 0x140190990
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [0x14020ba20]
test rsi, rsi
mov rbx, rcx
je 0x1401909f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1401909f2
mov rdi, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x10]
mov qword [rbx], rsi
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x40]
mov rcx, r12
call sym.ptw32_new
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbp, rbp
mov rsi, rbp
je 0x1401909d7
or byte [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbp + 0x198], eax
call r13
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r13
lea r9, [rbp + 8]
mov r8, r15
mov rdx, r14
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140190aa0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rcx, qword [0x14020ba20]
mov rdx, rbp
mov dword [rbp + 0x188], eax
call sym.pthread_setspecific
jmp 0x1401909d7
mov rcx, r12
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
call sym.ptw32_threadReusePush
mov qword [rbx], 0
mov dword [rbx + 8], 0
jmp 0x1401909de
Function at 0x140190ad0
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rdx, rdx
mov r12, rcx
mov r14, r8
mov dword [rcx + 8], 0
mov r13, r9
je 0x140190c10
mov rbp, qword [rdx]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call sym.ptw32_new
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x140190be0
mov ecx, 0x20
call sym.malloc
test rax, rax
mov rsi, rax
je 0x140190be0
test rbp, rbp
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
je 0x140190c40
mov eax, dword [rbp + 0x18]
mov r14, qword [rbp + 0x10]
mov r13d, dword [rbp + 0x1c]
mov dword [rbx + 0x184], eax
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140190c20
mov dword [rbx + 0x28], 0
xor ecx, ecx
mov r9, rsi
mov edx, r14d
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [sym.ptw32_threadStart]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
je 0x140190c90
mov r8d, r13d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call sym.ptw32_setthreadpriority
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [r12], rbx
xor eax, eax
mov qword [r12 + 8], r15
jmp 0x140190bf7
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call sym.ptw32_threadDestroy
mov eax, 0xb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140190afc
mov rcx, rdi
call sym.pthread_self
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x188]
jmp 0x140190b66
mov dword [rbx + 0x28], 0
xor edx, edx
xor ecx, ecx
mov r9, rsi
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [sym.ptw32_threadStart]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
jne 0x140190bc5
nop word [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call sym.ptw32_threadDestroy
mov rcx, rsi
call sym.free
mov eax, 0xb
jmp 0x140190bf7
Function at 0x1401973e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14020ba18]
test rbx, rbx
je 0x140197443
test ecx, ecx
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_SetLastError]
jne 0x14019747a
jmp 0x14019742d
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x14020ba18]
call sym.pthread_setspecific
mov rbx, qword [0x14020ba18]
test rbx, rbx
je 0x140197443
call rbp
mov ecx, dword [rbx]
mov r12d, eax
call rdi
mov ecx, r12d
mov rbx, rax
call rsi
test rbx, rbx
jne 0x140197411
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbx]
test rax, rax
je 0x14019745e
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x14020ba18]
call sym.pthread_setspecific
mov rbx, qword [0x14020ba18]
test rbx, rbx
je 0x140197443
call rbp
mov ecx, dword [rbx]
mov r12d, eax
call rdi
mov ecx, r12d
mov rbx, rax
call rsi
test rbx, rbx
jne 0x140197450
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401974a0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
test rcx, rcx
je 0x1401974b6
test rdx, rdx
jne 0x1401974d0
mov eax, 0x16
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
lock xadd dword [rcx], r8d
xor eax, eax
test r8d, r8d
jne 0x1401974bb
lea rax, [rcx + 8]
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x58], 0
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov rcx, rdi
mov qword [rsp + 0x48], 0
xchg qword [rax], rcx
test rcx, rcx
je 0x14019754e
mov qword [rcx + 8], rdi
lea rdx, [rcx + 0x18]
xor eax, eax
mov rcx, 0xffffffffffffffff
lock cmpxchg qword [rdx], rcx
test rax, rax
mov rcx, rax
je 0x14019753d
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r12, [rdi + 0x10]
xor ebp, ebp
lock xadd qword [r12], rbp
test rbp, rbp
je 0x1401975a0
mov eax, dword [rbx]
test eax, eax
je 0x1401975d3
mov r8, qword [rsp + 0x40]
lea rcx, [rdi + 8]
xor edx, edx
lock xadd qword [rcx], rdx
test rdx, rdx
mov rcx, rdx
je 0x140197674
add rcx, 0x10
xor eax, eax
mov rdx, 0xffffffffffffffff
lock cmpxchg qword [rcx], rdx
test rax, rax
mov rcx, rax
je 0x140197590
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r13, rax
mov rax, rbp
lock cmpxchg qword [r12], r13
test rax, rax
je 0x1401976a3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14019754e
mov rbp, qword [0x14020ba18]
lea rax, [sym.ptw32_mcs_lock_release]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
test rbp, rbp
je 0x1401976bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbp]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [0x14020ba18]
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rsp + 0x30], r12
call sym.pthread_setspecific
call rsi
mov rsi, qword [0x14020ba18]
test rsi, rsi
je 0x140197669
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140197669
mov rdx, qword [rsi + 0x10]
mov rcx, qword [0x14020ba18]
call sym.pthread_setspecific
mov dword [rbx], 1
jmp 0x140197554
mov rax, rdi
lock cmpxchg qword [r8], rdx
cmp rdi, rax
je 0x140197590
lea rcx, [rdi + 0x18]
lock xadd qword [rcx], rdx
test rdx, rdx
je 0x1401976b6
add rdi, 8
xor ecx, ecx
lock xadd qword [rdi], rcx
jmp 0x140197570
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1401975c5
call sym.ptw32_mcs_flag_wait.part.0
jmp 0x140197693
xor r12d, r12d
jmp 0x140197619
Function at 0x1401976d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x140197703
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
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
xor ebx, ebx
jmp 0x1401976f9

Function at 0x140197710
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, ecx
mov rcx, qword [0x14020ba20]
call sym.pthread_getspecific
mov rsi, rax
mov dword [rax + 0x28], 5
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x140197748
mov ecx, 1
call sym.exit
test byte [rsi + 0x194], 1
jne 0x1401977c2
mov rbx, qword [0x14020ba18]
test rbx, rbx
je 0x1401977b7
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14019779f
mov r8, qword [rbx]
test r8, r8
je 0x140197783
mov rcx, qword [rbx + 8]
call r8
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x14020ba18]
call sym.pthread_setspecific
mov rbx, qword [0x14020ba18]
test rbx, rbx
je 0x1401977b7
call r13
mov ecx, dword [rbx]
mov r14d, eax
call r12
mov ecx, r14d
mov rbx, rax
call rbp
test rbx, rbx
jne 0x140197774
lea rcx, [rsi + 0x70]
mov edx, edi
call sym.longjmp
or ecx, 0xffffffff
cmp edi, 2
jne 0x1401977d9
cmp dword [0x14020ba28], 0
jne 0x1401977de
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ecx, dword [rsi + 0x48]
jmp 0x1401977ca
mov dword [rsp + 0x2c], ecx
call sym.pthread_win32_thread_detach_np.part.8
mov ecx, dword [rsp + 0x2c]
jmp 0x1401977d3
Function at 0x14019b780
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 0x14019b7f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14020bae4]
mov rbx, rcx
test esi, esi
jle 0x14019b920
mov rax, qword [0x14020bae8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14019b83b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14019b8c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14019b820
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14019b942
mov rax, qword [0x14020bae8]
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 [0x14020bae8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14019b927
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14019b8be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14019b8d0
add dword [0x14020bae4], 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 [0x14020bae8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14019b8be
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 0x14019b848
mov rax, qword [0x14020bae8]
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 0x14019bed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14020bb40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14020bb20]
test rbx, rbx
je 0x14019bf2c
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 0x14019bf23
test eax, eax
jne 0x14019bf23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14019bf08
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 0x14019c140
Capabilities:
Parse pe header

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

Function at 0x14019c170
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 0x14019c1bd
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 0x14019c1b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14019c1bf
add rax, 0x28
cmp rax, r9
jne 0x14019c1a0
xor eax, eax
ret

Function at 0x14019c1c0
Capabilities:
Parse pe header

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

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

Function at 0x14019c2e0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1401fd3d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14019c340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14019c348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14019c340
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14019c390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14019c387
test rcx, rcx
je 0x14019c340
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14019c378
xor eax, eax
ret

Function at 0x14019c3a0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1401fd3d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14019c400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14019c408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14019c400
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14019c400
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 0x14019c454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14019c460
add rdx, 0x28
cmp rdx, r9
jne 0x14019c440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1401fd3d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14019c492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14019c4a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14019c492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14019c492
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14019c492
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 0x14019c4f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14019c508
add rdx, 0x28
cmp r10, rdx
jne 0x14019c4e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14019c517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14019c527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14019c4fe
test ecx, ecx
jg 0x14019c510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001990
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [section..data]
lea rdx, [0x140046908]
call fcn.1400221b0
mov ecx, 0xa
call fcn.140022190
xor edi, edi
lea rsi, [0x140000000]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [rbx + rsi + 0x52008]
lea r9, str.Apr_9th_2009
lea r8, str.3.1b_BETA
lea rdx, [0x1400469ec]
call fcn.1400221b0
mov ecx, 0xa
call fcn.140022190
add rbx, 8
cmp rbx, 0x38
jb 0x1400019d0
call fcn.14001de00
lea rcx, str.Zip_special_compilation_options:
call fcn.140022010
mov rbx, rdi
nop word [rax + rax]
mov rdx, qword [rsi + rbx*8 + 0x52d70]
lea rcx, str._________s_n
call fcn.1400221b0
inc rbx
cmp ebx, 7
jl 0x140001a20
mov edx, 2
lea rax, str.05_Jan_2007
lea r9, [0x14004672a]
lea r8d, [rdx + 0x59]
lea rcx, str._________encryption__version__d._d_s_of__s___modified_for_Zip_3__n_n
mov qword [rsp + 0x20], rax
call fcn.1400221b0
mov rbx, rdi
nop word [rax + rax]
mov rcx, qword [rsi + rbx*8 + 0x52040]
call fcn.1400221b0
mov ecx, 0xa
call fcn.140022190
inc rbx
cmp rbx, 7
jb 0x140001a70
lea rax, [rbx + 1]
test rax, rax
jne 0x140001aa5
lea rcx, str._________none_
call fcn.140022010
lea rcx, str._nZip_environment_options:
call fcn.140022010
mov rcx, qword [rdi + rsi + 0x52db0]
call fcn.140022318
test rax, rax
je 0x140001ac8
cmp byte [rax], 0
jne 0x140001acf
lea rax, str._none_
mov rdx, qword [rdi + rsi + 0x52db0]
lea rcx, str._16s:___s_n
mov r8, rax
call fcn.1400221b0
add rdi, 8
cmp rdi, 0x10
jb 0x140001ab1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140008a30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov r9d, 0x12345678
mov edx, 0x23456789
mov r10d, 0x34567890
mov dword [0x140055b88], r9d
mov dword [0x140055b8c], edx
mov dword [0x140055b90], r10d
movzx eax, byte [rcx]
mov r8, rcx
test al, al
je 0x140008ad0
mov r11, qword [0x1400a5440]
nop word [rax + rax]
xor rax, qword [0x140055b88]
inc r8
movzx ecx, al
mov eax, r9d
mov r9d, dword [r11 + rcx*4]
shr eax, 8
mov ecx, r10d
xor r9d, eax
shr ecx, 8
movzx eax, r9b
mov dword [0x140055b88], r9d
add edx, eax
imul edx, edx, 0x8088405
inc edx
mov eax, edx
mov dword [0x140055b8c], edx
shr eax, 0x18
xor rax, qword [0x140055b90]
movzx eax, al
mov r10d, dword [r11 + rax*4]
xor r10d, ecx
mov dword [0x140055b90], r10d
movzx eax, byte [r8]
test al, al
jne 0x140008a70
repz ret
Function at 0x140008fb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [0x1400579b0], 0
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
je 0x140009086
mov r11d, edx
mov qword [rsp + 0x30], rbp
mov rbp, rcx
imul r11d, ebx
test r11d, r11d
je 0x140009081
nop
movsx rax, byte [rbp]
mov r8, qword [0x1400a5440]
mov r9d, dword [0x140055b90]
xor rax, qword [0x140055b88]
mov r10d, r9d
shr r9d, 8
movzx ecx, al
mov eax, dword [0x140055b88]
and r10d, 0xfffd
mov edx, dword [r8 + rcx*4]
shr eax, 8
or r10d, 2
xor edx, eax
inc rbp
movzx eax, dl
mov dword [0x140055b88], edx
add eax, dword [0x140055b8c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x140055b8c], eax
shr eax, 0x18
xor rax, qword [0x140055b90]
movzx eax, al
mov eax, dword [r8 + rax*4]
xor eax, r9d
mov dword [0x140055b90], eax
mov eax, r10d
xor eax, 1
imul eax, r10d
shr eax, 8
xor byte [rbp - 1], al
dec r11d
jne 0x140008ff0
mov rbp, qword [rsp + 0x30]
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400143b0

Function at 0x14000b060
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [rdx]
mov r8d, 0x50
mov r9, rcx
mov dword [rsp + 0x40], eax
movzx eax, al
lea rcx, [rsp + 0x48]
cmp al, r8b
mov edx, eax
movzx eax, byte [rsp + 0x41]
cmove edx, r8d
mov r8d, 0x4b
mov byte [rsp + 0x40], dl
mov edx, eax
cmp al, r8b
cmove edx, r8d
mov byte [rsp + 0x41], dl
lea edx, [r8 - 0x4a]
lea r8d, [rdx + 3]
call fcn.140026874
cmp rax, 4
je 0x14000b0ba
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
mov r8d, eax
mov edx, eax
movzx ecx, byte [rsp + rdx + 0x48]
cmp byte [rsp + rdx + 0x40], cl
jne 0x14000b0d8
inc rdx
inc r8d
cmp rdx, 4
jl 0x14000b0c1
cmp r8d, 4
sete al
add rsp, 0x28
ret