joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074140
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov r13d, 2
mov word [rdx], r13w
lea rdx, [rax - 0x38]
mov rcx, r8
mov esi, r9d
mov r12, r8
call fcn.140067a60
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_inet_addr]
lea rcx, [rsp + 0x20]
mov ebp, eax
call fcn.140001460
cmp ebp, 0xffffffff
jne 0x1400741ad
lea rdx, str.255.255.255.255
mov rcx, r12
call fcn.140057d40
test al, al
je 0x1400741ad
lea edx, [r13 - 1]
jmp 0x1400741ce
lea eax, [rsi - 1]
mov dword [rdi + 4], ebp
cmp eax, 0xfffe
ja 0x1400741cb
movzx ecx, si
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rdi + 2], ax
mov al, 1
jmp 0x1400741e2
mov edx, r13d
mov rax, qword [rbx]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.140003270
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x140075820
Capabilities:
Parse url

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rsi, rdx
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x31]
call fcn.1400152d0
mov r12d, 1
mov rcx, rbx
mov dword [rbp - 9], r12d
mov dword [rbp - 0x19], r12d
mov dword [rbp - 0x29], r12d
mov dword [rbp + 0x27], r12d
mov dword [rbp + 0x17], r12d
mov dword [rbp + 7], r12d
mov dword [rbp - 0x39], 0xf0
call fcn.140014844
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140075988
mov r9d, dword [rbp - 0x29]
mov rdx, qword [rbp - 0x31]
xor r8d, r8d
mov rcx, rsi
call fcn.14000e8f0
mov r9d, dword [rbp - 0x19]
mov rdx, qword [rbp - 0x21]
lea rcx, [rsi + 0x20]
xor r8d, r8d
call fcn.14000e8f0
mov r9d, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
lea rcx, [rsi + 0x40]
xor r8d, r8d
call fcn.14000e8f0
mov r9d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rsi + 0x60]
xor r8d, r8d
call fcn.14000e8f0
mov r9d, dword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
lea rcx, [rsi + 0x80]
xor r8d, r8d
call fcn.14000e8f0
mov r9d, dword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
lea rcx, [rsi + 0xa0]
xor r8d, r8d
call fcn.14000e8f0
lea r8, [rsi + 0xa0]
lea rdx, [rbp + 0x37]
lea rcx, [rsi + 0x80]
call fcn.140057dc0
lea rcx, [rsi + 0xc0]
mov rdx, rax
call fcn.140010590
lea rcx, [rbp + 0x37]
call fcn.140001460
mov ecx, dword [rbp - 0x25]
movzx r11d, word [rbp - 0x15]
mov dword [rsi + 0xe4], ecx
dec ecx
mov word [rsi + 0xe8], r11w
je 0x14007597e
dec ecx
je 0x140075972
mov dword [rsi + 0xe0], 3
jmp 0x140075985
mov dword [rsi + 0xe0], 2
jmp 0x140075985
mov dword [rsi + 0xe0], r12d
mov al, r12b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140075ab0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [rcx + 0x188], bl
je 0x140075af0
test dl, dl
je 0x140075af0
add rcx, 0x190
call fcn.140038f90
lea rcx, [0x140075aa0]
mov r8, rdi
xor edx, edx
call fcn.140017b04
cmp dword [rdi + 0x20], ebx
sete al
jmp 0x140075af5
call fcn.1400759b0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140077be0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
mov r12b, byte [0x1400b18e7]
mov rbp, rdx
mov rdi, rcx
call fcn.1400167c0
mov edx, 0x8000
mov ecx, eax
call fcn.1400166c4
mov rcx, rbp
mov esi, eax
call fcn.14004d5c0
test al, al
je 0x140077c50
mov rcx, rbp
call fcn.14004c680
mov rcx, rbp
movsxd rbx, eax
call fcn.140077470
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140016974
mov rbx, rax
jmp 0x140077ca6
lea rcx, [rsp + 0x20]
call fcn.14000fa20
mov rcx, rbp
call fcn.14000f920
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.14006dce0
mov r8, qword [rsp + 0x20]
lea rdx, [0x14009a364]
mov rcx, rdi
call fcn.140016a04
movsxd rbx, eax
test r12b, r12b
je 0x140077c9c
mov rcx, rbp
call fcn.14005f330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x20]
call fcn.140001460
mov rcx, rdi
call fcn.140016ce8
mov rcx, rdi
call fcn.1400167c0
mov edx, 0x4000
mov ecx, eax
cmp esi, 0xffffffff
je 0x140077cc4
mov edx, esi
call fcn.1400166c4
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x140078250
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor ecx, ecx
mov r12, r9
lea ebx, [rcx + 1]
mov r13, r8
mov edi, ecx
mov ebp, ecx
cmp qword [r15 + 8], rcx
jne 0x140078288
xor al, al
jmp 0x140078437
mov rax, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov byte [r9], cl
mov byte [r8], cl
mov dword [rdx], ecx
mov rsi, rax
mov byte [rax], cl
mov byte [r14], cl
movsxd rdx, edi
mov rcx, r15
call fcn.14003e640
cmp word [rax], 0x2b
je 0x1400782d1
cmp word [rax], 0x5e
je 0x1400782cb
cmp word [rax], 0x21
je 0x1400782cb
cmp word [rax], 0x23
jne 0x1400782fa
cmp word [rax], 0x2b
jne 0x1400782d7
mov byte [r13], bl
jmp 0x1400782f6
cmp word [rax], 0x5e
jne 0x1400782e3
mov byte [r12], bl
jmp 0x1400782f6
cmp word [rax], 0x21
jne 0x1400782ee
mov byte [r14], bl
jmp 0x1400782f6
cmp word [rax], 0x23
jne 0x1400782f6
mov byte [rsi], bl
add edi, ebx
jmp 0x1400782a8
movsxd rdx, edi
add edi, ebx
mov rcx, r15
mov dword [rsp + 0x80], edi
call fcn.14003e640
mov rsi, qword [rsp + 0x88]
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x1400783fe
lea rcx, [rsp + 0x20]
mov edx, 0x40
call fcn.1400014d0
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x20]
mov ecx, 0x7d
mov rdx, r15
call fcn.14006e570
test al, al
je 0x1400783e4
lea rdi, [0x1400acbd0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi]
call fcn.140014b78
test eax, eax
je 0x14007837e
lea rax, reloc.WSOCK32.dll_accept
add rdi, 8
add ebp, ebx
cmp rdi, rax
jl 0x14007835b
cmp ebp, 0x62
jne 0x1400783d0
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.14000eda0
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
jne 0x1400783b1
lea rcx, [rsp + 0x20]
call fcn.140001460
jmp 0x140078281
bt ecx, 9
jae 0x1400783bb
mov byte [r12], bl
bt ecx, 0xa
jae 0x1400783c4
mov byte [r14], bl
bt ecx, 8
jae 0x1400783f2
mov byte [r13], bl
jmp 0x1400783f2
lea rcx, [0x140000000]
movsxd rax, ebp
cmp byte [rax + rcx + 0xacee0], 0
je 0x1400783e8
xor bl, bl
jmp 0x1400783f2
movzx eax, byte [rax + rcx + 0xacf50]
mov dword [rsi], eax
lea rcx, [rsp + 0x20]
call fcn.140001460
jmp 0x14007842f
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
je 0x140078281
bt ecx, 9
jae 0x14007841c
mov byte [r12], bl
bt ecx, 0xa
jae 0x140078425
mov byte [r14], bl
bt ecx, 8
jae 0x14007842f
mov byte [r13], bl
and dword [rsi], 0xff
mov al, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x920
mov eax, dword [0x140026d08]
mov rdi, rcx
cmp dword [rcx], eax
je 0x1400010cc
mov rax, qword [0x140026d00]
xor ebx, ebx
cmp rax, rbx
je 0x14000104f
cmp word [0x140026d02], bx
je 0x140001043
call rax
mov qword [0x140026d00], rax
mov ecx, eax
call fcn.140002bb8
mov rcx, rax
jmp 0x1400010b6
mov ecx, 0x27
call fcn.140002bb8
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi]
lea rcx, [rsp + 0x120]
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
cmp dword [rdi + 0x18], ebx
jbe 0x1400010ae
lea rsi, [rdi + 0x20]
mov r8, qword [rsi]
lea rdx, str._t0x_p_n
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
add ebx, 1
add rsi, 8
cmp ebx, dword [rdi + 0x18]
jb 0x14000107a
lea rcx, [rsp + 0x120]
call fcn.14000d1bc
call fcn.1400062f4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001b08
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
test rdx, rdx
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
je 0x140001b2e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + VariantCopy]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140001b3d
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
lea rcx, [rdi + 0x20]
mov rdx, rsi
mov qword [rdi + 0x18], rbx
call fcn.140001424
lea rcx, [rdi + 0x20]
mov dx, 0x5c
call fcn.1400018ec
and dword [0x140026d20], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x140001384]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [0x140026d10], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140026da0], 2
mov qword [0x140026d18], rax
je 0x140001ba7
call fcn.14000c534
mov rax, qword [0x140026d18]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, dword [0x140026d20]
and qword [0x140026e68], 0
test r8d, r8d
je 0x140001c16
cmp r8d, 1
je 0x140001c08
cmp r8d, 2
je 0x140001c01
cmp r8d, 3
je 0x140001bfa
cmp r8d, 0x67
jle 0x140001be9
cmp r8d, 0x6b
jle 0x140001c81
mov edx, 0x14
xor ecx, ecx
call fcn.14000d318
jmp 0x140001c81
mov edx, 0x12
jmp 0x140001c0d
mov edx, 0x13
jmp 0x140001c0d
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000d318
jmp 0x140001c81
cmp dword [0x140026e64], 0
jne 0x140001c81
mov rcx, qword [0x140026d18]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x140001c41
test ecx, ecx
jne 0x140001c41
xor eax, eax
jmp 0x140001c86
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x140001c58
mov r8d, ecx
mov edx, 0x21
jmp 0x140001bee
movzx ecx, cx
cmp ecx, 0xe
jne 0x140001c69
cmp dword [0x140026da4], 0xffffffff
je 0x140001c81
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000d318
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000234c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002393
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000237a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002398
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002393
test al, 0x10
jne 0x140002393
mov ecx, 0xb7
jmp 0x140002370
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400023a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov byte [rsp + 0x41], InitCommonControls
mov byte [rsp + 0x42], 0xa
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret
Function at 0x140002644
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x70
mov r12, rcx
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, word [0x140026d38]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rbx, rax
jne 0x1400026ac
mov r9w, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rbx, rax
je 0x1400026e2
test rsi, rsi
je 0x1400026c3
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
mov qword [rsi], r11
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400026e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x14000277e
cmp dword [0x140026d3c], 0
jne 0x14000277c
lea rcx, str.kernel32
mov dword [0x140026d3c], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetProcessPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x140026d38]
and qword [rsp + 0x28], 0
lea rdx, str._04X_c_04X_c
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rbx, rax
mov dword [rsp + 0x20], 0x409
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
jne 0x14000276e
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x14000277c
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 4]
call rbx
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140002b48
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x140026d38]
test dx, dx
jne 0x140002bad
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov word [0x140026d38], ax
and cx, 0x3ff
cmp cx, 9
je 0x140002b78
movzx eax, ax
jmp 0x140002bb0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp ax, 0x409
jne 0x140002ba6
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x140021a0c]
mov dx, word [0x140026d38]
cmp eax, ecx
cmove dx, cx
mov word [0x140026d38], dx
jmp 0x140002bad
mov dx, word [0x140026d38]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x140002bb8
Capabilities:
Get geographical location
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
xor edx, edx
xor r8d, r8d
mov edi, ecx
cmp dword [0x140026060], edx
lea r12, [0x140026060]
je 0x140002c06
mov rax, r12
cmp dword [rax], ecx
je 0x140002c06
add r8, 1
add edx, 1
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140002bec
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140002c1f
lea rax, [0x140020b00]
jmp 0x140002d9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SfxString_d
lea rcx, [rsp + 0x30]
mov r8d, edi
mov ebp, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x140002cc5
lea edx, [rsi + 2]
lea eax, [r15 + 3]
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
ja 0x140002cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002cbd
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x140002cb6
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140002cbd
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x140002cc5
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx + r12 + 0x18]
test rax, rax
jne 0x140002d9c
cmp qword [rbx + r12 + 0x10], rax
mov rdi, qword [rbx + r12 + 8]
je 0x140002cf9
call fcn.140002b48
cmp eax, dword [0x140021a0c]
jne 0x140002cf9
mov rdi, qword [rbx + r12 + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [rax + 3]
mov eax, 2
movsxd rdx, ecx
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov ecx, dword [0x140026004]
cmp ecx, 0xffffffff
mov qword [rbx + r12 + 0x18], rax
jne 0x140002d77
movzx ecx, word [0x140026d38]
and dword [0x140026004], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140002d71
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x140026004], eax
jmp 0x140002d77
mov ecx, dword [0x140026004]
lea eax, [rsi + 2]
lea r9d, [rsi + 1]
mov r8, rdi
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + r12 + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [rbx + r12 + 0x18]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x140002e68
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor ebx, ebx
mov byte [rax + 0x15], 5
lea rax, [rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rax - 0x10], ebx
mov qword [rax], rbx
mov byte [rax - 8], bl
mov byte [rax - 7], bl
mov byte [rax - 6], bl
mov byte [rax - 5], bl
mov byte [rax - 4], bl
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x140002ecb
xor eax, eax
jmp 0x140002ef2
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x140003078
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
test rcx, rcx
mov rbx, rcx
jne 0x14000308a
xor eax, eax
jmp 0x1400030de
test byte [0x140026da4], 2
mov dword [rsp + 0x20], 0x40
jne 0x1400030d9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400030d9
cmp qword [rsp + 0x30], rbx
jae 0x1400030d9
mov ecx, 0x2b
call fcn.140002bb8
mov rcx, rax
call fcn.14000d270
cmp rax, 1
je 0x1400030d2
or dword [0x140026da4], 0xffffffff
jmp 0x140003086
or dword [0x140026da4], 2
mov eax, 1
add rsp, 0x60
pop rbx
ret

Function at 0x1400037bc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
and dword [rax - 0x10], 0
and dword [rax - 0xc], 0
mov rsi, rcx
lea rcx, [rax - 0x18]
mov edx, 3
call fcn.1400011b8
mov edi, dword [rsp + 0x2c]
cmp edi, 1
jg 0x14000380a
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.1400011b8
mov edi, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400038ab
lea ebp, [rax + 1]
cmp ebp, edi
jl 0x140003841
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.1400011b8
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edi, edi
cmp word [rbx], di
je 0x140003867
mov rax, rbx
add rax, 2
add edi, 1
cmp word [rax], 0
jne 0x14000385a
movsxd rax, edi
and word [rbx + rax*2], 0
lea rax, [rsp + 0x20]
cmp rax, rsi
je 0x1400038ab
mov rax, qword [rsi]
and dword [rsi + 8], 0
mov edx, edi
and word [rax], 0
mov rcx, rsi
call fcn.1400011b8
mov rcx, qword [rsi]
mov r11, rbx
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x140003894
mov dword [rsi + 8], edi
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
Function at 0x140003e8c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140003140
lea rdx, [0x140020bd4]
lea rcx, [rsp + 0x20]
call fcn.1400031ac
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140003f86
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140001424
lea rcx, [rsp + 0x20]
mov dx, 0x5c
call fcn.1400018ec
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.1400031ac
test byte [rsp + 0x30], 0x10
mov rbx, qword [rsp + 0x20]
je 0x140003f4b
lea rdx, [0x140020bd0]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003f67
lea rdx, [0x140020bc8]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003f67
mov rcx, rbx
call fcn.140003e8c
jmp 0x140003f63
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003fb1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140003fb1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003edf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003fb1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140003fb1
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
jmp 0x140003fbb
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003fd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140026e84], 0
mov rbx, rcx
je 0x140003fe9
mov eax, 1
jmp 0x14000401b
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003fe2
test al, 0x10
mov rcx, rbx
jne 0x140004016
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140004012
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000401b
xor eax, eax
jmp 0x14000401b
call fcn.140003e8c
add rsp, 0x20
pop rbx
ret