joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140199710
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
xor ebp, ebp
movabs rax, 0x5555555555555556
mov qword [rcx + 0x18], rbp
imul r8
mov r12, r8
mov r13, rcx
mov r14, rdx
shr r14, 0x3f
add r14, rdx
mov rdx, qword [rcx + 0x38]
lea rax, [r14 + r14*2]
sub r12, rax
test rdx, rdx
je 0x14019976d
mov rax, qword [rcx + 0x20]
add rcx, 0x20
call qword [rax + 0x18]
mov qword [r13 + 0x38], rbp
lea rax, [r14 + r14*2]
lea rdi, [rax*4 + 0xa]
mov qword [r13 + 0x48], rbp
mov qword [r13 + 0x40], rbp
lea rcx, [r13 + 0x20]
mov rbx, qword [r13 + 0x50]
mov eax, 0x40
test rbx, rbx
cmovle rbx, rax
mov rax, rdi
cqo
idiv rbx
mov rax, qword [r13 + 0x20]
sub rbx, rdx
add rbx, rdi
mov rdx, rbx
call qword [rax]
mov qword [r13 + 0x40], rbx
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov qword [r13 + 0x38], rax
mov qword [r13 + 0x48], rdi
test r14, r14
jle 0x140199845
nop dword [rax + rax]
movzx r8d, byte [rsi]
movzx r10d, byte [rsi + 1]
mov ecx, r8d
movzx r9d, byte [rsi + 2]
mov edx, r10d
shr rcx, 2
add rsi, 3
shr rdx, 4
movzx ecx, word [r11 + rcx*2]
mov word [rax], cx
movzx ecx, r8b
shl cl, 4
mov r8d, r9d
or rdx, rcx
and r8d, 0x3f
and edx, 0x3f
movzx ecx, word [r11 + rdx*2]
movzx edx, r10b
mov word [rax + 2], cx
mov ecx, r9d
shr rcx, 6
shl dl, 2
or rdx, rcx
and edx, 0x3f
movzx ecx, word [r11 + rdx*2]
mov word [rax + 4], cx
movzx ecx, word [r11 + r8*2]
mov word [rax + 6], cx
add rax, 8
sub r14, 1
jne 0x1401997d0
cmp r12, 1
jne 0x140199877
movzx edx, byte [rsi]
mov ecx, edx
and dl, 3
shr rcx, 2
shl dl, 4
movzx ecx, word [r11 + rcx*2]
mov word [rax], cx
movzx ecx, dl
movzx ecx, word [r11 + rcx*2]
mov word [rax + 2], cx
mov dword [rax + 4], 0x3d003d
jmp 0x1401998ca
cmp r12, 2
jne 0x1401998ce
movzx edx, byte [rsi]
movzx r8d, byte [rsi + 1]
mov ecx, edx
shr rcx, 2
and dl, 3
shl dl, 4
movzx edx, dl
movzx ecx, word [r11 + rcx*2]
mov word [rax], cx
mov ecx, r8d
shr rcx, 4
and r8b, 0xf
or rdx, rcx
shl r8b, 2
movzx ecx, word [r11 + rdx*2]
mov word [rax + 2], cx
movzx ecx, r8b
movzx ecx, word [r11 + rcx*2]
mov word [rax + 4], cx
mov word [rax + 6], 0x3d
add rax, 8
mov word [rax], bp
add rax, 2
cmp qword [r13 + 0x48], rbp
je 0x1401998df
mov rbp, qword [r13 + 0x38]
sub rax, rbp
lea rcx, [r13 + 0x20]
mov rdx, rax
call fcn.140195ad0
mov rbx, qword [rsp + 0x50]
mov rax, r13
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401abc90
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14032b320]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, [0x1402945c4]
lea rcx, [rsp + 0x68]
call fcn.140059db0
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
call fcn.14005b8a0
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1401adda0
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x24]
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.14019af70
nop
lea rdx, [0x1402945c8]
lea rcx, [rsp + 0x68]
call fcn.1400a1dd0
lea rcx, [rsp + 0x68]
call fcn.1400467c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x68]
call fcn.140046a70
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14023ba10
add rsp, 0x98
ret
Function at 0x1401b78c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14032b320]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
lea rcx, [0x140294a40]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x17
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x30], 0x2f
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401b79e8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov edx, 0xfffffffc
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov r8d, 0x17
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.14023df70
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 2], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0xc], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r8, qword [rsp + 0x28]
mov edx, 0xfffffffc
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
nop
jmp 0x1401b79f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14023ba10
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1401b9600
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1401b962c
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1401b964c
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1401b966c
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1401b97f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xe
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400469e0
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
inc rax
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.140046950
mov rcx, qword [rsp + 0x50]
call fcn.1400467c0
mov rcx, qword [rsp + 0x28]
inc rcx
mov r9, rax
mov r8, rcx
mov edx, 0xd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1401c1ea0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 1
jae 0x1401c1ebb
mov eax, 0xffffffff
jmp 0x1401c1f18
mov dword [rsp + 4], 0xffffffff
mov dword [rsp], 0
jmp 0x1401c1ed4
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1401c1f11
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x140294b50]
mov edx, dword [rsp + 4]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp + 4], eax
jmp 0x1401c1ecc
mov eax, dword [rsp + 4]
xor eax, 0xffffffff
add rsp, 0x18
ret
Function at 0x1401dcf00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x140]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 8
mov rcx, qword [rsp + 0x80]
call fcn.1401a9250
nop
cmp dword [rsp + 0x30], 0
je 0x1401dd0e4
mov dword [rsp + 0x34], 0xffffffff
mov dword [rsp + 0x38], 0
cmp dword [rsp + 0x30], 3
jne 0x1401dd010
mov rax, qword [rsp + 0x88]
and rax, 0xffff
cwde
mov rcx, qword [rsp + 0x50]
sub eax, dword [rcx + 0x50]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x88]
shr rax, 0x10
and rax, 0xffff
cwde
mov rcx, qword [rsp + 0x50]
sub eax, dword [rcx + 0x54]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xfc]
and eax, 1
cmp eax, 1
jne 0x1401dcfea
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x3c], eax
jmp 0x1401dcff2
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x14]
mov dword [rax + 0x18], ecx
jmp 0x1401dd062
cmp dword [rsp + 0x30], 1
jne 0x1401dd029
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 1
jmp 0x1401dd062
cmp dword [rsp + 0x30], 5
jne 0x1401dd042
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 1
jmp 0x1401dd062
cmp dword [rsp + 0x30], 2
jne 0x1401dd053
mov dword [rsp + 0x34], 2
jmp 0x1401dd062
cmp dword [rsp + 0x30], 4
jne 0x1401dd062
mov dword [rsp + 0x34], 3
cmp dword [rsp + 0x34], 0xffffffff
je 0x1401dd0a6
movsxd rax, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x34]
and rcx, 0xffff
movzx ecx, cx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8d, ecx
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.1401de6d0
nop
cmp dword [rsp + 0x38], 0
je 0x1401dd0e4
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x14], 0xc8
mov rax, qword [rsp + 0x80]
add rax, 4
lea r9, [0x1401df890]
mov r8d, 0xc8
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_SetTimer]
nop
add rsp, 0x68
ret
Function at 0x1401dd8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x88], 0x1004
jne 0x1401dd9ce
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x140]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x1c], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xfc]
and eax, 1
cmp eax, 1
jne 0x1401dd946
mov dword [rsp + 0x3c], 1
jmp 0x1401dd94e
mov dword [rsp + 0x3c], 0
movsxd rax, dword [rsp + 0x38]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x80]
sub eax, dword [rcx + 0x4c]
mov rcx, qword [rsp + 0x50]
sub eax, dword [rcx + 0x24]
movsxd rcx, dword [rsp + 0x38]
and rcx, 0xffff
movzx ecx, cx
mov rdx, qword [rsp + 0x80]
sub ecx, dword [rdx + 0x48]
mov rdx, qword [rsp + 0x50]
sub ecx, dword [rdx + 0x20]
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x3c]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x48]
call fcn.1401de800
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x18], ecx
mov dword [rsp + 0x30], 4
jmp 0x1401dda69
cmp qword [rsp + 0x88], 0x1006
jne 0x1401dd9e9
mov dword [rsp + 0x30], 6
jmp 0x1401dda69
cmp qword [rsp + 0x88], 0x1007
jne 0x1401dda01
mov dword [rsp + 0x30], 7
jmp 0x1401dda69
cmp qword [rsp + 0x88], 0x1000
jne 0x1401dda19
mov dword [rsp + 0x30], 0
jmp 0x1401dda69
cmp qword [rsp + 0x88], 0x1001
jne 0x1401dda31
mov dword [rsp + 0x30], 1
jmp 0x1401dda69
cmp qword [rsp + 0x88], 0x1002
jne 0x1401dda49
mov dword [rsp + 0x30], 2
jmp 0x1401dda69
cmp qword [rsp + 0x88], 0x1003
jne 0x1401dda61
mov dword [rsp + 0x30], 3
jmp 0x1401dda69
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x1401ddac4
movsxd rax, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x30]
and rcx, 0xffff
movzx ecx, cx
movsxd rdx, dword [rsp + 0x34]
and rdx, 0xffff
movzx edx, dx
shl edx, 0x10
or ecx, edx
movsxd rcx, ecx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, rcx
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.1401de6d0
nop
add rsp, 0x68
ret
Function at 0x140223780
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402237cc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x48
ret

