joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400596f0]
mov dword [rax], 1
mov rax, qword [0x140059700]
mov dword [rax], 1
mov rax, qword [0x140059710]
mov dword [rax], 1
mov rax, qword [0x1400596a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140022070
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14003c530
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140034e20
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400220c9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14003b210
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 fcn.14004c990
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14004c990
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14003bee2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400635e8]
test eax, eax
je 0x14003bf7a
lea rax, [0x1400635c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400635f0]
mov qword [rbp - 8], rax
jmp 0x14003bf5e
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 0x14003bf52
cmp qword [rbp - 0x10], 0
je 0x14003bf52
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 0x14003bf18
lea rax, [0x1400635c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003bf7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14003c080
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 0x14003c0a8
mov eax, 0
jmp 0x14003c0f6
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 0x14003c0d1
mov eax, 0
jmp 0x14003c0f6
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 0x14003c0f1
mov eax, 0
jmp 0x14003c0f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003c0fc
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 0x14003c17a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14003c171
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 0x14003c171
mov rax, qword [rbp - 8]
jmp 0x14003c18f
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 0x14003c144
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001384
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004ad34
xor r8d, r8d
xor edx, edx
jmp 0x14004aa24

Function at 0x14000210d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400735e0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140097148]
xor r11d, r11d
lea rdi, [0x14007f984]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140073650
mov rax, 0xfffffffffffffffe
jmp 0x14007379d
cmp word [r10 + 6], r11w
jne 0x1400736bf
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007367a
test r14, r14
je 0x14007366b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14007379d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140073688
mov r8b, 2
jmp 0x1400736a6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140073696
mov r8b, 3
jmp 0x1400736a6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140073792
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400736e8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140073792
cmp bl, bpl
jb 0x140073792
cmp bl, r8b
jae 0x140073792
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140073715
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140073792
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400736f7
cmp r9, rbp
jae 0x140073741
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140073644
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140073792
cmp edx, 0x110000
jae 0x140073792
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140073792
test r14, r14
je 0x140073780
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1400038f5
jmp 0x14007379d
mov rdx, rsi
mov rcx, r10
call fcn.140003f26
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000255e
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002153
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000858c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140008619
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140008619
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008619
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140008600
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400085fa
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140008602
add rdx, 0x28
jmp 0x1400085df
xor edx, edx
test rdx, rdx
jne 0x14000860b
xor al, al
jmp 0x14000861f
cmp dword [rdx + 0x24], 0
jge 0x140008615
xor al, al
jmp 0x14000861f
mov al, 1
jmp 0x14000861f
xor al, al
jmp 0x14000861f
add rsp, 0x18
ret

Function at 0x14000268f
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140015e48
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140080948]
mov ecx, 2
lea r8, [0x140080940]
lea rdx, str.FlsGetValue
call fcn.140015918
mov ecx, ebx
test rax, rax
je 0x140015e82
add rsp, 0x20
pop rbx
jmp qword [0x14009e020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027cf
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005e8a8
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 0x14005e8d8
xor eax, eax
jmp 0x14005e99b
mov rbp, rbx
cmp word [rax], si
je 0x14005e8fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005e8e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005e8e0
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.140003116
movsxd r14, eax
test eax, eax
jne 0x14005e93b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005e8d1
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x14005e954
xor ecx, ecx
call fcn.140001168
jmp 0x14005e930
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.140003116
test eax, eax
jne 0x14005e985
mov rcx, rdi
call fcn.140001168
jmp 0x14005e98f
xor ecx, ecx
call fcn.140001168
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 0x1400027de
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140015d98
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140080908]
xor ecx, ecx
lea r8, [0x140080900]
lea rdx, str.FlsAlloc
call fcn.140015918
test rax, rax
je 0x140015dd1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x14009e020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002856
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400538bc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140081f58]
mov rbp, rcx
lea r8, [0x140081f50]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140052ddc
test rax, rax
je 0x14005391c
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x14009e030]
jmp 0x140053936
xor edx, edx
mov rcx, rbp
call fcn.1400021a3
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000286a
Capabilities:
Terminate process

Disassembly:
jmp 0x140007d80
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002996
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004acc8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004aa24

Function at 0x140002b21
Capabilities:
Parse pe header

Disassembly:
jmp 0x140076fb0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140076fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140076fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e23
Capabilities:
Parse pe header

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

Function at 0x14000308f
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140076ef0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140076f31
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140076f25
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140076f33
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140076f13
xor eax, eax
ret
Function at 0x140003279
Capabilities:
Terminate process

Disassembly:
jmp 0x1400520c8
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400520e2
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400038ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400039e5
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140015ea0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140080968]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140080960]
call fcn.140015918
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140015ee0
call qword [0x14009e020]
jmp 0x140015ee6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a76
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006e9b4
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.1400020e5
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006ea3e
cmp byte [rbp - 0x21], r15b
je 0x14006ea39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006ea74
call fcn.140003e13
test eax, eax
jne 0x14006ea60
cmp byte [rbp - 0x21], r15b
je 0x14006ea58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006ea74
cmp byte [rbp - 0x21], r15b
je 0x14006ea71
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.140003fdf
test eax, eax
jne 0x14006eb14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020e5
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006eab3
cmp byte [rbp - 0x21], r15b
je 0x14006eae8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006eae8
call fcn.140003e13
test eax, eax
jne 0x14006ead4
cmp byte [rbp - 0x21], r15b
je 0x14006eacd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006eae8
cmp byte [rbp - 0x21], r15b
je 0x14006eae5
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.140003fdf
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006eb14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006eb17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006eb25
mov rcx, rdi
call fcn.140001168
cmp byte [rbp + 0x3f], r15b
je 0x14006eb34
mov rcx, qword [rbp + 0x27]
call fcn.140001168
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 0x140003b66
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004acb8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004aa93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004aa93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004aa93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004aa93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004aa93
cmp dword [rcx + 0x84], 0xe
jbe 0x14004aa93
cmp dword [rcx + 0xf8], 0
je 0x14004aa93
mov ecx, ebx
call fcn.14004abfc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004a77c
nop
cmp dword [rbp + 0x20], 0
je 0x14004aae1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004ab1c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004aa24
Function at 0x140008b40
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006cf36
mov al, 1
jmp 0x14006cf96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006cf47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006cf94
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003dc3
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006cf94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006cf94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006cf94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006cf96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140004490
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 0x1400044e0
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 0x14000454a
lea rdx, str.Failed_allocating_memory_in_the_target_process._GetLastError__:
lea rcx, [0x140061ae0]
call fcn.1400102d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140009080
mov rcx, rax
lea rdx, [0x1400558bc]
call fcn.1400102d0
xor al, al
jmp 0x14000464d
mov qword [rsp + 0x90], r15
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140004552
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 0x140004585
lea rdx, str.Failed_writing_to_process._GetLastError__:
jmp 0x1400045b4
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 0x1400045e6
lea rdx, str.Failed_to_create_a_thread_in_the_target_process._GetLastError__:
lea rcx, [0x140061ae0]
call fcn.1400102d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140009080
mov rcx, rax
lea rdx, [0x1400558bc]
call fcn.1400102d0
xor al, al
jmp 0x140004645
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 0x140004643
lea rdx, str.LoadLibrary_failed_with_exit_code_0._n
lea rcx, [0x140061ae0]
call fcn.1400102d0
xor al, al
jmp 0x140004645
mov al, 1
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret