joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400883a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400884c4
cmp r8d, 0xff
jne 0x140088401
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400883eb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xac530]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140064a00
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140064a00
cmp r8d, 0xfb
jne 0x140088413
lea r9, str.WILL
jmp 0x140088451
cmp r8d, 0xfc
jne 0x140088425
lea r9, str.WONT
jmp 0x140088451
cmp r8d, 0xfd
jne 0x140088437
lea r9, [0x1400acf54]
jmp 0x140088451
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400884ad
cmp r10d, 0x27
jg 0x140088484
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xacb50]
test r8, r8
jne 0x140088494
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140064a00
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14008846b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140064a00
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140064a00
add rsp, 0x38
ret

Function at 0x140088810
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14008886f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140064880
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400883a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140088a20
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140088bc8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140088a85
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140088a85
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140088a85
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140088abc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140088b12
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140088b12
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140088b12
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140088b12
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140088b12
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400884d0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140088b74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140064880
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400888a0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140088bc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140064880
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14008a330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400ff080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14008a3c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14008a426
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140064880
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14009d440
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14008a4e1
sub ecx, 1
je 0x14008a554
sub ecx, 1
je 0x14008a490
cmp ecx, 1
je 0x14008a473
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400b04c4]
call fcn.140064880
jmp 0x14008a554
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14008a060
test eax, eax
je 0x14008a554
jmp 0x14008a3fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14008a554
sub rax, rsi
cmp rax, rbp
jae 0x14008a554
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140064a00
jmp 0x14008a554
cmp r8d, 4
jle 0x14008a554
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14008a554
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400647a0
mov esi, eax
test eax, eax
je 0x14008a533
mov edx, 5
mov rcx, rbx
call fcn.14008b020
mov eax, esi
jmp 0x14008a3fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140073280
mov rcx, r14
call fcn.140073560
test eax, eax
je 0x14008a3f8
mov edx, 5
mov rcx, rbx
call fcn.14008b020
mov eax, Ordinal_46
jmp 0x14008a3fa
Function at 0x14009d2f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x1400ff020]
mov rdi, rax
test rax, rax
jne 0x14009d332
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14009d379
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14009d3d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14009d390
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14009d413
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400b0112]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400b0113]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14009d3e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
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 [0x140023b68]
mov rdi, rcx
cmp dword [rcx], eax
je 0x1400010cc
mov rax, qword [0x140023b60]
xor ebx, ebx
cmp rax, rbx
je 0x14000104f
cmp word [0x140023b62], bx
je 0x140001043
call rax
mov qword [0x140023b60], rax
mov ecx, eax
call fcn.1400027a0
mov rcx, rax
jmp 0x1400010b6
mov ecx, 0x27
call fcn.1400027a0
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi]
lea rcx, [rsp + 0x120]
mov rdx, rax
call qword [0x14001d5a0]
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 [0x14001d5a0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call qword [sym.imp.d_lstrcatW]
add ebx, 1
add rsi, 8
cmp ebx, dword [rdi + 0x18]
jb 0x14000107a
lea rcx, [rsp + 0x120]
call fcn.14000c6b4
call fcn.140005cc4
mov ecx, 0xa
call qword [sym.imp.d_ExitProcess]
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140001764
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 0x14000178a
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140001799
mov rax, qword [rcx]
call qword [rax + Ordinal_17]
lea rcx, [rdi + 0x18]
mov rdx, rsi
mov qword [rdi + 0x10], rbx
call fcn.1400013d4
lea rcx, [rdi + 0x18]
mov dx, 0x5c
call fcn.140001548
and dword [0x140023b80], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x14000135c]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [0x140023b70], rdi
call qword [sym.imp.d_CreateThread]
cmp dword [0x140023be0], 2
mov qword [0x140023b78], rax
je 0x140001803
call fcn.14000bb6c
mov rax, qword [0x140023b78]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.d_WaitForSingleObject]
mov r8d, dword [0x140023b80]
and qword [0x140023ca8], 0
test r8d, r8d
je 0x140001872
cmp r8d, 1
je 0x140001864
cmp r8d, 2
je 0x14000185d
cmp r8d, 3
je 0x140001856
cmp r8d, 0x67
jle 0x140001845
cmp r8d, 0x6a
jle 0x1400018dd
mov edx, 0x14
xor ecx, ecx
call fcn.14000c810
jmp 0x1400018dd
mov edx, 0x12
jmp 0x140001869
mov edx, 0x13
jmp 0x140001869
mov edx, reloc._Ordinal_17
xor ecx, ecx
call fcn.14000c810
jmp 0x1400018dd
cmp dword [0x140023ca4], 0
jne 0x1400018dd
mov rcx, qword [0x140023b78]
lea rdx, [rsp + 0x40]
call qword [sym.imp.d_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x14000189d
test ecx, ecx
jne 0x14000189d
xor eax, eax
jmp 0x1400018e2
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x1400018b4
mov r8d, ecx
mov edx, 0x21
jmp 0x14000184a
movzx ecx, cx
cmp ecx, 0xe
jne 0x1400018c5
cmp dword [0x140023be4], 0xffffffff
je 0x1400018dd
call qword [sym.imp.d_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000c810
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140001f34
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.d_CreateDirectoryW]
test eax, eax
jne 0x140001f7b
call qword [sym.imp.d_GetLastError]
cmp eax, 0xb7
je 0x140001f62
mov ecx, eax
call qword [sym.imp.d_SetLastError]
xor eax, eax
jmp 0x140001f80
mov rcx, rbx
call qword [sym.imp.d_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001f7b
test al, 0x10
jne 0x140001f7b
mov ecx, 0xb7
jmp 0x140001f58
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001f88
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov byte [rsp + 0x41], Ordinal_17
mov byte [rsp + 0x42], 0xa
call qword [sym.imp.d_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 3
call qword [sym.imp.d_WriteFile]
add rsp, 0x38
ret

Function at 0x14000222c
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.d_GetModuleHandleW]
movzx r9d, word [0x140023b84]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.d_FindResourceExA]
test rax, rax
mov rbx, rax
jne 0x140002294
mov r9w, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.d_FindResourceExA]
test rax, rax
mov rbx, rax
je 0x1400022ca
test rsi, rsi
je 0x1400022ab
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.d_SizeofResource]
mov r11d, eax
mov qword [rsi], r11
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.d_LoadResource]
test rax, rax
je 0x1400022ca
mov rcx, rax
call qword [sym.imp.d_LockResource]
jmp 0x140002366
cmp dword [0x140023b88], 0
jne 0x140002364
lea rcx, str.kernel32
mov dword [0x140023b88], 1
call qword [sym.imp.d_LoadLibraryA]
lea rdx, str.SetProcessPreferredUILanguages
mov rcx, rax
call qword [sym.imp.d_GetProcAddress]
movzx r8d, word [0x140023b84]
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 [0x14001d5a0]
test rbx, rbx
jne 0x140002356
lea rcx, str.kernel32
call qword [sym.imp.d_LoadLibraryA]
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.d_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x140002364
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 0x140002730
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x140023b84]
test dx, dx
jne 0x140002795
call qword [sym.imp.d_GetUserDefaultUILanguage]
movzx ecx, ax
mov word [0x140023b84], ax
and cx, 0x3ff
cmp cx, 9
je 0x140002760
movzx eax, ax
jmp 0x140002798
call qword [sym.imp.d_GetSystemDefaultUILanguage]
cmp ax, 0x409
jne 0x14000278e
call qword [sym.imp.d_GetSystemDefaultLCID]
mov ecx, dword [0x14001e848]
mov dx, word [0x140023b84]
cmp eax, ecx
cmove dx, cx
mov word [0x140023b84], dx
jmp 0x140002795
mov dx, word [0x140023b84]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x1400027a0
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 [0x140023060], edx
lea r12, [0x140023060]
je 0x1400027ee
mov rax, r12
cmp dword [rax], ecx
je 0x1400027ee
add r8, 1
add edx, 1
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x1400027d4
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140002807
lea rax, [0x14001d9a0]
jmp 0x140002984
call qword [sym.imp.d_GetLastError]
lea rdx, str.7zSfxString_d
lea rcx, [rsp + 0x30]
mov r8d, edi
mov ebp, eax
call qword [0x14001d5a0]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.d_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.d_GetLastError]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x1400028ad
lea edx, [rsi + 2]
lea eax, [r15 + 3]
mul rdx
cmovo rax, r15
mov rcx, rax
call fcn.14001b930
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.d_GetEnvironmentVariableW]
cmp eax, esi
ja 0x1400028a5
call qword [sym.imp.d_GetLastError]
test eax, eax
jne 0x1400028a5
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x14000289e
mov rdx, rdi
call qword [sym.imp.d_lstrcmpiW]
test eax, eax
je 0x1400028a5
mov rcx, qword [rbx + r12 + 0x18]
call fcn.14001b92a
mov qword [rbx + r12 + 0x18], rdi
jmp 0x1400028ad
mov rcx, rdi
call fcn.14001b92a
mov ecx, ebp
call qword [sym.imp.d_SetLastError]
mov rax, qword [rbx + r12 + 0x18]
test rax, rax
jne 0x140002984
cmp qword [rbx + r12 + 0x10], rax
mov rdi, qword [rbx + r12 + 8]
je 0x1400028e1
call fcn.140002730
cmp eax, dword [0x14001e848]
jne 0x1400028e1
mov rdi, qword [rbx + r12 + 0x10]
mov rcx, rdi
call qword [sym.imp.d_lstrlenA]
mov esi, eax
lea ecx, [rax + 3]
mov eax, 2
movsxd rdx, ecx
mul rdx
cmovo rax, r15
mov rcx, rax
call fcn.14001b930
mov ecx, dword [0x140023004]
cmp ecx, 0xffffffff
mov qword [rbx + r12 + 0x18], rax
jne 0x14000295f
movzx ecx, word [0x140023b84]
and dword [0x140023004], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.d_GetLocaleInfoW]
test eax, eax
jle 0x140002959
lea rcx, [rsp + 0x90]
call qword [0x14001d5f8]
mov ecx, eax
mov dword [0x140023004], eax
jmp 0x14000295f
mov ecx, dword [0x140023004]
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.d_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 0x140002a50
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._AllocateAndInitializeSid]
cmp eax, ebx
jne 0x140002ab3
xor eax, eax
jmp 0x140002ada
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp._CheckTokenMembership]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp._FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x140002c60
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
test rcx, rcx
mov rbx, rcx
jne 0x140002c72
xor eax, eax
jmp 0x140002cc6
test byte [0x140023be4], 2
mov dword [rsp + 0x20], 0x40
jne 0x140002cc1
lea rcx, [rsp + 0x20]
call qword [sym.imp.d_GlobalMemoryStatusEx]
test eax, eax
je 0x140002cc1
cmp qword [rsp + 0x30], rbx
jae 0x140002cc1
mov ecx, 0x2b
call fcn.1400027a0
mov rcx, rax
call fcn.14000c768
cmp rax, 1
je 0x140002cba
or dword [0x140023be4], 0xffffffff
jmp 0x140002c6e
or dword [0x140023be4], 2
mov eax, 1
add rsp, 0x60
pop rbx
ret

Function at 0x1400033a4
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.140001190
mov edi, dword [rsp + 0x2c]
cmp edi, 1
jg 0x1400033f2
lea rcx, [rsp + 0x20]
mov edx, 1
call fcn.140001190
mov edi, dword [rsp + 0x2c]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.d_ExpandEnvironmentStringsW]
test eax, eax
je 0x140003493
lea ebp, [rax + 1]
cmp ebp, edi
jl 0x140003429
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.140001190
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.d_ExpandEnvironmentStringsW]
xor edi, edi
cmp word [rbx], di
je 0x14000344f
mov rax, rbx
add rax, 2
add edi, 1
cmp word [rax], 0
jne 0x140003442
movsxd rax, edi
and word [rbx + rax*2], 0
lea rax, [rsp + 0x20]
cmp rax, rsi
je 0x140003493
mov rax, qword [rsi]
and dword [rsi + 8], 0
mov edx, edi
and word [rax], 0
mov rcx, rsi
call fcn.140001190
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 0x14000347c
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 fcn.14001b92a
Function at 0x140003a74
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.140002d28
lea rdx, [0x14001da7c]
lea rcx, [rsp + 0x20]
call fcn.140002d94
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.d_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140003b6e
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400013d4
lea rcx, [rsp + 0x20]
mov dx, 0x5c
call fcn.140001548
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.140002d94
test byte [rsp + 0x30], 0x10
mov rbx, qword [rsp + 0x20]
je 0x140003b33
lea rdx, [0x14001da78]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.d_lstrcmpW]
test eax, eax
je 0x140003b4f
lea rdx, [0x14001da70]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.d_lstrcmpW]
test eax, eax
je 0x140003b4f
mov rcx, rbx
call fcn.140003a74
jmp 0x140003b4b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.d_SetFileAttributesW]
test eax, eax
je 0x140003b99
mov rcx, rbx
call qword [sym.imp.d_DeleteFileW]
test eax, eax
je 0x140003b99
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.d_FindNextFileW]
test eax, eax
jne 0x140003ac7
mov rcx, rsi
call qword [sym.imp.d_FindClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.d_SetFileAttributesW]
test eax, eax
je 0x140003b99
mov rcx, rdi
call qword [sym.imp.d_RemoveDirectoryW]
test eax, eax
je 0x140003b99
mov rcx, rbx
call fcn.14001b92a
mov eax, 1
jmp 0x140003ba3
mov rcx, rbx
call fcn.14001b92a
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 0x140003bb8
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140023cc4], 0
mov rbx, rcx
je 0x140003bd1
mov eax, 1
jmp 0x140003c03
call qword [sym.imp.d_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003bca
test al, 0x10
mov rcx, rbx
jne 0x140003bfe
xor edx, edx
call qword [sym.imp.d_SetFileAttributesW]
test eax, eax
je 0x140003bfa
mov rcx, rbx
call qword [sym.imp.d_DeleteFileW]
jmp 0x140003c03
xor eax, eax
jmp 0x140003c03
call fcn.140003a74
add rsp, 0x20
pop rbx
ret

Function at 0x140003d18
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov rbp, rdx
mov edx, 3
mov rbx, rcx
call fcn.140001190
mov rcx, rbp
call qword [0x14001d500]
test eax, eax
movsxd rsi, eax
jle 0x140003d84
lea edi, [rsi + 1]
cmp edi, dword [rbx + 0xc]
jl 0x140003d6a
mov edx, edi
mov rcx, rbx
call fcn.140001190
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rbp
call qword [0x14001d508]
mov rax, qword [rbx]
and word [rax + rsi*2], 0
mov dword [rbx + 8], esi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret