joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dfc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14002a2c8]
test eax, eax
je 0x14000e05a
lea rax, [0x14002a2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14002a2d0]
mov qword [rbp - 8], rax
jmp 0x14000e03e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000e032
cmp qword [rbp - 0x10], 0
je 0x14000e032
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000dff8
lea rax, [0x14002a2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000e05b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e160
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000e188
mov eax, 0
jmp 0x14000e1d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000e1b1
mov eax, 0
jmp 0x14000e1d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000e1d1
mov eax, 0
jmp 0x14000e1d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000e1dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000e25a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000e251
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000e251
mov rax, qword [rbp - 8]
jmp 0x14000e26f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000e224
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140015bc4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140015d0e
mov rcx, qword [rbp + 0x10]
call fcn.14001a19d
cmp eax, 1
jne 0x140015d01
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140015cb7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140015ccd
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140015cb3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140015cec
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140015d0f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140016f05
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x140016d2b]
mov rdx, rax
lea rax, [0x14002ad50]
mov rcx, rax
call fcn.140016336
mov eax, dword [0x1400213d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140016f58
mov rax, qword [rbp - 0x10]
jmp 0x1400170b8
call fcn.140015aa0
mov qword [rbp - 0x10], rax
mov rax, qword [0x14002d050]
test rax, rax
je 0x140016f74
cmp qword [rbp - 0x10], 0
jne 0x140016f7e
mov eax, 0
jmp 0x1400170b8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.140015bc4
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140017059
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400213d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x1400170b4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400171b2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140016f05
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.140016d59
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001721f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400213d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140017363
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400172bc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140017277
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001597c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400213d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140017363
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400172f6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140017363
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001597c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400213d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0xf94fde43
sbb ecx, ebx
push rsi
jp 0x1400a124a
call rdi
in eax, dx
adc eax, 0xac965aab
xchg esi, eax
lodsb al, byte [rsi]
fcmovne st(0), st(2)
jnp 0x1400a12c5
invalid
push rsi
lodsb al, byte [rsi]
jp 0x1400a12f9
pop rsp
mov esp, 0xfe5917a3
mov bh, 0xaf
scasd eax, dword [rdi]
add bl, byte [rdx - 0x38]
sbb dword [rsi - 0x1f4e0470], ecx
jge 0x1400a134b
mov ss, word [rax + 0x7de0b1fb]
add byte [rax], al
mov esp, 0x7d519912
jnp 0x1400a12fd
add byte [rdx + rdx + 0x7b7d5199], bh
stosb byte [rdi], al
jg 0x1400a1340
pushfq
test al, 4
push 0x17
add edi, dword [rbx]
cmc
xor eax, esi
mov es, word [rdx - 0x46a60e78]
mov dh, 0x1e
mov esi, 0x2937e703
int3
jp 0x1400a13a6
cld
mov ss, word [rcx + 0x66]
jnp 0x1400a1344
add al, 0x7f
int 0xa4
invalid
xchg edx, eax
movsd dword [rdi], dword [rsi]
ficom word [rdi - 0x6b]
sub r11d, eax
fdiv dword [rdi + rdi*2]

Function at 0x140017b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140017bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140017b98
add rdi, rbx
sub rsi, rbx
je 0x140017bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140017b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140013500
mov rcx, r12
call fcn.140013600
jmp 0x140017b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400022a0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.140004390
test al, al
je 0x1400022df
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005120
add rsp, 0x70
pop rbx
ret
mov rcx, rbx
call fcn.1400020c0
test al, al
je 0x140002300
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005120
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400033e0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140001fd0
nop
lea rcx, [rsp + 0x28]
call fcn.1400020c0
test al, al
jne 0x140002354
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140004320
test eax, eax
jne 0x140002343
xor bl, bl
jmp 0x14000236c
lea rcx, [rsp + 0x28]
call fcn.1400022a0
movzx ebx, al
test al, al
je 0x14000236c
lea rcx, [rsp + 0x48]
call fcn.140004310
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
test eax, eax
sete bl
lea rcx, [rsp + 0x28]
call fcn.140001f90
nop
lea rcx, [rsp + 0x48]
call fcn.140001f90
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005120
add rsp, 0x70
pop rbx
ret

Function at 0x1400023a0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rbx, rcx
mov sil, 1
call fcn.140002230
test al, al
jne 0x14000240e
mov rcx, rbx
call fcn.1400021a0
test al, al
je 0x14000240e
mov rcx, rbx
call fcn.140002230
test al, al
jne 0x14000240e
mov rcx, rbx
call fcn.140004310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test sil, al
je 0x14000240e
and edi, 0xfffffffe
mov rcx, rbx
call fcn.140004310
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call fcn.1400021a0
test al, al
je 0x140002431
mov rcx, rbx
call fcn.140004310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne sil
test sil, sil
jne 0x14000243e
jmp 0x140002438
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140002450
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
movzx ebx, r9b
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
xor eax, eax
mov word [rbp - 0x50], ax
xor r9d, r9d
lea r8d, [rax + 0x1a]
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140003910
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400033e0
nop
lea rcx, [rbp - 0x70]
call fcn.140001f90
nop
test bl, bl
jne 0x140002502
lea rdx, str._.._Local
lea rcx, [rsp + 0x30]
call fcn.1400038c0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140003c50
nop
lea rcx, [rsp + 0x30]
call fcn.140001f90
lea rcx, [rsp + 0x70]
call fcn.140003a10
nop
lea rcx, [rsp + 0x30]
test edi, edi
jne 0x140002531
lea rdx, str.SketchUp_Viewer
call fcn.1400038c0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140003e50
jmp 0x14000254d
lea rdx, str.SketchUp_SketchUp_20_d
call fcn.1400038c0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140003e50
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003240
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003a30
nop
lea rcx, [rsp + 0x30]
call fcn.140001f90
test edi, edi
je 0x1400025a9
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003240
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003a30
nop
lea rcx, [rsp + 0x30]
call fcn.140001f90
lea rcx, [rsp + 0x50]
call fcn.1400020c0
test al, al
jne 0x1400025c1
lea rcx, [rsp + 0x50]
call fcn.1400022a0
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400033e0
nop
lea rcx, [rsp + 0x70]
call fcn.140001f90
nop
lea rcx, [rsp + 0x50]
call fcn.140001f90
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140005120
add rsp, 0x2d0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001e98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ee2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ee2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ee2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ee2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ee2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ee4
xor al, al
add rsp, 0x28
ret
Function at 0x140001310
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x889
mov rbx, rcx
jne 0x140001367
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001367
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001367
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001367
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000136c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001374
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x889
mov rsi, rcx
je 0x140001398
mov eax, 0xc0000001
jmp 0x140001445
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140001443
test rdi, rdi
je 0x1400013d0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400013c0
test rdi, rdi
je 0x140001443
mov r8d, dword [rdi]
test r8d, r8d
je 0x140001438
lea rcx, [rdi + 8]
mov rdx, qword [rcx]
and rdx, 0xfffffffffffffffe
test byte [rcx], 1
je 0x14000142d
cmp qword [rcx + 8], 0x200000
jne 0x14000142d
cmp dword [rcx + 0x10], 0x546e6f43
je 0x140001455
inc ebx
add rcx, 0x18
cmp ebx, r8d
jb 0x14000140e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rsi + 8]
mov qword [rax], rdx
jmp 0x140001443
Function at 0x140001460
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x889
mov rbx, rcx
jne 0x140001563
mov eax, dword [rcx + 4]
test eax, eax
je 0x140001563
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
add eax, 0xccefd76
movsxd rcx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001563
mov rdi, qword [rbx + 0x18]
add rdi, 0xd0ce640
cmp byte [rbx + 0x21], 0
je 0x1400014d5
mov rdx, qword [rbx + 8]
mov rcx, qword [0x140004050]
add rdx, 0xc094835
call fcn.1400018e4
jmp 0x1400014fe
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1400014ee
call fcn.140001574
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rcx + rax]
mov rdx, qword [rbx + 8]
add rdx, 0xc094835
call fcn.1400018e4
mov r10, rax
test rax, rax
je 0x140001563
mov ecx, 0x1000
mov eax, r10d
and eax, 0xfff
sub ecx, eax
cmp ecx, edi
cmovl edi, ecx
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x48], 0
add rcx, 0x147e620
cmp byte [rbx + 0x20], 0
movsxd r8, edi
je 0x140001546
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, r10
call fcn.140001ac4
jmp 0x14000155f
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001568
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400017d0
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x889
mov rbx, rcx
je 0x1400017f9
lea r8, [0x140002250]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000001
jmp 0x140001871
movsxd rax, dword [rcx + 4]
test eax, eax
jne 0x14000180a
lea r8, [0x140002270]
jmp 0x1400017e8
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140001831
lea r8, [0x140002290]
jmp 0x1400017e8
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.14000107c
mov r9, rax
mov qword [0x140004050], rax
lea r8, [0x1400022b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbx + 8]
mov qword [rax], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140001120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r10, qword [rdx + 0x20]
mov rdi, qword [rdx + 0x28]
lea rsi, [rdi + 1]
mov qword [rdx + 0x28], rsi
cmp rsi, r10
jae 0x140001300
mov byte [rsp + 0x2f], r8b
mov r8d, dword [rsp + 0xb0]
movabs rbx, 0x1999999999999998
lea ebp, [rdi + 1]
mov eax, ebp
sub eax, r10d
add rsi, qword [rdx + 0x18]
mov r15, rdi
sub r15, r10
inc r15
xor r14d, r14d
lea r12, [rbx + 1]
jmp 0x1400011a3
movzx r11d, r11b
lea r13, [rdi + r14]
add r13, 2
mov qword [rdx + 0x28], r13
lea r9, [r9 + r9*4]
lea r9, [r11 + r9*2]
inc r14
mov r11, r15
add r11, r14
je 0x140001207
movzx r13d, byte [rsi + r14]
lea r11d, [r13 - 0x30]
cmp r11b, 0xa
jae 0x1400011da
cmp r9, rbx
jbe 0x140001180
cmp r9, r12
jne 0x1400011c2
cmp r11b, 5
jbe 0x140001180
sub r8d, r14d
mov dword [rsp + 0x20], r8d
movzx r8d, byte [rsp + 0x2f]
call fcn.1401a3590
jmp 0x1400012d9
test r14d, r14d
je 0x1400012f9
mov eax, r8d
sub rax, r14
or r13d, 0x20
cmp r13d, 0x65
jne 0x140001213
mov dword [rsp + 0x20], eax
movzx r8d, byte [rsp + 0x2f]
call fcn.140001620
jmp 0x1400012d9
cmp ebp, r10d
je 0x140001310
add eax, r8d
movq xmm1, r9
punpckldq xmm1, xmmword [0x1401aea00]
subpd xmm1, xmmword [0x1401aea10]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov r9d, eax
neg r9d
cmovs r9d, eax
cmp r9d, 0x135
jb 0x140001290
xorpd xmm1, xmm1
movsd xmm2, qword [0x1401aea20]
nop word cs:[rax + rax]
ucomisd xmm0, xmm1
jne 0x14000126c
jnp 0x1400012ee
test eax, eax
jns 0x140001339
divsd xmm0, xmm2
add eax, 0x134
mov r9d, eax
neg r9d
cmovs r9d, eax
cmp r9d, 0x134
ja 0x140001260
mov r8d, r9d
mov r9, qword [0x140294038]
movsd xmm1, qword [r9 + r8*8]
test eax, eax
js 0x1400012ea
mulsd xmm0, xmm1
movapd xmm1, xmmword [0x1401aea30]
andpd xmm1, xmm0
ucomisd xmm1, qword [0x1401aea40]
movzx eax, byte [rsp + 0x2f]
jae 0x140001339
test al, al
jne 0x1400012cf
xorpd xmm0, xmmword [0x1401aea50]
movsd qword [rcx + 8], xmm0
xor eax, eax
mov qword [rcx], rax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
divsd xmm0, xmm1
movzx eax, byte [rsp + 0x2f]
test al, al
je 0x1400012c7
jmp 0x1400012cf
lea rsi, [rdi + r14]
inc rsi
cmp rsi, r10
jae 0x140001310
mov qword [rsp + 0x30], 0xd
jmp 0x140001319
mov qword [rsp + 0x30], 5
lea rax, [rsp + 0x30]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1401a30b0
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400012d9
mov qword [rsp + 0x30], 0xe
lea rax, [rsp + 0x30]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1401a3770
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1400012d9