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

Disassembly:
test r8, r8
je 0x140126c4a
push rbx
mov eax, 0xd0
call fcn.14015cbf0
sub rsp, rax
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rbp
mov rbx, rdx
mov qword [rsp + 0xf0], rsi
lea rbp, [r8 - 1]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xc8], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [rsp + 0xc0], r15
inc rbp
lea r15, [rcx + 0x14]
nop word [rax + rax]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.14011ef30
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14011ec80
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14011b730
mov rcx, r15
call fcn.14011ef30
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14011ec80
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14011b730
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor r8d, edi
xor edi, dword [rsp + 0x28]
xor edx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
mov byte [r14], dil
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
shr edi, 0x18
mov byte [r14 + 3], dil
mov byte [r14 + 4], dl
mov byte [r14 + 5], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
shr edx, 0x18
mov byte [r14 + 7], dl
mov byte [r15], r8b
mov byte [r15 + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [r15 + 2], al
shr r8d, 0x18
mov byte [r15 + 3], r8b
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x140126ac0
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14015c600
add rsp, 0xd0
pop rbx
ret
Function at 0x140147040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, 0x20
call fcn.14015cbf0
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.140146f30
test rax, rax
je 0x140147109
cmp dword [rsp + 0x38], 0
jg 0x140147109
cmp dword [rsp + 0x3c], 0
jg 0x140147109
mov rcx, qword [rbx + 0x98]
movzx eax, word [rcx + 0x1bc]
add ax, ax
mov word [rcx + 0x1bc], ax
mov rax, qword [rbx + 0x98]
cmp word [rax + 0x1bc], 0x3c
jbe 0x1401470b0
mov ecx, 0x3c
mov word [rax + 0x1bc], cx
mov rcx, rbx
call fcn.140147430
mov rcx, rbx
call fcn.140146b10
test eax, eax
jns 0x1401470cd
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x98]
inc dword [rax + 0x1a8]
mov rax, qword [rbx + 0x98]
cmp dword [rax + 0x1a8], 2
jbe 0x1401470f4
mov dword [rax + 0x1a8], 1
mov rcx, rbx
call fcn.140147430
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14014da00
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14014d600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x30
call fcn.14015cbf0
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x14014d648
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0x153
lea ecx, [rax - 0x1c]
lea r8d, [rax + 0x14]
call fcn.140099a60
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.140147120
test eax, eax
je 0x14014d672
mov rcx, rbx
call fcn.140138bc0
mov rcx, rbx
test eax, eax
jne 0x14014d67f
call fcn.140133ff0
mov rcx, rax
mov edx, 1
call fcn.140096810
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140147040
Function at 0x140157550
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc0
call fcn.14015cbf0
sub rsp, rax
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [rdx + 8]
xor r12d, r12d
mov dword [rsp + 0x20], eax
mov r13, rdx
sub eax, r8d
mov edi, r8d
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov ebp, r12d
mov dword [rsp + 0x24], eax
cmp dword [rdx + 0xc], r8d
jae 0x1401575c0
mov r8d, 0x4d4
lea rdx, [0x1401cb030]
lea rcx, str.assertion_failed:_rec__orig_len___md_size
call fcn.1400a1e70
cmp edi, 0x40
jbe 0x1401575de
mov r8d, 0x4d5
lea rdx, [0x1401cb030]
lea rcx, str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.1400a1e70
mov ecx, dword [r13 + 0xc]
lea rax, [rsp + 0x30]
neg rax
lea r14, [rsp + 0x30]
and eax, 0x3f
add r14, rax
lea eax, [rdi + 0x100]
cmp ecx, eax
jbe 0x140157609
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov r8, rdi
xor edx, edx
mov rcx, r14
mov ebx, r12d
mov r15, rdi
call fcn.14015dbb0
mov r10d, dword [r13 + 0xc]
mov r9d, r12d
cmp ebp, r10d
jae 0x1401576b6
mov esi, dword [rsp + 0x20]
mov r11d, esi
mov r15, qword [r13 + 0x18]
neg r11d
mov r13d, dword [rsp + 0x24]
nop
mov eax, ebp
lea ecx, [r11 + rbp]
xor ecx, esi
xor eax, r13d
lea r8d, [rax - 1]
not eax
shr eax, 0x1f
shr r8d, 0x1f
and r8d, eax
mov eax, ebp
xor eax, esi
neg r8d
or ecx, eax
or r12d, r8d
xor ecx, ebp
mov eax, ebp
shr ecx, 0x1f
and r8d, r9d
neg ecx
or ebx, r8d
and r12d, ecx
inc ebp
movzx edx, byte [rax + r15]
movzx eax, r12b
mov ecx, r9d
and al, dl
inc r9d
or byte [rcx + r14], al
mov ecx, r9d
sub ecx, edi
mov eax, edi
xor ecx, edi
xor eax, r9d
or ecx, eax
xor ecx, r9d
shr ecx, 0x1f
neg ecx
and r9d, ecx
cmp ebp, r10d
jb 0x140157640
mov rsi, qword [rsp + 0x28]
mov r15, rdi
test edi, edi
je 0x1401576f6
nop word [rax + rax]
mov ecx, ebx
lea rsi, [rsi + 1]
mov eax, ebx
inc ebx
xor rax, 0x20
movzx eax, byte [rax + r14]
movzx eax, byte [rcx + r14]
mov ecx, ebx
sub ecx, edi
mov byte [rsi - 1], al
xor ecx, edi
mov eax, edi
xor eax, ebx
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
sub r15, 1
jne 0x1401576c0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14015c600
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401581c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x20
call fcn.14015cbf0
sub rsp, rax
mov rax, qword [rcx + 8]
lea esi, [r9 + 1]
mov rbx, rdx
mov r10, rcx
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x68], 1
je 0x14015821e
mov edx, dword [rdx + 8]
lea eax, [rsi + r8]
cmp eax, edx
jbe 0x140158207
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov eax, r8d
sub edx, r8d
add qword [rbx + 0x18], rax
add qword [rbx + 0x20], rax
sub dword [rbx + 0xc], r8d
mov dword [rbx + 8], edx
jmp 0x140158223
cmp esi, dword [rdx + 8]
ja 0x1401581fa
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
dec ecx
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax]
mov rcx, qword [r10 + 0x110]
call fcn.140132050
mov rcx, rax
call fcn.140128220
bt eax, 0x15
jae 0x14015826c
or eax, 0xffffffff
sub eax, edi
mov rdi, qword [rsp + 0x38]
add dword [rbx + 8], eax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov r10d, dword [rbx + 8]
lea ecx, [rdi + rsi]
mov esi, 0x100
mov r8d, r10d
sub r8d, ecx
mov eax, r10d
xor r8d, ecx
xor eax, ecx
or r8d, eax
xor r8d, r10d
shr r8d, 0x1f
dec r8d
cmp r10d, esi
cmovb esi, r10d
xor r9d, r9d
test esi, esi
je 0x1401582f0
mov r11d, edi
mov qword [rsp + 0x30], rbp
mov rbp, qword [rbx + 0x18]
shr r11d, 0x1f
mov eax, r9d
mov ecx, edi
sub ecx, r9d
shr eax, 0x1f
shr ecx, 0x1f
xor cl, al
xor al, r11b
or cl, al
mov eax, r10d
sub eax, r9d
xor cl, r11b
dec cl
dec eax
movzx edx, cl
inc r9d
movzx ecx, byte [rax + rbp]
xor ecx, edi
and edx, ecx
not edx
and r8d, edx
cmp r9d, esi
jb 0x1401582b1
mov rbp, qword [rsp + 0x30]
not r8d
movzx eax, r8b
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x38]
neg ecx
and eax, ecx
sub r10d, eax
mov eax, ecx
and eax, 1
mov dword [rbx + 8], r10d
mov rbx, qword [rsp + 0x40]
not ecx
or eax, ecx
add rsp, 0x20
pop rsi
ret
Function at 0x14015ecf8
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14015eacc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14015eacc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14015eacc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14015eacc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14015eacc
cmp dword [rcx + 0x84], 0xe
jbe 0x14015eacc
cmp dword [rcx + 0xf8], esi
je 0x14015eacc
mov ecx, r14d
call fcn.14015ec14
mov ecx, 2
call fcn.14016fd58
nop
cmp byte [0x140202160], 0
jne 0x14015eb96
mov r15d, 1
mov eax, r15d
xchg dword [0x140202150], eax
test ebx, ebx
jne 0x14015eb3f
mov rdi, qword [0x1401ff510]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140202158]
cmp rcx, rax
je 0x14015eb36
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002c10]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140202408]
jmp 0x14015eb4b
cmp ebx, r15d
jne 0x14015eb51
lea rcx, [0x140202420]
call fcn.14016f9ac
nop
test ebx, ebx
jne 0x14015eb68
lea rdx, [0x140188ae8]
lea rcx, [0x140188ac8]
call fcn.14016f3ec
lea rdx, [0x140188af8]
lea rcx, [0x140188af0]
call fcn.14016f3ec
movzx eax, byte [0x140202160]
test esi, esi
cmove eax, r15d
mov byte [0x140202160], al
jmp 0x14015eb96
mov ecx, 2
call fcn.14016fdac
test esi, esi
jne 0x14015ebad
mov ecx, r14d
call fcn.14015ebc8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14015ea5c

Function at 0x14016b1f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14016b210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016362c
or eax, 0xffffffff
jmp 0x14016b212
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401745b8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140174458
call fcn.14016369c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401631bc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140174440
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140174440
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14017448a
lock or dword [rax + 0x14], 0x10
jmp 0x140174440
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401744a7
mov rcx, qword [rbp + 0x10]
call fcn.14017aa54
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14016e380
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140170e20
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401744fe
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140174440
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14017456a
mov rcx, qword [rbp + 0x10]
call fcn.14016e380
cmp eax, 0xffffffff
je 0x140174551
mov rcx, qword [rbp + 0x10]
call fcn.14016e380
cmp eax, 0xfffffffe
je 0x140174551
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14016e380
movsxd rdi, eax
lea rsi, [0x140202800]
mov rcx, rbx
sar rdi, 6
call fcn.14016e380
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140174558
lea rax, [0x1401ff820]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14017456a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401745a0
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14017459c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14017459c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140174443
jmp 0x140174410

Function at 0x140174604
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401745e1
call fcn.14016369c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401631bc
or eax, 0xffffffff
jmp 0x1401745fe
sub dword [rcx + 0x10], 1
jns 0x1401745f0
add rsp, 0x28
jmp fcn.1401745b8
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401745c0
Function at 0x18000dbe8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000dc18
xor eax, eax
jmp 0x18000dcdb
mov rbp, rbx
cmp word [rax], si
je 0x18000dc3d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000dc24
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000dc20
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000db38
movsxd r14, eax
test eax, eax
jne 0x18000dc7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000dc11
mov rcx, r14
call fcn.18000ead4
mov rdi, rax
test rax, rax
jne 0x18000dc94
xor ecx, ecx
call fcn.18000c47c
jmp 0x18000dc70
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000db38
test eax, eax
jne 0x18000dcc5
mov rcx, rdi
call fcn.18000c47c
jmp 0x18000dccf
xor ecx, ecx
call fcn.18000c47c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180016b8c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180016c04
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180016c04
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180016c04
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180016bf8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180016c16
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180016be6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180016c06

Function at 0x1800170d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800170f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800170f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x6db615a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6db825e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6db61728
mov rax, qword [0x6db825e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6db615ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6db61675
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6db615d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6db6175d
mov rax, qword [0x6db825e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6db825e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6db61740
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6db6166e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6db616d0
add dword [0x6db825e4], 1
cmp edi, 8
jae 0x6db616a3
test dil, 4
jne 0x6db61714
test edi, edi
je 0x6db61698
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6db6172f
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 0x6db61698
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 0x6db616bc
jmp 0x6db61698
add rsi, qword [0x6db825e8]
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 0x6db6166e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6db61698
xor esi, esi
jmp 0x6db615f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6db61698
mov rax, qword [0x6db825e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6db61eb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6db828c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6db828a0]
test rbx, rbx
je 0x6db61f04
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 0x6db61efb
test rsi, rsi
je 0x6db61efb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6db61ee0
lea rcx, [0x6db828c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6db62140
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6db62150
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6db62160
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6db621a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6db62198
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6db621a3
add rax, 0x28
cmp rax, r9
jne 0x6db62184
xor eax, eax
ret

Function at 0x6db62240
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db7f1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6db622ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db622ad
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 0x6db622ad
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 0x6db622a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db622af
add rax, 0x28
cmp rax, r9
jne 0x6db62290
xor eax, eax
add rsp, 0x28
ret

Function at 0x6db623b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db7f1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6db623d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db623c8
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 0x6db6242d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6db62424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db62434
add rax, 0x28
cmp rax, r9
jne 0x6db62410
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6db62450
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6db7f1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6db624be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db624be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6db624be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6db624be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6db624b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6db624c5
add rcx, 0x28
cmp rcx, rax
jne 0x6db624a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6db624d8
jmp 0x6db624be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6db624e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6db624be
test r9d, r9d
jg 0x6db624d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6db62820
Capabilities:
Write file on windows

Disassembly:
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop