joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a40
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002be0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002afb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ae0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002c02
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002b7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002b90
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002b08
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003170
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400031cc
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 0x1400031c3
test rsi, rsi
je 0x1400031c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400031a8
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 0x1400033e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400033f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003400
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003410
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000345d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003454
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000345f
add rax, 0x28
cmp rax, r9
jne 0x140003440
xor eax, eax
ret

Function at 0x140003460
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400034f0
mov rdx, qword [0x140007320]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400034de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400034de
cmp word [rax + 0x18], 0x20b
jne 0x1400034de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400034f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400034c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400034f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400034c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140003500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140007320]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003520
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000357d
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 0x140003574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003520
add rax, 0x28
cmp rax, r9
jne 0x140003560
xor eax, eax
ret

Function at 0x140003580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007320]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000359f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400035a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000359f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400035c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140007320]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400035e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400035e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400035e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003630
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003627
test rcx, rcx
je 0x1400035e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003618
xor eax, eax
ret

Function at 0x140003640
Capabilities:
Parse pe header

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

Function at 0x140003680
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140007320]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400036a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400036a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400036a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400036f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003700
add rdx, 0x28
cmp r9, rdx
jne 0x1400036e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003710
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140007320]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003732
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003740
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003732
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003732
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003732
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003795
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400037a8
add rdx, 0x28
cmp rdx, r10
jne 0x140003780
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400037b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400037c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000379e
test ecx, ecx
jg 0x1400037b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180002d00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002d28
xor eax, eax
lea r8, [0x180002bd0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180004410
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004630
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004517
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004474
mov rax, qword [0x18000d008]
cmp qword [rsp + 0x20], rax
ja 0x180004474
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004436
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800044a3
jmp 0x180004517
cmp dword [rsp + 0x50], 0x10000
jne 0x1800044fa
cmp qword [rsp + 0x48], 0x10000
jb 0x1800044fa
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800044e8
mov rax, qword [rsp + 0x28]
jmp 0x180004519
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004512
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004630
mov qword [rsp + 0x20], rax
jmp 0x180004436
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004520
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004670
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004623
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000457b
mov rax, qword [0x18000d008]
cmp qword [rsp + 0x20], rax
ja 0x18000457b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000453d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800045aa
jmp 0x180004623
cmp dword [rsp + 0x50], 0x10000
jne 0x180004601
cmp qword [rsp + 0x48], 0x10000
jb 0x180004601
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800045ef
mov rax, qword [rsp + 0x28]
jmp 0x180004625
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000461e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004670
mov qword [rsp + 0x20], rax
jmp 0x18000453d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800046c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004c50
mov qword [rsp + 0x28], 0
cmp qword [0x18000d378], 0
jne 0x180004708
cmp qword [0x18000d370], 0
je 0x180004708
mov rax, qword [0x18000d370]
mov qword [0x18000d378], rax
cmp qword [0x18000d378], 0
je 0x1800047ae
mov rax, qword [0x18000d378]
cmp qword [rax + 0x10], 0
je 0x1800047ae
mov rax, qword [0x18000d378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800047ae
mov rax, qword [0x18000d378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800047ae
mov rax, qword [0x18000d378]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004774
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000477b
xor eax, eax
jmp 0x180004929
mov rax, qword [0x18000d378]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004929
mov rax, qword [0x18000d370]
mov qword [0x18000d378], rax
jmp 0x1800047d0
mov rax, qword [0x18000d378]
mov rax, qword [rax + 8]
mov qword [0x18000d378], rax
cmp qword [0x18000d378], 0
je 0x18000481d
cmp qword [0x18000d378], 0
je 0x18000481b
mov rax, qword [0x18000d378]
cmp qword [rax + 0x10], 0
je 0x18000481b
mov rax, qword [0x18000d378]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000481b
mov rax, qword [0x18000d378]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000481b
jmp 0x18000474c
jmp 0x1800047be
mov rcx, qword [rsp + 0x60]
call fcn.180006880
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004930
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004927
mov rax, qword [rsp + 0x48]
mov qword [0x18000d378], rax
mov rax, qword [0x18000d378]
mov dword [rax], 0x52727464
mov rax, qword [0x18000d378]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000d378]
mov rcx, qword [0x18000d370]
mov qword [rax + 8], rcx
mov rax, qword [0x18000d378]
mov qword [0x18000d370], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000d378]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800048d8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004912
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800048ce
mov rax, qword [0x18000d378]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000474c
xor eax, eax
add rsp, 0x58
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044e0]
mov dword [rax], 1
mov rax, qword [0x004044f0]
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004043b0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004044b0]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404470]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404360]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x402480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4024d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4024cb
test r12, r12
je 0x4024cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024b0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402700
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402710
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402720
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402765
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40275c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402767
add rax, 0x28
cmp rax, r9
jne 0x402748
xor eax, eax
ret

Function at 0x402810
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004043b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402889
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402889
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402886
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40287d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402889
add r8, 0x28
cmp r8, r9
jne 0x402868
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004043b0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4029df
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029df
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x4029dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4029d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029e8
add rax, 0x28
cmp rax, r9
jne 0x4029c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402a78
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a78
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402a78
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a78
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402a6c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402a80
add rdx, 0x28
cmp rdx, r10
jne 0x402a58
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402a90
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402a9e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402a75
test r8d, r8d
jg 0x402a88
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140041890
Capabilities:
Get session information

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x140041955
lea r9, [rsp + 0x48]
mov qword [r9], 0
lea rcx, [rsp + 0x44]
mov dword [rcx], 0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov edx, eax
mov r8d, 0x18
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x140041955
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
mov rdi, qword [rsp + 0x48]
mov ecx, 0x30
int3
mov qword [rsi], 0
jmp 0x14004197c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140111870
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140047cf0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x140047d1f
call fcn.1400e8390
cmp qword [rsi], rbx
je 0x140047d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140047d8d
cmp rbp, 2
jb 0x140047d47
mov qword [rsi], rbx
call fcn.1400e8390
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.1400e6740
lea rcx, [rsi + 0x20]
int3
call fcn.1400e8390
mov rcx, qword [rsi]
int3
Function at 0x140047f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov r15, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ebx, byte [rdx + 0x17]
test bl, bl
jns 0x140047f40
mov rbx, qword [rsi + 8]
mov rsi, qword [rsi]
movzx ebp, byte [r15 + 0x17]
test bpl, bpl
jns 0x140047f51
mov rbp, qword [r15 + 8]
mov r15, qword [r15]
cmp rbp, 2
jb 0x14004805b
cmp word [r15 + 2], 0x3a
jne 0x14004805b
movzx eax, word [r15]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x14004805b
mov edi, 2
xor eax, eax
cmp rbx, 2
jb 0x140048037
cmp word [rsi + 2], 0x3a
jne 0x140048037
movzx ecx, word [rsi]
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp cx, 0x1a
setb cl
not al
test al, cl
je 0x140048037
cmp rbp, rdi
mov rax, rdi
cmovb rax, rbp
lea rdx, [rsp + 0x30]
mov qword [rdx], rsi
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x20]
mov qword [rcx], r15
mov qword [rcx + 8], rax
mov r8d, 1
call fcn.1400f0540
test al, al
je 0x140047ff4
sub rbp, rdi
jb 0x140048064
add rbx, 0xfffffffffffffffe
cmp rbp, rbx
je 0x140048014
xor r14d, r14d
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140111870
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov r14b, 1
test rbp, rbp
je 0x140047ff7
lea rax, [r15 + rdi*2]
xor ecx, ecx
movzx edx, word [rax + rcx*2]
cmp dx, word [rsi + rcx*2 + 4]
jne 0x140047ff4
inc rcx
cmp rbp, rcx
jne 0x140048022
jmp 0x140047ff7
cmp rbp, rbx
jne 0x140047ff4
mov r14b, 1
test rbx, rbx
je 0x140047ff7
xor eax, eax
movzx ecx, word [r15 + rax*2]
cmp cx, word [rsi + rax*2]
jne 0x140047ff4
inc rax
cmp rbx, rax
jne 0x140048046
jmp 0x140047ff7
mov al, 1
xor edi, edi
jmp 0x140047f82
int3