joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800016b3
Capabilities:
Print debug messages

Disassembly:
jmp 0x180056774
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x1800567c0
test rbx, rbx
je 0x1800567af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180001802
cmp eax, 1
je 0x1800567c0
mov eax, 4
jmp 0x180056803
call fcn.180003995
cmp eax, 2
jne 0x1800567fc
call fcn.180001861
test al, al
je 0x1800567fc
call fcn.180002b0d
test al, al
jne 0x1800567f2
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1800039d1
jmp 0x180056803
call fcn.180003878
mov rcx, rax
jmp 0x1800567e2
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000216c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180076110
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180098058]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009ab38]
xor r11d, r11d
lea rdi, [0x1800828c4]
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 0x180076180
mov rax, 0xfffffffffffffffe
jmp 0x1800762cd
cmp word [r10 + 6], r11w
jne 0x1800761ef
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1800761aa
test r14, r14
je 0x18007619b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1800762cd
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1800761b8
mov r8b, 2
jmp 0x1800761d6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1800761c6
mov r8b, 3
jmp 0x1800761d6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1800762c2
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 0x180076218
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1800762c2
cmp bl, bpl
jb 0x1800762c2
cmp bl, r8b
jae 0x1800762c2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180076245
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1800762c2
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 0x180076227
cmp r9, rbp
jae 0x180076271
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180076174
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1800762c2
cmp edx, 0x110000
jae 0x1800762c2
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 0x1800762c2
test r14, r14
je 0x1800762b0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1800039cc
jmp 0x1800762cd
mov rdx, rsi
mov rcx, r10
call fcn.18000402f
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800025e0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800021b2
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1800088f0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000897d
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000897d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000897d
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 0x180008964
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000895e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180008966
add rdx, 0x28
jmp 0x180008943
xor edx, edx
test rdx, rdx
jne 0x18000896f
xor al, al
jmp 0x180008983
cmp dword [rdx + 0x24], 0
jge 0x180008979
xor al, al
jmp 0x180008983
mov al, 1
jmp 0x180008983
xor al, al
jmp 0x180008983
add rsp, 0x18
ret

Function at 0x1800024d7
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1800795a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800795ce
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x180079627
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x180079627
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x180079619
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x18000271b
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180017fbc
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180083a30]
mov ecx, 2
lea r8, [0x180083a28]
lea rdx, str.FlsGetValue
call fcn.180017a8c
mov ecx, ebx
test rax, rax
je 0x180017ff6
add rsp, 0x20
pop rbx
jmp qword [0x1800a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x180002865
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005c36c
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 0x18005c39c
xor eax, eax
jmp 0x18005c45f
mov rbp, rbx
cmp word [rax], si
je 0x18005c3c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005c3a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005c3a4
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.1800031d4
movsxd r14, eax
test eax, eax
jne 0x18005c3ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005c395
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005c418
xor ecx, ecx
call fcn.18000116d
jmp 0x18005c3f4
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.1800031d4
test eax, eax
jne 0x18005c449
mov rcx, rdi
call fcn.18000116d
jmp 0x18005c453
xor ecx, ecx
call fcn.18000116d
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 0x18000286a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180017f0c
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800839f0]
xor ecx, ecx
lea r8, [0x1800839e8]
lea rdx, str.FlsAlloc
call fcn.180017a8c
test rax, rax
je 0x180017f45
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800028e7
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005e7c4
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, [0x180085b28]
mov rbp, rcx
lea r8, [0x180085b20]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.18005dce4
test rax, rax
je 0x18005e824
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800a5030]
jmp 0x18005e83e
xor edx, edx
mov rcx, rbp
call fcn.180002202
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 0x1800028f6
Capabilities:
Terminate process

Disassembly:
jmp 0x18007a26c
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 0x180002a3b
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001ee10
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x18001eb6c

Function at 0x180002bc6
Capabilities:
Parse pe header

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

Function at 0x18000314d
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x180079fa0
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 0x180079fe1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x180079fd5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x180079fe3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x180079fc3
xor eax, eax
ret

Function at 0x180003337
Capabilities:
Terminate process

Disassembly:
jmp 0x180050a68
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180050a82
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1800039db
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 0x1800038fa
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x180079660
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1800796d8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1800796d8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1800796d8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1800796cc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1800796ea
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1800796ba
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1800796da

Function at 0x180003abc
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180018014
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180083a50]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180083a48]
call fcn.180017a8c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180018054
call qword [0x1800a5020]
jmp 0x18001805a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180003c3d
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001ee00
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 0x18001ebdb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001ebdb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001ebdb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001ebdb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001ebdb
cmp dword [rcx + 0x84], 0xe
jbe 0x18001ebdb
cmp dword [rcx + 0xf8], 0
je 0x18001ebdb
mov ecx, ebx
call fcn.18001ed44
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.18001e8b8
nop
cmp dword [rbp + 0x20], 0
je 0x18001ec29
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001ec64
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001eb6c
Function at 0x180071530
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180071546
mov al, 1
jmp 0x1800715a6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180071557
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800715a4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180003ea4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800715a4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800715a4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800715a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800715a6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140629ae0]
mov dword [rax], 1
mov rax, qword [0x140629af0]
mov dword [rax], 1
mov rax, qword [0x140629b00]
mov dword [rax], 1
mov rax, qword [0x140629a80]
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 0x140001a12
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rdx
mov rbp, rcx
mov rcx, r8
mov rsi, r9
mov qword [rsp + 0x90], r8
call sub.msvcrt.dll_strlen
mov rcx, rbx
mov rdi, rax
call sub.msvcrt.dll_strlen
lea rcx, [rdi + rax + 2]
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x90]
lea rdx, str._s__s
mov r9, rbx
mov qword [rsi], rax
mov rcx, rax
call fcn.14000178e
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
call fcn.1400058ba
test eax, eax
jne 0x140001a8a
movsxd rdx, dword [rsp + 0x34]
mov eax, 2
cmp rdx, qword [rbp + 8]
je 0x140001b34
mov rcx, qword [rsi]
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x16]
call sub.msvcrt.dll_malloc
mov rbx, rax
call sub.msvcrt.dll__getpid
mov r8, qword [rsi]
lea rdx, str._s._lu
mov rcx, rbx
mov r9d, eax
call fcn.14000178e
mov r8d, 0x1ed
mov edx, 0x8101
mov rcx, rbx
call sub.msvcrt.dll__open
mov edi, eax
cmp eax, 0xffffffff
jne 0x140001ad6
xor eax, eax
jmp 0x140001b34
mov rbp, qword [rbp + 0x10]
mov r8, qword [rbp]
test r8, r8
je 0x140001afc
mov rdx, qword [rbp + 8]
mov ecx, edi
call sub.msvcrt.dll__write
cdqe
cmp rax, qword [rbp]
jne 0x140001ad2
add rbp, 0x10
jmp 0x140001ada
mov ecx, edi
call sub.msvcrt.dll__close
inc eax
je 0x140001ad2
mov edx, 0x1e8
mov rcx, rbx
call sub.msvcrt.dll__chmod
mov rdx, qword [rsi]
mov rcx, rbx
call sub.msvcrt.dll_rename
inc eax
je 0x140001b2a
mov eax, 1
jmp 0x140001b34
mov rcx, rbx
call sub.msvcrt.dll__unlink_1
jmp 0x140001b23
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001b3d
Capabilities:
Read file on windows

Disassembly:
push r12
mov eax, 0x10030
push rbp
push rdi
push rsi
push rbx
call fcn.1400056c0
sub rsp, rax
xor edx, edx
mov r8d, 2
lea r12, str._nPAR.pm_n
mov edi, ecx
lea rbp, [rsp + 0x28]
call sub.msvcrt.dll__lseek
mov ecx, 0x10000
lea ebx, [rax - 1]
mov eax, ebx
cdq
idiv ecx
sub ebx, edx
test ebx, ebx
js 0x140001bd6
xor r8d, r8d
mov edx, ebx
mov ecx, edi
call sub.msvcrt.dll__lseek
mov r8d, 0x10008
mov rdx, rbp
mov ecx, edi
call sub.msvcrt.dll__read
cdqe
lea rsi, [rbp + rax - 8]
cmp rax, 7
jbe 0x140001bce
cmp rsi, rbp
jb 0x140001bce
mov r8d, 8
mov rdx, r12
mov rcx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140001bc6
dec rsi
jmp 0x140001ba7
sub rsi, rbp
lea eax, [rbx + rsi]
jmp 0x140001bd9
sub ebx, 0x10000
jmp 0x140001b7a
or eax, 0xffffffff
add rsp, 0x10030
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400025aa
Capabilities:
Delete directory

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call fcn.140001e5b
mov rcx, rax
call fcn.140001e31
mov rsi, rax
call fcn.14000201b
test rbx, rbx
je 0x1400025f8
test eax, eax
je 0x1400025f8
cmp byte [rbx], 0
je 0x1400025f8
lea rdx, str.par_
mov rcx, rsi
call sub.msvcrt.dll_strstr
cmp rsi, rax
jne 0x1400025f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400017b0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400025ff
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
xor r8d, r8d
xor edx, edx
mov ebx, ecx
lea rdi, [rsp + 0x20]
call sub.msvcrt.dll__lseek
mov r8d, 0x40
mov rdx, rdi
mov ecx, ebx
call sub.msvcrt.dll__read
cmp word [rsp + 0x20], 0x5a4d
je 0x140002651
mov ecx, 2
call qword [fcn.14000b570]
lea r8, str.MZ_magic_bytes
lea rdx, str.assertion_failed:__s_n
mov rcx, rax
call fcn.140001be7
mov esi, dword [rsp + 0x5c]
xor r8d, r8d
mov ecx, ebx
mov edx, esi
call sub.msvcrt.dll__lseek
mov r8d, 0x1a
mov rdx, rdi
mov ecx, ebx
call sub.msvcrt.dll__read
cmp dword [rsp + 0x20], 0x4550
je 0x14000269c
mov ecx, 2
call qword [fcn.14000b570]
lea r8, str.PE_header
lea rdx, str.assertion_failed:__s_n
mov rcx, rax
call fcn.140001be7
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x38]
cmp dx, 0xe0
jne 0x1400026b1
cmp ax, 0x10b
je 0x1400026df
cmp dx, 0xf0
jne 0x1400026be
cmp ax, 0x20b
je 0x1400026df
mov ecx, 2
call qword [fcn.14000b570]
lea r8, str.IMAGE_NT_OPTIONAL_HDR_MAGIC
lea rdx, str.assertion_failed:__s_n
mov rcx, rax
call fcn.140001be7
lea edx, [rsi + 0x5c]
xor r8d, r8d
mov ecx, ebx
call sub.msvcrt.dll__lseek
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400043a0
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.14000b570
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.14000b570
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 0x140005072
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14062e168]
test eax, eax
je 0x14000510a
lea rax, [0x14062e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14062e170]
mov qword [rbp - 8], rax
jmp 0x1400050ee
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 0x1400050e2
cmp qword [rbp - 0x10], 0
je 0x1400050e2
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 0x1400050a8
lea rax, [0x14062e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000510b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140005210
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 0x140005238
mov eax, 0
jmp 0x140005286
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 0x140005261
mov eax, 0
jmp 0x140005286
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 0x140005281
mov eax, 0
jmp 0x140005286
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000528c
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 0x14000530a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140005301
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 0x140005301
mov rax, qword [rbp - 8]
jmp 0x14000531f
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 0x1400052d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1000088e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x40
and dword [rax + 0x10], 0
and dword [rax - 0x28], 0
or r13, 0xffffffffffffffff
xor edi, edi
xor ebx, ebx
mov qword [rax - 0x20], r13
mov rsi, r9
mov rbp, r8
test rdx, rdx
je 0x100008a49
test r8, r8
je 0x100008a49
test r9, r9
je 0x100008a49
lea rax, [rax - 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100008a1f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x10000897c
lea ebx, [rdi + 1]
jmp 0x100008a24
test eax, eax
je 0x100008996
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003720]
mov edx, eax
call fcn.100012134
jmp 0x100008a05
mov edx, dword [rsp + 0x68]
mov eax, 2
inc edx
mul rdx
cmovo rax, r13
mov rcx, rax
call fcn.1000118f0
mov rdi, rax
test rax, rax
jne 0x1000089bf
mov ebx, 0x8007000e
jmp 0x100008a24
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, rax
inc r8d
add r8, r8
call fcn.100017eb0
mov r11d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100008a0c
mov ebx, 0x80004005
jmp 0x100008a24
mov rcx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x68]
mov qword [rsi], rdi
mov dword [rcx], eax
jmp 0x100008a24
mov qword [rsp + 0x38], r13
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x100008a34
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jns 0x100008a45
test rdi, rdi
je 0x100008a45
mov rcx, rdi
call fcn.100011990
mov eax, ebx
jmp 0x100008a4e
mov eax, 0x80070057
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret