joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c8f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
imul r12d, r8d, 0x3a2
mov r15d, r8d
mov r14, rdx
mov rbp, rcx
mov esi, r8d
cmp r8d, r12d
ja 0x18001c94a
xor ebx, ebx
cmp esi, 0x33
je 0x18001c98c
cmp esi, 0x5c
je 0x18001c966
cmp esi, 0x12b
je 0x18001c9e0
cmp esi, 0x4334
je 0x18001c94a
cmp esi, 0xda69
jne 0x18001c9ff
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x51]
call fcn.180052c00
test al, al
je 0x18001ca16
mov rcx, qword [r14]
mov rdx, rbp
call qword [0x1800aa778]
jmp 0x18001c9fa
mov edi, 0x8b
mov eax, edi
sub eax, 0x8a
je 0x18001c94a
cmp eax, 1
jne 0x18001c9d6
mov qword [rsp + 0x28], rbx
lea r8, [0x180012970]
mov r9, r14
mov dword [rsp + 0x20], ebx
xor edx, edx
mov qword [0x1800aa768], r14
xor ecx, ecx
mov qword [r14 + 0x70], rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [0x1800aa6a8], rax
setne byte [rsp + 0x78]
dec edi
cmp edi, 0x89
ja 0x18001c991
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
imul eax, r15d, 0xba
add esi, eax
cmp esi, r12d
jbe 0x18001c920
jmp 0x18001c94a
mov rax, rbx
jmp 0x18001c94f
Function at 0x180057ca0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180057cd4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180057cc0
ret
Function at 0x1800764fc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18007651c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18006bdcc
or eax, 0xffffffff
jmp 0x18007651e
xor eax, eax
add rsp, 0x28
ret

Function at 0x180079edc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180079d7c
call fcn.18006be3c
mov dword [rax], 0x16
call fcn.18006cf48
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180079d64
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180079d64
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180079dae
lock or dword [rax + 0x14], 0x10
jmp 0x180079d64
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180079dcb
mov rcx, qword [rbp + 0x10]
call fcn.1800809a8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18006ba08
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800729dc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180079e22
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180079d64
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180079e8e
mov rcx, qword [rbp + 0x10]
call fcn.18006ba08
cmp eax, 0xffffffff
je 0x180079e75
mov rcx, qword [rbp + 0x10]
call fcn.18006ba08
cmp eax, 0xfffffffe
je 0x180079e75
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18006ba08
movsxd rdi, eax
lea rsi, [0x1800a9f30]
mov rcx, rbx
sar rdi, 6
call fcn.18006ba08
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180079e7c
lea rax, [0x1800a83b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180079e8e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180079ec4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180079ec0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180079ec0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180079d67
jmp 0x180079d34
Function at 0x14002e580
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140033240
sub rsp, rax
mov rax, qword [0x140071380]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14002e642
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400421d4
cmp rax, 1
jne 0x14002e69e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002e61f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14002e613
cmp rcx, 1
jb 0x14002e69e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14002e5e0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14002e673
lea rcx, [rsp + 0x80]
call fcn.140044e04
jmp 0x14002e675
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140032f70
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140036700
int3
Function at 0x140032a90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140071380]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140032b41
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1400421d4
cmp rax, 1
jne 0x140032b77
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140032b1d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140032b10
cmp rcx, 1
jb 0x140032b77
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140032ae0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140032f70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140036700
int3

Function at 0x140032df0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140071380]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x140032e9f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400421d4
cmp rax, 1
jne 0x140032ed5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140032e7c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140032e70
cmp rcx, 1
jb 0x140032ed5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140032e40
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140032f70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140036700
int3

Function at 0x1400339a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400339ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400339ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400339ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400339ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400339ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400339f0
xor al, al
add rsp, 0x28
ret
Function at 0x140037d34
Capabilities:
Parse pe header

Disassembly:
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 0x140037da3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140037da3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037da3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037da3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037da3
cmp dword [rcx + 0x84], 0xe
jbe 0x140037da3
cmp dword [rcx + 0xf8], 0
je 0x140037da3
mov ecx, ebx
call fcn.140037e60
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.140037c30
nop
cmp dword [rbp + 0x20], 0
je 0x140037df1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140037dfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140037d34

Function at 0x140037f44
Capabilities:
Parse pe header

Disassembly:
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 0x140037da3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140037da3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037da3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037da3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037da3
cmp dword [rcx + 0x84], 0xe
jbe 0x140037da3
cmp dword [rcx + 0xf8], 0
je 0x140037da3
mov ecx, ebx
call fcn.140037e60
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.140037c30
nop
cmp dword [rbp + 0x20], 0
je 0x140037df1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140037dfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140037d34
Function at 0x140049cc4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140049d4b
mov rsi, rbx
cmp word [rax], bp
je 0x140049d0a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049cf4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140049cf0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400452e0
mov rdi, rax
test rax, rax
je 0x140049d38
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004ffd0
mov rbp, rdi
xor ecx, ecx
call fcn.140045e00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004fdb0
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14000a8a3
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
mov rax, 0x11
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000a8ba
sub rsp, 0x28
call fcn.140035b40
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140035bb0
add rsp, 0x10
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.140035bb0
add rsp, 0x10
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.140035bb0
add rsp, 0x10
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
movabs rax, str.runas
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], 1
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.SHELL32.DLL_ShellExecuteExW
jmp 0x14000a986
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140035c20
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140035c20
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140035c20
add rsp, 0x28
pop rax
add rsp, 0xb0
pop rbp
ret

Function at 0x1400126a8
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1400b4748]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14001331c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400133e2
lea rcx, [0x1400ba460]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b7648]
jmp 0x1400133a6
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400133a3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400b7648]
mov rdx, rsi
call fcn.1400355d0
jmp 0x1400133a6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140013373
mov rdx, qword [0x1400b46c0]
lea rcx, [0x1400b7648]
mov rdi, rdx
inc rdx
mov qword [0x1400b46c0], rdx
lea edx, [rbx + 0x20]
call fcn.140035618
lea rcx, [0x1400ba460]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140014308
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001437f
movsxd rdx, ecx
lea rcx, [0x140014264]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400b78b8]
test rbx, rbx
je 0x1400143f2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140014375
cmp byte [rbx + 0x20], 0
je 0x140014375
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14001433b
jmp 0x1400143f2
mov rbx, qword [0x1400b78b8]
test rbx, rbx
je 0x1400143f2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400143ea
cmp byte [rbx + 0x21], 0
je 0x1400143ae
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400143da
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400b78b8]
call fcn.1400355d0
mov rbx, rdi
test rdi, rdi
jne 0x14001438b
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140014488
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400144b6
dec edi
mov edx, ebx
mov ecx, edi
call fcn.140035c80
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140014508
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140014528
test rax, rax
lea rdx, [0x1400783a0]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140014568
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400ba4c0]
call fcn.1400348ec
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140014665
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x1400145bf
add rax, 2
cmp word [rax], 0x20
je 0x1400145b5
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x1400145fd
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14001463d
cmp cx, r9w
je 0x1400145ef
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400145dd
cmp word [rax], bp
je 0x14001463d
mov rcx, rax
add rax, 2
jmp 0x140014645
test dx, dx
je 0x140014642
mov rbx, rax
cmp dx, 0x20
je 0x1400145ef
add rax, 2
cmp word [rax], r9w
jne 0x140014633
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14001463d
cmp cx, r9w
je 0x140014633
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140014621
movzx edx, word [rax]
test dx, dx
jne 0x140014605
jmp 0x1400145ef
mov rcx, rax
jmp 0x140014645
mov r8d, ebp
cmp dword [r14], esi
jne 0x14001464f
test rdi, rdi
jne 0x14001466f
test r8d, r8d
je 0x140014656
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x1400145af
test rdi, rdi
jne 0x140014684
movsxd rax, esi
jmp 0x140014686
test rbx, rbx
je 0x140014684
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140014686
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140014730
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400ba4c0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400348ec
test ebx, ebx
js 0x14001475f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140014568
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140035c80
mov ecx, ebp
jmp 0x14001479b
test edi, edi
je 0x1400147a0
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14001478e
inc ecx
jmp 0x140014795
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14001477d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140035dc0
Function at 0x140014dcc
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r8d, edx
mov edx, 2
je 0x140014de1
mov edx, 0x18
jmp 0x140014df9
test dword [rcx + 0x28], 0x100
jne 0x140014df9
test dword [rcx + 0x28], 0x200
mov eax, 0x19
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
jmp 0x140014f68
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x14001507f
cmp edx, 2
je 0x14001507f
mov rcx, qword [0x1400b7294]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015067
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140015060
test edi, edi
jne 0x140015020
mov rcx, qword [0x1400b7294]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140015060
cmp ax, 0xd
je 0x140015040
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140014ff5
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140068660
jmp 0x140015147
mov r8, rcx
mov rcx, qword [0x1400b7294]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015128
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140015120
test edi, edi
jne 0x1400150e6
mov rcx, qword [0x1400b7294]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140015120
cmp al, 0xd
je 0x140015100
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400150be
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140015142
call fcn.1400686c0
jmp 0x140015147
call fcn.140068a00
mov rcx, qword [0x1400b7294]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret