joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002720
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [0x140010f00]
mov rsi, rcx
mov qword [rsp + 0x28], rcx
test rax, rax
jne 0x14000282f
mov rax, qword gs:[0x60]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax]
mov r11, rbp
nop dword [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400027f8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400027f8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0xda961dcc
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400027f3
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400027d0
cmp edx, 0x4e19cf0c
je 0x140002893
test r8d, r8d
jne 0x1400027b0
mov rax, qword [r11]
mov r11, rax
cmp rax, rbp
je 0x14000280e
cmp qword [rax + 0x30], 0
jne 0x140002780
xor eax, eax
mov rdi, qword [rsp + 0x178]
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x168]
mov qword [0x140010f00], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call rax
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rsi + 0x18], 0
inc r8
cmp byte [rax + r8], 0
jne 0x140002860
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140009110
mov rax, rsi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000a160
add rsp, 0x150
pop rsi
ret
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x140002810
Function at 0x1400028b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rcx
mov qword [rbp - 0x18], rcx
xor r12d, r12d
mov eax, dword [0x14000c98c]
mov dword [rbp - 0x18], eax
movzx eax, byte [0x14000c990]
mov byte [rbp - 0x14], al
movzx eax, word [0x14000c988]
mov word [rbp - 0x1c], ax
movzx edx, byte [0x14000c989]
movzx ecx, byte [rbp - 0x1b]
test dl, dl
jne 0x140002921
mov byte [rbp - 0x1c], 0x5c
xor cl, 0x58
mov byte [rbp - 0x1b], cl
movzx edx, cl
mov al, 0x5c
test cl, cl
je 0x14000292c
xor al, 0x57
mov byte [rbp - 0x1c], al
xor cl, 0x58
mov byte [rbp - 0x1b], cl
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea rax, [rbp - 0x1c]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x140002950
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x40]
call fcn.140009110
nop
movzx eax, byte [rbp - 0x14]
test al, al
je 0x140002984
xor byte [rbp - 0x18], 0x57
xor byte [rbp - 0x17], 0x58
xor byte [rbp - 0x16], 0x59
xor byte [rbp - 0x15], 0x5a
xor al, 0x5b
mov byte [rbp - 0x14], al
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002991
mov r8, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x140002a22
lea rax, [rbx + r8]
mov qword [rbp - 0x30], rax
lea rsi, [rbp - 0x40]
cmp rcx, 0xf
cmova rsi, qword [rbp - 0x40]
lea rax, [rdi + rbx]
cmp rax, rsi
jbe 0x1400029e6
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x1400029e6
cmp rsi, rdi
ja 0x1400029de
mov r15, r12
jmp 0x1400029e9
mov r15, rsi
sub r15, rdi
jmp 0x1400029e9
mov r15, rbx
inc r8
lea rcx, [rsi + rbx]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, rbx
sub r8, r15
lea rdx, [r15 + rdi]
add rdx, rbx
lea rcx, [rsi + r15]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x40]
jmp 0x140002a38
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.1400096e0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140002aa4
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a1c4
mov rax, r14
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000a160
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140002ad0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov rbp, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140002b08
mov rbp, qword [rcx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140002b96
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140002b96
mov esi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rsi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0xe6df5861
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140002b91
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140002b70
cmp r8d, 0xd7bebeb3
je 0x140002b9b
test r9d, r9d
jne 0x140002b50
mov rax, qword [rax]
jmp 0x140002b20
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rdx + rax*4]
add r8, r10
mov edx, 6
mov rcx, rbp
call r8
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140002bf5
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002bf0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002c2a
mov rcx, r8
call fcn.14000a1c4
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000a160
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140009860
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000989a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000989f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400098e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c380]
cmp byte [rcx + rax], 0
je 0x1400098e8
dec r8
sub rdx, 1
jne 0x1400098ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000ab54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ab9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ab9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ab9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ab9e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ab9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000aba0
xor al, al
add rsp, 0x28
ret
Function at 0x180001650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180001683
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800016c7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1800016c2
cmp rbx, r11
jae 0x1800016c7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1800016b0
cmp rbx, r11
jb 0x1800016cb
xor eax, eax
jmp 0x1800016d7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800121b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa0]
mov r9, qword [rbx]
mov rcx, rbx
mov r12, rax
call qword [r9 + 0x90]
mov rbp, rax
test r12, r12
je 0x18001223a
test rsi, rsi
je 0x180012217
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180012217
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x180012246
test rdi, rdi
je 0x18001223a
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x18001223a
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x180012246
mov rdx, rdi
mov rcx, rsi
call qword [0x18017af10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret

Function at 0x180012270
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa8]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x98]
mov r12, rax
test r13, r13
je 0x180012301
test rsi, rsi
je 0x1800122db
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x1800122db
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x180012310
test rdi, rdi
je 0x180012301
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180012301
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x180012310
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x18017af48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1800159a0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa8]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x98]
mov r12, rax
test r13, r13
je 0x180015a31
test rsi, rsi
je 0x180015a0b
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180015a0b
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x180015a40
test rdi, rdi
je 0x180015a31
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180015a31
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x180015a40
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x18017b000]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180015a70
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa0]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x90]
mov r12, rax
test r13, r13
je 0x180015b01
test rsi, rsi
je 0x180015adb
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180015adb
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x180015b10
test rdi, rdi
je 0x180015b01
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180015b01
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x180015b10
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x18017afe8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180015ef0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx]
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa0]
mov r10, qword [rbx]
mov rcx, rbx
mov r13, rax
call qword [r10 + 0x90]
mov r12, rax
test r13, r13
je 0x180015f81
test rsi, rsi
je 0x180015f5b
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180015f5b
mov r8d, ebp
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x180015f90
test rdi, rdi
je 0x180015f81
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.MSVCR90.dll__stricmp]
test eax, eax
jne 0x180015f81
mov r8d, ebp
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x180015f90
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [0x18017af08]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180015fc0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + 0xa8]
mov r9, qword [rbx]
mov rcx, rbx
mov r12, rax
call qword [r9 + 0x98]
mov rbp, rax
test r12, r12
je 0x18001604a
test rsi, rsi
je 0x180016027
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x180016027
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x180016056
test rdi, rdi
je 0x18001604a
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x18001604a
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x180016056
mov rdx, rdi
mov rcx, rsi
call qword [0x18017aff0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x180041af0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180176020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rcx
xor edi, edi
mov dword [rcx], 0x2710
lea rbp, vtable.SpeedBit::Utils::StackBufferEx_128_.0
mov qword [rsp + 0x30], rbp
mov qword [r11 - 0x28], 0x80
lea rax, [rsp + 0x38]
mov qword [r11 - 0x30], rax
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x38]
call sub.MSVCR90.dll_memset
nop
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x38]
mov rbx, rax
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov r8d, ebx
mov rdx, rax
lea rcx, str.SB_VAR_F3B44D29_36CA_4481_9EA7_B31ADA3C649E
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x180041bbe
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x38]
cmp ebx, eax
jae 0x180041bbe
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov rdx, rsi
mov rcx, rax
call fcn.1800419d0
mov edi, eax
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x180041be8
test rcx, rcx
je 0x180041be4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x180041bea
mov eax, edi
jmp 0x180041bea
mov eax, edi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800e9d70
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180042ad0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
sub rsp, 0x78
xor ebp, ebp
mov rbx, rcx
cmp byte [rcx + 0x229], bpl
je 0x180042b3d
lea rdx, [rcx + 0x1b0]
mov rcx, qword [rcx + 0x180]
lea r8, [rax + 0x10]
xor r9d, r9d
mov dword [rax + 0x10], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x180042c23
mov r8d, dword [rsp + 0x98]
test r8d, r8d
je 0x180042b36
mov rdx, qword [rbx + 0x238]
mov rcx, rbx
call fcn.180042ce0
mov rcx, qword [rbx + 0x1c8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [rbx + 0x229], bpl
mov r8d, dword [rbx + 0x22c]
mov rdx, qword [rbx + 0x238]
mov rcx, qword [rbx + 0x180]
mov qword [rsp + 0xa0], rsi
lea rsi, [rbx + 0x1b0]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180042c06
nop
cmp eax, 0x3e4
je 0x180042c06
test edi, edi
je 0x180042cad
mov r8d, dword [rsp + 0x90]
test r8d, r8d
je 0x180042bbb
mov rdx, qword [rbx + 0x238]
mov rcx, rbx
call fcn.180042ce0
mov rcx, qword [rbx + 0x1c8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rbx + 0x22c]
mov rdx, qword [rbx + 0x238]
mov rcx, qword [rbx + 0x180]
lea r9, [rsp + 0x90]
mov dword [rsp + 0x90], ebp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180042b90
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x70]
mov byte [rbx + 0x229], 1
mov al, 1
add rsp, 0x78
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x180042c1a
test eax, eax
je 0x180042c1a
cmp eax, 0x6d
jne 0x180042c5d
mov rcx, qword [rbx + 0x198]
xor r8d, r8d
mov byte [rbx + 0x1a2], 1
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 8]
xor al, al
add rsp, 0x78
pop rbp
pop rbx
ret
cmp eax, 0xe9
jne 0x180042c87
lea rdx, str.Server_had_terminated_client
lea rcx, [rsp + 0x30]
call fcn.18004e590
lea rdx, [0x1801704d0]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll__CxxThrowException
int3
lea rdx, str.Receive_pending_operation_problems.___s
lea rcx, [rsp + 0x40]
mov r8d, eax
call fcn.18004e5e0
lea rdx, [0x1801704f0]
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll__CxxThrowException
int3
lea rdx, str.Data_read_problems.___s
lea rcx, [rsp + 0x58]
mov r8d, eax
call fcn.18004e5e0
lea rdx, [0x1801704f0]
lea rcx, [rsp + 0x58]
call sub.MSVCR90.dll__CxxThrowException
int3
Function at 0x180046180
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x180176020]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x104
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x18004623b
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180046310
mov ebx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, ebx
jmp 0x180046240
mov eax, 0x270f
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800e9d70
add rsp, 0x2a0
pop rbx
ret