joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100007a48
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x2d0
mov rax, qword [0x100010110]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r12, qword [rdx + 8]
mov rsi, rdx
lea rdi, [rdx + 0x1bc]
mov edx, 0x41a
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8d, [rbx + 0x33]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, eax
mov dword [rsi + 0x1b8], eax
movzx eax, byte [r12 + 0x3d]
cmp edx, eax
jae 0x100007b65
mov rcx, qword [0x100010720]
lea r9d, [rbx + 0x40]
lea r8, [rsp + 0x40]
lea edx, [rbx + 0x67]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x100010720]
lea r8, [rsp + 0xc0]
lea edx, [rbx + 0x68]
mov r9d, 0x80
call qword [sym.imp.USER32.dll_LoadStringW]
movzx r9d, byte [r12 + 0x3d]
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x1c0]
mov edx, 0x80
call fcn.100003610
mov rcx, qword [0x100010720]
lea r8, [rsp + 0xc0]
lea edx, [rbx + 0x6c]
mov r9d, 0x80
mov word [rsp + 0x2be], bx
call qword [sym.imp.USER32.dll_LoadStringW]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0xfffe
lea rax, [rsp + 0x1c0]
mov dword [rsp + 0x28], 0x20
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
jmp 0x100007c55
mov edx, 0x41b
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x40]
mov r8d, 0x33
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [rsi + 0x1b8], eax
jne 0x100007bec
lea r8, [rsp + 0x40]
sub r8, rdi
movzx eax, word [rdi]
movzx edx, word [rdi + r8]
sub eax, edx
jne 0x100007bab
add rdi, 2
test edx, edx
jne 0x100007b97
cmp eax, ebx
jne 0x100007bec
xor eax, eax
lea rdi, [rsp + 0x40]
mov edx, 0x421
lea ecx, [rax + 0x33]
rep stosb byte [rdi], al
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsi + 0x228]
mov r8d, 0x65
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, 1
mov dword [rsi + 0x224], eax
jmp 0x100007c65
mov rcx, qword [0x100010720]
mov r9d, 0x40
lea r8, [rsp + 0xc0]
lea edx, [r9 + 0x2c]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x100010720]
mov r9d, 0x80
lea edx, [r9 + 0x1c]
lea r8, [rsp + 0x1c0]
call qword [sym.imp.USER32.dll_LoadStringW]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0xfffe
mov dword [rsp + 0x28], 0x20
lea r9, [rsp + 0x1c0]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x20], rbx
mov rdx, qword [0x100010720]
mov rcx, rbp
call qword [sym.imp.COMCTL32.dll_Ordinal_344]
mov eax, ebx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10000d8d0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100008da4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [rbx + 0x10], 0
lea rdi, [rbx + 0x40]
and dword [rdi], 0
lea r8, [rsp + 0x50]
lea rdx, [0x100001e10]
mov rcx, 0xffffffff80000001
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100008e69
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x100001e98]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9d, dword [rsp + 0x48]
test eax, eax
jne 0x100008e2a
cmp r9d, 4
je 0x100008e5c
mov rcx, qword [0x100010130]
lea rdx, [0x100010130]
cmp rcx, rdx
je 0x100008e5c
cmp byte [rcx + 0x19], 4
jb 0x100008e5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001898]
mov edx, 0xa
mov dword [rsp + 0x20], eax
call fcn.100008d50
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100008ea2
mov rcx, qword [0x100010130]
lea rdx, [0x100010130]
cmp rcx, rdx
je 0x100008ea2
cmp byte [rcx + 0x19], 2
jb 0x100008ea2
mov rcx, qword [rcx + 0x10]
lea r9, [0x100001ec0]
lea r8, [0x100001898]
mov edx, 0xb
mov dword [rsp + 0x20], eax
call fcn.1000023fc
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x10000920c
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x90
mov rbx, qword [0x100010730]
xor r12d, r12d
mov rdi, r8
mov word [r8], r12w
test byte [rbx + 0x40], 1
mov rsi, rdx
je 0x10000924a
mov ebx, 0x80070001
jmp 0x100009388
lea rbp, [rbx + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0xb0]
mov rdx, rsi
mov rcx, rbx
call fcn.1000094d8
cmp eax, r12d
je 0x10000937a
mov rdx, qword [rsp + 0xb0]
cmp qword [rdx + 0x220], r12
je 0x10000937a
mov rdx, qword [rdx + 0x220]
mov esi, 0x70
lea rcx, [rsp + 0x20]
mov r8, rsi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
cmp eax, r12d
jne 0x1000092f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov rcx, qword [0x100010130]
lea rax, [0x100010130]
cmp rcx, rax
je 0x10000936c
cmp byte [rcx + 0x19], 2
jb 0x10000936c
lea edx, [rsi - 0x5f]
jmp 0x100009359
lea rdx, [rsp + 0x20]
mov ecx, 0x33
mov ebx, r12d
sub rdx, rdi
lea rax, [rcx + 0x7fffffcb]
cmp rax, r12
je 0x100009324
movzx eax, word [rdx + rdi]
cmp ax, r12w
je 0x100009324
mov word [rdi], ax
add rdi, 2
sub rcx, 1
jne 0x100009301
cmp rcx, r12
jne 0x100009332
sub rdi, 2
mov ebx, 0x8007007a
mov word [rdi], r12w
cmp ebx, r12d
je 0x10000936c
mov rcx, qword [0x100010130]
lea rax, [0x100010130]
cmp rcx, rax
je 0x10000936c
cmp byte [rcx + 0x19], 2
jb 0x10000936c
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001898]
mov r9d, ebx
call fcn.10000252c
lea rdi, [rsp + 0x20]
xor eax, eax
mov rcx, rsi
rep stosb byte [rdi], al
jmp 0x10000937f
mov ebx, 0x80070490
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x10000a13c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [r11 + 0x20]
mov edi, edx
mov qword [r11 - 0x18], rbx
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
mov rsi, rcx
lea rdx, [0x100001ec0]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
mov qword [r11 + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x10000a1cb
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov r9d, 4
mov dword [rsp + 0x28], r9d
cmp edi, ebx
mov rdx, rsi
setne bl
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x10000a1e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, [0x100001ff0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor ebx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10000a26d
mov rcx, qword [rsp + 0x58]
lea eax, [rbx + 4]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x1000020a8]
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10000a262
cmp dword [rsp + 0x40], ebx
lea eax, [rbx + 1]
cmovne ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x10000d8a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
rol byte [rsi], 0
add byte [rax], al
mov r13, 7
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
cdq
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x7bcc
add byte [rax], al
mov qword [rbp - 0xb8], r10
mov edi, 0x854f2d94
mov r14d, 0x43ac
mov r10, qword [rbp - 0xb8]
movabs r9, 4
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x5c25
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x7618
add r15, r10
mov r10d, r14d
movabs r9, 0x4542f
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi
mov r10, qword [rbp - 0x40]
sub r10, 3
mov r9d, esi
mov r11, r10
add r11, r9
jmp 0x10000d9f6
mov r10d, r11d
mov r10b, byte [r15 + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov dword [rbp - 0xf4], r10d
mov eax, r12d
mov qword [rbp - 0xf0], rax
mov rax, 0x2a
cqo
idiv r13
mov r10, rax
mov rax, qword [rbp - 0xf0]
cqo
idiv r10
mov r10d, edi
mov r9, rax
add r9, r10
movzx r10d, r9b
movsxd r9, dword [rbp - 0xf4]
xor r9d, r10d
mov byte [rbp - 0x31], r9b
mov r10d, r11d
mov r9b, byte [rbp - 0x31]
mov byte [r15 + r10], r9b
lea r11, [r11 + 1]
mov r10d, esi
add r10d, r14d
cmp r11d, r10d
jb 0x10000d990
mov qword [rbp - 0x88], 0x26948
lea r12, [r12 + 1]
mov qword [rbp - 0x78], 0xad000
mov r10, qword [rbp - 0x60]
movabs al, byte [0xa0558b4c8855014c]
add qword [rbp - 0x88], r10
mov r10, qword [rbp - 0x50]
sub r10, 8
mov r9d, r12d
cmp r10, r9
jge 0x10000d97d
mov qword [rbp - 0x90], 0x1e8000
mov r10, qword [rbp - 0x50]
sub r10, 0xe
mov dword [rbp - 0x64], r10d
mov r10d, dword [rbp - 0x64]
mov r9, qword [rbp - 0x88]
mov r10b, byte [r9 + r10]
adc al, 0x11
mov byte [rbp - 0x31], r10b
mov r10d, dword [rbp - 0x64]
invalid
invalid
Function at 0x10000d904
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
rol byte [rsi], 0
add byte [rax], al
mov r13, 7
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
cdq
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x7bcc
add byte [rax], al
mov qword [rbp - 0xb8], r10
mov edi, 0x854f2d94
mov r14d, 0x43ac
mov r10, qword [rbp - 0xb8]
movabs r9, 4
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x5c25
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x7618
add r15, r10
mov r10d, r14d
movabs r9, 0x4542f
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi
mov r10, qword [rbp - 0x40]
sub r10, 3
mov r9d, esi
mov r11, r10
add r11, r9
jmp 0x10000d9f6
mov r10d, r11d
mov r10b, byte [r15 + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov dword [rbp - 0xf4], r10d
mov eax, r12d
mov qword [rbp - 0xf0], rax
mov rax, 0x2a
cqo
idiv r13
mov r10, rax
mov rax, qword [rbp - 0xf0]
cqo
idiv r10
mov r10d, edi
mov r9, rax
add r9, r10
movzx r10d, r9b
movsxd r9, dword [rbp - 0xf4]
xor r9d, r10d
mov byte [rbp - 0x31], r9b
mov r10d, r11d
mov r9b, byte [rbp - 0x31]
mov byte [r15 + r10], r9b
lea r11, [r11 + 1]
mov r10d, esi
add r10d, r14d
cmp r11d, r10d
jb 0x10000d990
mov qword [rbp - 0x88], 0x26948
lea r12, [r12 + 1]
mov qword [rbp - 0x78], 0xad000
mov r10, qword [rbp - 0x60]
movabs al, byte [0xa0558b4c8855014c]
add qword [rbp - 0x88], r10
mov r10, qword [rbp - 0x50]
sub r10, 8
mov r9d, r12d
cmp r10, r9
jge 0x10000d97d
mov qword [rbp - 0x90], 0x1e8000
mov r10, qword [rbp - 0x50]
sub r10, 0xe
mov dword [rbp - 0x64], r10d
mov r10d, dword [rbp - 0x64]
mov r9, qword [rbp - 0x88]
mov r10b, byte [r9 + r10]
adc al, 0x11
mov byte [rbp - 0x31], r10b
mov r10d, dword [rbp - 0x64]
invalid
invalid
Function at 0x10000da1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
rol byte [rsi], 0
add byte [rax], al
mov r13, 7
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
cdq
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x7bcc
add byte [rax], al
mov qword [rbp - 0xb8], r10
mov edi, 0x854f2d94
mov r14d, 0x43ac
mov r10, qword [rbp - 0xb8]
movabs r9, 4
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x5c25
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x7618
add r15, r10
mov r10d, r14d
movabs r9, 0x4542f
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi
mov r10, qword [rbp - 0x40]
sub r10, 3
mov r9d, esi
mov r11, r10
add r11, r9
jmp 0x10000d9f6
mov r10d, r11d
mov r10b, byte [r15 + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov dword [rbp - 0xf4], r10d
mov eax, r12d
mov qword [rbp - 0xf0], rax
mov rax, 0x2a
cqo
idiv r13
mov r10, rax
mov rax, qword [rbp - 0xf0]
cqo
idiv r10
mov r10d, edi
mov r9, rax
add r9, r10
movzx r10d, r9b
movsxd r9, dword [rbp - 0xf4]
xor r9d, r10d
mov byte [rbp - 0x31], r9b
mov r10d, r11d
mov r9b, byte [rbp - 0x31]
mov byte [r15 + r10], r9b
lea r11, [r11 + 1]
mov r10d, esi
add r10d, r14d
cmp r11d, r10d
jb 0x10000d990
mov qword [rbp - 0x88], 0x26948
lea r12, [r12 + 1]
mov qword [rbp - 0x78], 0xad000
mov r10, qword [rbp - 0x60]
movabs al, byte [0xa0558b4c8855014c]
add qword [rbp - 0x88], r10
mov r10, qword [rbp - 0x50]
sub r10, 8
mov r9d, r12d
cmp r10, r9
jge 0x10000d97d
mov qword [rbp - 0x90], 0x1e8000
mov r10, qword [rbp - 0x50]
sub r10, 0xe
mov dword [rbp - 0x64], r10d
mov r10d, dword [rbp - 0x64]
mov r9, qword [rbp - 0x88]
mov r10b, byte [r9 + r10]
adc al, 0x11
mov byte [rbp - 0x31], r10b
mov r10d, dword [rbp - 0x64]
invalid
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400eff10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400eff20]
mov dword [rax], 1
mov rax, qword [0x1400eff30]
mov dword [rax], 1
mov rax, qword [0x1400eff00]
mov dword [rax], 1
mov rax, qword [0x1400efda0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400efef0]
mov dword [0x14011a020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400efea0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400efe80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400ef1c0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001593
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov eax, r8d
mov byte [rbp + 0x20], al
mov qword [rbp - 8], 0
jmp 0x140001605
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0x11], al
mov rax, qword [rbp + 0x18]
sub rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
add rdx, rcx
movzx eax, byte [rax]
mov byte [rdx], al
mov rax, qword [rbp + 0x18]
sub rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
add rdx, rax
movzx eax, byte [rbp - 0x11]
mov byte [rdx], al
add qword [rbp - 8], 1
mov rax, qword [rbp + 0x18]
shr rax, 1
cmp qword [rbp - 8], rax
jb 0x1400015b3
mov qword [rbp - 0x10], 0
jmp 0x140001641
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
xor al, byte [rbp + 0x20]
mov edx, eax
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
add rax, rcx
mov byte [rax], dl
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x18]
jb 0x14000161c
nop
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140002470
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x1400024e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14011a414]
mov r12, rcx
test ebx, ebx
jle 0x140002610
mov rax, qword [0x14011a418]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000252b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x1400025b5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140002510
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140002632
mov rax, qword [0x14011a418]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14011a418]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002617
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400025ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400025c0
add dword [0x14011a414], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14011a418]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400025ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140002538
mov rax, qword [0x14011a418]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002b00
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14011a480]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14011a460]
test rbx, rbx
je 0x140002b5c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002b53
test r12, r12
je 0x140002b53
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002b38
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002d90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002da8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002db0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002dc0
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 0x140002e05
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140002dfc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002e07
add rax, 0x28
cmp rax, r9
jne 0x140002de8
xor eax, eax
ret

Function at 0x140002e10
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002ea0
mov rdx, qword [0x1400efda0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002e8e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002e8e
cmp word [rax + 0x18], 0x20b
jne 0x140002e8e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002ea0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002e79
add r12, 0x28
cmp r12, rsi
je 0x140002ea0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002e70
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002eb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400efda0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ed0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ed8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ed0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002f25
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002f1c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ed0
add rax, 0x28
cmp rax, r9
jne 0x140002f08
xor eax, eax
ret

Function at 0x140002f30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400efda0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002f50
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002f58
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002f50
movzx r8d, word [rax + 6]
mov eax, r8d
ret