joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bab0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, r8d
mov edx, edx
lea rdx, [rcx + rdx]
cmp rcx, rdx
jae 0x45bad4
movzx r8, byte [rcx]
xor eax, r8d
imul eax, eax, 0x1000193
add rcx, 1
cmp rcx, rdx
jb 0x45babe
nop
ret

Function at 0x472ca0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
cmp byte [rbp + 0x88], 0
je 0x472cde
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.0040c5e0
mov qword [rbp + 0x80], rax
nop
mov rcx, qword [0x0046abe0]
mov dl, 1
call fcn.0049f560
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rcx, qword [0x00471788]
mov dl, 1
call fcn.004a4300
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x00471788]
mov dl, 1
call fcn.004a4300
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x18], rax
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetSystemInfo
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0x34]
mov dword [rax + 0x20], ecx
cmp byte [rbp + 0x88], 0
je 0x472d9b
mov rcx, qword [rbp + 0x80]
call fcn.0040c620
mov qword [rbp + 0x80], rax
jmp 0x472d9b
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret

Function at 0x501da0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
movzx rax, byte [rcx + 0x19]
or al, dl
test al, al
je 0x501df0
cmp byte [rcx + 0x1d], 0
jne 0x501df0
cmp byte [rcx + 0x40], 0
jne 0x501df0
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x19], 0
mov rcx, qword [rcx + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x501e0d
mov rcx, qword [0x004c35b8]
mov dl, 1
mov r8, qword [0x005579c8]
call fcn.004384b0
mov rcx, rax
call fcn.0040e0a0
jmp 0x501e0d
mov rcx, qword [0x004c35b8]
mov dl, 1
mov r8, qword [0x005579c8]
call fcn.004384b0
mov rcx, rax
call fcn.0040e0a0
add rsp, 0x28
ret

Function at 0x502a20
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00501c20
jmp 0x502a7b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x502aa0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00501c20
cmp esi, 1
jne 0x502aca
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x52d900
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x20]
mov edx, 0x8004667e
lea r8, [0x0056493c]
call sub.WS2_32.DLL_ioctlsocket_1
mov byte [0x00564938], 1
jmp 0x52d9aa
Function at 0x180056ab0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r8d, ecx
mov r9d, ecx
xor ecx, ecx
and r8d, 0xe0000000
cmp r8d, 0xe0000000
mov eax, 0x40
cmovne eax, ecx
mov edx, eax
bts edx, 7
cmp r8d, 0xa0000000
cmovne edx, eax
mov eax, edx
or eax, 0x20
cmp r8d, 0x60000000
cmovne eax, edx
mov ecx, eax
or ecx, 0x10
cmp r8d, 0x20000000
cmovne ecx, eax
mov eax, ecx
or eax, 4
cmp r8d, 0xc0000000
cmovne eax, ecx
mov ecx, eax
or ecx, 8
cmp r8d, 0x80000000
cmovne ecx, eax
mov eax, ecx
or eax, 2
cmp r8d, 0x40000000
cmovne eax, ecx
mov ecx, eax
or ecx, 1
test r8d, r8d
cmovne ecx, eax
mov eax, ecx
bts eax, 9
bt r9d, 0x1a
cmovae eax, ecx
ret
Function at 0x140001de2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0xa8
mov word [rsp + 0x20], 0x65
mov word [rsp + 0x22], 0x5b
mov word [rsp + 0x24], 0x6e
mov word [rsp + 0x26], 0x70
mov word [rsp + 0x28], 0x72
mov word [rsp + 0x2a], 0x7c
mov word [rsp + 0x2c], 0x7d
mov word [rsp + 0x2e], 0x7b
mov word [rsp + 0x30], 0x82
mov word [rsp + 0x32], 0x65
mov word [rsp + 0x34], 0x56
mov word [rsp + 0x36], 0x6a
mov word [rsp + 0x38], 0x6c
mov word [rsp + 0x3a], 0x71
mov word [rsp + 0x3c], 0x72
mov word [rsp + 0x3e], 0x77
mov word [rsp + 0x40], 0x6e
mov word [rsp + 0x42], 0x65
mov word [rsp + 0x44], 0x5c
mov word [rsp + 0x46], 0x62
mov word [rsp + 0x48], 0x5c
mov word [rsp + 0x4a], 0x5d
mov word [rsp + 0x4c], 0x4e
mov word [rsp + 0x4e], 0x56
mov word [rsp + 0x50], 0x65
mov word [rsp + 0x52], 0x4c
mov word [rsp + 0x54], 0x7e
mov word [rsp + 0x56], 0x7b
mov word [rsp + 0x58], 0x7b
mov word [rsp + 0x5a], 0x6e
mov word [rsp + 0x5c], 0x77
mov word [rsp + 0x5e], 0x7d
mov word [rsp + 0x60], 0x4c
mov word [rsp + 0x62], 0x78
mov word [rsp + 0x64], 0x77
mov word [rsp + 0x66], 0x7d
mov word [rsp + 0x68], 0x7b
mov word [rsp + 0x6a], 0x78
mov word [rsp + 0x6c], 0x75
mov word [rsp + 0x6e], 0x5c
mov word [rsp + 0x70], 0x6e
mov word [rsp + 0x72], 0x7d
mov word [rsp + 0x74], 0x65
mov word [rsp + 0x76], 0x5c
mov word [rsp + 0x78], 0x6e
mov word [rsp + 0x7a], 0x7b
mov word [rsp + 0x7c], 0x7f
mov word [rsp + 0x7e], 0x72
mov word [rsp + 0x80], 0x6c
mov word [rsp + 0x82], 0x6e
mov word [rsp + 0x84], 0x7c
mov word [rsp + 0x86], 0x65
mov word [rsp + 0x88], pe_nt_image_headers64
mov word [rsp + 0x8a], 0x7e
mov word [rsp + 0x8c], 0x6a
mov word [rsp + 0x8e], 0x7e
mov word [rsp + 0x90], 0x7c
mov word [rsp + 0x92], 0x6e
mov word [rsp + 0x94], 0x7b
mov word [rsp + 0x96], 0x7f
mov word [rsp + 0x98], 9
cmp byte [0x140897660], 0
jne 0x140001ffd
mov byte [0x1408976fa], 1
mov eax, 0
lea rcx, [0x140897680]
movzx edx, word [rsp + rax*2 + 0x20]
mov word [rcx + rax*2], dx
add rax, 1
cmp rax, 0x3d
jne 0x140001fd7
mov byte [0x140897660], 1
lea rcx, [0x14000168a]
call fcn.1400014f0
lea rax, [0x140897680]
add rsp, 0xa8
ret

Function at 0x140002218
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x20], 3
mov byte [rsp + 0x21], 0x59
mov byte [rsp + 0x22], 0x4c
mov byte [rsp + 0x23], 0x55
mov byte [rsp + 0x24], 0x58
mov byte [rsp + 0x25], 0x56
mov byte [rsp + 0x26], 0x46
mov byte [rsp + 0x27], 0x4b
mov byte [rsp + 0x28], 0x48
mov byte [rsp + 0x29], 0x46
mov byte [rsp + 0x2a], 0x4e
mov byte [rsp + 0x2b], 0x50
mov byte [rsp + 0x2c], 0x44
mov byte [rsp + 0x2d], 0x57
mov byte [rsp + 0x2e], 0x48
mov byte [rsp + 0x2f], 0x11
mov byte [rsp + 0x30], 0x46
mov byte [rsp + 0x31], 0x52
mov byte [rsp + 0x32], 0x50
mov byte [rsp + 0x33], 0xe3
cmp byte [0x1408972e8], 0
jne 0x1400022c1
mov byte [0x140897304], 1
mov eax, 0
lea rcx, [0x1408972f0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x14
jne 0x14000229c
mov byte [0x1408972e8], 1
lea rcx, [0x1400017bd]
call fcn.1400014f0
lea rax, [0x1408972f0]
add rsp, 0x48
ret
Function at 0x1400022ce
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x20], 3
mov byte [rsp + 0x21], 0x51
mov byte [rsp + 0x22], 0x52
mov byte [rsp + 0x23], 0x47
mov byte [rsp + 0x24], 0x4c
mov byte [rsp + 0x25], 0x56
mov byte [rsp + 0x26], 0x57
mov byte [rsp + 0x27], 0x55
mov byte [rsp + 0x28], 0x4c
mov byte [rsp + 0x29], 0x45
mov byte [rsp + 0x2a], 0x58
mov byte [rsp + 0x2b], 0x57
mov byte [rsp + 0x2c], 0x48
mov byte [rsp + 0x2d], 0x11
mov byte [rsp + 0x2e], 0x46
mov byte [rsp + 0x2f], 0x52
mov byte [rsp + 0x30], 0x50
mov byte [rsp + 0x31], 0xe3
cmp byte [0x1408972c0], 0
jne 0x14000236d
mov byte [0x1408972e2], 1
mov eax, 0
lea rcx, [0x1408972d0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x12
jne 0x140002348
mov byte [0x1408972c0], 1
lea rcx, [0x1400017d5]
call fcn.1400014f0
lea rax, [0x1408972d0]
add rsp, 0x48
ret

Function at 0x14000237a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x20], 3
mov byte [rsp + 0x21], 0x59
mov byte [rsp + 0x22], 0x4c
mov byte [rsp + 0x23], 0x55
mov byte [rsp + 0x24], 0x58
mov byte [rsp + 0x25], 0x56
mov byte [rsp + 0x26], 0x56
mov byte [rsp + 0x27], 0x46
mov byte [rsp + 0x28], 0x44
mov byte [rsp + 0x29], 0x51
mov byte [rsp + 0x2a], 0x11
mov byte [rsp + 0x2b], 0x4d
mov byte [rsp + 0x2c], 0x52
mov byte [rsp + 0x2d], 0x57
mov byte [rsp + 0x2e], 0x57
mov byte [rsp + 0x2f], 0x4c
mov byte [rsp + 0x30], 0x11
mov byte [rsp + 0x31], 0x52
mov byte [rsp + 0x32], 0x55
mov byte [rsp + 0x33], 0x4a
mov byte [rsp + 0x34], 0xe3
cmp byte [0x140897288], 0
jne 0x140002428
mov byte [0x1408972a5], 1
mov eax, 0
lea rcx, [0x140897290]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x15
jne 0x140002403
mov byte [0x140897288], 1
lea rcx, [0x140001805]
call fcn.1400014f0
lea rax, [0x140897290]
add rsp, 0x48
ret

Function at 0x140002434
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x20], 3
mov byte [rsp + 0x21], 0x53
mov byte [rsp + 0x22], 0x44
mov byte [rsp + 0x23], 0x51
mov byte [rsp + 0x24], 0x47
mov byte [rsp + 0x25], 0x44
mov byte [rsp + 0x26], 0x56
mov byte [rsp + 0x27], 0x48
mov byte [rsp + 0x28], 0x46
mov byte [rsp + 0x29], 0x58
mov byte [rsp + 0x2a], 0x55
mov byte [rsp + 0x2b], 0x4c
mov byte [rsp + 0x2c], 0x57
mov byte [rsp + 0x2d], 0x5c
mov byte [rsp + 0x2e], 0x11
mov byte [rsp + 0x2f], 0x46
mov byte [rsp + 0x30], 0x52
mov byte [rsp + 0x31], 0x50
mov byte [rsp + 0x32], 0xe3
cmp byte [0x1408971d8], 0
jne 0x1400024d8
mov byte [0x1408971f3], 1
mov eax, 0
lea rcx, [0x1408971e0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x13
jne 0x1400024b3
mov byte [0x1408971d8], 1
lea rcx, [0x1400018ad]
call fcn.1400014f0
lea rax, [0x1408971e0]
add rsp, 0x48
ret
Function at 0x1400024e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x20], 3
mov byte [rsp + 0x21], 0x16
mov byte [rsp + 0x22], 0x19
mov byte [rsp + 0x23], 0x13
mov byte [rsp + 0x24], 0x57
mov byte [rsp + 0x25], 0x52
mov byte [rsp + 0x26], 0x57
mov byte [rsp + 0x27], 0x44
mov byte [rsp + 0x28], 0x4f
mov byte [rsp + 0x29], 0x56
mov byte [rsp + 0x2a], 0x48
mov byte [rsp + 0x2b], 0x46
mov byte [rsp + 0x2c], 0x58
mov byte [rsp + 0x2d], 0x55
mov byte [rsp + 0x2e], 0x4c
mov byte [rsp + 0x2f], 0x57
mov byte [rsp + 0x30], 0x5c
mov byte [rsp + 0x31], 0x11
mov byte [rsp + 0x32], 0x46
mov byte [rsp + 0x33], 0x52
mov byte [rsp + 0x34], 0x50
mov byte [rsp + 0x35], 0xe3
cmp byte [0x140897180], 0
jne 0x140002597
mov byte [0x1408971a6], 1
mov eax, 0
lea rcx, [0x140897190]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x16
jne 0x140002572
mov byte [0x140897180], 1
lea rcx, [0x1400018f5]
call fcn.1400014f0
lea rax, [0x140897190]
add rsp, 0x48
ret

Function at 0x1400025a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x20], 3
mov byte [rsp + 0x21], 0x44
mov byte [rsp + 0x22], 0x51
mov byte [rsp + 0x23], 0x57
mov byte [rsp + 0x24], 0x4c
mov byte [rsp + 0x25], 0x59
mov byte [rsp + 0x26], 0x4c
mov byte [rsp + 0x27], 0x55
mov byte [rsp + 0x28], 0x58
mov byte [rsp + 0x29], 0x56
mov byte [rsp + 0x2a], 0x11
mov byte [rsp + 0x2b], 0x46
mov byte [rsp + 0x2c], 0x52
mov byte [rsp + 0x2d], 0x50
mov byte [rsp + 0x2e], 0x52
mov byte [rsp + 0x2f], 0x47
mov byte [rsp + 0x30], 0x52
mov byte [rsp + 0x31], 0x11
mov byte [rsp + 0x32], 0x46
mov byte [rsp + 0x33], 0x52
mov byte [rsp + 0x34], 0x50
mov byte [rsp + 0x35], 0xe3
cmp byte [0x140897148], 0
jne 0x140002657
mov byte [0x140897166], 1
mov eax, 0
lea rcx, [0x140897150]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x16
jne 0x140002632
mov byte [0x140897148], 1
lea rcx, [0x140001925]
call fcn.1400014f0
lea rax, [0x140897150]
add rsp, 0x48
ret
Function at 0x14000279e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x88
mov word [rsp + 0x20], 0xe4
mov word [rsp + 0x22], 0x12
mov word [rsp + 0x24], 0xdf
mov word [rsp + 0x26], 0xee
mov word [rsp + 0x28], 0x22
mov word [rsp + 0x2a], 0xdf
mov word [rsp + 0x2c], 0x22
mov word [rsp + 0x2e], 0x27
mov word [rsp + 0x30], 0x2e
mov word [rsp + 0x32], 0x28
mov word [rsp + 0x34], 0x22
mov word [rsp + 0x36], 0x24
mov word [rsp + 0x38], 0xdf
mov word [rsp + 0x3a], 0xee
mov word [rsp + 0x3c], 2
mov word [rsp + 0x3e], 0xdf
mov word [rsp + 0x40], 0x18
mov word [rsp + 0x42], 0xdf
mov word [rsp + 0x44], 0xee
mov word [rsp + 0x46], 0xd
mov word [rsp + 0x48], 0xdf
mov word [rsp + 0x4a], 0xee
mov word [rsp + 0x4c], 3
mov word [rsp + 0x4e], 0xdf
mov word [rsp + 0x50], 0x18
mov word [rsp + 0x52], 0xdf
mov word [rsp + 0x54], 0xee
mov word [rsp + 0x56], 0x13
mov word [rsp + 0x58], 0xdf
mov word [rsp + 0x5a], 0xf2
mov word [rsp + 0x5c], 0xdf
mov word [rsp + 0x5e], 0xe5
mov word [rsp + 0x60], 0xdf
mov word [rsp + 0x62], 3
mov word [rsp + 0x64], 0x24
mov word [rsp + 0x66], 0x2b
mov word [rsp + 0x68], 0xdf
mov word [rsp + 0x6a], 0xe1
mov word [rsp + 0x6c], 0xe4
mov word [rsp + 0x6e], 0x12
mov word [rsp + 0x70], 0xe1
mov word [rsp + 0x72], 0xbf
cmp byte [0x1408969a8], 0
jne 0x14000290d
mov byte [0x140896a14], 1
mov eax, 0
lea rcx, [0x1408969c0]
movzx edx, word [rsp + rax*2 + 0x20]
mov word [rcx + rax*2], dx
add rax, 1
cmp rax, 0x2a
jne 0x1400028e7
mov byte [0x1408969a8], 1
lea rcx, [0x140001a8a]
call fcn.1400014f0
lea rax, [0x1408969c0]
add rsp, 0x88
ret
Function at 0x140002980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140002af4
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x140897bc1]
jmp 0x1400029e6
mov byte [0x140897bc1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x140897ba0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140002af4
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x89
mov byte [rsp + 0x21], 0x85
mov byte [rsp + 0x22], 0x79
mov byte [rsp + 0x23], 0x77
mov byte [rsp + 0x24], 0x87
mov byte [rsp + 0x25], 0x74
mov byte [rsp + 0x26], 0x7a
mov byte [rsp + 0x27], 0x85
mov byte [rsp + 0x28], 0x7d
mov byte [rsp + 0x29], 0x87
mov byte [rsp + 0x2a], 0x81
mov byte [rsp + 0x2b], 0x82
mov byte [rsp + 0x2c], 0x7e
mov byte [rsp + 0x2d], 0x8d
mov byte [rsp + 0x2e], 0x7a
mov byte [rsp + 0x2f], 0x82
mov byte [rsp + 0x30], 0x7a
mov byte [rsp + 0x31], pe_nt_image_headers64
mov byte [rsp + 0x32], 0x84
mov byte [rsp + 0x33], 0x75
mov byte [rsp + 0x34], 0x83
mov byte [rsp + 0x35], 0x75
mov byte [rsp + 0x36], 0x84
mov byte [rsp + 0x37], 0x8b
mov byte [rsp + 0x38], 0x83
mov byte [rsp + 0x39], 0x8a
mov byte [rsp + 0x3a], 0x79
mov byte [rsp + 0x3b], 0x7a
mov byte [rsp + 0x3c], 0x89
mov byte [rsp + 0x3d], 0x76
mov byte [rsp + 0x3e], 0x7a
mov byte [rsp + 0x3f], 0x88
mov byte [rsp + 0x40], 0x13
cmp byte [0x140897b80], 0
jne 0x140002acf
mov byte [0x140897bc1], 1
mov eax, 0
lea rcx, [0x140897ba0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140002aae
mov byte [0x140897b80], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x140897bc1], 0
je 0x1400029b8
lea rax, [0x140897ba0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140002ae3
jmp 0x1400029b1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140008620
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140008650
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000864f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140008655
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000864f
mov eax, 0
jmp 0x14000864f

Function at 0x140008cd0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140008c80
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400122e0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001ae20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call fcn.14001b408
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001ae20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001b470
call fcn.14001b3c0
nop
nop dword [rax]
Function at 0x140012350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140897f74]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400124e0
mov rax, qword [0x140897f78]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001239c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140012425
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140012380
mov rcx, rdi
call fcn.140012eb0
test rax, rax
mov r12, rax
je 0x140012532
mov rax, qword [0x140897f78]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140012ff0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140897f78]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140012515
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001241e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140012490
add dword [0x140897f74], 1
cmp ebx, 8
jae 0x140012451
test bl, 4
jne 0x1400124f0
test ebx, ebx
je 0x140012446
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140012504
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140012446
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001246a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140897f78]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001241e
call qword [0x1408992c4]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400122e0
xor esi, esi
jmp 0x1400123a7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140012446
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140012446
mov rax, qword [0x140897f78]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400122e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400122e0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140012eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14088a750]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140012f1f
mov rcx, r9
call fcn.140012d80
test eax, eax
je 0x140012f1f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140012f1d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140012f14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140012f1f
add rdx, 0x28
cmp rdx, r9
jne 0x140012f00
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140013be0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx]
cmp rsi, 8
mov rbx, rcx
ja 0x140013c30
lea rcx, [rdi + 8]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x140013c72
mov rdx, qword [rbx + 0x18]
mov qword [rax], rax
lea r9, [rax + 8]
mov r8, rdi
test rdx, rdx
je 0x140013c5a
mov rcx, r9
call fcn.14001b420
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + rdi + 7]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x140013c72
lea r9, [rax + rsi + 7]
neg rsi
mov r8, rdi
and r9, rsi
mov qword [r9 - 8], rax
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x140013c18
mov rcx, r9
xor edx, edx
call fcn.14001b428
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b3c0
nop
nop dword [rax + rax]
Function at 0x140013c80
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x140898060], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140898068], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140013cd0
lea rdx, [0x140013b90]
mov ecx, eax
mov dword [0x140898058], eax
call fcn.14001b590
test eax, eax
jne 0x140013cd8
add rsp, 0x28
ret
call qword [0x1408992c4]
jmp 0x140013cc7
call fcn.14001b3c0
nop
nop
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14088a620]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140013d18
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140013d80
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140013d90
call fcn.140013be0
mov qword [rbx + 0x10], rax
jmp 0x140013d07
mov r10d, dword [rsi]
test r10d, r10d
je 0x140013eaa
mov r9d, dword [0x140880400]
test r9d, r9d
je 0x140013ed8
lock add dword [0x140898060], 1
jne 0x140013f0c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140013eb7
mov eax, dword [rsi]
test eax, eax
je 0x140013d21
lock sub dword [0x140898060], 1
js 0x140013d21
mov rcx, qword [0x140898068]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call fcn.140013c80
mov dword [0x140880400], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140013dac
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140013d21
mov rax, qword [0x140898050]
lea r12, [rax + 1]
mov qword [0x140898050], r12
mov qword [rbx + 0x10], r12
jmp 0x140013dc7
lock add dword [0x140880404], 1
je 0x140013e91
mov r8d, dword [0x140880400]
lea rdi, [0x140880400]
mov rbp, qword [0x140899334]
test r8d, r8d
jne 0x140013ea0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140013f00
jmp 0x140013ea0
mov rcx, qword [0x140898068]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140013dba
lock sub dword [0x140898060], 1
jmp 0x140013dba