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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, str.Argent_tden_trssbox_ttsi_tDEMO_tprzyklady_tsem_tincs_tressources_tphpesp_tcontinguts_tdescargar_tfrca_tadditional_tlady_tcnstat_tbright_tspl_tvideotest_tsuggests_tconteudo_tidiot_ttilatequila_tfc_twr_torderstatus_tpostpay_tmenusplit_tartikelliste_tctools_titinerary_tarsiv_ttemplatesconf_tbib_tmotorola_tforum_tphocamapskml_tmlist_taudi_tmpeg_teditorimages_tspeaker_tauthordata_tcard_thilton_tgprs_tmaster
mov r10, rax
sub rbx, rax
movabs rdi, 0x2d82d82d82d82d83
lea r9, [rax + 2]
nop dword [rax + rax]
movsxd r8, r11d
lea r9, [r9 + 0xc]
mov rax, rdi
mov rcx, r8
mul r8
add r11d, 6
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 0xe]
movsx eax, al
mov word [r9 - 0xe], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [r9 + rbx - 0xc]
movsx eax, al
mov word [r9 - 0xc], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 - 0xa]
movsx eax, al
mov word [r9 - 0xa], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 - 8]
movsx eax, al
mov word [r9 - 8], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 - 6]
movsx eax, al
mov word [r9 - 6], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 4]
movsx eax, al
mov word [r9 - 4], ax
cmp r11d, 6
jb 0x140004eb0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004fd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0xe]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, str.Argent_tden_trssbox_ttsi_tDEMO_tprzyklady_tsem_tincs_tressources_tphpesp_tcontinguts_tdescargar_tfrca_tadditional_tlady_tcnstat_tbright_tspl_tvideotest_tsuggests_tconteudo_tidiot_ttilatequila_tfc_twr_torderstatus_tpostpay_tmenusplit_tartikelliste_tctools_titinerary_tarsiv_ttemplatesconf_tbib_tmotorola_tforum_tphocamapskml_tmlist_taudi_tmpeg_teditorimages_tspeaker_tauthordata_tcard_thilton_tgprs_tmaster
mov r10, rax
sub rbx, rax
movabs rdi, 0x2d82d82d82d82d83
lea r9, [rax + 2]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rcx, r8
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 2]
movsx eax, al
mov word [r9 - 2], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
movsx eax, al
mov word [r9], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 2]
movsx eax, al
mov word [r9 + 2], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 4]
movsx eax, al
mov word [r9 + 4], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 6]
movsx eax, al
mov word [r9 + 6], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 8]
movsx eax, al
mov word [r9 + 8], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 + 0xa]
movsx eax, al
mov word [r9 + 0xa], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 + 0xc]
movsx eax, al
mov word [r9 + 0xc], ax
lea rcx, [r8 + 8]
mov rax, rdi
mul rcx
add r11d, 0xb
lea r9, [r9 + 0x16]
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 9]
xor al, byte [rbx + r9 - 8]
movsx eax, al
mov word [r9 - 8], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 6]
movsx eax, al
mov word [r9 - 6], ax
mov rax, rdi
mul rcx
shr rdx, 6
imul rax, rdx, 0x168
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 4]
movsx eax, al
mov word [r9 - 4], ax
cmp r11d, 0xb
jb 0x140005020
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a170
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r12d, 9
mov dword [rbp - 0x20], 0x37000a
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], r12w
mov dword [rbp - 0x1c], 0x2b0035
mov dword [rbp - 0x18], 0x38002b
mov dword [rbp - 0x14], 0x25004b
mov dword [rbp - 0x10], 0x2b0036
call fcn.140004fd0
mov rcx, rax
call 0x14000ce60
mov qword [0x1400161b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x65
mov dword [rbp - 0x20], 0x37000a
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2b0035
mov dword [rbp - 0x18], 0x38002b
mov dword [rbp - 0x14], 0x56003a
call fcn.1400022a0
mov rcx, rax
call 0x14000ce60
lea rcx, [rbp - 0x20]
mov qword [0x1400161a8], rax
mov dword [rbp - 0x20], 0x6002f
mov dword [rbp - 0x1c], 0x90003
mov dword [rbp - 0x18], 0x740002
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000ce60
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000cec2
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000cef0
test al, al
jne 0x14000ced4
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000ce90
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a270
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x1400161c0]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x1a0012
mov dword [rbp - 0x1c], 0x90002
mov dword [rbp - 0x18], 0x470002
mov dword [rbp - 0x14], 0x4a003b
mov dword [rbp - 0x10], 0x20001
mov dword [rbp - 0xc], 0x720065
call fcn.1400029c0
mov rcx, rax
call rbx
mov rbx, qword [0x1400161c0]
lea rcx, [rbp - 0x20]
mov qword [0x1400161a0], rax
mov dword [rbp - 0x20], 0x1b0016
mov dword [rbp - 0x1c], 0xc0009
mov dword [rbp - 0x18], 0x110000
mov dword [rbp - 0x14], 0x4a007d
mov dword [rbp - 0x10], 0x20001
mov dword [rbp - 0xc], 0x720065
call fcn.1400029c0
mov rcx, rax
call rbx
movdqa xmm0, xmmword [0x140014c90]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400161b0], rax
mov word [rbp - 0x10], 0x5e0e
mov byte [rbp - 0xe], 0x74
call fcn.140004620
mov rcx, qword [0x1400161a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140016130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x9021a12
mov dword [rbp - 0x1c], 0x1713102
mov dword [rbp - 0x18], 0x177d1b06
mov word [rbp - 0x14], 0x7324
call fcn.140001180
mov rcx, qword [0x1400161a0]
mov rdx, rax
call rbx
mov rbx, qword [0x140016130]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x131c08
mov dword [rbp - 0x1c], 0x106c1a1c
mov dword [rbp - 0x18], 0x1c6c1e2a
mov word [rbp - 0x14], 0x7332
call fcn.140001180
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014d50]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160e8], rax
mov byte [rbp - 0x10], 0x78
call fcn.140004330
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014c50]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160f0], rax
mov dword [rbp - 0x10], 0x7311651c
call fcn.140002660
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014cb0]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160e0], rax
mov byte [rbp - 0x10], 0x78
call fcn.140004330
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014d30]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x1400160d8], rax
mov dword [rbp - 0x10], 0x321a6611
mov byte [rbp - 0xc], 0x69
call fcn.140003130
mov rcx, qword [0x1400161b0]
mov rdx, rax
call rbx
movdqa xmm0, xmmword [0x140014c20]
lea rcx, [rbp - 0x20]
mov rbx, qword [0x140016130]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x10], 0x4816
mov byte [rbp - 0xe], 0x74
call fcn.140004620
mov rcx, qword [0x1400161b0]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rbp
jmp rax
Function at 0x14000ce60
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r12d, 9
mov dword [rbp - 0x20], 0x37000a
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], r12w
mov dword [rbp - 0x1c], 0x2b0035
mov dword [rbp - 0x18], 0x38002b
mov dword [rbp - 0x14], 0x25004b
mov dword [rbp - 0x10], 0x2b0036
call fcn.140004fd0
mov rcx, rax
call 0x14000ce60
mov qword [0x1400161b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x65
mov dword [rbp - 0x20], 0x37000a
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x2b0035
mov dword [rbp - 0x18], 0x38002b
mov dword [rbp - 0x14], 0x56003a
call fcn.1400022a0
mov rcx, rax
call 0x14000ce60
lea rcx, [rbp - 0x20]
mov qword [0x1400161a8], rax
mov dword [rbp - 0x20], 0x6002f
mov dword [rbp - 0x1c], 0x90003
mov dword [rbp - 0x18], 0x740002
call fcn.140004e60
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000ce60
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000cec2
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000cef0
test al, al
jne 0x14000ced4
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000ce90
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001d80
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov qword [rsp + 0x20], rsi
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140001dc5
mov rcx, qword [rdx]
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140001e76
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], recv
mov byte [rdi], sil
xor r8d, r8d
lea rdx, [0x1400043b0]
mov rcx, rdi
call fcn.140002050
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001e42
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001e3d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001efe
mov rcx, r8
call fcn.14000261c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400025c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + 0x20]
mov edx, dword [rax + 4]
mov dword [rsp + 0x30], edx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov r9d, socket
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea ecx, [r9 - 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x140001ddd
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], recv
lea rax, [rsp + 0x58]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], sil
jne 0x140001ed0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140002050
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140001e08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180c10058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180c101df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180c10089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c1006f
add dl, dl
jne 0x180c10096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c100f6
xor eax, eax
add dl, dl
jne 0x180c100a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c101ad
add dl, dl
jne 0x180c100b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c100c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c100d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c100dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180c100ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180c1007e
mov eax, 1
add dl, dl
jne 0x180c10106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c10113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c100fb
sub eax, ebx
mov ebx, 1
jne 0x180c1014c
mov ecx, 1
add dl, dl
jne 0x180c1012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c1013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c10123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c1007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180c10168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c10175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c1015d
cmp eax, 0x7d00
jae 0x180c1019b
cmp eax, 0x500
jb 0x180c10196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c1007e
cmp eax, 0x7f
ja 0x180c1019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c1007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180c101d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180c1007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002028
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400860c0], 0
je 0x14000204b
mov edx, 1
jmp 0x140002212
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x1400020ae
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x1400020a6
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x1400020a6
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x1400020b8
mov r8, qword [r8]
mov rbx, rdx
jmp 0x140002060
test rax, rax
jne 0x1400020bb
jmp 0x140002212
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x1400860c8]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140002123
call fcn.140001f70
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x140002135
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x140002135
mov r10, rax
jmp 0x1400020e7
mov dword [0x1400860c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400860c8]
test ebp, ebp
je 0x14000219c
lea rdx, [0x1400860c0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002190
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002152
dec ebp
jmp 0x140002145
mov eax, dword [0x1400860cc]
mov r13d, dword [0x1400860dc]
xor edi, edi
lea r15, [0x1400825a0]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140002041
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400021b9
lea rdi, [0x1400860c0]
test r14d, r14d
je 0x140002041
add rdi, 0x10
cmp esi, ebp
je 0x140002041
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140001f98
mov qword [rdi], rax
jmp 0x1400021ee
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002e90
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.140008b10
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.140008b10
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 0x140002f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400880f4]
mov rbx, rcx
test esi, esi
jle 0x140003030
mov rax, qword [0x1400880f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002fd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f30
mov rcx, rbx
call fcn.140003950
mov rdi, rax
test rax, rax
je 0x140003052
mov rax, qword [0x1400880f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400880f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002fce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002fe0
add dword [0x1400880f4], 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 [0x1400880f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e90
nop dword [rax]
xor esi, esi
jmp 0x140002f58
mov rax, qword [0x1400880f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140088160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140088140]
test rbx, rbx
je 0x14000361c
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 0x140003613
test rsi, rsi
je 0x140003613
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400035f8
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 0x140003950
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400039d0
Capabilities:
Parse pe header

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

Function at 0x140003a90
Capabilities:
Parse pe header

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