joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f866d
Capabilities:
Create thread

Disassembly:
jmp 0x140106170
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1403638c0]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14037f109]
call fcn.1400fb980
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400f96f3
mov r9, qword [rbp + 0x168]
mov r8, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400fac42
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400fb589
nop
lea rcx, [rbp + 0x108]
call fcn.1400fa79c
nop
lea rax, [0x1400fb908]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400f9734
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14010628b
lea rcx, [rbp + 8]
call fcn.1400fb56b
nop
jmp 0x1401062a4
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400f8cda
nop
lea rcx, [rbp + 8]
call fcn.1400fa79c
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400faf4e
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400f9bc6
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x1400f89d3
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14010ac40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14037f0c6]
call fcn.1400fb980
nop
mov qword [rbp + 8], 0
jmp 0x14010ac7f
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x14010acd5
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x14010ac74
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400f8f73
Capabilities:
Create thread

Disassembly:
jmp 0x14017bf60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1403638c0]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14037f988]
call fcn.1400fb980
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400faca1
mov r8, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400f8505
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400fbf0c
nop
lea rcx, [rbp + 0x108]
call fcn.1400f9739
nop
lea rax, [0x1400f917b]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400fb674
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14017c06f
lea rcx, [rbp + 8]
call fcn.1400f8244
nop
jmp 0x14017c088
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400f8cda
nop
lea rcx, [rbp + 8]
call fcn.1400f9739
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400faf4e
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400f9bc6
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400fa035
Capabilities:
Terminate process

Disassembly:
jmp 0x1402e35c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400fa792
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402e5e60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402e5e80
xor al, al
jmp 0x1402e5f01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402e5e93
xor al, al
jmp 0x1402e5f01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1402e5ebd
xor al, al
jmp 0x1402e5f01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402e5ed1
xor al, al
jmp 0x1402e5f01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402e5ee3
xor al, al
jmp 0x1402e5f01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402e5eff
xor al, al
jmp 0x1402e5f01
mov al, 1
add rsp, 0x38
ret

Function at 0x1400fa896
Capabilities:
Create tcp socket

