joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180097450
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x18011a2af], 0
mov rbx, rcx
je 0x18009747b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0x64
call fcn.180065060
add rsp, 0x20
pop rbx
ret
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180097497
lea rcx, [rbx + 0x180]
call fcn.1800974b0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0xa
call fcn.180065060
add rsp, 0x20
pop rbx
ret
Function at 0x180098ec0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r8
mov r14, rdx
mov rbp, rcx
movzx esi, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rsi, rax
movabs rcx, 0x100000001b3
imul rsi, rcx
movzx eax, byte [r8 + 1]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 2]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 3]
xor rsi, rax
imul rsi, rcx
mov rcx, rsi
and rcx, qword [rbp + 0x30]
add rcx, rcx
mov rax, qword [rbp + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rbp + 8]
mov r12, qword [rdx]
cmp rbx, r12
jne 0x180098f47
mov rbx, r12
mov r15, r12
jmp 0x180098f8a
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x180098f61
cmp rbx, rcx
je 0x180098f84
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x180098f53
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r12, rbx
mov r15, rbx
movabs rax, 0x666666666666666
cmp qword [rbp + 0x10], rax
jne 0x180098fa8
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x28
call fcn.1800bc6bc
mov rdi, rax
mov qword [rsp + 0x28], rax
mov eax, dword [r13]
mov dword [rdi + 0x10], eax
xor r13d, r13d
mov qword [rdi + 0x14], r13
mov qword [rdi + 0x1c], r13
mov rdx, qword [rbp + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x180098fee
cvtsi2ss xmm0, rdx
jmp 0x180099006
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x180099019
cvtsi2ss xmm1, rcx
jmp 0x18009902e
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
jbe 0x180099094
mov rcx, rbp
call fcn.18008fc20
mov rdx, rax
mov rcx, rbp
call fcn.18008fa70
mov rdx, rsi
and rdx, qword [rbp + 0x30]
add rdx, rdx
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov rbx, qword [rbp + 8]
cmp rax, rbx
je 0x180099087
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x180099084
mov rbx, rax
cmp rax, rdx
je 0x1800990c5
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x180099073
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov r15, rbx
mov r12, qword [rsp + 0x20]
mov rcx, qword [rbx + 8]
inc qword [rbp + 0x10]
mov qword [rdi], r12
mov qword [rdi + 8], rcx
mov qword [rcx], rdi
mov qword [rbx + 8], rdi
mov rax, qword [rbp + 0x18]
and rsi, qword [rbp + 0x30]
add rsi, rsi
mov rdx, qword [rax + rsi*8]
cmp rdx, qword [rbp + 8]
jne 0x1800990cc
mov qword [rax + rsi*8], rdi
jmp 0x1800990de
mov qword [rsp + 0x20], rax
jmp 0x18009908c
cmp rdx, r15
jne 0x1800990d7
mov qword [rax + rsi*8], rdi
jmp 0x1800990e3
cmp qword [rax + rsi*8 + 8], rcx
jne 0x1800990e3
mov qword [rax + rsi*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x180098f69
Function at 0x1800b7320
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180117040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov ecx, 8
call fcn.1800bc6bc
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1800bbd30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1800b73aa
mov qword [rdi + 0x10], rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800bbf40
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1800bd4e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800bd522
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800bd527
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800bd570
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800c7d40]
cmp byte [rcx + rax], 0
je 0x1800bd570
dec r8
sub rdx, 1
jne 0x1800bd556
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800bdd10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18011d3cc]
mov ebx, edi
test ecx, ecx
je 0x1800bde4b
mov rax, qword [0x18011d3c0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800bdd68
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800bdd40
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800bde4b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800be090
mov r8d, dword [0x18011d3cc]
cmp ebx, r8d
jae 0x1800bddd8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18011d3c0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800bddd1
mov edx, esi
mov ecx, ebx
call fcn.1800bdf80
mov edi, eax
test eax, eax
jne 0x1800bddd8
mov r8d, dword [0x18011d3cc]
inc ebx
cmp ebx, r8d
jb 0x1800bdda0
cmp qword [rsp + 0x20], 0
je 0x1800bde4b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800bde37
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800bde28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800bde00
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180119db8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800bdf80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18011d3c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800bdfe4
mov eax, 0xa
jmp 0x1800be073
test esi, esi
je 0x1800be006
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800be029
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800be029
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800be022
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800be029
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800be090
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180117040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800be1ba
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800be1b1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800be194
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800be194
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800be194
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800be152
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180119db8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800be1b1
jmp 0x1800be187
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800be187
mov rcx, qword [0x180119db8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800be1b1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800be100
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800be213
cmp dword [rbx + 0xc], esi
jbe 0x1800be213
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800be20c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800be590
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800be1d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800bbf40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800be740
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800be7af
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800be798
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800be78c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800be760
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180119db8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800be870
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800be8b0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18011d3b8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800be8ee
cmp rsi, r14
jb 0x1800be8e6
cmp rsi, r15
jae 0x1800be8e6
cmp qword [rsi + 8], 0
jne 0x1800beab7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800be8d1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800be982
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800be979
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800be979
cmp dword [rsp + 0x70], 0x10000
je 0x1800be9fb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800be979
sub rbx, rbp
cmp rbx, r14
jae 0x1800be940
test rsi, rsi
jne 0x1800bea60
cmp rdi, r15
ja 0x1800bea9f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800bea9f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800bea9f
cmp dword [rsp + 0x70], 0x10000
je 0x1800bea31
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800be9b2
jmp 0x1800bea9f
test rbx, rbx
je 0x1800be979
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800bea60
cmp rbx, r14
jae 0x1800be920
jmp 0x1800be982
test rdi, rdi
je 0x1800bea9f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800bea60
cmp rdi, r15
jbe 0x1800be990
jmp 0x1800bea9f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800bea70
mov rax, qword [0x18011d3b8]
mov qword [rsi], rax
mov qword [0x18011d3b8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x140001530
Capabilities:
Create process on windows

Disassembly:
push r12
push rdi
sub rsp, 0xe8
xor eax, eax
xor r9d, r9d
lea r8, [rsp + 0x70]
mov rdx, rcx
mov ecx, 0xd
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rdi, r8
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12d, eax
test eax, eax
je 0x1400015d8
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, r12d
add rsp, 0xe8
pop rdi
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, r12d
add rsp, 0xe8
pop rdi
pop r12
ret

Function at 0x1400018b0
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 fcn.140002820
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002820
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001920
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403ca0a4]
mov r12, rcx
test ebx, ebx
jle 0x140001a50
mov rax, qword [0x1403ca0a8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000196c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001950
mov rcx, r12
call fcn.1400022c0
mov rsi, rax
test rax, rax
je 0x140001a72
mov rax, qword [0x1403ca0a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400023f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1403ca0a8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a00
add dword [0x1403ca0a4], 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 [0x1403ca0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400018b0
nop dword [rax]
xor ebx, ebx
jmp 0x140001977
mov rax, qword [0x1403ca0a8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400018b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400018b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1403ca100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403ca0e0]
test rbx, rbx
je 0x140001f84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001f7b
test r12, r12
je 0x140001f7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f60
lea rcx, [0x1403ca100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403c7220]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002335
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 0x14000232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002318
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

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

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403c7220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140002990
Capabilities:
Create directory
Delete directory
Delete file
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea r13, [rsp + 0x20]
movsxd rsi, ecx
mov rdi, rdx
call fcn.1400016a0
mov rdx, r13
lea rcx, str.C:_Temp
call fcn.1400025c0
test eax, eax
jne 0x1400029d2
movzx eax, word [rsp + 0x26]
and ax, 0xf000
cmp ax, 0x4000
je 0x1400029de
lea rcx, str.C:_Temp
call sub.msvcrt.dll__mkdir
mov rdx, r13
lea rcx, str.C:_Temp_4cc13cc547c8
call fcn.1400025c0
test eax, eax
jne 0x140002a04
movzx eax, word [rsp + 0x26]
and ax, 0xf000
cmp ax, 0x4000
je 0x140002b6d
lea rcx, str.C:_Temp_4cc13cc547c8
call sub.msvcrt.dll__mkdir
lea rdx, [0x1403c6ddd]
lea rcx, str.C:_Temp_4cc13cc547c8_04894799f34d.exe
call sub.msvcrt.dll_fopen
mov rcx, qword [0x1403c7380]
mov r8d, 1
mov r12, rax
mov rax, qword [0x1403c7390]
mov r9, r12
movsxd rdx, dword [rax]
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fclose
cmp esi, 1
jg 0x140002ab6
lea rcx, str.taskkill__IM_qyj2_wd.exe__F
call fcn.140001530
lea rcx, str.taskkill__IM_qyj2.exe__F
call fcn.140001530
lea rcx, str.C:_Temp_4cc13cc547c8_04894799f34d.exe__CURRENT_USER__VERYSILENT__FORCECLOSEAPPLICATIONS__NORESTARTAPPLICATIONS
call fcn.140001530
mov rdx, r13
lea rcx, str.C:_Temp_4cc13cc547c8
mov ebx, eax
call fcn.1400025c0
test eax, eax
jne 0x140002a9e
movzx eax, word [rsp + 0x26]
and ax, 0xf000
cmp ax, 0x4000
je 0x140002b30
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x1403c6e06]
lea ebp, [rsi - 1]
mov ebx, 1
lea rcx, str.C:_Temp_665b0cdac69b.txt
lea r14, [0x1403c6e21]
call sub.msvcrt.dll_fopen
mov r12, rax
nop dword [rax + rax]
mov r15, qword [rdi + rbx*8]
mov rcx, r15
call sub.msvcrt.dll_strlen
mov r9, r12
mov r8d, 1
mov rcx, r15
mov rdx, rax
call sub.msvcrt.dll_fwrite
cmp ebp, ebx
je 0x140002b1a
mov r9, r12
mov r8d, 1
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fwrite
add rbx, 1
cmp rsi, rbx
jne 0x140002ae0
mov rcx, r12
call sub.msvcrt.dll_fclose
jmp 0x140002a52
lea rcx, str.C:_Temp_4cc13cc547c8_04894799f34d.exe
lea rdx, [0x1403c6ec7]
call sub.msvcrt.dll_fopen
mov rcx, rax
test rax, rax
je 0x140002b5c
call sub.msvcrt.dll_fclose
lea rcx, str.C:_Temp_4cc13cc547c8_04894799f34d.exe
call sub.msvcrt.dll_remove
lea rcx, str.C:_Temp_4cc13cc547c8
call sub.msvcrt.dll__rmdir
jmp 0x140002a9e
lea rcx, str.C:_Temp_4cc13cc547c8
call sub.msvcrt.dll__rmdir
jmp 0x140002a04