joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2c9361680
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x2c9361764
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x2c941b120]
movzx r8d, byte [rax + 0x1d]
lea rbx, section..rdata
movzx edx, byte [rax + 0x1c]
jmp 0x2c9361729
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x2c9361760
mov ecx, r10d
and ecx, 7
je 0x2c93616d0
cmp ecx, 4
jne 0x2c93616fe
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x2c93616fe
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x2c93616a7
Function at 0x2c938e020
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2c939a880
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2c939a880
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2c938e090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2c943e614]
test esi, esi
mov rbx, rcx
jle 0x2c938e1c0
mov rax, qword [0x2c943e618]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2c938e0db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2c938e165
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2c938e0c0
mov rcx, rbx
call fcn.2c938e8f0
test rax, rax
mov rdi, rax
je 0x2c938e1e2
mov rax, qword [0x2c943e618]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2c938ea30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2c943e618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c938e1c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2c938e15e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2c938e170
add dword [0x2c943e614], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2c943e618]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c938e15e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2c938e020
nop dword [rax]
xor esi, esi
jmp 0x2c938e0e8
mov rax, qword [0x2c943e618]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2c938e020
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2c938e020
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2c938e560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2c943e640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c943e620]
test rbx, rbx
je 0x2c938e5bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2c938e5b3
test rsi, rsi
je 0x2c938e5b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c938e598
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2c938e8f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2c94206b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2c938e910
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2c938e918
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c938e910
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2c938e96d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x2c938e964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2c938e910
add rax, 0x28
cmp rax, r9
jne 0x2c938e950
xor eax, eax
ret

Function at 0x2c938e970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2c94206b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2c938e98f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2c938e998
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2c938e98f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2c938ea30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2c94206b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2c938ea4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2c938ea58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2c93fba30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x2c93fba58
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x2c93fbaa0
cdqe
add rsi, rax
sub rbx, rax
jne 0x2c93fba70
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x2c93fbaac
call rbp
cmp dword [rax], 4
je 0x2c93fba70
lea rcx, str.random_device_could_not_be_read
call fcn.2c94183b0
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x2c94203a0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov rdx, qword [0x2c941fc90]
mov qword [rcx + 8], rax
mov r8d, dword [rdx]
test r8d, r8d
jne 0x2c93fbaf8
mov edx, dword [rax - 8]
test edx, edx
jle 0x2c93fbb03
add edx, 1
mov dword [rax - 8], edx
ret
mov eax, dword [rax - 8]
test eax, eax
jg 0x2c93fbb10
mov rax, qword [rcx + 8]
mov dword [rax - 8], 1
ret
mov edx, dword [rdx]
mov rax, qword [rcx + 8]
test edx, edx
je 0x2c93fbb20
lock add dword [rax - 8], 1
ret
mov edx, dword [rax - 8]
jmp 0x2c93fbaec
Function at 0x2c94025e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm3, xmmword [0x2c941b4a0]
pxor xmm7, xmm7
movdqa xmm4, xmmword [0x2c941b4b0]
movdqa xmm5, xmmword [0x2c941b4c0]
movdqa xmm6, xmmword [0x2c941b4d0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm2, xmmword [rax + 0x624]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2c9402620
mov eax, dword [rdx + 0x388]
mov ecx, dword [rdx + 0x38c]
movq xmm0, qword [rdx + 0x380]
movq xmm1, qword [0x2c941b4a0]
movq xmm2, qword [0x2c941b4b0]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
por xmm0, xmm1
movdqa xmm2, xmm0
mov ecx, eax
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
shr ecx, 1
and eax, 1
xor ecx, dword [rdx + 0x9bc]
neg eax
pxor xmm1, xmm2
and eax, 0x9908b0df
movq xmm2, qword [0x2c941b4c0]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x2c941b4d0]
xor eax, ecx
mov dword [rdx + 0x388], eax
lea rcx, [rdx + 0x9bc]
pand xmm0, xmm2
lea rax, [rdx + 0x38c]
pxor xmm1, xmm0
pxor xmm2, xmm2
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2c9402723
mov eax, dword [rdx + 0x9bc]
mov qword [rdx + 0x9c0], 0
mov ecx, dword [rdx]
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
and eax, 0x80000000
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
and eax, 1
shr ecx, 1
xor ecx, dword [rdx + 0x630]
neg eax
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x2c9417830
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x2c941af40]
jmp 0x2c938f760
Function at 0x140493a21
Capabilities:
Encode data using xor

Disassembly:
call fcn.14048f2cf
add byte [rax], al
mov eax, 0xffff
movabs al, byte [0x8c3282bd3645858d]
in al, dx
mov ebp, dword [rbx - 0x237323e6]
mov ecx, 0x2f42e849
jns 0x140493a2e
invalid
xor eax, 0xace62895
add ebx, dword [rax]
loope 0x140493a23
xchg edx, eax
add eax, 0x35044b5e
pop rcx
cmp al, 0xbe
push rax
movsd dword [rdi], dword [rsi]
sub byte [rdi + rdx*2 - 0x2e], dl
mov eax, ecx
xor ecx, dword [rbp + rbx - 0xf]
xor al, 0x3b
cmpsd dword [rsi], dword [rdi]
movabs al, byte [0x9dc4d53a9031a23d]
xor bl, byte [rax + 0x52]
lodsd eax, dword [rsi]
xor eax, 0x3cfce82f
mov dh, 0x7e
int3
Function at 0x14005b3e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005b3ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005b3fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005b3e5
lea eax, [rcx + 1]
jmp 0x14005b40b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005b41e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005b404
sub eax, 3
jb 0x14005b43e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005b48d
sar eax, 1
movsxd rbp, eax
jb 0x14005b474
jmp 0x14005b44c
add ebx, ebx
jne 0x14005b44a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005b474
inc ecx
add ebx, ebx
jne 0x14005b45a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005b474
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005b46d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005b45c
add ecx, 2
jmp 0x14005b479
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005b3a2
jmp 0x14005b3ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x33c00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005b4d9
cmp rsi, rcx
jae 0x14005b4e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005b4c0
cmp al, 0x8f
ja 0x14005b4c0
cmp byte [rsi - 2], 0xf
je 0x14005b4c6
sub al, 0xe8
cmp al, 1
ja 0x14005b4aa
cmp rsi, rcx
jae 0x14005b4e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005b4b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005b4e1
lodsb al, byte [rsi]
jmp 0x14005b4c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x58000]
mov eax, dword [rdi]
or eax, eax
je 0x14005b53e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5b548]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005b4ee
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005b538
mov qword [rbx], rax
add rbx, 8
jmp 0x14005b50e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005b578
cmp al, 0xef
ja 0x14005b56a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005b54a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005b559
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005b5cc
sub rsp, 0xffffffffffffff80
jmp 0x140015e7c
Function at 0x140004580
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400600c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
mov rdi, rdx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, 0xffffffffffffffff
mov r14, rax
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x1400045d0
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x14000463a
lea rdx, str.Failed_allocating_memory_in_the_target_process._GetLastError__:
lea rcx, [0x140061ae0]
call fcn.140010c30
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140009960
mov rcx, rax
lea rdx, [0x1400558bc]
call fcn.140010c30
xor al, al
jmp 0x14000473d
mov qword [rsp + 0x90], r15
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140004642
xor r15d, r15d
lea r9, [rbx + 1]
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140004675
lea rdx, str.Failed_writing_to_process._GetLastError__:
jmp 0x1400046a4
mov qword [rsp + 0x30], r15
mov r9, r14
mov dword [rsp + 0x28], r15d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x1400046d6
lea rdx, str.Failed_to_create_a_thread_in_the_target_process._GetLastError__:
lea rcx, [0x140061ae0]
call fcn.140010c30
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140009960
mov rcx, rax
lea rdx, [0x1400558bc]
call fcn.140010c30
xor al, al
jmp 0x140004735
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r15d
jne 0x140004733
lea rdx, str.LoadLibrary_failed_with_exit_code_0._n
lea rcx, [0x140061ae0]
call fcn.140010c30
xor al, al
jmp 0x140004735
mov al, 1
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001ecd0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008210
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140008232
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400082ac
mov rdi, r14
mov rcx, rbx
call fcn.14000cc70
test rax, rax
jle 0x140008284
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140047290
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000829c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400082a4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140008246
sub r14, rdi
jmp 0x14000838f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400082c3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400082c5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400082f7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140047290
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000838c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008332
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000836d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002e970
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000838c
cmp rbp, rax
ja 0x140008340
test rbp, rbp
je 0x14000838c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002e970
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x14001d9fc
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 0x14001da36
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001da3b
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 0x14001da84
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004a480]
cmp byte [rcx + rax], 0
je 0x14001da84
dec r8
sub rdx, 1
jne 0x14001da6a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14001fa24
Capabilities:
Parse pe header

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

Function at 0x14003149c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140031298

Function at 0x1400337fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140033812
mov al, 1
jmp 0x140033872
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140033823
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140033870
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003e4c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140033870
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140033870
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140033870
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140033872
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140038898
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001f330
sub rsp, rax
mov rax, qword [0x1400600c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400336dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400388e7
mov rax, rbp
jmp 0x1400389ef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x629f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003a2b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x629f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400389eb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400389eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003a2b8
test rax, rax
js 0x1400389eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400389eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400389dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400389dd
cmp byte [rcx], 0xd
jne 0x1400389c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400389d2
cmp byte [rcx + 1], 0xa
jne 0x1400389d2
inc rcx
jmp 0x1400389d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x604f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400389a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400389ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001ecd0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret