joyce8/EMBER2024-capa huggingface dataset:
Function at 0x687bcd80
Capabilities:
Parse credit card information

Disassembly:
movzx eax, byte [rsp + 8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x687bcd93
mov byte [rsp + 0x18], 0
ret
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x687bcd8d
lea ecx, [rax - 0x30]
nop
cmp cl, 9
jbe 0x687bcd8d
mov rcx, qword [rsp + 0x10]
cmp rcx, 3
jne 0x687bcf20
cmp al, 0x2c
ja 0x687bcef6
lea edx, [rax - 0x21]
nop
cmp dl, 1
ja 0x687bcdcb
mov byte [rsp + 0x18], 0
ret
cmp al, 0x24
je 0x687bcdc5
cmp al, 0x26
jae 0x687bcdc5
cmp al, 0x2f
ja 0x687bceb8
nop dword [rax + rax]
cmp al, 0x26
ja 0x687bce91
cmp al, 0x24
jne 0x687bce87
cmp rcx, 2
jg 0x687bce49
cmp rcx, 1
je 0x687bce41
nop dword [rax]
cmp rcx, 2
jne 0x687bce23
cmp al, 0x2f
jne 0x687bce14
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x3b
je 0x687bce0a
cmp al, 0x2c
je 0x687bce0a
cmp al, 0x3f
sete al
jmp 0x687bce0f
cmp rcx, 7
jne 0x687bce3a
cmp al, 0x21
jne 0x687bce33
mov byte [rsp + 0x18], 0
ret
add eax, 0xffffffd8
cmp al, 2
jbe 0x687bce2d
mov byte [rsp + 0x18], 1
nop
ret
cmp al, 0x3f
sete byte [rsp + 0x18]
ret
cmp rcx, 5
jne 0x687bce6f
cmp al, 0x40
jne 0x687bce60
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x2f
je 0x687bce53
cmp al, 0x3f
je 0x687bce53
cmp al, 0x3a
sete al
jmp 0x687bce58
cmp rcx, 6
je 0x687bce81
cmp rcx, 7
jne 0x687bce23
mov byte [rsp + 0x18], 0
ret
mov byte [rsp + 0x18], 1
ret
cmp al, 0x26
je 0x687bcdf0
jmp 0x687bce23
lea edx, [rax - 0x2b]
cmp dl, 1
jbe 0x687bcdf0
lea edx, [rax - 0x2d]
cmp dl, 1
ja 0x687bceab
mov byte [rsp + 0x18], 0
ret
cmp al, 0x2f
je 0x687bcdf0
jmp 0x687bce23
cmp al, 0x3d
ja 0x687bced6
lea edx, [rax - 0x3a]
nop
cmp dl, 1
jbe 0x687bcdf0
cmp al, 0x3d
je 0x687bcdf0
jmp 0x687bce23
lea edx, [rax - 0x3f]
nop dword [rax]
cmp dl, 1
jbe 0x687bcdf0
cmp al, 0x5f
je 0x687bcea5
cmp al, 0x7e
je 0x687bcea5
jmp 0x687bce23
lea edx, [rax - 0x3a]
nop dword [rax]
cmp dl, 4
jbe 0x687bcdc5
cmp al, 0x5b
je 0x687bcdc5
cmp al, 0x5d
je 0x687bcdc5
jmp 0x687bcdd3
cmp rcx, 4
je 0x687bcdb4
jmp 0x687bcdd3
Function at 0x687e4c20
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x68a4cf30], rax
je 0x687e4c55
lea rcx, [0x68a4cf40]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
lea r9, [rax + 0x60]
mov r8d, 0x3d
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x687e53b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x68a4d544]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x687e5538
mov rax, qword [0x68a4d548]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x687e53fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x687e5485
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x687e53e0
mov rcx, rbx
call fcn.687e6050
test rax, rax
mov r12, rax
je 0x687e556d
mov rax, qword [0x68a4d548]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.687e6180
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x68a4d548]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x687e5550
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x687e547e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x687e54e0
add dword [0x68a4d544], 1
cmp edi, 8
jae 0x687e54b3
test dil, 4
jne 0x687e5524
test edi, edi
je 0x687e54a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x687e553f
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 0x687e54a8
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 0x687e54cc
jmp 0x687e54a8
add rsi, qword [0x68a4d548]
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 0x687e547e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.687e6760
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x687e54a8
xor esi, esi
jmp 0x687e5407
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x687e54a8
mov rax, qword [0x68a4d548]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.687e6760
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.687e6760
nop
nop dword [rax]
Function at 0x687e5cc0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x68a4d820]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x68a4d800]
test rbx, rbx
je 0x687e5d14
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 0x687e5d0b
test rsi, rsi
je 0x687e5d0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x687e5cf0
lea rcx, [0x68a4d820]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x687e6050
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x689fe1b0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x687e60bd
mov rcx, r8
call fcn.687e5f30
test eax, eax
je 0x687e60bd
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 0x687e60bd
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 0x687e60b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x687e60bf
add rax, 0x28
cmp rax, r9
jne 0x687e60a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x687e6760
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x686813a0]
jmp 0x68681380
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.687e6720
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.687e6720
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 0x68681390
Function at 0x14000185c
Capabilities:
Parse pe header

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

Function at 0x14000718c
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 0x1400071fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400071fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400071fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400071fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400071fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400071fb
cmp dword [rcx + 0xf8], 0
je 0x1400071fb
mov ecx, ebx
call fcn.1400072ac
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.140007088
nop
cmp dword [rbp + 0x20], 0
je 0x140007249
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007254
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000718c

Function at 0x140007390
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000718c
Function at 0x14000c6d8
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 0x14000c708
xor eax, eax
jmp 0x14000c7cb
mov rbp, rbx
cmp word [rax], si
je 0x14000c72d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c714
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c710
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.14000c5f8
movsxd r14, eax
test eax, eax
jne 0x14000c76b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c701
mov rcx, r14
call fcn.140008e8c
mov rdi, rax
test rax, rax
jne 0x14000c784
xor ecx, ecx
call fcn.140008214
jmp 0x14000c760
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.14000c5f8
test eax, eax
jne 0x14000c7b5
mov rcx, rdi
call fcn.140008214
jmp 0x14000c7bf
xor ecx, ecx
call fcn.140008214
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 0x140010aec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140010b02
mov al, 1
jmp 0x140010b62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140010b13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140010b60
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000cff8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010b60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140010b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010b60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140010b62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140011ba0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000b6c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140011c2a
cmp byte [rbp - 0x21], r15b
je 0x140011c25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140011c60
call fcn.140008464
test eax, eax
jne 0x140011c4c
cmp byte [rbp - 0x21], r15b
je 0x140011c44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140011c60
cmp byte [rbp - 0x21], r15b
je 0x140011c5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000aca8
test eax, eax
jne 0x140011d00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b6c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140011c9f
cmp byte [rbp - 0x21], r15b
je 0x140011cd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140011cd4
call fcn.140008464
test eax, eax
jne 0x140011cc0
cmp byte [rbp - 0x21], r15b
je 0x140011cb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140011cd4
cmp byte [rbp - 0x21], r15b
je 0x140011cd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000aca8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140011d00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140011d03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140011d11
mov rcx, rdi
call fcn.140008214
cmp byte [rbp + 0x3f], r15b
je 0x140011d20
mov rcx, qword [rbp + 0x27]
call fcn.140008214
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400142b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400142b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400ef680]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400ef690]
mov dword [rax], 1
mov rax, qword [0x1400ef6a0]
mov dword [rax], 1
mov rax, qword [0x1400ef5f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400ef670]
mov dword [0x14011e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400ef780]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400ef760]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400eea30]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400ef6d0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400ef6e0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14011e008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400ef630]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400ef6c0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14011e028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14011e020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14011e020], rbp
call dbg.__main
mov rax, qword [0x1400ef650]
mov r8, qword [0x14011e018]
mov ecx, dword [0x14011e028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14011e020]
call sym.main
mov ecx, dword [0x14011e00c]
mov dword [0x14011e010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14011e008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400ef6e0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400ef730]
mov rcx, qword [0x1400ef720]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x14011e010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400ef750]
mov rcx, qword [0x1400ef740]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov rax, rsp
mov rbx, rax
mov qword [rbp - 0x30], 0
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.wcslen
add rax, 1
add eax, eax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov edx, eax
sub rdx, 1
mov qword [rbp - 0x18], rdx
mov eax, eax
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.14000ec70
sub rsp, rax
lea rax, [rsp + 0x30]
add rax, 0
mov qword [rbp - 0x20], rax
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20006
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x140001554
cmp dword [rbp - 0x24], 2
jne 0x14000151f
lea rax, str._ERROR__Key_not_found._n
mov rcx, rax
call fcn.14001f3e0
jmp 0x14000154a
cmp dword [rbp - 0x24], 5
jne 0x140001536
lea rax, str._ERROR__Require_admin_privileges_n
mov rcx, rax
call fcn.14001f3e0
jmp 0x14000154a
mov eax, dword [rbp - 0x24]
mov edx, eax
lea rax, str._ERROR__Error_opening_key__status:_0x_lx_n
mov rcx, rax
call fcn.14001f3e0
mov eax, 0
jmp 0x14000161f
mov rax, qword [rbp - 0x30]
mov rdx, rax
lea rax, str.___Registry_handle_key_opened:_0x_lx_n
mov rcx, rax
call fcn.14001f3e0
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0xc]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 2
mov r8d, 0
lea rdx, str.logger
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x1400015c1
mov eax, dword [rbp - 0x24]
mov edx, eax
lea rax, str._ERROR__Error_while_saving_the_value_to_the_key__status:_0x_lx_n
mov rcx, rax
call fcn.14001f3e0
mov eax, 0
jmp 0x14000161f
mov rax, qword [rbp - 8]
mov rdx, rax
lea rax, str.___Value_saved_successfully_into_the_registry__s_n
mov rcx, rax
call fcn.14001f3e0
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x14000160b
mov eax, dword [rbp - 0x24]
mov edx, eax
lea rax, str._ERROR__Error_while_closing_registry_key_handle__status:_0x_lx_n
mov rcx, rax
call fcn.14001f3e0
mov eax, 0
jmp 0x14000161f
lea rax, str.___Cleanup_done_successfully_n
mov rcx, rax
call fcn.14001f3e0
mov eax, 1
mov rsp, rbx
lea rsp, [rbp + 8]
pop rbx
pop rbp
ret
Function at 0x140003130
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x1089
syscall
ret

Function at 0x14000313b
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x106e
syscall
ret

Function at 0x140003146
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x1417
syscall
ret

Function at 0x14000deb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000df20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14011e144]
mov rbx, rcx
test esi, esi
jle 0x14000e050
mov rax, qword [0x14011e148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000df6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000dff5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000df50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000e072
mov rax, qword [0x14011e148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14011e148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e057
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000dfee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e000
add dword [0x14011e144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14011e148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000dfee
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 esi, esi
jmp 0x14000df78
mov rax, qword [0x14011e148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]