joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140092e70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d4080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140092f05
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140092f66
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14006d3c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140093021
sub ecx, 1
je 0x140093094
sub ecx, 1
je 0x140092fd0
cmp ecx, 1
je 0x140092fb3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400bd298]
call fcn.14006d3c0
jmp 0x140093094
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140092ba0
test eax, eax
je 0x140093094
jmp 0x140092f3a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140093094
sub rax, rsi
cmp rax, rbp
jae 0x140093094
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14006d540
jmp 0x140093094
cmp r8d, 4
jle 0x140093094
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140093094
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14006d2e0
mov esi, eax
test eax, eax
je 0x140093073
mov edx, 5
mov rcx, rbx
call fcn.140093b60
mov eax, esi
jmp 0x140092f3a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14007bdc0
mov rcx, r14
call fcn.14007c0a0
test eax, eax
je 0x140092f38
mov edx, 5
mov rcx, rbx
call fcn.140093b60
mov eax, Ordinal_46
jmp 0x140092f3a
Function at 0x1400a5e30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400a5e72
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400a5eb9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400a5f12
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400a5ed0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a5f53
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400b8102]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400b8103]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a5f20
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400a6e20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a6e6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a6e6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a6e6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a6e6a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a6e6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a6e6c
xor al, al
add rsp, 0x28
ret
Function at 0x140018a60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10090
call fcn.140042a90
sub rsp, rax
mov rax, qword [0x14005a010]
xor rax, rsp
mov qword [rsp + 0x10080], rax
xor eax, eax
lea rsi, str.PYTHON_FROZEN_MODULES
mov word [rsp + 0x80], ax
lea rbx, [rsp + 0x30]
mov word [rsp + 0x30], ax
mov edi, 0x28
mov dl, 0x50
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140018acd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140018ac0
cmp rcx, 1
jb 0x140018b7a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140018af0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140036068
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140018ab0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140018b76
lea rcx, [rsp + 0x80]
call fcn.14003783c
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140027540
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x140018b51
call fcn.14002b5c8
int3
Function at 0x140027f28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027f72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027f72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027f72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027f72
cmp dword [rcx + 0x84], 0xe
jbe 0x140027f72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140027f74
xor al, al
add rsp, 0x28
ret

Function at 0x14002b928
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002b793
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b793
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b793
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b793
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b793
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b793
cmp dword [rcx + 0xf8], 0
je 0x14002b793
mov ecx, ebx
call fcn.14002b844
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002b620
nop
cmp dword [rbp + 0x20], 0
je 0x14002b7e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002b7ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002b724
Function at 0x14003c564
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003c5eb
mov rsi, rbx
cmp word [rax], bp
je 0x14003c5aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003c594
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003c590
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140039dec
mov rdi, rax
test rax, rax
je 0x14003c5d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400296b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400381bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140040160
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040176
mov al, 1
jmp 0x1400401d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040187
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400401d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003cd08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400401d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400401d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400401d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400401d6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400429a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400429c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400429c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x402ae0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edx, 0x64e487b
mov rbx, rcx
lea rcx, [0x00435fa0]
call fcn.00411750
lea rdi, [rbx + 2]
mov edx, 0x7bb85191
mov rcx, rax
call fcn.00411560
movzx r9d, word [rbx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop dword [rax + rax]
mov rax, qword [r8 + 0x50]
test r9w, r9w
movzx r10d, word [rax]
je 0x402b8d
test r10w, r10w
je 0x402b93
mov r12, rdi
mov edx, r9d
sub r12, rax
jmp 0x402b56
cmp word [rax], 0
je 0x402b8d
movzx ecx, word [rax]
lea esi, [rdx - 0x41]
lea r11d, [rdx + 0x20]
cmp si, 0x1a
cmovb edx, r11d
lea esi, [rcx - 0x41]
lea r11d, [rcx + 0x20]
cmp si, 0x1a
cmovb ecx, r11d
cmp dx, cx
jne 0x402b93
mov rdx, rax
add rax, 2
movzx edx, word [r12 + rdx]
test dx, dx
jne 0x402b50
cmp r10w, r9w
je 0x402c10
mov r8, qword [r8]
cmp rbp, r8
jne 0x402b30
lea rcx, [0x00435f20]
mov edx, 0x5da44499
call fcn.00411750
lea rsi, [rsp + 0x30]
mov edx, 0x142d152b
mov rcx, rax
call fcn.00411560
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x0043b310]
xor edx, edx
xor ecx, ecx
mov r8, rsi
lea r9, [rsp + 0x28]
call qword [0x0043b308]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x402c14
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [r8 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x407010
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00417ea0]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x4070f0
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, section..rdata
lea rdx, [0x0041a01b]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x0041a01b]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x40708a
cmp byte [rsi + rax + 0x10], 0
jne 0x4070d0
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40708a
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x40706a
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0041a001]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00417e18
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40708a
add ebx, eax
jmp 0x407062
lea r8, section..rdata
mov rcx, rax
lea rdx, [0x0041a01b]
call sub.msvcrt.dll_fprintf
lea rsi, [0x0041a01b]
mov ebx, eax
nop
test ebx, ebx
jns 0x40708a
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x407149
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40708a
add ebx, 1
test ebx, ebx
jns 0x40708a
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x407122
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40708a
add ebx, eax
jmp 0x407110

Function at 0x40f7e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00417ea0]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.00417e18
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x40f820
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x40f83f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00417e18

Function at 0x40f860
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00417ea0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.00417e18
mov ecx, 1
call sub.msvcrt.dll_exit
nop
Function at 0x411560
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rdx
je 0x41172f
cmp qword [rcx + 8], 0
js 0x411740
call fcn.00411370
test rax, rax
je 0x41172f
mov r10, qword [rax]
test r10, r10
jle 0x411729
mov r11, rbx
mov r9, rbx
mov rdx, rbx
lea rcx, [r10 - 1]
sar r11, 8
sar r9, 0x10
sar rdx, 0x18
cmp rcx, 0xe
jbe 0x411748
movd xmm1, r11d
movd xmm0, r9d
mov r8, r10
punpcklbw xmm1, xmm1
punpcklbw xmm0, xmm0
punpcklwd xmm1, xmm1
punpcklwd xmm0, xmm0
pshufd xmm2, xmm1, 0
and r8, 0xfffffffffffffff0
pshufd xmm1, xmm0, 0
movd xmm0, ebx
pxor xmm1, xmm2
punpcklbw xmm0, xmm0
mov rcx, rax
punpcklwd xmm0, xmm0
add r8, rax
pshufd xmm2, xmm0, 0
movd xmm0, edx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pxor xmm0, xmm2
pxor xmm1, xmm0
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx + 0x10]
add rcx, 0x10
pxor xmm0, xmm1
movups xmmword [rcx], xmm0
cmp rcx, r8
jne 0x411620
mov rcx, r10
and rcx, 0xfffffffffffffff0
cmp rcx, r10
je 0x411729
lea r8, [rcx + 1]
xor r9d, r11d
xor r9d, ebx
xor edx, r9d
xor byte [rax + rcx + 0x10], dl
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 2]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 3]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 4]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 5]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 6]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 7]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 8]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 9]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xa]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xb]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xc]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xd]
cmp r10, r8
jle 0x411729
xor byte [rax + r8 + 0x10], dl
add rcx, 0xe
cmp r10, rcx
jle 0x411729
xor byte [rax + rcx + 0x10], dl
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rcx
jmp 0x41158a
xor ecx, ecx
jmp 0x411645

Function at 0x411750
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rdx
je 0x4117b1
cmp qword [rcx + 8], 0
js 0x4117c0
call fcn.00411370
test rax, rax
je 0x4117b1
mov r10, qword [rax]
test r10, r10
jle 0x4117ab
mov r8, rax
add r10, rbx
sub r8, rbx
nop
mov rdx, rbx
mov r9, rbx
sar rdx, 8
sar r9, 0x10
xor edx, ebx
xor edx, r9d
mov r9, rbx
sar r9, 0x18
xor edx, r9d
xor byte [r8 + rbx + 0x10], dl
add rbx, 1
cmp rbx, r10
jne 0x411780
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rcx
jmp 0x41176e
Function at 0x4117d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rcx, qword [0x004385d0]
mov ebx, edx
mov edx, 0x64e487b
lea rbp, [rdi + 2]
call fcn.00411750
mov edx, 0x7bb85191
mov rcx, rax
call fcn.00411560
movzx r9d, word [rdi]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea r12, [rax + 0x20]
nop dword [rax]
mov rax, qword [r8 + 0x50]
test r9w, r9w
movzx r10d, word [rax]
je 0x41187e
test r10w, r10w
je 0x411884
mov r13, rbp
mov edx, r9d
sub r13, rax
jmp 0x411846
cmp word [rax], 0
je 0x41187e
movzx ecx, word [rax]
lea esi, [rdx - 0x41]
lea r11d, [rdx + 0x20]
cmp si, 0x1a
cmovb edx, r11d
lea esi, [rcx - 0x41]
lea r11d, [rcx + 0x20]
cmp si, 0x1a
cmovb ecx, r11d
cmp dx, cx
jne 0x411884
mov rdx, rax
add rax, 2
movzx edx, word [r13 + rdx]
test dx, dx
jne 0x411840
cmp r10w, r9w
je 0x411900
mov r8, qword [r8]
cmp r12, r8
jne 0x411820
xor esi, esi
test ebx, ebx
je 0x411904
mov rcx, qword [0x004385e0]
lea rbx, [rsp + 0x30]
mov edx, 0x5da44499
call fcn.00411750
mov edx, 0x142d152b
mov rcx, rax
call fcn.00411560
mov rax, qword [0x00438450]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x00438440]
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
mov r8, rbx
call qword [rax]
test eax, eax
jne 0x411904
mov rsi, qword [rsp + 0x28]
jmp 0x411904
mov rsi, qword [r8 + 0x20]
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x416e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00450524]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x416fa8
mov rax, qword [0x00450528]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x416e6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x416ef5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x416e50
mov rcx, rbx
call fcn.00417ac0
test rax, rax
mov r12, rax
je 0x416fdd
mov rax, qword [0x00450528]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00417bf0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00450528]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x416fc0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x416eee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x416f50
add dword [0x00450524], 1
cmp edi, 8
jae 0x416f23
test dil, 4
jne 0x416f94
test edi, edi
je 0x416f18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x416faf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x416f18
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x416f3c
jmp 0x416f18
add rsi, qword [0x00450528]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x416eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00418070
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x416f18
xor esi, esi
jmp 0x416e77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x416f18
mov rax, qword [0x00450528]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00418070
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00418070
nop
nop dword [rax]

Function at 0x417730
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00450800]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004507e0]
test rbx, rbx
je 0x417784
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41777b
test rsi, rsi
je 0x41777b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x417760
lea rcx, [0x00450800]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x417ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00438760]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x417b2d
mov rcx, r8
call fcn.004179a0
test eax, eax
je 0x417b2d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x417b2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x417b24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x417b2f
add rax, 0x28
cmp rax, r9
jne 0x417b10
xor eax, eax
add rsp, 0x28
ret

Function at 0x418070
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00417ea0
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.00417ea0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530