joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov ecx, 8
call fcn.140051dc0
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004e090]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400475d9
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140051da0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140047800
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
mov rbp, rcx
sar rdi, 2
test rdi, rdi
je 0x1400479df
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140047850
mov eax, ntohl
jmp 0x14004787e
cmp rdi, 0x44
jb 0x14004785d
mov eax, 7
jmp 0x14004787e
cmp rdi, 0x27
jb 0x14004786a
mov eax, 5
jmp 0x14004787e
cmp rdi, 7
jb 0x140047877
mov eax, 3
jmp 0x14004787e
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x140047897
mov r15, rdi
mov r8, rdi
mov edx, 0x8b8b8b8b
shl r8, 2
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r15, r15
je 0x14004794f
mov qword [rsp + 0x58], r12
nop dword [rax + rax]
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea r12, [rsi + rdx*4]
mov r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [r12]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14004790d
mov rax, rbx
jmp 0x140047922
cmp rcx, rbx
ja 0x14004791f
mov rax, qword [rbp]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x140047922
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [r12], r8d
cmp rcx, r15
jb 0x1400478c0
mov r12, qword [rsp + 0x58]
add r15, rdi
cmp rcx, r15
jae 0x1400479cb
inc r14
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [rsi + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x140047961
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004ccf0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14004cdbc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14004cdbc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14004cdd5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14004cdac
cmp byte [rax], 0x5c
jne 0x14004cda6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14004cda6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14004cd92
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14004cda3
test r8b, 0x10
jne 0x14004cda6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14004cda6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140046ef0
test edi, edi
jne 0x14004cd10
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140046ee0
int3
Function at 0x140050ec0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140050f6c
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x140050efa
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x30
pop rdi
jmp 0x140050f80
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x140050f3a
mov qword [rsp + 0x48], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.140051dfc
mov rcx, rbx
test rbx, rbx
jne 0x140050f20
mov rbx, qword [rsp + 0x48]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x20]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.140041d40
add rsp, 0x30
pop rdi
ret
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x140051084
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rax + 0x10], rbx
mov rbx, r14
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
mov qword [rax - 0x20], r13
mov r13, qword [r14 + 8]
mov qword [rax - 0x28], r15
movabs rax, 0xcbf29ce484222325
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x11]
imul rcx, r8
mov qword [rsp + 0x30], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140051dfc
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x28]
je 0x140051090
cmp rbx, rbp
jne 0x140051030
cmp qword [rsp + 0x20], r14
jne 0x14005105d
mov qword [r15], rbx
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rax, rbp
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x20], r14
jne 0x14005109f
mov qword [r15], r12
mov rax, r12
jmp 0x1400510a2
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14005105d
nop dword [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x30]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140051dfc
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x140051136
cmp rbx, rbp
jne 0x140051110
jmp 0x14005105a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x1400510b0
jmp 0x14005105d
Function at 0x140050f80
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140050f6c
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x140050efa
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x30
pop rdi
jmp 0x140050f80
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x140050f3a
mov qword [rsp + 0x48], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.140051dfc
mov rcx, rbx
test rbx, rbx
jne 0x140050f20
mov rbx, qword [rsp + 0x48]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x20]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.140041d40
add rsp, 0x30
pop rdi
ret
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x140051084
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rax + 0x10], rbx
mov rbx, r14
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
mov qword [rax - 0x20], r13
mov r13, qword [r14 + 8]
mov qword [rax - 0x28], r15
movabs rax, 0xcbf29ce484222325
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x11]
imul rcx, r8
mov qword [rsp + 0x30], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140051dfc
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x28]
je 0x140051090
cmp rbx, rbp
jne 0x140051030
cmp qword [rsp + 0x20], r14
jne 0x14005105d
mov qword [r15], rbx
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rax, rbp
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x20], r14
jne 0x14005109f
mov qword [r15], r12
mov rax, r12
jmp 0x1400510a2
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x14005105d
nop dword [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r15, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, qword [rsp + 0x30]
mov r14, qword [r15 + 8]
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140051dfc
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x140051136
cmp rbx, rbp
jne 0x140051110
jmp 0x14005105a
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x1400510b0
jmp 0x14005105d
Function at 0x140051420
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140051455
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14003d120
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140051594
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14005150d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140051583
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14005154a
mov r10, qword [rdx]
cmp r10, rax
je 0x140051544
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140051583
cmp r9, rdx
je 0x14005155f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400515a5
cmp r9, rdx
jne 0x140051550
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400514c0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140051583
Function at 0x140051b44
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140051b7e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140051b83
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140051bcc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140051bcc
dec r8
sub rdx, 1
jne 0x140051bb2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140052aa4
Capabilities:
Parse pe header

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

Function at 0x140001cd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d22
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d24
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d5320
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6400
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5d22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5dba
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5d9e
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 0x2fc4d5d92
cmp qword [rbp - 0x10], 0
je 0x2fc4d5d92
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 0x2fc4d5d58
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5dbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5ec0
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 0x2fc4d5ee8
mov eax, 0
jmp 0x2fc4d5f36
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 0x2fc4d5f11
mov eax, 0
jmp 0x2fc4d5f36
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 0x2fc4d5f31
mov eax, 0
jmp 0x2fc4d5f36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5f3c
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 0x2fc4d5fba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5fb1
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 0x2fc4d5fb1
mov rax, qword [rbp - 8]
jmp 0x2fc4d5fcf
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 0x2fc4d5f84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001260
Capabilities:
Create process on windows
Encode data using xor
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [0x18001a070]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov eax, dword [str.SYSTEM]
mov rbx, rcx
mov rdi, rdx
mov dword [rsp + 0x20], eax
movzx eax, word [0x180016ed4]
lea rcx, [rsp + 0x431]
mov word [rsp + 0x24], ax
movzx eax, byte [0x180016ed6]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x430], 0
mov byte [rsp + 0x26], al
call fcn.180004200
lea rdx, str._s_s
lea rcx, [rsp + 0x430]
mov r9, rdi
mov r8, rbx
call fcn.1800028cc
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x30], 0
call fcn.180004200
lea r8, [rsp + 0x430]
lea rdx, str.takeown__f__s
lea rcx, [rsp + 0x30]
call fcn.1800028cc
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x430]
lea rdx, str.icacls__s__grant__s:f
lea rcx, [rsp + 0x30]
call fcn.1800028cc
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x430]
lea rdx, str.cmd__c_rename__s_rw_s
lea rcx, [rsp + 0x30]
mov r9, rdi
call fcn.1800028cc
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x18001c8a8]
lea r8, [0x180016f20]
mov edx, 0x7b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1800013b4
xor eax, eax
jmp 0x180001485
mov rcx, qword [0x18001c8a8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800013ad
mov rcx, rax
mov qword [rsp + 0x870], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x18000147d
mov rcx, qword [0x18001c8a8]
mov rdx, rbx
mov qword [rsp + 0x840], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rdx, [0x180016f28]
lea rcx, [rsp + 0x430]
movsxd rbx, eax
call fcn.1800027dc
mov rsi, rax
test rax, rax
je 0x180001470
mov rcx, rbx
call fcn.180002620
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.1800020e0
test rbx, rbx
jle 0x18000144d
mov rcx, rdi
mov rdx, rbx
xor byte [rcx], 0xaa
lea rcx, [rcx + 1]
dec rdx
jne 0x180001441
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.180002afc
mov rcx, rsi
call fcn.180002864
mov rcx, rdi
call fcn.1800020c0
mov rsi, qword [rsp + 0x840]
mov eax, 1
mov rbp, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1800020a0
add rsp, 0x848
pop rdi
pop rbx
ret
Function at 0x1800014a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x18001a070]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rcx, [rsp + 0x450]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x50], 0
call fcn.180004200
lea r8, [rsp + 0x450]
lea rdx, str._s_rwi.exe
lea rcx, [rsp + 0x50]
call fcn.1800028cc
mov rcx, qword [0x18001c8a8]
lea r8, [0x180016f20]
mov edx, 0x6e
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x180001526
xor eax, eax
jmp 0x180001620
mov rcx, qword [0x18001c8a8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000151f
mov rcx, rax
mov qword [rsp + 0x878], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x180001580
mov rcx, qword [0x18001c8a8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
movsxd rbx, eax
call fcn.180002b8c
test eax, eax
jne 0x180001587
cmp dword [rsp + 0x34], ebx
jne 0x180001587
xor eax, eax
jmp 0x180001618
lea rdx, [0x180016f28]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x870], rbp
call fcn.1800027dc
mov rbp, rax
test rax, rax
je 0x18000160b
mov rcx, rbx
mov qword [rsp + 0x880], rdi
call fcn.180002620
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1800020e0
test rbx, rbx
jle 0x1800015e0
mov rcx, rdi
mov rdx, rbx
xor byte [rcx], 0xaa
lea rcx, [rcx + 1]
dec rdx
jne 0x1800015d4
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.180002afc
mov rcx, rbp
call fcn.180002864
mov rcx, rdi
call fcn.1800020c0
mov rdi, qword [rsp + 0x880]
mov rbp, qword [rsp + 0x870]
mov eax, 1
mov rsi, qword [rsp + 0x878]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800020a0
add rsp, 0x860
pop rbx
ret
Function at 0x180001640
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x970
mov rax, qword [0x18001a070]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rcx
mov rcx, qword [0x18001c8a8]
lea r8, [0x180016f20]
mov edx, 0x7b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x18000174e
mov rcx, qword [0x18001c8a8]
mov rdx, rax
mov qword [rsp + 0x988], rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x560]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [0x180016f3c]
lea rcx, [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x160], 0
call fcn.180004200
lea r8, [rsp + 0x560]
lea rdx, str._s_s
lea rcx, [rsp + 0x160]
mov r9, rbx
call fcn.1800028cc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call fcn.180002b8c
test eax, eax
jne 0x180001736
cmp dword [rsp + 0x34], edi
je 0x180001746
lea rcx, [rsp + 0x560]
mov rdx, rbx
call fcn.180001260
mov rdi, qword [rsp + 0x988]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.1800020a0
add rsp, 0x970
pop rbx
ret