joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005120
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], r14
mov r14, rcx
lea rcx, [0x180022a90]
call fcn.180006440
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbp, rax
test rax, rax
je 0x1800051d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800051c7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x89
jle 0x1800051c7
mov qword [rsp + 0x38], rsi
mov esi, eax
mov ebx, eax
nop word [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x180005190
test esi, esi
mov rsi, qword [rsp + 0x38]
je 0x1800051c7
call fcn.180001d60
test eax, eax
jne 0x1800051bf
mov rcx, r14
call fcn.180005010
test eax, eax
jne 0x1800051c7
mov rdx, rdi
call fcn.180004520
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
test rdi, rdi
je 0x1800051fb
mov r8d, dword [rdi - 8]
lea rcx, [rdi - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rdi - 8]
call fcn.180005280
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800056a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rdi, r8
mov word [rcx], 0
mov rsi, rdx
lea r9, [rcx + 2]
mov r10, rcx
xor eax, eax
nop dword [rax]
nop word [rax + rax]
mov byte [r9 + rax], al
inc rax
cmp rax, 0x100
jb 0x1800056d0
xor bl, bl
mov r11, 0xfffffffffffffffe
sub r11, rcx
nop dword [rax + rax]
movzx r8d, byte [r9]
lea rax, [r11 + r9]
xor edx, edx
lea r9, [r9 + 1]
div rdi
movzx eax, byte [rdx + rsi]
add al, r8b
add bl, al
movzx ecx, bl
movzx eax, byte [rcx + r10 + 2]
mov byte [r9 - 1], al
lea rax, [r11 + r9]
mov byte [rcx + r10 + 2], r8b
cmp rax, 0x100
jb 0x1800056f0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x180005740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, r9
mov r10, r8
mov r11, rdx
test r9, r9
je 0x1800057b5
sub r11, r8
nop word [rax + rax]
inc byte [rcx]
lea r10, [r10 + 1]
movzx r9d, byte [rcx]
movzx eax, byte [r9 + rcx + 2]
add byte [rcx + 1], al
movzx r8d, byte [rcx + 1]
movzx edx, byte [r9 + rcx + 2]
movzx eax, byte [r8 + rcx + 2]
mov byte [r9 + rcx + 2], al
mov byte [r8 + rcx + 2], dl
movzx eax, byte [rcx]
movzx edx, byte [rcx + 1]
movzx edx, byte [rdx + rcx + 2]
add dl, byte [rax + rcx + 2]
movzx eax, dl
movzx edx, byte [rax + rcx + 2]
xor dl, byte [r11 + r10 - 1]
mov byte [r10 - 1], dl
sub rbx, 1
jne 0x180005760
mov rbx, qword [rsp + 8]
ret
Function at 0x1800062d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebp, dword [rcx + 4]
lea rdi, [rcx + 8]
mov esi, dword [rcx]
mov dword [rsp + 0x20], ebp
lea rcx, [rsi + 9]
call fcn.180005210
mov r9, rax
test rax, rax
je 0x18000640c
xor r8d, r8d
mov dword [rax], esi
mov ecx, r8d
mov dword [rax + 4], ebp
mov word [rsp + 0x30], 0
nop dword [rax]
mov byte [rsp + rcx + 0x32], cl
inc rcx
cmp rcx, 0x100
jb 0x180006330
xor r10b, r10b
movzx edx, byte [rsp + r8 + 0x32]
mov rax, r8
and eax, 3
movzx ecx, byte [rsp + rax + 0x20]
add cl, dl
add r10b, cl
lea rcx, [rsp + 0x32]
movzx eax, r10b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x32], al
inc r8
mov byte [rcx], dl
cmp r8, 0x100
jb 0x180006343
test esi, esi
je 0x180006402
movzx edx, byte [rsp + 0x31]
lea r10, [r9 + 8]
movzx r8d, byte [rsp + 0x30]
sub rdi, r9
mov r11, rsi
nop dword [rax + rax]
inc r8b
lea r10, [r10 + 1]
mov byte [rsp + 0x30], r8b
movzx eax, r8b
lea r8, [rsp + 0x32]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x31], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp + 0x32]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x31]
movzx r8d, byte [rsp + 0x30]
movzx ecx, byte [rsp + rdx + 0x32]
add cl, byte [rsp + r8 + 0x32]
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x32]
xor cl, byte [rdi + r10 - 9]
mov byte [r10 - 1], cl
sub r11, 1
jne 0x1800063a0
mov byte [rsi + r9 + 8], 0
lea rax, [r9 + 8]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180006c40
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180006440
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov esi, dword [rcx]
lea rdi, [rcx + 8]
mov ebp, dword [rcx + 4]
mov ebx, esi
mov dword [rsp + 0x20], ebp
lea rcx, [rsi + 0xa]
call fcn.180005210
mov r9, rax
test rax, rax
je 0x18000658c
mov dword [rax], esi
xor esi, esi
mov ecx, esi
mov dword [rax + 4], ebp
mov word [rsp + 0x30], 0
nop dword [rax]
mov byte [rsp + rcx + 0x32], cl
inc rcx
cmp rcx, 0x100
jb 0x1800064a0
xor r10b, r10b
mov r8, rsi
nop word [rax + rax]
movzx edx, byte [rsp + r8 + 0x32]
mov rax, r8
and eax, 3
movzx ecx, byte [rsp + rax + 0x20]
add cl, dl
add r10b, cl
lea rcx, [rsp + 0x32]
movzx eax, r10b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x32], al
inc r8
mov byte [rcx], dl
cmp r8, 0x100
jb 0x1800064c0
test rbx, rbx
je 0x180006582
movzx edx, byte [rsp + 0x31]
lea r10, [r9 + 8]
movzx r8d, byte [rsp + 0x30]
sub rdi, r9
mov r11, rbx
nop word [rax + rax]
inc r8b
lea r10, [r10 + 1]
mov byte [rsp + 0x30], r8b
movzx eax, r8b
lea r8, [rsp + 0x32]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x31], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp + 0x32]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x31]
movzx r8d, byte [rsp + 0x30]
movzx ecx, byte [rsp + rdx + 0x32]
add cl, byte [rsp + r8 + 0x32]
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x32]
xor cl, byte [rdi + r10 - 9]
mov byte [r10 - 1], cl
sub r11, 1
jne 0x180006520
mov word [rbx + r9 + 8], si
lea rax, [r9 + 8]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180006c40
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180006600
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp dword [0x180023e28], 0
jne 0x180006894
cmp qword [0x180023e18], 0
mov qword [rsp + 0x20], rbx
jne 0x180006660
lea rcx, [0x18001e890]
call fcn.180006440
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180023e18], rax
test rbx, rbx
je 0x180006660
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e08], 0
jne 0x1800066b1
lea rcx, [0x18001ebc0]
call fcn.1800062d0
mov rcx, qword [0x180023e18]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023e08], rax
test rbx, rbx
je 0x1800066b1
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e20], 0
jne 0x1800066fb
lea rcx, [0x18001eb80]
call fcn.180006440
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180023e20], rax
test rbx, rbx
je 0x1800066fb
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e10], 0
jne 0x18000674c
lea rcx, [0x18001ebe0]
call fcn.1800062d0
mov rcx, qword [0x180023e20]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023e10], rax
test rbx, rbx
je 0x18000674c
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e00], 0
jne 0x18000679d
lea rcx, [0x18001ec00]
call fcn.1800062d0
mov rcx, qword [0x180023e20]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023e00], rax
test rbx, rbx
je 0x18000679d
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e40], 0
jne 0x1800067ee
lea rcx, [0x18001ec20]
call fcn.1800062d0
mov rcx, qword [0x180023e20]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023e40], rax
test rbx, rbx
je 0x1800067ee
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e30], 0
jne 0x180006838
lea rcx, [0x18001ec40]
call fcn.180006440
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180023e30], rax
test rbx, rbx
je 0x180006838
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
cmp qword [0x180023e38], 0
jne 0x180006889
lea rcx, [0x18001ec60]
call fcn.1800062d0
mov rcx, qword [0x180023e30]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180023e38], rax
test rbx, rbx
je 0x180006889
mov r8d, dword [rbx - 8]
lea rcx, [rbx - 8]
add r8, 8
xor edx, edx
call fcn.180008090
lea rcx, [rbx - 8]
call fcn.180005280
inc dword [0x180023e28]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x180007538
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x1800075c9
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1800075c9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800075c9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1800075ad
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1800075a7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800075af
add rdx, 0x28
jmp 0x18000758c
xor edx, edx
test rdx, rdx
jne 0x1800075b8
xor al, al
jmp 0x1800075cf
test dword [rdx + 0x24], 0x80000000
je 0x1800075c5
xor al, al
jmp 0x1800075cf
mov al, 1
jmp 0x1800075cf
xor al, al
jmp 0x1800075cf
add rsp, 0x18
ret
Function at 0x2fc4ca9f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb3f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb48a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb46e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cb462
cmp qword [rbp - 0x10], 0
je 0x2fc4cb462
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cb428
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb48b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb590
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb5b8
mov eax, 0
jmp 0x2fc4cb606
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb5e1
mov eax, 0
jmp 0x2fc4cb606
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb601
mov eax, 0
jmp 0x2fc4cb606
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb60c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb68a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb681
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb681
mov rax, qword [rbp - 8]
jmp 0x2fc4cb69f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb654
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14009b2b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14009b2c0]
mov dword [rax], 1
mov rax, qword [0x14009b2d0]
mov dword [rax], 1
mov rax, qword [0x14009b240]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14009b2a0]
mov dword [0x14009e00c], 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 [0x14009b380]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14009b360]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14009b1f0]
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 [0x14009b300]
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 [0x14009b310]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14009e008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14009b270]
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 [0x14009b2f0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14009e028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14009e020]
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 [0x14009e020], rbp
call dbg.__main
mov rax, qword [0x14009b280]
mov r8, qword [0x14009e018]
mov ecx, dword [0x14009e028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14009e020]
call sym.main
mov ecx, dword [0x14009e00c]
mov dword [0x14009e010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14009e008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14009b310]
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 [0x14009b330]
mov rcx, qword [0x14009b320]
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 [0x14009e010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14009b350]
mov rcx, qword [0x14009b340]
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:
Encrypt data using rc6

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov edx, 0x1a
lea rax, [0x14009e030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.resize_unsigned_long_long_
mov qword [rbp - 8], 0
jmp 0x1400014cb
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_long_long__const
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp - 8]
and edx, 3
shl rdx, 3
mov ecx, edx
shl eax, cl
mov ebx, eax
mov rax, qword [rbp - 8]
shr rax, 2
mov rdx, rax
lea rax, [0x14009e030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov edx, dword [rax]
mov ecx, ebx
or edx, ecx
mov dword [rax], edx
add qword [rbp - 8], 1
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
cmp qword [rbp - 8], rax
setb al
test al, al
jne 0x14000147d
mov dword [rbp - 0x14], 0xb7e15163
mov dword [rbp - 0x18], 0x9e3779b9
mov edx, 0
lea rax, [0x14009e030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov dword [rax], 0xb7e15163
mov qword [rbp - 0x10], 1
jmp 0x140001553
mov rax, qword [rbp - 0x10]
sub rax, 1
mov rdx, rax
lea rax, [0x14009e030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov eax, dword [rax]
lea ebx, [rax - 0x61c88647]
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rax, [0x14009e030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov dword [rax], ebx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x19
jbe 0x140001514
nop
nop
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x1400030c0
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 0x140003130
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14009e0b4]
mov rbx, rcx
test esi, esi
jle 0x140003260
mov rax, qword [0x14009e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000317b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003205
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003160
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140003282
mov rax, qword [0x14009e0b8]
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 [0x14009e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003267
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400031fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003210
add dword [0x14009e0b4], 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 [0x14009e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400031fe
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 0x140003188
mov rax, qword [0x14009e0b8]
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]

Function at 0x140003810
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14009e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14009e100]
test rbx, rbx
je 0x14000386c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003863
test eax, eax
jne 0x140003863
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003848
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]