joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140107574
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14014bc20]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401075cb
cmp word [rdx], r13w
jne 0x1401075cb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401075d0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401076f5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140107716
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140107609
mov rdx, r9
mov word [rbx], cx
jmp 0x140107630
cmp r9, r8
jae 0x140107640
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401075ea
jmp 0x1401076f5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401076ea
cmp dword [rsp + 0x80], esi
je 0x1401076ea
lea r8, [0x14014bc20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401076c2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140107692
mov word [rbx], r13w
jmp 0x1401076f2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14010769f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401076f2
cmp word [rsp + 0x70], r13w
jne 0x1401076cf
cmp rbx, r14
je 0x14010768c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401081dc
cmp word [rsp + 0x70], r13w
je 0x1401076f5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14014bc20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401076ef
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401076f5
Function at 0x140109bf4
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 0x140109c24
xor eax, eax
jmp 0x140109ce7
mov rbp, rbx
cmp word [rax], si
je 0x140109c49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140109c30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140109c2c
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.140109b14
movsxd r14, eax
test eax, eax
jne 0x140109c87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140109c1d
mov rcx, r14
call fcn.140104040
mov rdi, rax
test rax, rax
jne 0x140109ca0
xor ecx, ecx
call fcn.140101d70
jmp 0x140109c7c
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.140109b14
test eax, eax
jne 0x140109cd1
mov rcx, rdi
call fcn.140101d70
jmp 0x140109cdb
xor ecx, ecx
call fcn.140101d70
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 0x140109d04
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140109d8b
mov rsi, rbx
cmp word [rax], bp
je 0x140109d4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140109d34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140109d30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140104040
mov rdi, rax
test rax, rax
je 0x140109d78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140115280
mov rbp, rdi
xor ecx, ecx
call fcn.140101d70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14010d7d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140102124
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14010d871
cmp ebx, dword [rsp + 0x30]
je 0x14010d86a
test esi, esi
je 0x14010d86a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14010d845
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14010d852
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14010d82f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14010d856
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14010d873
mov eax, 1
jmp 0x14010d873
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401122fc
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.1400f67d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140112386
cmp byte [rbp - 0x21], r15b
je 0x140112381
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401123bc
call fcn.1401027a4
test eax, eax
jne 0x1401123a8
cmp byte [rbp - 0x21], r15b
je 0x1401123a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401123bc
cmp byte [rbp - 0x21], r15b
je 0x1401123b9
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.1400f9490
test eax, eax
jne 0x14011245c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400f67d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401123fb
cmp byte [rbp - 0x21], r15b
je 0x140112430
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140112430
call fcn.1401027a4
test eax, eax
jne 0x14011241c
cmp byte [rbp - 0x21], r15b
je 0x140112415
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140112430
cmp byte [rbp - 0x21], r15b
je 0x14011242d
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.1400f9490
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14011245c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14011245f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14011246d
mov rcx, rdi
call fcn.140101d70
cmp byte [rbp + 0x3f], r15b
je 0x14011247c
mov rcx, qword [rbp + 0x27]
call fcn.140101d70
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 0x140114044
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401081dc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401081dc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140114194
cmp rax, 0xffffffffffffffff
je 0x140114194
xor edi, edi
test rbp, rbp
jle 0x14011413f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140101cf8
mov rbx, rax
test rax, rax
jne 0x1401140cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140114135
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ff014
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14010523c
cmp eax, 0xffffffff
je 0x140114115
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401140dc
mov edx, r15d
mov ecx, r14d
call fcn.1400ff014
jmp 0x140114135
cmp byte [rsi + 0x38], dil
je 0x14011412c
cmp dword [rsi + 0x34], 5
jne 0x14011412c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140114135
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140101d70
jmp 0x1401141a8
jns 0x1401141a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401081dc
cmp rax, 0xffffffffffffffff
jne 0x140114160
cmp byte [rsi + 0x30], dil
je 0x1401141a8
mov edi, dword [rsi + 0x2c]
jmp 0x1401141a8
mov ecx, r14d
call fcn.14010b0ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401141a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401141a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401141a1
mov eax, dword [rsi + 0x2c]
jmp 0x1401141a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401081dc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140114b20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140114b48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140114b48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x22bb81a80
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 0x22bb81af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x22bba0054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x22bb81ca0
mov rax, qword [0x22bba0058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x22bb81b3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x22bb81bc7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x22bb81b20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x22bb81cfd
mov rax, qword [0x22bba0058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x22bba0058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x22bb81ce2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x22bb81bc0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x22bb81c50
add dword [0x22bba0054], 1
cmp ebx, 8
jae 0x22bb81bf8
test bl, 4
jne 0x22bb81cb0
test ebx, ebx
je 0x22bb81be9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x22bb81cd0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x22bb81be9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x22bb81c2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x22bba0058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x22bb81bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x22bb81b47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x22bb81be9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x22bb81be9
mov rax, qword [0x22bba0058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x22bb82000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x22bba0080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x22bba0060]
test rbx, rbx
je 0x22bb82054
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 0x22bb8204b
test r12, r12
je 0x22bb8204b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x22bb82030
lea rcx, [0x22bba0080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x22bb82280
Capabilities:
Parse pe header

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

Function at 0x22bb822a0
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 0x22bb822e5
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 0x22bb822dc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x22bb822e7
add rax, 0x28
cmp rax, r9
jne 0x22bb822c8
xor eax, eax
ret

Function at 0x22bb82390
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x22bb9d820]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x22bb82409
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb82409
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 0x22bb82406
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 0x22bb823fd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x22bb82409
add r8, 0x28
cmp r8, r9
jne 0x22bb823e8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x22bb824f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x22bb9d820]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x22bb8255f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb8255f
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 0x22bb8255d
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 0x22bb82554
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x22bb82568
add rax, 0x28
cmp rax, r9
jne 0x22bb82540
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x22bb82580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x22bb9d820]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x22bb825f8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb825f8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x22bb825f8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x22bb825f8
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 0x22bb825ec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x22bb82600
add rdx, 0x28
cmp rdx, r10
jne 0x22bb825d8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x22bb82610
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x22bb8261e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x22bb825f5
test r8d, r8d
jg 0x22bb82608
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001384
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004dd48
xor r8d, r8d
xor edx, edx
jmp 0x14004da38

Function at 0x140001690
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005c6c4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x14005c710
test rbx, rbx
je 0x14005c6ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400017df
cmp eax, 1
je 0x14005c710
mov eax, 4
jmp 0x14005c753
call fcn.140003904
cmp eax, 2
jne 0x14005c74c
call fcn.140001839
test al, al
je 0x14005c74c
call fcn.140002a90
test al, al
jne 0x14005c742
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.14000393b
jmp 0x14005c753
call fcn.1400037ec
mov rcx, rax
jmp 0x14005c732
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000211c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400723d8
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140097280]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x14009a438]
xor r11d, r11d
lea rdi, [0x1400818e4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140072448
mov rax, 0xfffffffffffffffe
jmp 0x140072595
cmp word [r10 + 6], r11w
jne 0x1400724b7
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140072472
test r14, r14
je 0x140072463
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x140072595
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140072480
mov r8b, 2
jmp 0x14007249e
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x14007248e
mov r8b, 3
jmp 0x14007249e
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x14007258a
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400724e0
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14007258a
cmp bl, bpl
jb 0x14007258a
cmp bl, r8b
jae 0x14007258a
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x14007250d
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14007258a
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400724ef
cmp r9, rbp
jae 0x140072539
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x14007243c
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14007258a
cmp edx, 0x110000
jae 0x14007258a
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14007258a
test r14, r14
je 0x140072578
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003936
jmp 0x140072595
mov rdx, rsi
mov rcx, r10
call fcn.140003f67
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002577
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x140008b9c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140008c29
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140008c29
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008c29
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140008c10
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140008c0a
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140008c12
add rdx, 0x28
jmp 0x140008bef
xor edx, edx
test rdx, rdx
jne 0x140008c1b
xor al, al
jmp 0x140008c2f
cmp dword [rdx + 0x24], 0
jge 0x140008c25
xor al, al
jmp 0x140008c2f
mov al, 1
jmp 0x140008c2f
xor al, al
jmp 0x140008c2f
add rsp, 0x18
ret