joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c3c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x268
test cl, 2
je 0x14003c40a
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x14003c3fd
movzx eax, word [rsp + 0xc0]
cmp al, 2
jne 0x14003c3f7
shr ax, 8
cmp al, 2
je 0x14003c40a
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add rsp, 0x268
ret
call fcn.140059380
test eax, eax
jne 0x14003c511
lea rcx, str.iphlpapi.dll
call fcn.14003c070
mov qword [0x1401adf38], rax
test rax, rax
je 0x14003c454
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401adf30]
test rax, rax
cmovne rcx, rax
mov qword [0x1401adf30], rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x20], 0x9c
mov qword [rsp + 0x24], 6
mov dword [rsp + 0x30], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x20]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x14003c508
lea rcx, [0x1401ae6a0]
mov byte [0x1401ae6b0], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add rsp, 0x268
ret
mov byte [0x1401ae6b0], 0
xor eax, eax
add rsp, 0x268
ret

Function at 0x14003c830
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14003c88e
mov dl, 1
call fcn.14003df50
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14003df50
mov eax, ebx
jmp 0x14003c8d2
cmp ebx, 2
ja 0x14003c8d0
mov r9, qword [rdi + 0x668]
lea rdx, [0x140081120]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140041910
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1401ae0b0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14004196d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.14003c210
test al, al
je 0x140041961
mov dword [0x1401ae0b0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1401ae0b0], 1
jmp 0x140041972
cmp eax, 2
je 0x1400419c4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400419a3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400419c4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14006b3d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1401ae1f0], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1401ae200]
jne 0x14006b41d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1401ae228], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1401ae1f0], 1
mov ecx, dword [0x1401ae228]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14006b4f2
mov rcx, qword [0x1401acdc0]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14006b51d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401ae1f8]
test rax, rax
je 0x14006b46d
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1401ae1f8], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14006b538]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1401ae228]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1401acdc0]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14006b51d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x24]
add rsi, rcx
mov r10d, dword [r8 + 0x20]
add rbp, rcx
mov ebx, dword [r8 + 0x18]
add r10, rcx
test ebx, ebx
je 0x140001693
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001683
inc rax
test ecx, ecx
jne 0x140001670
test edx, edx
je 0x1400016aa
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140001660
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140001695
Function at 0x1400038e0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x140003ac1
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rdi, rcx
mov qword [rsp + 0xa0], rsi
mov rcx, qword [0x1400180a0]
xor esi, esi
mov qword [rbp - 0x40], rsi
mov rbx, rdx
mov qword [rbp - 0x48], rsi
lea rdx, [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov rax, qword [rdi]
lea r9, [rbp - 0x48]
mov r8, qword [rbp - 0x40]
lea edx, [rsi + 2]
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x14000395c
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140003aa6
jmp 0x140003aa0
mov dword [rbp - 0x20], esi
lea rdx, [rbp - 0x20]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edi, esi
cmp dword [rbp - 0x20], esi
jle 0x140003a92
mov qword [rsp + 0x68], r14
lea r14, [0x140017078]
mov qword [rsp + 0x60], r15
lea r15, [0x140018020]
nop dword [rax]
mov rcx, qword [rbp - 0x48]
lea r8, [rbp - 0x50]
mov qword [rbp - 0x50], rsi
mov edx, edi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140003a7d
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
mov edx, 0x755d
call qword [rax + 0x50]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140003a71
movsxd r10, dword [0x1400180b0]
mov rcx, r14
mov r9d, 0x1c
mov rdx, qword [r15 + r10*8]
inc r10d
mov r8, rdx
nop dword [rax]
movzx eax, byte [rcx]
lea r8, [r8 + 2]
xor al, 0xde
lea rcx, [rcx + 1]
movzx eax, al
mov word [r8 - 2], ax
sub r9, 1
jne 0x1400039f0
cmp r10d, 0xf
mov word [rdx + 0x38], si
mov rcx, qword [rbp - 0x30]
cmovge r10d, esi
mov dword [0x1400180b0], r10d
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140003a43
mov rcx, qword [rbp - 0x30]
lea rdx, str.https:__www.googleadservices.com_pagead_aclk_
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140003a67
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140003a5b
mov rax, qword [rbp - 0x50]
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x140003a67
lea r8, [rbp - 0x50]
mov rcx, rbx
call fcn.140006da0
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x50]
mov rdx, rbx
call fcn.1400038e0
inc edi
cmp edi, dword [rbp - 0x20]
jl 0x140003990
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14000f080
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
Function at 0x140004ee0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xorps xmm0, xmm0
lea r14, [0x140018020]
xor eax, eax
lea rdi, [0x140018098]
movups xmmword [0x140018020], xmm0
mov qword [0x140018050], rax
mov rbx, r14
movups xmmword [0x140018030], xmm0
mov dword [0x140018058], eax
movups xmmword [0x140018040], xmm0
nop dword [rax]
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx], rax
add rbx, 8
cmp rbx, rdi
jl 0x140004f50
call fcn.1400016c0
movsxd r10, dword [0x1400180b0]
lea r9, [0x140017068]
mov ebx, 0xe
mov edx, ebx
mov r8, qword [r14 + r10*8]
inc r10d
sub r9, r8
mov rcx, r8
movzx eax, byte [r9 + rcx]
lea rcx, [rcx + 1]
xor al, 0xde
mov byte [rcx - 1], al
sub rdx, 1
jne 0x140004f90
xor esi, esi
mov byte [r8 + 0xe], dl
cmp r10d, 0xf
cmovge r10d, esi
xor ecx, ecx
lea edx, [rsi + 1]
mov dword [0x1400180b0], r10d
call qword [0x1400180b8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004fd8
xor eax, eax
jmp 0x1400050ea
call fcn.1400019a0
test al, al
jne 0x140005022
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, rax
mov qword [0x140018018], rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140005022
call fcn.1400019a0
test al, al
je 0x140004ff0
call fcn.140004a70
call fcn.1400043d0
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140005070
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140005043
mov rdi, qword [0x140018098]
test rdi, rdi
je 0x1400050e6
movsxd r10, dword [0x1400180b0]
lea r9, [0x140017348]
mov rdx, qword [r14 + r10*8]
inc r10d
sub r9, rdx
mov r8, rdx
nop word [rax + rax]
movzx eax, byte [r9 + r8]
lea r8, [r8 + 1]
xor al, 0xde
mov byte [r8 - 1], al
sub rbx, 1
jne 0x1400050a0
mov rcx, qword [0x1400180d8]
cmp r10d, 0xf
mov byte [rdx + 0xe], sil
cmovge r10d, esi
mov dword [0x1400180b0], r10d
call fcn.140001610
mov rcx, rdi
mov qword [0x140017ff8], rax
call rax
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000f080
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop r14
ret
Function at 0x140005520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140005557
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140005578
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000557a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400055d3
test ecx, ecx
jle 0x1400055b3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400055d3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400055d3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005600
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005622
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005638
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005654
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005656
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140005690
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005737
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400056cb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005711
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005750
cmp rbx, rax
ja 0x1400056e0
mov r8, rdi
test rdi, rdi
je 0x140005737
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000573a
Function at 0x140005b50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005b7d
xor eax, eax
jmp 0x140005cd2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005ba8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005ba8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005cd2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005cc5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005beb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005c16
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005cca
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005c85
sub eax, 1
je 0x140005c85
cmp eax, 2
jne 0x140005cc5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005cca
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005cb3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005cc5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140005cca
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000f080
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400064a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006573
cmp byte [rcx + 0x71], 0
je 0x140006573
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000656f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006534
sub eax, 1
je 0x140006538
cmp eax, 2
jne 0x14000656f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f080
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006566
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000656f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000651c
xor al, al
jmp 0x14000651c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000f080
add rsp, 0x60
pop rbx
ret
Function at 0x140003dc4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140003c57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003c57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003c57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003c57
cmp dword [rcx + 0x84], 0xe
jbe 0x140003c57
cmp dword [rcx + 0xf8], 0
je 0x140003c57
mov ecx, ebx
call fcn.140003cf8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140003ae8
cmp dword [rbp + 0x20], 0
je 0x140003ca4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140003cac
int3
xor r8d, r8d
xor edx, edx
jmp 0x140003bf0
Function at 0x140013750
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x1400137aa
invalid
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x1400137b2
mov r14, qword [r14]
jmp 0x14001377b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x1400137e7
jmp 0x1400137f5
inc rax
inc rax
inc rax
inc rax
jmp 0x1400137ce
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0xb9000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0x55000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x68bf
push rax
movabs r15, 0x3ae00
mov eax, 0xd
imul r12, rax
movabs rax, 0x85e
add rax, r11
add r12, rax
call fcn.1400138ac
mov r12d, 0x91811
movabs r14, 0xf9000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.1400138ac
pop rax
jmp 0x1400138d2
mov r12d, 0x8000000
mov r15d, 0x3e0
movabs r14, 0xb9000
mov eax, 4
imul r15d, eax
add r15d, 0x80
add r14, r11
sub r14, r15
mov r15, r14
test dword [rdi + 0x2b], 0x11bc41fc
or dword fs:[rax], eax

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

Disassembly:
add esp, 0xfffff254
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040dc
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403d
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004033
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040d1
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040d1
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040d0
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004087
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004078
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
pop r8
pop rsi
pop rcx
add rax, rdx
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 0x140004027