joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d830
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 0x14001d860
xor eax, eax
jmp 0x14001d923
mov rbp, rbx
cmp word [rax], si
je 0x14001d885
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d86c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d868
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.14001be30
movsxd r14, eax
test eax, eax
jne 0x14001d8c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d859
mov rcx, r14
call fcn.140018368
mov rdi, rax
test rax, rax
jne 0x14001d8dc
xor ecx, ecx
call fcn.1400165fc
jmp 0x14001d8b8
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.14001be30
test eax, eax
jne 0x14001d90d
mov rcx, rdi
call fcn.1400165fc
jmp 0x14001d917
xor ecx, ecx
call fcn.1400165fc
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 0x140020788
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.140015fb0
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 0x140020829
cmp ebx, dword [rsp + 0x30]
je 0x140020822
test esi, esi
je 0x140020822
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400207fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002080a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400207e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002080e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002082b
mov eax, 1
jmp 0x14002082b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400231a4
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.14000fa70
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002322e
cmp byte [rbp - 0x21], r15b
je 0x140023229
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140023264
call fcn.140016900
test eax, eax
jne 0x140023250
cmp byte [rbp - 0x21], r15b
je 0x140023248
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140023264
cmp byte [rbp - 0x21], r15b
je 0x140023261
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.140012090
test eax, eax
jne 0x140023304
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fa70
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400232a3
cmp byte [rbp - 0x21], r15b
je 0x1400232d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400232d8
call fcn.140016900
test eax, eax
jne 0x1400232c4
cmp byte [rbp - 0x21], r15b
je 0x1400232bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400232d8
cmp byte [rbp - 0x21], r15b
je 0x1400232d5
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.140012090
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140023304
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140023307
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140023315
mov rcx, rdi
call fcn.1400165fc
cmp byte [rbp + 0x3f], r15b
je 0x140023324
mov rcx, qword [rbp + 0x27]
call fcn.1400165fc
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 0x140023f44
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.140019f9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019f9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140024094
cmp rax, 0xffffffffffffffff
je 0x140024094
xor edi, edi
test rbp, rbp
jle 0x14002403f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140016584
mov rbx, rax
test rax, rax
jne 0x140023fcc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140024035
mov edx, 0x8000
mov ecx, r14d
call fcn.140013004
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.140017c5c
cmp eax, 0xffffffff
je 0x140024015
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140023fdc
mov edx, r15d
mov ecx, r14d
call fcn.140013004
jmp 0x140024035
cmp byte [rsi + 0x38], dil
je 0x14002402c
cmp dword [rsi + 0x34], 5
jne 0x14002402c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140024035
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400165fc
jmp 0x1400240a8
jns 0x1400240a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019f9c
cmp rax, 0xffffffffffffffff
jne 0x140024060
cmp byte [rsi + 0x30], dil
je 0x1400240a8
mov edi, dword [rsi + 0x2c]
jmp 0x1400240a8
mov ecx, r14d
call fcn.14001e234
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400240a8
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 0x1400240a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400240a1
mov eax, dword [rsi + 0x2c]
jmp 0x1400240a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019f9c
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 0x413926
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp - 4], 0xffffffff
mov dword [rbp - 8], 0
jmp 0x413985
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 4]
movzx eax, al
xor eax, edx
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x004ce8a0]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
add dword [rbp - 8], 1
mov eax, dword [rbp - 8]
cmp eax, dword [rbp + 0x18]
jl 0x413945
mov eax, dword [rbp - 4]
not eax
add rsp, 0x10
pop rbp
ret
Function at 0x416ecd
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov ecx, 0x1000
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp - 0x58]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
mov rax, qword [rbp - 0x58]
add rax, rdx
mov word [rax], 0x2f
lea rax, [0x004ed3d0]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sub.msvcrt.dll_strcat
mov rax, qword [rbp - 0x58]
lea rdx, [0x004d0353]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x60], rax
cmp qword [rbp - 0x60], 0
je 0x416f95
mov eax, dword [0x004ce7c0]
mov ecx, eax
lea rax, [0x004ed490]
mov rax, qword [rax]
mov rdx, qword [rbp - 0x60]
mov r9, rdx
mov r8d, 1
mov rdx, rcx
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.0044b0e8
nop
add rsp, 0x38
pop rdi
pop rbp
ret
Function at 0x41954a
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x1090
call fcn.00448fd0
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x10]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4195b2
mov ecx, 0
call sub.msvcrt.dll__time64
mov esi, eax
call sub.msvcrt.dll_rand
movsxd rbx, eax
mov ecx, 0
call sub.msvcrt.dll__time64
lea rcx, [rax + 1]
mov rax, rbx
cqo
idiv rcx
mov rax, rdx
add eax, esi
jmp 0x4196da
mov eax, dword [rbp - 0x14]
shr eax, 2
mov dword [rbp + 0x1000], eax
mov ecx, 0
call sub.msvcrt.dll__time64
mov dword [rbp + 0x1008], eax
mov dword [rbp + 0x1004], 0
mov dword [rbp + 0x100c], 0
jmp 0x419692
mov eax, dword [rbp + 0x100c]
cdqe
mov eax, dword [rbp + rax*4 - 0x10]
test eax, eax
je 0x41968b
mov eax, dword [rbp + 0x100c]
cdqe
mov eax, dword [rbp + rax*4 - 0x10]
mov r8d, eax
mov edx, 0
mov ecx, 0x410
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xff8], rax
cmp qword [rbp + 0xff8], 0
je 0x41968b
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xff8]
mov r8d, 0x48
mov rcx, rax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x41968b
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x66666667
mov eax, ecx
imul edx
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
cmp edx, 4
jle 0x41968b
mov rax, qword [rbp - 0x50]
add dword [rbp + 0x1008], eax
mov dword [rbp + 0x1004], 1
add dword [rbp + 0x100c], 1
mov eax, dword [rbp + 0x100c]
cmp dword [rbp + 0x1000], eax
ja 0x4195e7
cmp dword [rbp + 0x1004], 0
jne 0x4196d4
call sub.msvcrt.dll_rand
movsxd rbx, eax
mov ecx, 0
call sub.msvcrt.dll__time64
lea rcx, [rax + 1]
mov rax, rbx
cqo
idiv rcx
mov rax, rdx
add dword [rbp + 0x1008], eax
mov eax, dword [rbp + 0x1008]
add rsp, 0x1090
pop rbx
pop rsi
pop rbp
ret
Function at 0x41adda
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov ecx, 0x400
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.0041a878
jmp 0x41ae28
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x80]
mov r8, rcx
mov rcx, rax
call fcn.0041a8ba
mov rax, qword [rbp - 8]
mov r9, qword [rbp + 0x10]
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x41ae11
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.0041a9e6
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.0044b0e8
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x18]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x4252a0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x42536f
test rdx, rdx
je 0x425356
lea eax, [r8 - 0x10]
and eax, 0xffffffef
jne 0x42533d
mov r11d, dword [rdx]
test r9d, r9d
mov r10d, 0x14
cmove r9d, r10d
cmp r8d, 0x20
mov dword [rcx + 0x10], r11d
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov r10d, dword [rdx + 8]
lea rax, str.expand_16_byte_k
mov dword [rcx + 0x18], r10d
mov r11d, dword [rdx + 0xc]
mov dword [rcx + 0x1c], r11d
jne 0x425301
lea rax, str.expand_32_byte_k
add rdx, 0x10
mov r8d, dword [rdx]
movdqu xmm0, xmmword [rax]
xor eax, eax
mov dword [rcx + 0x20], r8d
mov r10d, dword [rdx + 4]
mov dword [rcx + 0x24], r10d
mov r11d, dword [rdx + 8]
mov dword [rcx + 0x28], r11d
mov edx, dword [rdx + 0xc]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x88], r9d
mov dword [rcx + 0x84], 0
mov dword [rcx + 0x2c], edx
add rsp, 0x28
ret
lea rdx, str.src_stream_chacha_chacha_setup.c
lea rcx, str.keylen__32__keylen__16
mov r8d, 0x24
call fcn.0041f640
lea rdx, str.src_stream_chacha_chacha_setup.c
lea rcx, [0x004d9af4]
mov r8d, 0x23
call fcn.0041f640
lea rdx, str.src_stream_chacha_chacha_setup.c
lea rcx, [0x004d9ae9]
mov r8d, 0x22
call fcn.0041f640
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x443890
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004cef78], eax
je 0x4438aa
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x443ce0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x443d03
call fcn.00446970
cmp eax, 1
je 0x443d0e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
lea rbx, [rsp + 0x20]
xor eax, eax
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x443d97
mov eax, 0x28
jmp 0x443d6a
add rax, 1
cmp rax, 0x6b
je 0x443d89
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x443d60
cmp eax, 0x6a
je 0x443d89
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x443d77

Function at 0x443e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x004e8470], 1
je 0x443e46
call fcn.00443da0
mov ecx, dword [0x004cef78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x443e70
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00443c20
cmp qword [0x004f0050], 0
mov rsi, rax
je 0x443e5a
test rax, rax
je 0x443e5a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], 0xffffffffffffffff
call fcn.00443ce0
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x443f59
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov ecx, dword [0x004cef78]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x443f59
mov rbx, rsi
jmp 0x443e5a
call sub.msvcrt.dll_abort
nop
nop
Function at 0x4454b0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, rcx
mov rbp, rdx
mov rsi, r8
mov rdi, r9
call fcn.00443c20
test rax, rax
mov rbx, rax
je 0x4456c1
test r13, r13
je 0x4454eb
mov rax, qword [rax + 0x1d8]
mov qword [r13], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x445560
cmp esi, 1
je 0x445551
mov ecx, 0x14
call r14
cmp esi, 5
je 0x445560
add esi, 1
jmp 0x445522
xor ecx, ecx
call r12
jmp 0x44554c
lea rdi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rdi
call fcn.00443ce0
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x4456a2
test rbp, rbp
je 0x445710
mov eax, dword [rbp]
mov rsi, qword [rbp + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x4456f0
mov eax, dword [rbp + 0x18]
mov edx, esi
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x004442a0]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x445672
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x445622
cmp eax, 0xffffffff
mov edx, 0xfffffffe
jl 0x445622
cmp eax, 0xe
mov edx, 0xf
jg 0x445622
cmp eax, 2
mov edx, 2
cmovle edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x4456d5
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x445681
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.00443580
mov rcx, rdi
call fcn.00443ce0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r13, r13
je 0x4456af
mov qword [r13], 0
cmp qword [rbx + 0x1d0], 0
jne 0x4456c1
mov rcx, rbx
call fcn.00443ac0
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x445659
call fcn.00443e30
mov eax, dword [rax + 0xc0]
mov edx, esi
mov dword [rbx + 0xc0], eax
jmp 0x4455bf
xor edx, edx
jmp 0x4455bf
Function at 0x448090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x004e8aa4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4481b0
mov rax, qword [0x004e8aa8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4480dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x448196
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x4480c0
mov rcx, rsi
call fcn.00448cd0
test rax, rax
mov r12, rax
je 0x4481e8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x004e8aa8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00448e20
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x004e8aa8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4481cb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x44818f
sub eax, 0x40
and eax, 0xffffffbf
je 0x44818f
add rbx, qword [0x004e8aa8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4481b7
add dword [0x004e8aa4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4480e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00448020
mov rax, qword [0x004e8aa8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00448020
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00448020
nop
nop dword [rax + rax]

Function at 0x448940
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004e8d80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e8d60]
test rbx, rbx
je 0x448994
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x44898b
test rsi, rsi
je 0x44898b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x448970
lea rcx, [0x004e8d80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x448cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004dc720]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x448cf0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00448bb0
test eax, eax
je 0x448ce8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x448d4d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x448d44
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x448ce8
add rdx, 0x28
cmp rdx, r9
jne 0x448d30
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4495e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x44976c
cmp byte [rbx], 0
je 0x449734
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x449750
test al, 0x10
je 0x449734
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x44963e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x44975f
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x4496d0
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x4496d0
cmp al, 0x5c
je 0x4496d0
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x449725
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x449725
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x449725
Function at 0x140130000
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
js 0x14012f967
lahf
or eax, dword [rdi - 0x3990e4ad]
invalid
scasd eax, dword [rdi]
xchg ebp, eax
push 0x3e27ab2d
scasd eax, dword [rdi]
invalid
mov qword [rsp + 0x20], r9