Function at 0x14022b6e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
jmp 0x14022b71a
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 4
jae 0x14022b74c
lea rax, str.expand_32_byte_k
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.14022bbc0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4], eax
jmp 0x14022b70d
mov qword [rsp + 0x28], 0
jmp 0x14022b764
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 8
jae 0x14022b78b
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
call fcn.14022bbc0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov dword [rcx + rdx*4 + 0x10], eax
jmp 0x14022b757
mov eax, 4
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0xd
mov rcx, qword [rsp + 0x50]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x60]
mov dword [rcx + rax], edx
mov rax, qword [rsp + 0x60]
shr rax, 0x20
mov ecx, 4
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx], eax
add rsp, 0x40
pop rdi
ret

Function at 0x140230110
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov byte [rcx + rax], 0
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, eax
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x14023016f
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x28], rax
jae 0x14023016f
mov dword [rsp + 0x20], 1
jmp 0x140230177
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x140230188
mov dword [rsp + 0x24], 0
jmp 0x140230190
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1402301a0
Capabilities:
Get system information on windows
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x18], 0
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x19], 1
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x1a], 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x2c], 0
jbe 0x1402301e2
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
cmp dword [rsp + 0x50], 0
jbe 0x1402301f6
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140230258
lea rdx, str.VirtualAlloc2FromApp
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140347888], rax
cmp qword [0x140347888], 0
jne 0x14023024c
lea rdx, str.VirtualAlloc2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140347888], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [0x14032a7f8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140230297
lea rdx, str.NtAllocateVirtualMemoryEx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140347890], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [0x14032a830]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140230321
lea rdx, str.GetCurrentProcessorNumberEx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140347898], rax
lea rdx, str.GetNumaProcessorNodeEx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403478a0], rax
lea rdx, str.GetNumaNodeProcessorMaskEx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403478a8], rax
lea rdx, str.GetNumaProcessorNode
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403478b0], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov ecx, 6
call fcn.140224e40
movzx eax, al
test eax, eax
jne 0x140230343
mov ecx, 7
call fcn.140224e40
movzx eax, al
test eax, eax
je 0x140230355
mov rax, qword [rsp + 0x70]
add rax, 8
mov rcx, rax
call fcn.140230a40
nop
add rsp, 0x68
ret
Function at 0x1402304a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14032b320]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.14022a550
movzx eax, al
test eax, eax
jne 0x1402305f6
cmp qword [0x14032aa40], 0xffffffffffffffff
jne 0x14023053a
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14032aa40], rax
cmp qword [0x14032aa40], 0xffffffffffffffff
je 0x14023050e
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14032aa40]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14023050e
mov dword [rsp + 0x30], 1
jmp 0x140230516
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x140230527
mov dword [rsp + 0x34], 0
jmp 0x14023052f
mov dword [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
mov byte [0x1403478b9], al
mov rcx, qword [rsp + 0x80]
call fcn.14022edd0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x1402305f6
mov eax, 0xffffffff
cmp qword [rsp + 0x40], rax
jae 0x1402305f6
mov dword [rsp + 0x38], 0
movzx eax, byte [0x1403478b9]
test eax, eax
je 0x1402305a6
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [0x14032aa40]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
nop
jmp 0x1402305f6
cmp qword [0x14032aa40], 0xffffffffffffffff
je 0x1402305db
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [0x14032aa40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
jmp 0x1402305f6
mov ecx, 2
call fcn.140258f84
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.140259118
nop
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14023ba10
add rsp, 0x78
ret
Function at 0x140236d54
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140236d82
xor eax, eax
jmp 0x140236e68
cmp qword [rcx + 0x68], 0
je 0x140236d93
call fcn.14017a280
jmp 0x140236e68
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140236daa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140236dac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140236dde
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14023df70
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140236e62
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140236e15
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140236e3e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140253eb4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140236e62
cmp rsi, rbx
ja 0x140236e1c
test rsi, rsi
je 0x140236e62
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140253eb4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14023c940
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14023c98a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14023c98a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14023c98a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14023c98a
cmp dword [rcx + 0x84], 0xe
jbe 0x14023c98a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14023c98c
xor al, al
add rsp, 0x28
ret
Function at 0x140251f2c
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 0x140251d97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140251d97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140251d97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140251d97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140251d97
cmp dword [rcx + 0x84], 0xe
jbe 0x140251d97
cmp dword [rcx + 0xf8], 0
je 0x140251d97
mov ecx, ebx
call fcn.140251e48
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.140251c24
nop
cmp dword [rbp + 0x20], 0
je 0x140251de5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140251df0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140251d28

Function at 0x140252638
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14025266f
call fcn.140247bd8
mov dword [rax], 0x16
call fcn.1402429f4
xor eax, eax
jmp 0x1402526fd
mov rdx, r9
mov rcx, r8
call fcn.1402525d4
mov rbx, rax
test rax, rax
je 0x1402526fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140252500]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1402526e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140247b4c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402526ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402526dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14025e980
jmp 0x1402526fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402526f7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret