joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003888
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400038d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400038d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400038d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400038d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400038d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400038d4
xor al, al
add rsp, 0x28
ret

Function at 0x1400081a4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140007148
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1400081ef
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x140008223
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140008223
call fcn.14000cd1c
xor ebx, ebx
test eax, eax
jne 0x140008211
cmp byte [rbp - 0x48], bl
je 0x14000820a
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x140008223
cmp byte [rbp - 0x48], bl
je 0x140008221
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140007368
mov esi, eax
test eax, eax
je 0x14000825f
call fcn.14000ca30
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400082b8
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140007368
mov edi, eax
test eax, eax
je 0x14000829b
call fcn.14000ca30
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400082aa
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14000e440
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400082b8
mov rcx, qword [rbp - 0x50]
call fcn.14000cac8
cmp byte [rbp - 8], bl
je 0x1400082c6
mov rcx, qword [rbp - 0x20]
call fcn.14000cac8
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14000c08c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000be7c
Function at 0x1400110d8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140011108
xor eax, eax
jmp 0x1400111cb
mov rbp, rbx
cmp word [rax], si
je 0x14001112d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011114
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140011110
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000e1a8
movsxd r14, eax
test eax, eax
jne 0x14001116b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140011101
mov rcx, r14
call fcn.14000e0ec
mov rdi, rax
test rax, rax
jne 0x140011184
xor ecx, ecx
call fcn.14000cac8
jmp 0x140011160
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000e1a8
test eax, eax
jne 0x1400111b5
mov rcx, rdi
call fcn.14000cac8
jmp 0x1400111bf
xor ecx, ecx
call fcn.14000cac8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001648c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007148
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140016516
cmp byte [rbp - 0x21], r15b
je 0x140016511
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001654c
call fcn.14000cd1c
test eax, eax
jne 0x140016538
cmp byte [rbp - 0x21], r15b
je 0x140016530
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001654c
cmp byte [rbp - 0x21], r15b
je 0x140016549
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007368
test eax, eax
jne 0x1400165ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007148
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001658b
cmp byte [rbp - 0x21], r15b
je 0x1400165c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400165c0
call fcn.14000cd1c
test eax, eax
jne 0x1400165ac
cmp byte [rbp - 0x21], r15b
je 0x1400165a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400165c0
cmp byte [rbp - 0x21], r15b
je 0x1400165bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007368
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400165ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400165ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400165fd
mov rcx, rdi
call fcn.14000cac8
cmp byte [rbp + 0x3f], r15b
je 0x14001660c
mov rcx, qword [rbp + 0x27]
call fcn.14000cac8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180001dd0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x180050010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
cmp rdi, 0x40000000
jbe 0x180001e1d
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180595a30]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x180001e5f
cmp rsi, r14
jb 0x180001e57
cmp rsi, r15
jae 0x180001e57
cmp qword [rsi + 8], 0
jne 0x18000201d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001e42
mov qword [rsp + 0xb8], rbx
mov rbx, rdi
mov qword [rsp + 0xc0], rbp
cmp rdi, r14
jb 0x180001ee2
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001ed9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001ed9
cmp dword [rsp + 0x40], 0x10000
je 0x180001f5b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001ed9
sub rbx, rbp
cmp rbx, r14
jae 0x180001ea0
test rsi, rsi
jne 0x180001fc6
cmp rdi, r15
ja 0x18000200d
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
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 0x18000200d
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000200d
cmp dword [rsp + 0x40], 0x10000
je 0x180001f94
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180001f12
jmp 0x18000200d
test rbx, rbx
je 0x180001ed9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001fc6
cmp rbx, r14
jae 0x180001e80
jmp 0x180001ee2
test rdi, rdi
je 0x18000200d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001fc6
cmp rdi, r15
jbe 0x180001ef0
jmp 0x18000200d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180001fe0
mov rax, qword [0x180595a30]
mov qword [rsi], rax
mov qword [0x180595a30], rsi
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000e2d0
mov rsi, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret
Function at 0x180002160
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180050010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x180595958]
test rcx, rcx
jne 0x1800021be
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800021e3
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180595958], rax
jmp 0x1800021c7
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x1800021e3
xor edx, edx
lea rcx, [0x1800485a8]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x18000224b
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x180002249
dec eax
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x180002222
lea r8, [0x1800485a4]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call fcn.18001e130
test eax, eax
jne 0x180002249
lea r8, [0x1800485a8]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call fcn.18001e130
test eax, eax
jne 0x180002249
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18000224b
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18000e2d0
add rsp, 0x240
pop rbx
ret
Function at 0x180005b30
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.kernel32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18000d0c0
lea rdx, str.NtClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18000d0c0
lea rdx, str.NtCreateSection
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18000d0c0
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18000d0c0
lea rdx, [0x180048810]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18000d0c0
lea rdx, [0x180048820]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18000d0c0
Function at 0x1800075b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800075d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000764c
mov rdi, r14
mov rcx, rbx
call fcn.180008f40
test rax, rax
jle 0x180007624
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1800143e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000763c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180007644
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800075e6
sub r14, rdi
jmp 0x180007739
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180007663
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007665
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000769a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800143e0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180007736
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1800076d5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180007711
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001f4e4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18000774f
cmp rbp, rax
ja 0x1800076e1
mov r8, rdi
test rdi, rdi
je 0x180007736
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001f4e4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x180007739
Function at 0x18000b7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x18000b8e3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000b8e3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000b8e3
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18000b869
nop word [rax + rax]
cmp rbx, rcx
jae 0x18000b8e3
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18000b850
cmp rbx, rcx
jae 0x18000b8e3
movzx edi, word [rbx]
test di, di
je 0x18000b8e3
mov r10, qword [r14]
mov ecx, 1
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x18000b89f
mov edx, edi
mov rcx, r14
call fcn.180009630
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1800182e8
test eax, eax
je 0x18000b8ca
cmp eax, 0xc
je 0x18000b916
cmp eax, 0x16
je 0x18000b900
cmp eax, 0x22
je 0x18000b900
cmp eax, 0x50
jne 0x18000b90b
mov rcx, qword [r14]
cmp edi, dword [rcx - 0xc]
jg 0x18000b900
mov dword [rcx - 0x10], edi
xor edx, edx
mov rcx, qword [r14]
lea eax, [rdx + 1]
mov word [rcx + rdi*2], dx
jmp 0x18000b8e5
xor eax, eax
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
mov ecx, 0x80070057
call fcn.180002100
int3
mov ecx, 0x80004005
call fcn.180002100
int3
mov ecx, 0x8007000e
call fcn.180002100
int3
Function at 0x18000ca10
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 [0x180050010]
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 qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000cb3b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18000cb32
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18000cb14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18000cb14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18000cb14
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18000cad2
mov rcx, qword [0x180595940]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18000cb32
jmp 0x18000cb07
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18000cb07
mov rcx, qword [0x180595940]
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 0x18000cb32
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 qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18000ca80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18000cb93
cmp dword [rbx + 0xc], esi
jbe 0x18000cb93
nop word [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 0x18000cb8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18000c870
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18000cb50
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000e2d0
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 0x18000ccd0
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 [0x180595a2c]
mov ebx, edi
test ecx, ecx
je 0x18000cdeb
mov rax, qword [0x180595a20]
add rax, 0x21
nop
movzx edx, byte [rax]
cmp edx, esi
jne 0x18000cd23
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18000cd00
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18000cdeb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18000ca10
mov edx, dword [0x180595a2c]
cmp ebx, edx
jae 0x18000cd81
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180595a20]
movzx ecx, byte [rcx + rax + 0x21]
cmp ecx, esi
je 0x18000cd7b
mov edx, esi
mov ecx, ebx
call fcn.18000cbc0
mov edi, eax
test eax, eax
jne 0x18000cd81
mov edx, dword [0x180595a2c]
inc ebx
cmp ebx, edx
jb 0x18000cd50
cmp qword [rsp + 0x20], 0
je 0x18000cdeb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000cdd7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [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 0x18000cdc8
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 0x18000cda0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180595940]
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 0x18000d0c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180595938], ebp
je 0x18000d117
cmp rbx, 0x20
jae 0x18000d100
xor ecx, ecx
jmp 0x18000d102
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180595938], ebp
jne 0x18000d0f6
cmp qword [0x180595940], r15
je 0x18000d201
test rdi, rdi
jne 0x18000d137
mov ecx, esi
call fcn.18000ccd0
mov ebp, eax
jmp 0x18000d206
mov ecx, dword [0x180595a2c]
mov ebx, r15d
test ecx, ecx
je 0x18000d15f
mov r8, qword [0x180595a20]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18000d169
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18000d150
mov ebp, 4
jmp 0x18000d206
cmp ebx, 0xffffffff
je 0x18000d15f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x21]
cmp eax, esi
je 0x18000d1f8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18000ca10
mov edx, esi
mov ecx, ebx
call fcn.18000cbc0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18000d206
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000d1e2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000d1d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18000d1b0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180595940]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000d206
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18000d206
mov ebp, 2
xchg dword [0x180595938], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18001fc40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800383d0
sub rsp, rax
mov rax, qword [0x180050010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002603c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001fc8f
mov rax, rbp
jmp 0x18001fd97
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5951b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002c96c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x5951b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001fd93
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001fd93
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002c96c
test rax, rax
js 0x18001fd93
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001fd93
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001fd85
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001fd85
cmp byte [rcx], 0xd
jne 0x18001fd6b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001fd7a
cmp byte [rcx + 1], 0xa
jne 0x18001fd7a
inc rcx
jmp 0x18001fd7a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x50440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001fd4d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001fd97
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000e2d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret