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

Disassembly:
mov qword [rsp + 0x10], rdx
push r14
sub rsp, 0x40
mov r14, rdx
test rcx, rcx
je 0x140003860
test rdx, rdx
je 0x140003860
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
call fcn.140007ef0
mov rdi, 0xffffffffffffffff
mov rbx, rax
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400036e0
inc rcx
call fcn.1400094c8
mov r13, rax
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140003700
inc r8
xor edx, edx
mov rcx, r13
call fcn.14000b020
xor esi, esi
mov rax, rdi
mov r12d, esi
nop
inc rax
cmp byte [rbx + rax], sil
jne 0x140003720
test eax, eax
jle 0x14000378f
mov qword [rsp + 0x60], rbp
mov r14, r13
mov qword [rsp + 0x20], r15
mov r15, rbx
nop dword [rax]
movzx esi, byte [r15]
mov ecx, esi
mov ebp, esi
call fcn.1400126ec
test eax, eax
jne 0x14000375c
mov ecx, esi
call fcn.140012768
test eax, eax
je 0x140003762
mov byte [r14], sil
inc r14
inc r12d
mov rax, rdi
inc r15
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140003770
cmp r12d, eax
jl 0x140003740
mov r14, qword [rsp + 0x58]
xor esi, esi
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x30]
mov rdx, rdi
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140003797
inc rdx
mov rcx, r13
call fcn.140012698
nop dword [rax + rax]
inc rdi
cmp byte [rdi + r13], 0
jne 0x1400037b0
test r13, r13
je 0x14000382c
mov ecx, 0xffff
test edi, edi
je 0x140003829
mov r9, r13
mov r10d, edi
mov r11d, 0x1021
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
mov r8d, 8
shl ax, 8
xor ax, cx
nop dword [rax]
nop word [rax + rax]
movzx edx, ax
movzx ecx, ax
add dx, dx
movzx eax, dx
xor ax, r11w
test cx, cx
cmovns ax, dx
sub r8, 1
jne 0x140003800
inc r9
movzx ecx, ax
sub r10, 1
jne 0x1400037e0
movzx esi, cx
mov rcx, r13
mov word [r14], si
call fcn.140008ef4
mov rcx, rbx
call fcn.140008ef4
mov r13, qword [rsp + 0x28]
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
add rsp, 0x40
pop r14
ret
Function at 0x140005130
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r14, r9
mov rbp, r8
mov rsi, rdx
test rdx, rdx
je 0x1400052fd
test r8, r8
je 0x1400052fd
mov r15, qword [rax + 0x28]
mov rdx, qword [r15]
lea rcx, [rdx - 0x18]
mov rbx, qword [r9]
sub rbx, 0x18
mov rdi, 0xffffffffffffffff
cmp rcx, rbx
je 0x1400051d5
mov eax, dword [rbx + 0x10]
shr eax, 0x1f
test al, al
jne 0x1400051c9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400051c9
call fcn.140001790
mov r13, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400051c0
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
nop
lea rax, [r13 + 0x18]
mov qword [r14], rax
jmp 0x1400051d5
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.140002d50
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140005225
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_SetLastError]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140005220
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x140005333
mov dword [rsp + 0x80], 0x1000
mov ecx, 0x1000
call fcn.1400094c8
mov rsi, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test ebp, ebp
jne 0x1400052cd
mov eax, dword [rsp + 0x30]
cmp eax, 1
jne 0x1400052af
test rsi, rsi
je 0x14000529a
mov rbx, rdi
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140005290
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call fcn.140002d50
mov ebx, 1
jmp 0x1400052d5
cmp eax, 4
jne 0x1400052d5
mov r8d, dword [rsi]
lea rdx, [0x14002ac60]
mov rcx, r14
call fcn.1400033b0
mov ebx, 1
jmp 0x1400052d5
mov ecx, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rcx, rsi
call fcn.140008ef4
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400052f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, ebx
jmp 0x140005335
mov ecx, 0x57
call qword [sym.imp.KERNEL32.DLL_SetLastError]
nop
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax]
sub rdx, 0x18
mov rdi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140005333
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140005350
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
sub rsp, 0x40
mov rsi, r9
test r9, r9
je 0x14000546f
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov dword [r9], ebx
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400053b5
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rsi
ret
mov qword [rsp + 0x38], rbp
mov ecx, 0x1000
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x70], 0x1000
call fcn.1400094c8
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x60]
mov rdi, rax
lea rdx, str.MHz
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebp, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x140005448
mov eax, dword [rsp + 0x60]
cmp eax, 1
jne 0x140005438
movzx ecx, word [rdi]
call fcn.140012768
test eax, eax
je 0x140005450
xor edx, edx
lea r8d, [rbp + 0xa]
mov rcx, rdi
call fcn.140011a18
mov dword [rsi], eax
lea ebx, [rbp + 1]
jmp 0x140005450
cmp eax, 4
jne 0x140005450
mov eax, dword [rdi]
mov ebx, 1
mov dword [rsi], eax
jmp 0x140005450
mov ecx, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rcx, rdi
call fcn.140008ef4
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
pop rsi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
add rsp, 0x40
pop rsi
ret
Function at 0x1400054b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14000b020
xor edi, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov rbx, rax
lea edx, [rdi + 1]
lea r8d, [rdi + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
test rax, rax
je 0x1400055a4
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rbx, rax
test rax, rax
je 0x140005597
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
test rax, rax
je 0x140005597
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [0x14002ac68]
mov rcx, rax
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140005597
cmp dword [rsp + 0x48], edi
jbe 0x140005597
mov rax, qword [rsp + 0x50]
movzx r9d, word [rax + 0xa]
movzx edx, word [rax + 8]
movzx ecx, word [rax + 0xe]
movzx eax, word [rax + 0xc]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r8, str._d._d._d._d
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140001030
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeResource]
test edi, edi
jne 0x1400055bb
lea r8, str.UNKNOWN
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140001030
nop
call fcn.1400011c0
mov rcx, rax
test rax, rax
je 0x140005731
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rcx, str.11:26:32
mov qword [rsp + 0x30], rcx
lea rcx, str.Apr_18_2023
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x14002ac70]
lea r8, [rsp + 0x70]
lea rdx, str.DMLICENSE
lea rcx, str._n_s_v_s__s__s_Built__s__s__n
call fcn.140001c70
lea rcx, [0x14002ac9e]
call fcn.140007f90
mov rbx, rax
call fcn.1400011c0
mov rcx, rax
test rax, rax
je 0x140005726
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r8, str.DMLICENSE
lea rdx, str._s__c__Data_Synergy_UK_Ltd
lea rcx, [rsp + 0x40]
call fcn.1400033b0
lea rcx, [rsp + 0x40]
cmp ebx, 0x7e5
jbe 0x140005682
mov r9d, ebx
mov r8d, 0x7e5
lea rdx, str.__u__u
call fcn.140001970
jmp 0x140005691
mov r8d, ebx
lea rdx, [0x14002ad28]
call fcn.140001970
lea rdx, str.._Web:_www.forensicinternals.com
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400056a2
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400016a0
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, str._s_n_n
call fcn.140001c70
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400056e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140005705
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008ed0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400010b0
nop
mov ecx, 0x80004005
call fcn.1400010b0
int3
Function at 0x140008a00
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x40], 0
call fcn.1400011c0
mov rcx, rax
test rax, rax
je 0x140008b61
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov ebp, 1
mov dword [rsp + 0x40], ebp
lea r9d, [rbp + 3]
lea r8, [rsp + 0x44]
mov edx, 0x20000021
mov ecx, 0x400
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov esi, dword [rsp + 0x44]
test eax, eax
cmove esi, ebp
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea edx, [rbp + 0x1c]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x140008abd
lea r8, [0x14002b4cc]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140001030
lea r9, [rsp + 0x60]
test esi, esi
je 0x140008b0e
movzx ecx, word [rbx + 2]
cmp esi, 2
je 0x140008aeb
movzx eax, word [rbx]
movzx r8d, word [rbx + 6]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
jmp 0x140008b2c
movzx eax, word [rbx + 6]
movzx r8d, word [rbx]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rdx, str._.4d_s_.2d_s_.2d
jmp 0x140008b33
movzx ecx, word [rbx]
movzx edx, word [rbx + 6]
movzx r8d, word [rbx + 2]
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
lea rdx, [0x14002b4d0]
mov rcx, rdi
call fcn.1400033b0
mov rax, rdi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140008ed0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400010b0
int3

Function at 0x140013d00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013a64
Function at 0x140018498
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140018475
call fcn.140011dfc
mov dword [rax], 0x16
call fcn.140011c54
or eax, 0xffffffff
jmp 0x140018492
sub dword [rcx + 0x10], 1
jns 0x140018484
add rsp, 0x28
jmp 0x14001e05c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140018454
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 0x14001dd18
call fcn.140011dfc
mov dword [rax], 0x16
call fcn.140011c54
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 0x14001dd00
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001dd00
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14001dd4a
lock or dword [rax + 0x14], 0x10
jmp 0x14001dd00
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001dd67
mov rcx, qword [rbp + 0x10]
call fcn.14001e06c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140016624
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001f720
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14001ddbe
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 0x14001dd00
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001de2a
mov rcx, qword [rbp + 0x10]
call fcn.140016624
cmp eax, 0xffffffff
je 0x14001de11
mov rcx, qword [rbp + 0x10]
call fcn.140016624
cmp eax, 0xfffffffe
je 0x14001de11
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140016624
movsxd rdi, eax
lea rsi, [0x140031750]
mov rcx, rbx
sar rdi, 6
call fcn.140016624
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14001de18
lea rax, [0x1400302e0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001de2a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14001de60
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001de5c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001de5c
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 0x14001dd03
jmp 0x14001dcd0
Function at 0x14001e064
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
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14001deca
call fcn.140011dfc
mov dword [rax], 0x16
call fcn.140011c54
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001deac
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001deac
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14001defc
lock or dword [rax + 0x14], 0x10
jmp 0x14001deac
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001df19
mov rcx, qword [rbp + 0x20]
call fcn.14001e06c
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x14001df2e
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14001df34
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140016624
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001f720
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14001df87
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14001deac
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001dff3
mov rcx, qword [rbp + 0x20]
call fcn.140016624
cmp eax, 0xffffffff
je 0x14001dfda
mov rcx, qword [rbp + 0x20]
call fcn.140016624
cmp eax, 0xfffffffe
je 0x14001dfda
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140016624
movsxd rdi, eax
lea r15, [0x140031750]
mov rcx, rbx
sar rdi, 6
call fcn.140016624
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14001dfe1
lea rax, [0x1400302e0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001dff3
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x14001e029
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001e025
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001e025
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14001e047
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14001e052
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14001deb1
jmp 0x14001de78
Function at 0x6d7d45d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d4758
mov rax, qword [0x6d7f55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d461c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d46a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d4600
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d478d
mov rax, qword [0x6d7f55e8]
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 [0x6d7f55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d4770
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d469e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d4700
add dword [0x6d7f55e4], 1
cmp edi, 8
jae 0x6d7d46d3
test dil, 4
jne 0x6d7d4744
test edi, edi
je 0x6d7d46c8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d475f
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 0x6d7d46c8
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 0x6d7d46ec
jmp 0x6d7d46c8
add rsi, qword [0x6d7f55e8]
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 0x6d7d469e
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 0x6d7d46c8
xor esi, esi
jmp 0x6d7d4627
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d46c8
mov rax, qword [0x6d7f55e8]
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 0x6d7d4ee0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d7d5190
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 0x6d7d51d1
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 0x6d7d51c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d51d3
add rax, 0x28
cmp rax, r9
jne 0x6d7d51b4
xor eax, eax
ret

Function at 0x6d7d5270
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d53e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d5400
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d53f8
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 0x6d7d545d
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 0x6d7d5454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d5464
add rax, 0x28
cmp rax, r9
jne 0x6d7d5440
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d5480
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d54ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d54ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d54ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d54ee
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 0x6d7d54e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d54f5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d54d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d5508
jmp 0x6d7d54ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d5516
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d54ee
test r9d, r9d
jg 0x6d7d5500
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d5850
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