joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b8d0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001d050
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x1400310b0]
test eax, eax
je 0x14001b8f3
test eax, eax
jg 0x14001b93b
jmp 0x14001b972
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014580
test al, al
je 0x14001b9ea
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
test eax, eax
jle 0x14001b972
lea rdi, [0x140036120]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001b9dd
inc rbx
movsxd rax, dword [0x1400310b0]
add rdi, 8
cmp rbx, rax
jl 0x14001b950
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001b989
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001b9df
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001b9aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001b9df
cmp dword [0x1400310b0], 0x3ff
jg 0x14001b9df
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400310b0]
lea rdx, [0x140036120]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400310b0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.HOME
call fcn.140015c50
int3

Function at 0x14001bd30
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.140022c80
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.140022c80
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 0x14001ca02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400401e8]
test eax, eax
je 0x14001ca9a
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400401f0]
mov qword [rbp - 8], rax
jmp 0x14001ca7e
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 0x14001ca72
cmp qword [rbp - 0x10], 0
je 0x14001ca72
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 0x14001ca38
lea rax, [0x1400401c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001ca9b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001cba0
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 0x14001cbc8
mov eax, 0
jmp 0x14001cc16
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 0x14001cbf1
mov eax, 0
jmp 0x14001cc16
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 0x14001cc11
mov eax, 0
jmp 0x14001cc16
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001cc1c
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 0x14001cc9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cc91
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 0x14001cc91
mov rax, qword [rbp - 8]
jmp 0x14001ccaf
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 0x14001cc64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140015a1a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r10, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [r10 + r8*2]
xor eax, eax
cmp r10, r8
je 0x140015ab0
lea r14, [r10 + 2]
movzx r15d, byte [r10 + 1]
lea r11, [rax + r15]
cmp byte [r10], bl
jne 0x140015a8c
cmp rax, r11
ja 0x140015afb
cmp r11, rdx
ja 0x140015aec
add rax, r9
xor r10d, r10d
cmp r15, r10
je 0x140015a96
lea r12, [r10 + 1]
cmp byte [rax + r10], cl
mov r10, r12
jne 0x140015a78
jmp 0x140015a9e
mov r10, r14
mov rax, r11
jbe 0x140015a4d
jmp 0x140015ab0
mov r10, r14
mov rax, r11
jmp 0x140015a4d
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add rsi, rdi
mov al, 1
cmp rdi, rsi
je 0x140015aa0
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140015acd
mov rdi, r8
jmp 0x140015ae4
cmp r8, rsi
je 0x140015b0d
and edx, 0x7f
shl edx, 8
movzx r8d, byte [rdi + 1]
add rdi, 2
or edx, r8d
sub ecx, edx
js 0x140015aa0
xor al, 1
jmp 0x140015ab8
lea r8, str._redacted_
mov rcx, r11
call fcn.14002f9dc
lea r8, str._redacted_
mov rcx, rax
mov rdx, r11
call fcn.14002fbd6
lea rcx, str._redacted_
call fcn.14002fd23
int3
Function at 0x1400220f0
Capabilities:
Write file on windows

Disassembly:
mov r9, rcx
mov ecx, 0xfffffff4
jmp 0x140021804

Function at 0x14002344b
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rbx, [rsp + 0x78]
mov rcx, rbx
call fcn.140023a8c
mov rax, qword [rbx]
cmp rax, rdi
jne 0x140023492
lea rcx, [rsp + 0x78]
call fcn.140023c76
mov qword [rsi], rdi
jmp 0x140023618
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
and qword [rax], 0
mov qword [rax + 8], 2
and qword [rax + 0x10], 0
mov eax, 0x200
mov r15d, 2
xor r12d, r12d
mov r14d, 0xffffffff
xor esi, esi
cmp rax, 0x201
jae 0x1400234ec
lea rbp, [rsp + 0x78]
mov ebx, 0x200
mov rdi, rax
jmp 0x140023520
sub rax, rsi
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.140020ad7
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r12, r14
mov esi, 0xffffffff
cmovb rsi, r12
mov qword [rsp + 0x50], rsi
mov rbp, r15
mov rbx, rsi
mov rdi, rsi
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, edi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r13d, eax
test eax, eax
jne 0x14002354e
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400235d0
mov eax, r13d
cmp rdi, rax
jne 0x140023577
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002362d
add rdi, rdi
cmp rdi, r14
cmovae rdi, r14
mov rax, rdi
jmp 0x1400234d5
jb 0x1400234d5
cmp rbx, rax
jb 0x140023645
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbp
mov r8, rax
call fcn.14002030b
mov rcx, r12
mov rdx, r15
call fcn.140020b9c
movabs rdi, 0x8000000000000000
cmp qword [rsi], rdi
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
je 0x1400235fe
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
jmp 0x14002360b
call fcn.140018dfc
mov qword [rsp + 0x60], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x58], rdi
mov rcx, r12
mov rdx, r15
call fcn.140020b9c
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov qword [rax], rdi
lea rcx, [rsp + 0x60]
call fcn.1400018b8
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
call fcn.140020b9c
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_codecannot_access_a_Thread_Local_Storage_value_during_or_after_destruction
lea r8, str._redacted_
mov edx, 0x28
call fcn.14002fa49
lea r8, str._redacted_
mov rcx, rax
mov rdx, rbx
call fcn.14002f9dc
int3
Function at 0x1400236f8
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov ecx, 0x10
mov edx, 8
call fcn.14002367e
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140023790]
xor ecx, ecx
mov rdx, r14
mov r9, rax
mov ecx, eax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdi, rax
mov rdx, rax
test rax, rax
invalid
jne case.0x14000bab8.191
mov rdx, qword [rsi + 8]
mov rax, qword [rdx]
test rax, rax
je 0x140023766
mov rcx, qword [rsi]
call rax
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.140022ac0
invalid
dec dword [rax - 0x77]
int1
call fcn.14000d250
call fcn.140018dfc
push rsi
invalid
invalid
mov rdx, rax
xor eax, eax
test rdi, rdi
test edi, edi
sete al
add rsp, 0x38
invalid
invalid
pop rbx
pop rdi
pop rsi
pop r14
pop rsi
ret

Function at 0x140025195
Capabilities:
Query environment variable

Disassembly:
mov r8d, 0xe
jmp fcn.14002344b

Function at 0x1400258ce
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rdi, rdx
mov rsi, rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14002591f
call fcn.14002593f
mov ecx, 1
jmp 0x140025931
mov rax, qword [rsp + 0x28]
movzx ecx, word [rdi]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x140025970
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x1400259c6
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.ws2_32.dll_WSAStartup]
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x1400259d2
mov rax, qword [sym.imp.ws2_32.dll_WSACleanup]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str._redacted_
call fcn.14002fd23
lea rdx, [rsp + 0x30]
and qword [rdx], 0
lea rcx, [rsp + 0x2c]
call fcn.140030593
int3
Function at 0x14002f100
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14002f14a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002f14a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002f14a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002f14a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002f14a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002f14c
xor al, al
add rsp, 0x28
ret
Function at 0x1401632fc
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffe9129528
not ebp
jmp 0x140136589
mov dword [r11], ebp
jmp 0x14016bcd6
mov r10d, 0x6bb4d6bc
mov r10, qword [rsp + r10 - 0x6bb4d6b4]
lea rsp, [rsp + 0x10]
jmp 0x140133541
add r11, 0xc
xor ebp, ebp
test r9, r9
lea rsp, [rsp + 8]
je 0x14013f2e8
mov ebx, 0x839b8239
not rbx
neg rbx
push r10
lea r10, [rbx + rbx*2 + 0xc204b8e]
lea rbx, [0x140137da0]
mov r10d, 0x9c1920b6
inc r10d
movzx r10d, byte [rcx]
push 0xffffffff8f8d59ba
xor r10d, ebp
and r10d, 0xff
mov r10d, dword [rbx + r10*4]
shr ebp, 8
sal dword [rsp + 2], 0xf2
xor ebp, r10d
inc rcx
xor ebp, 0x610bd5b0
dec r9
lea rsp, [rsp + 8]
jne 0x14016332f
push 0x42018e99
jmp 0x14013f2d5
lea rsp, [rsp + 8]
jmp fcn.1401390ad

Function at 0x14014b276
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + r11 - 0x54aac004], r11
lea r11, [0x140168b30]
lea rsp, [rsp + 8]
movzx r10d, byte [r8]
push 0xffffffffb8851a3b
xor r10d, edx
and r10d, 0xff
mov r10d, dword [r11 + r10*4]
neg byte [rsp + 7]
shr edx, 8
xor edx, r10d
push 0x3d115e1c
neg qword [rsp + 8]
inc r8
xor edx, 0xb10ca6af
dec rbp
lea rsp, [rsp + 0x10]
jne 0x14014b28a
mov r10d, 0x518c3509
push r10
mov r10, qword [rsp + r10 - 0x518c3501]
lea rsp, [rsp + 0x10]
Function at 0x140008a7d
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x180006ed0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x180006f32
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
mov qword [rsp + 0x30], rdi
nop
test byte [rbx], 0x10
je 0x180006ff5
cmp byte [rbx + 0x2c], 0x2e
jne 0x180006f69
movzx eax, byte [rbx + 0x2d]
cmp al, 0x2e
jne 0x180006f61
cmp byte [rbx + 0x2e], 0
je 0x18000701d
test al, al
je 0x18000701d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasb al, byte [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x180007013
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov byte [rax + rbp - 1], 0
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180006fa0
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasb al, byte [rdi]
movzx eax, word [0x1800b292c]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x1800b292e]
mov byte [rdi + 1], al
call fcn.180006ed0
mov rdi, qword [rsp + 0x30]
mov word [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x180007018
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + WSAStartup]
mov byte [rdi + rbp - 1], 0x2a
mov esi, eax
jmp 0x180007018
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x180007037
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x180006f40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007060
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, rdx
repne scasw ax, word [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x1800070c3
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movsxd rdi, edi
mov esi, 1
xor r8d, r8d
mov qword [rsp + 0x30], rdi
test byte [rbx], 0x10
je 0x1800071a2
cmp word [rbx + 0x2c], 0x2e
jne 0x180007101
movzx eax, word [rbx + 0x2e]
cmp ax, 0x2e
jne 0x1800070f8
cmp word [rbx + 0x30], 0
je 0x1800071d0
test ax, ax
je 0x1800071d0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x2c]
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x20]
not rcx
cmp rax, rcx
jb 0x1800071c6
mov rax, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov word [rbp + rax*2 - 2], r8w
xor eax, eax
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx + 0x2c]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180007140
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x1800b2930]
mov rcx, rbp
mov dword [rdi - 2], eax
movzx eax, word [0x1800b2934]
mov word [rdi + 2], ax
call fcn.180007060
mov rdi, qword [rsp + 0x30]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
xor eax, eax
mov word [rbp + rdi*2], ax
jmp 0x1800071cb
mov word [rbp + rdi*2 - 2], r8w
mov r8, qword [rsp + 0x78]
lea rdx, [rbx + 0x2c]
mov rcx, rbp
call qword [rsp + WSAStartup]
mov esi, eax
mov eax, 0x2a
mov word [rbp + rdi*2 - 2], ax
jmp 0x1800071cb
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test esi, esi
je 0x1800071f0
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, qword [rsp + 0x28]
mov r8d, 0
test eax, eax
jne 0x1800070d3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007f20
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x390
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x180008152
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180008152
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp eax, 0xffffffff
je 0x180008152
test al, 1
je 0x180007f8f
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test dil, 0x10
je 0x180008130
lea rcx, [rsp + 0x271]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x3a8], rsi
mov byte [rsp + 0x270], 0
call fcn.180038130
lea rcx, [rsp + 0x270]
mov rdx, rbx
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x180007fd0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasb al, byte [rdi]
movzx eax, word [0x1800b292c]
lea rcx, [rsp + 0x24]
mov word [rdi - 1], ax
movzx eax, byte [0x1800b292e]
xor edx, edx
mov r8d, 0x13c
mov dword [rsp + 0x20], 0
mov byte [rdi + 1], al
call fcn.180038130
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000811d
nop dword [rax]
lea rdx, [0x1800b2ed8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800080fe
lea rdx, [0x1800b2ed4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800080fe
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x160], 0
call fcn.180038130
lea rcx, [rsp + 0x160]
sub rcx, rbx
mov rdx, rbx
nop
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x1800080a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
movzx eax, word [0x1800b28c8]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1800080e0
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.180007f20
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180008040
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rsi, qword [rsp + 0x3a8]
jmp 0x180008139
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x180008154
test ebp, ebp
je 0x180008154
lea r8d, [rax + 4]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x180008154
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.180038100
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180008810
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1e0], rbx
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x180008a02
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180008a02
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180008a02
test al, 0x10
je 0x180008a02
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180019eb0
nop
mov dl, 0x5c
lea rcx, [rsp + 0x20]
call fcn.180017960
mov dword [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x13c
lea rcx, [rsp + 0x64]
call fcn.180038130
lea r8, [0x1800b292c]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.18001a240
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.180016760
cmp rdi, 0xffffffffffffffff
je 0x1800089f1
lea rdx, [0x1800b2ed8]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800089d1
lea rdx, [0x1800b2ed4]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800089d1
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x28]
call fcn.180019eb0
nop
lea r8, [0x1800b28c8]
lea rdx, [rsp + 0x20]
test byte [rsp + 0x60], 0x10
je 0x180008984
lea rcx, [rsp + 0x30]
call fcn.18001a240
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.18001a1e0
nop
mov rdx, rsi
mov rcx, qword [rax]
call fcn.180008810
nop
lea rcx, [rsp + 0x50]
call fcn.180016760
nop
lea rcx, [rsp + 0x30]
jmp 0x1800089c1
lea rcx, [rsp + 0x40]
call fcn.18001a240
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.18001a1e0
nop
mov r8, rax
mov edx, dword [rsi + 8]
mov rcx, rsi
call fcn.18001ba50
nop
lea rcx, [rsp + 0x38]
call fcn.180016760
nop
lea rcx, [rsp + 0x40]
call fcn.180016760
nop
lea rcx, [rsp + 0x28]
call fcn.180016760
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800088f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.180016760
mov eax, 1
jmp 0x180008a04
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180038100
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008a30
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rdi, rdx
mov rbp, rcx
call fcn.18002cbd0
test eax, eax
je 0x180008a61
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
test rdi, rdi
je 0x180008aec
test esi, esi
je 0x180008aec
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
call fcn.180038130
mov rcx, rsi
call fcn.180039e84
mov r12, rax
test rax, rax
je 0x180008ae2
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180038130
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test eax, eax
je 0x180008ae2
mov r9d, esi
mov r8, rdi
or edx, 0xffffffff
mov rcx, r12
xor ebx, ebx
call fcn.1800152b0
test eax, eax
je 0x180008ae2
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret