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

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140038c37
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140039244
lea rdx, [0x1400a3db0]
lea rcx, [rsp + 0x20]
call fcn.140053664
int3

Function at 0x1400434c0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400aa1f0]
xor edx, edx
jmp fcn.140038c24

Function at 0x140043e58
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400aa1f0]
jmp fcn.140038c24

Function at 0x14004faa8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14004fb64]
mov r9, qword [r9 + 8]
jmp fcn.140040e78

Function at 0x14004fb3c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14004fb74]
mov r9, qword [r9 + 8]
jmp fcn.140040e78

Function at 0x14005ab4c
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 0x14005a9df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005a9df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005a9df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005a9df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005a9df
cmp dword [rcx + 0x84], 0xe
jbe 0x14005a9df
cmp dword [rcx + 0xf8], 0
je 0x14005a9df
mov ecx, ebx
call fcn.14005aa80
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.14005a870
cmp dword [rbp + 0x20], 0
je 0x14005aa2c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005aa34
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005a978
Function at 0x140019c80
Capabilities:
Get file size

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

Function at 0x141ace058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141ace1df
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 0x141ace089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ace06f
add dl, dl
jne 0x141ace096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ace0f6
xor eax, eax
add dl, dl
jne 0x141ace0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ace1ad
add dl, dl
jne 0x141ace0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141ace0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141ace07e
mov eax, 1
add dl, dl
jne 0x141ace106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ace113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ace0fb
sub eax, ebx
mov ebx, 1
jne 0x141ace14c
mov ecx, 1
add dl, dl
jne 0x141ace12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ace13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ace123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ace07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141ace168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ace175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ace15d
cmp eax, 0x7d00
jae 0x141ace19b
cmp eax, 0x500
jb 0x141ace196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ace07e
cmp eax, 0x7f
ja 0x141ace19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ace07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141ace1d2
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 0x141ace07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140147000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x401cd0
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 0x401cef
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 sub.msvcrt.dll_fflush

Function at 0x401d10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00413c70]
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 sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x402460
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00413c70]
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 sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x404070
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rdx
je 0x4040e1
cmp qword [rcx + 8], 0
js 0x4040f0
call fcn.00403e80
test rax, rax
je 0x4040e1
mov r10, qword [rax]
test r10, r10
jle 0x4040db
mov r9, rax
add r10, rbx
sub r9, rbx
nop
mov r8, rbx
mov rdx, rbx
sar r8, 8
sar rdx, 0x10
xor r8d, ebx
and edx, 0xffffffee
and r8d, 0xffffffee
xor r8b, byte [r9 + rbx + 0x10]
xor r8d, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor r8d, edx
mov byte [r9 + rbx + 0x10], r8b
add rbx, 1
cmp rbx, r10
jne 0x4040a0
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rcx
jmp 0x40408e
Function at 0x404b60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, rcx
mov rcx, qword [0x00d5d890]
mov ebp, edx
mov edx, 0x6d30a68
lea rbx, [r14 + 2]
call fcn.00404070
mov edx, 0x7a29c3a8
mov rcx, rax
call fcn.004042c0
mov rdi, qword [0x00d5d8a0]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rsi, [rax + 0x20]
nop dword [rax]
nop word cs:[rax + rax]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x404bf0
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x404d70
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x404bd0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x404d92
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x404da0
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x404c10
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x404ca5
test r12w, r12w
je 0x404dc0
mov r10, rbx
mov eax, r15d
sub r10, rcx
jmp 0x404c66
cmp word [rcx], 0
je 0x404ca5
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x404dc0
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x404c60
mov edx, 0x14f83e68
mov rcx, rdi
call fcn.00404070
mov edx, 0x1324dfa8
mov rcx, rax
call fcn.004042c0
cmp r15w, r12w
je 0x404de3
mov r13, qword [r13]
cmp rsi, r13
jne 0x404bc0
test ebp, ebp
je 0x404df8
mov rcx, qword [0x00d5d8c0]
lea rbx, [rsp + 0x30]
mov edx, 0x445f0f68
call fcn.00404070
mov edx, 0xc05b2a8
mov rcx, rax
call fcn.004042c0
mov rax, qword [0x00d5d740]
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x00d5d720]
mov r8, rbx
xor edx, edx
lea r9, [rsp + 0x28]
xor ecx, ecx
call qword [rax]
mov rcx, qword [0x00d5d8d0]
mov edx, 0x9a540a8
mov ebx, eax
call fcn.00404070
mov edx, 0x14f83e68
mov rcx, rax
call fcn.004042c0
test ebx, ebx
jne 0x404e16
mov rax, qword [rsp + 0x28]
jmp 0x404de7
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x404bd0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x404c02
movzx r15d, word [r14]
jmp 0x404ca5
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x404c10
jmp 0x404c36
mov rcx, qword [0x00d5d8a0]
mov edx, 0x14f83e68
call fcn.00404070
mov edx, 0x1324dfa8
mov rcx, rax
call fcn.004042c0
jmp 0x404cc9
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x00d5d8b0]
mov edx, 0x6aca3da8
call fcn.00404070
mov edx, 0x4b0c1568
mov rcx, rax
call fcn.004042c0
xor eax, eax
jmp 0x404de7
Function at 0x40aaa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x148
mov byte [rsp + 0x2f], 1
movzx eax, byte [rsp + 0x2f]
mov rbx, rcx
mov qword [rsp + 0x168], rdx
test al, al
jne 0x40aad0
add rsp, 0x148
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.00413c70]
mov rdx, qword [rsp + 0x168]
mov rcx, rbx
mov rsi, rax
mov r9, rax
mov r8, rdx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_fflush
jmp 0x40aac2

Function at 0x40f770
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00413c70]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x40f850
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, [0x00d5b1b8]
lea rdx, [0x00d5b1b9]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x00d5b1b9]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x40f7ea
cmp byte [rsi + rax + 0x10], 0
jne 0x40f830
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40f7ea
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x40f7ca
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x00d5b1bc]
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 sub.msvcrt.dll_fflush
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40f7ea
add ebx, eax
jmp 0x40f7c2
lea r8, [0x00d5b1b8]
mov rcx, rax
lea rdx, [0x00d5b1b9]
call sub.msvcrt.dll_fprintf
lea rsi, [0x00d5b1b9]
mov ebx, eax
nop
test ebx, ebx
jns 0x40f7ea
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x40f8a9
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40f7ea
add ebx, 1
test ebx, ebx
jns 0x40f7ea
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x40f882
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40f7ea
add ebx, eax
jmp 0x40f870
Function at 0x411590
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x00d5c940]
mov edx, 0x6d30a68
mov r13, rcx
lea rcx, [0x00d5c740]
call fcn.00404070
lea rdi, [r13 + 2]
mov edx, 0x7a29c3a8
mov rcx, rax
call fcn.004042c0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x411610
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x411790
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x4115f0
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
je 0x4117b1
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x4117c0
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x411630
movzx r14d, word [r13]
movzx ebx, word [rcx]
test r14w, r14w
je 0x4116c5
test bx, bx
je 0x4117e0
mov r10, rdi
mov eax, r14d
sub r10, rcx
jmp 0x411686
cmp word [rcx], 0
je 0x4116c5
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x4117e0
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x411680
mov edx, 0x14f83e68
mov rcx, rsi
call fcn.00404070
mov edx, 0x1324dfa8
mov rcx, rax
call fcn.004042c0
cmp r14w, bx
je 0x4117ff
mov r12, qword [r12]
cmp rbp, r12
jne 0x4115e0
lea rcx, [0x00d5c840]
mov edx, 0x445f0f68
call fcn.00404070
lea rbx, [rsp + 0x30]
mov edx, 0xc05b2a8
mov rcx, rax
call fcn.004042c0
mov rcx, rbx
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00d605e0]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x00d605d8]
mov edx, 0x9a540a8
lea rcx, [0x00d5c800]
mov ebx, eax
call fcn.00404070
mov edx, 0x14f83e68
mov rcx, rax
call fcn.004042c0
xor eax, eax
test ebx, ebx
jne 0x411804
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x4115f0
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
jne 0x411621
movzx r14d, word [r13]
jmp 0x4116c5
add rax, 2
movzx ebx, word [rax]
test bx, bx
jne 0x411630
jmp 0x411650
mov rcx, rsi
mov edx, 0x14f83e68
call fcn.00404070
mov edx, 0x1324dfa8
mov rcx, rax
call fcn.004042c0
jmp 0x4116e9
mov rax, qword [r12 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x412bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00d755c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x412d78
mov rax, qword [0x00d755c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x412c3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x412cc5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x412c20
mov rcx, rbx
call fcn.00413890
test rax, rax
mov r12, rax
je 0x412dad
mov rax, qword [0x00d755c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004139c0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00d755c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x412d90
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x412cbe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x412d20
add dword [0x00d755c4], 1
cmp edi, 8
jae 0x412cf3
test dil, 4
jne 0x412d64
test edi, edi
je 0x412ce8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x412d7f
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 0x412ce8
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 0x412d0c
jmp 0x412ce8
add rsi, qword [0x00d755c8]
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 0x412cbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00417cd0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x412ce8
xor esi, esi
jmp 0x412c47
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x412ce8
mov rax, qword [0x00d755c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00417cd0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00417cd0
nop
nop dword [rax]

Function at 0x413500
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00d758a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00d75880]
test rbx, rbx
je 0x413554
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 0x41354b
test rsi, rsi
je 0x41354b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x413530
lea rcx, [0x00d758a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x413890
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00d5d9c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4138fd
mov rcx, r8
call fcn.00413770
test eax, eax
je 0x4138fd
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 0x4138fd
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 0x4138f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4138ff
add rax, 0x28
cmp rax, r9
jne 0x4138e0
xor eax, eax
add rsp, 0x28
ret

Function at 0x417cd0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__onexit
test rax, rax
sete al
movzx eax, al
neg eax
add rsp, 0x28
ret
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.00413c70
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.00413c70
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