Disassembly:
jmp 0x140108290
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400fb980
nop
mov rax, qword [rbp + 0x110]
add rax, 8
mov rcx, rax
call fcn.1400fb101
nop
mov rax, qword [rbp + 0x110]
mov rcx, qword [rbp + 0x118]
mov qword [rax + 0x58], rcx
mov rax, qword [rbp + 0x110]
add rax, 0x60
mov rcx, rax
call fcn.1400f98ab
nop
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0x110]
mov qword [rcx], rax
mov rax, qword [rbp + 0x110]
cmp qword [rax], 0xffffffffffffffff
jne 0x140108343
lea rdx, str.Communicator::Communicator___socket
lea rcx, [rbp + 0xc8]
call fcn.1400f80dc
lea rdx, [0x14035e1e8]
lea rcx, [rbp + 0xc8]
call fcn.1400fbee9
nop
mov rax, qword [rbp + 0x110]
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret
Function at 0x1400fac79
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
jmp 0x140180b40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400fb980
nop
mov rax, qword [rbp + 0x148]
mov qword [rbp + 8], rax
call fcn.1400fac29
test eax, eax
je 0x140180b7d
jmp 0x140180dc6
mov ecx, 5
call fcn.140251a90
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.1400fa319
nop
cmp dword [rbp + 0x140], 0
jle 0x140180ba8
cmp qword [rbp + 0x148], 0
jne 0x140180bce
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403647c0]
mov dword [rcx + rax], 0
mov rcx, qword [rbp + 0x28]
call fcn.1400fadf0
nop
jmp 0x140180dc6
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403647c0]
cmp dword [rcx + rax], 0
jne 0x140180cbc
xor ecx, ecx
call fcn.1400fa36e
mov qword [rbp + 0x48], rax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403647c0]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.expand_32_byte_k
mov rcx, rax
call fcn.1400f9bf3
nop
cmp qword [rbp + 0x48], 0
jne 0x140180c4f
mov eax, 4
imul rax, rax, 4
lea rcx, [0x1403647c0]
add rcx, rax
mov rax, rcx
mov r8d, 0x2c
xor edx, edx
mov rcx, rax
call fcn.1400faaf3
nop
jmp 0x140180c77
mov eax, 4
imul rax, rax, 4
lea rcx, [0x1403647c0]
add rcx, rax
mov rax, rcx
mov r8, rax
mov edx, 0x2c
mov rcx, qword [rbp + 0x48]
call fcn.140253720
nop
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1403647c0]
mov edx, 4
imul rdx, rdx, 0xf
lea r8, [0x1403647c0]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1403647c0]
mov dword [rcx + rax], 0
mov byte [0x140364840], 0
xor eax, eax
cmp eax, 1
je 0x140180dbc
movzx eax, byte [0x140364840]
cmp dword [rbp + 0x140], eax
jg 0x140180d22
movsxd rax, dword [rbp + 0x140]
movzx ecx, byte [0x140364840]
sub ecx, dword [rbp + 0x140]
movsxd rcx, ecx
lea rdx, [0x140364800]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rbp + 8]
call fcn.1400f9bf3
nop
movzx eax, byte [0x140364840]
sub eax, dword [rbp + 0x140]
mov byte [0x140364840], al
jmp 0x140180dbc
movzx eax, byte [0x140364840]
test eax, eax
jle 0x140180d74
movzx eax, byte [0x140364840]
mov r8d, eax
lea rdx, [0x140364800]
mov rcx, qword [rbp + 8]
call fcn.1400f9bf3
nop
movzx eax, byte [0x140364840]
mov ecx, dword [rbp + 0x140]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x140], eax
movzx eax, byte [0x140364840]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1403647c0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x1403647c0]
mov dword [rdx + rcx], eax
lea rdx, [0x1403647c0]
lea rcx, [0x140364800]
call fcn.1401ba370
nop
mov byte [0x140364840], 0x40
jmp 0x140180cbc
mov rcx, qword [rbp + 0x28]
call fcn.1400fadf0
nop
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1401dae40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
mov rax, qword [0x1403638c0]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400fb980
nop
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x1d0]
mov qword [rbp + 8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x30
mov byte [rbp + 0x64], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x30
mov byte [rbp + 0x84], al
mov dword [rbp + 0xa4], 0
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x61
cdqe
lea rcx, [0x14030d408]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0xc4], ax
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rbp + 0x1c8]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov dword [rbp + 0xa4], 0
movzx eax, byte [rbp + 0x64]
mov byte [rbp + 0x194], al
movzx eax, byte [rbp + 0x64]
dec al
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x194]
test eax, eax
je 0x1401dafa5
mov rax, qword [rbp + 0x1c0]
movzx eax, byte [rax]
lea rcx, [0x14030d220]
movzx eax, byte [rcx + rax]
and eax, 4
test eax, eax
jne 0x1401daf77
jmp 0x1401db032
imul eax, dword [rbp + 0xa4], 0xa
mov rcx, qword [rbp + 0x1c0]
movsx ecx, byte [rcx]
lea eax, [rax + rcx - 0x30]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x1c0]
inc rax
mov qword [rbp + 0x1c0], rax
jmp 0x1401daf38
movsx eax, byte [rbp + 0x84]
cmp dword [rbp + 0xa4], eax
jl 0x1401dafdd
movzx eax, word [rbp + 0xc4]
cmp dword [rbp + 0xa4], eax
jg 0x1401dafdd
movsx eax, byte [rbp + 0x44]
test eax, eax
je 0x1401dafdf
movsx eax, byte [rbp + 0x44]
mov rcx, qword [rbp + 0x1c0]
movsx ecx, byte [rcx]
cmp eax, ecx
je 0x1401dafdf
jmp 0x1401db032
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax - 8]
mov ecx, dword [rbp + 0xa4]
mov dword [rax], ecx
mov rax, qword [rbp + 0x1c0]
inc rax
mov qword [rbp + 0x1c0], rax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x1c8]
add rax, 4
mov qword [rbp + 0x1c8], rax
movsx eax, byte [rbp + 0x44]
test eax, eax
jne 0x1401daeab
mov qword [rbp + 8], 0
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400faf4e
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400f9bc6
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140208cc0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x40]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400fb980
nop
mov rax, qword [rbp + 0xe0]
mov byte [rax + 0x1c], 1
mov eax, dword [rbp + 0x100]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xe8]
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rcx, qword [rbp + 0xe0]
call fcn.140251d40
nop
cmp dword [rbp + 0xf0], 0
jne 0x140208d71
mov eax, dword [rbp + 0x100]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xe8]
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, qword [rbp + 0xe0]
call fcn.140251d40
nop
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140272e70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400fb980
nop
mov rax, qword [rbp + 0x100]
mov qword [rax], 0
mov ecx, 0x28
call fcn.140250070
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140272ec7
mov eax, 7
jmp 0x140272f9c
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
je 0x140272ee0
mov ecx, 0xc8
call fcn.14023d000
test eax, eax
je 0x140272ef4
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400faaf3
nop
jmp 0x140272f5f
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x110]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 8]
lea r8, [0x140273100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 8]
mov qword [rcx], rax
mov rax, qword [rbp + 8]
cmp qword [rax], 0
jne 0x140272f5f
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400faaf3
nop
mov rax, qword [rbp + 8]
cmp qword [rax + 0x10], 0
jne 0x140272f8c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rbp + 8]
mov dword [rcx + 8], eax
mov rcx, qword [rbp + 0x110]
call qword [rbp + 0x108]
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x20], rax
mov rax, qword [rbp + 0x100]
mov rcx, qword [rbp + 8]
mov qword [rax], rcx
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1402e3d60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400fbbd3
movzx eax, al
test eax, eax
jne 0x1402e3d80
mov ecx, 7
call fcn.1400fafad
nop
mov byte [rsp + 0x20], 0
call fcn.1400fb0ed
mov byte [rsp + 0x21], al
cmp dword [0x140365178], 1
jne 0x1402e3da4
mov ecx, 7
call fcn.1400fafad
nop
jmp 0x1402e3dfc
cmp dword [0x140365178], 0
jne 0x1402e3df7
mov dword [0x140365178], 1
lea rdx, [0x1402f8770]
lea rcx, [0x1402f8440]
call fcn.1400f9b3a
test eax, eax
je 0x1402e3dd8
mov eax, 0xff
jmp 0x1402e3f01
lea rdx, [0x1402f8330]
lea rcx, [section..rdata]
call fcn.1400fb0b1
mov dword [0x140365178], 2
jmp 0x1402e3dfc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400faf0d
call fcn.1400fa913
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1402e3e59
mov rcx, qword [rsp + 0x30]
call fcn.1400f9626
movzx eax, al
test eax, eax
je 0x1402e3e59
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140380020]
nop
call fcn.1400fab7a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1402e3e8d
mov rcx, qword [rsp + 0x38]
call fcn.1400f9626
movzx eax, al
test eax, eax
je 0x1402e3e8d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400fb7d7
nop
call fcn.1402e3fb0
mov dword [rsp + 0x28], eax
call fcn.1400fa792
movzx eax, al
test eax, eax
jne 0x1402e3eac
mov ecx, dword [rsp + 0x28]
call fcn.1400f8429
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1402e3ebb
call fcn.1400fb868
nop
xor edx, edx
mov cl, 1
call fcn.1400f94ff
mov eax, dword [rsp + 0x28]
jmp 0x1402e3f01
add rsp, 0x68
ret
Function at 0x140001570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140015c60], rbx
je 0x1400015d7
cmp rax, rbx
jne 0x1400015ca
mov ebx, 1
mov esi, ebx
jmp 0x1400015dc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015af
mov ebx, 1
mov eax, dword [0x140015c68]
cmp eax, ebx
jne 0x1400015f4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000166a
mov eax, dword [0x140015c68]
test eax, eax
jne 0x14000165f
mov dword [0x140015c68], ebx
lea r15, [0x140010bf8]
lea rdi, [0x140010be0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001651
test eax, eax
jne 0x140001655
cmp qword [rdi], r14
je 0x140001646
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x140010b90]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000161e
test eax, eax
je 0x140001665
mov eax, 0xff
jmp 0x1400017ca
mov dword [0x1400153e4], ebx
mov edi, 0x1f
mov eax, dword [0x140015c68]
cmp eax, ebx
jne 0x140001691
lea rdx, [0x140010bd8]
lea rcx, [0x140010ba0]
call sub.msvcrt.dll__initterm
mov dword [0x140015c68], 2
test esi, esi
jne 0x14000169f
mov rax, r14
xchg qword [0x140015c60], rax
cmp qword [0x140015c80], r14
je 0x1400016dc
lea rcx, [0x140015c80]
call fcn.140001c70
test eax, eax
je 0x1400016dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140015c80]
mov r9, qword [0x140010b90]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016f5
mov eax, 0xff
jmp 0x1400017ca
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000177b
test ax, ax
je 0x140001710
test edx, edx
jne 0x14000177b
sub ax, bx
cmp ax, di
ja 0x140001726
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001710
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006fbc
mov dword [0x1400153e0], eax
cmp dword [0x140015400], r14d
jne 0x140001764
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400153e4], r14d
jne 0x140001779
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400153e0]
jmp 0x1400017ca
cmp ax, 0x22
jne 0x14000178f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400016fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14013f000
add rsp, 0x28
jmp 0x140001570
Function at 0x140001870
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 fcn.140002690
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.140002690
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x140001a10
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000192b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001910
mov rcx, rbx
call fcn.140002330
mov rdi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x140008108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002470
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019c0
add dword [0x140008104], 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 [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001870
nop dword [rax]
xor esi, esi
jmp 0x140001938
mov rax, qword [0x140008108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001870
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001870
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x140001ffc
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 eax, eax
jne 0x140001ff3
test rsi, rsi
je 0x140001ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400046f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002350
add rax, 0x28
cmp rax, r9
jne 0x140002390
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400046f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400046f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000248f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002498
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret