joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005a50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140009c90
sub rsp, rax
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140006b10
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140005ae6
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140006c20
test rax, rax
je 0x140005ae6
cmp byte [rax], 0
je 0x140005ae6
mov rcx, rax
call fcn.140014d60
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009d00
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009d00
add rsp, 0x4038
ret

Function at 0x140005ff0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140006b10
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140010070
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006030
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140009c90
sub rsp, rax
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140006b10
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.1400130ac
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.1400130ac
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.1400130ac
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.1400130ac
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140010240
mov rcx, rax
call fcn.140014dd8
mov ecx, eax
call fcn.140012c54
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.140010240
mov rcx, rax
call fcn.140014dd8
mov ecx, eax
call fcn.140012c54
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.140010240
mov rcx, rax
call fcn.140014dd8
mov ecx, eax
call fcn.140012c54
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400061b1
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x1400061c9
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140027b08]
call fcn.140001d60
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140009d00
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400067c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2070
call fcn.140009c90
sub rsp, rax
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006891
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140006848
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006891
mov edx, dword [rsp + 0x30]
mov ecx, 1
call fcn.140010068
mov rbx, rax
test rax, rax
je 0x140006891
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140006891
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov rcx, rbx
call fcn.140010070
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400068aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
lea r9, str.S_1_3_4
test rbx, rbx
lea r8, str.D:_A__FA____s_
mov edx, 0x1000
lea rcx, [rsp + 0x60]
cmovne r9, rbx
call fcn.140006530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov dword [rsp + 0x48], 0x18
lea r8, [rsp + 0x50]
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x14000691c
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000691c
xor eax, eax
jmp 0x140006921
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.140009d00
mov rbx, qword [rsp + 0x2088]
add rsp, 0x2070
pop rdi
ret
Function at 0x140012448
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140012468
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011c8c
or eax, 0xffffffff
jmp 0x14001246a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140012798
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x1400124d7
call fcn.140011cfc
mov dword [rax], 0x16
call fcn.140015b1c
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009d00
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x14001249e
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140012545
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140012518
cmp eax, 3
jbe 0x140012535
cmp eax, 8
je 0x140012525
cmp eax, 0x12
je 0x140012535
call fcn.140011cfc
mov dword [rax], 0x16
jmp 0x1400124ae
call fcn.140011cfc
mov dword [rax], 0xc
jmp 0x1400124ae
call fcn.140011cfc
mov dword [rax], 2
jmp 0x1400124ae
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.1400126e0
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400126e0
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400126e0
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001b2a0
test eax, eax
jne 0x1400125a3
mov rax, rdi
jmp 0x1400124b2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b3c
int3
jmp 0x140012470
Function at 0x1400127a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140012615
call fcn.140011cfc
mov dword [rax], 0x16
call fcn.140015b1c
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009d00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x1400125e1
test rbx, rbx
je 0x1400125e1
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140012670
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140012649
cmp eax, 3
jbe 0x140012663
cmp eax, 8
je 0x140012656
cmp eax, 0x12
je 0x140012663
call fcn.140011cfc
mov dword [rax], 0x16
jmp 0x1400125f1
call fcn.140011cfc
mov dword [rax], 0xc
jmp 0x1400125f1
call fcn.140011cfc
mov dword [rax], 2
jmp 0x1400125f1
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.1400126e0
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400126e0
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400126e0
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001b2a0
test eax, eax
je 0x1400125f4
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015b3c
int3
jmp 0x1400125b8

Function at 0x140013288
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400132a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011c8c
or eax, 0xffffffff
jmp 0x1400132aa
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001462c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014458
Function at 0x27c541560
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.27c542170
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.27c542170
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x27c5415d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x27c57d064]
mov rbx, rcx
test esi, esi
jle 0x27c541700
mov rax, qword [0x27c57d068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x27c54161b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x27c5416a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x27c541600
mov rcx, rbx
call fcn.27c541e30
mov rdi, rax
test rax, rax
je 0x27c541722
mov rax, qword [0x27c57d068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.27c541f70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x27c57d068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x27c541707
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x27c54169e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x27c5416b0
add dword [0x27c57d064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x27c57d068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x27c54169e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.27c541560
nop dword [rax]
xor esi, esi
jmp 0x27c541628
mov rax, qword [0x27c57d068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.27c541560
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.27c541560
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x27c541aa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x27c57d0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x27c57d080]
test rbx, rbx
je 0x27c541afc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x27c541af3
test eax, eax
jne 0x27c541af3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x27c541ad8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x27c541e30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x27c57a200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x27c541e50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x27c541e58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27c541e50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x27c541ead
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x27c541ea4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x27c541e50
add rax, 0x28
cmp rax, r9
jne 0x27c541e90
xor eax, eax
ret

Function at 0x27c541eb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x27c57a200]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x27c541ecf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x27c541ed8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x27c541ecf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x27c541f70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x27c57a200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x27c541f8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x27c541f98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x27c542370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
xor r9d, r9d
movsxd rax, dword [rdx + 0x3c]
mov r10d, dword [rax + rdx + 0x88]
add r10, rdx
mov rbx, rcx
mov r8, rdx
mov r11d, dword [r10 + 0x20]
mov esi, dword [r10 + 0x18]
add r11, rdx
cmp esi, r9d
jbe 0x27c5423dc
mov ecx, dword [r11 + r9*4]
add rcx, r8
call fcn.27c5424d0
mov r12d, eax
lea rax, [r9 + 1]
cmp r12d, ebx
jne 0x27c5423d7
mov edx, dword [r10 + 0x24]
add r9, r9
mov eax, dword [r10 + 0x1c]
add r9, r8
movzx edx, word [r9 + rdx]
lea rdx, [r8 + rdx*4]
mov eax, dword [rdx + rax]
add rax, r8
jmp 0x27c5423de
mov r9, rax
jmp 0x27c54239b
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x27c5423f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
cmp word [rax], 0x5a4d
jne 0x27c54241e
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x27c54241e
cmp dword [rax + rdx], 0x4550
je 0x27c542423
dec rax
jmp 0x27c5423fd
ret

Function at 0x27c542460
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [rcx - 1], 0xcc
je 0x27c5424be
test r8d, r8d
jne 0x27c54246f
sub rcx, 0x20
mov r9b, byte [rcx]
cmp r9b, 0xe9
je 0x27c542482
mov r8b, byte [rcx + 3]
cmp r8b, 0xe9
jne 0x27c542489
inc edx
xor r8d, r8d
jmp fcn.27c542460
xor eax, eax
cmp r9b, 0x4c
jne 0x27c5424c0
cmp byte [rcx + 1], 0x8b
jne 0x27c5424c0
cmp byte [rcx + 2], 0xd1
jne 0x27c5424be
cmp r8b, 0xb8
jne 0x27c5424be
cmp byte [rcx + 6], 0
jne 0x27c5424c0
movzx eax, byte [rcx + 5]
shl eax, 8
mov r8d, eax
movzx eax, byte [rcx + 4]
or eax, r8d
add eax, edx
jmp 0x27c5424c0
xor eax, eax
ret
Function at 0x27c5424d0
Capabilities:
Resolve function by brute ratel badger hash

Disassembly:
xor eax, eax
movsx edx, byte [rcx]
test dl, dl
je 0x27c5424eb
imul eax, eax, 0x801
inc rcx
or eax, 0x2800000
add eax, edx
jmp 0x27c5424d2
ret
Function at 0x140002448
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x1400024fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r15d, dword [rbp + 0x20]
jmp 0x140002592
cmp esi, 1
jne 0x14000259f
mov rcx, r14
call fcn.1400033d8
test al, al
je 0x14000259f
xor r12d, r12d
jmp 0x140002545
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, r9
mov r15d, r8d
mov r14, rcx
xor esi, esi
or edi, 0xffffffff
test esi, esi
jne 0x1400024de
cmp dword [0x140055740], esi
je 0x14000259f
lea r12d, [rdi + 3]
jmp 0x140002545
xor bl, bl
mov byte [rsp + 0x30], bl
cmp dword [0x140055748], 0
jne 0x14001a325
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
or r9d, r12d
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.1400129a8
test eax, eax
mov edi, eax
je 0x1400025af
cmp dword [0x140055748], 0
jne 0x14001a3dc
inc esi
cmp esi, 2
jge 0x1400025a8
jmp 0x140002530
mov eax, edi
jmp 0x14000264f
mov dword [r13], r15d
mov r15, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400025c5
mov rcx, qword [r15]
mov qword [rsp + 0x28], r13
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, eax
cmp edi, 0x3f2
je 0x14001a33e
cmp edi, 0x3fa
je 0x14001a33e
cmp edi, 6
je 0x14001a33e
mov rdx, r15
lea rcx, [0x140055750]
call fcn.1400128f0
test edi, edi
jne 0x140001427
movzx ecx, word [r14 + 0x18]
mov eax, ecx
and eax, 0xf
cmp dword [rsp + 0x34], eax
jne 0x14001a3b8
mov rax, qword [rbp + 0x38]
mov dword [rax], 1
cmp dword [0x140055748], 0
jne 0x14001a3f7
xor eax, eax
jmp 0x14000264f
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov bl, 1
mov byte [rsp + 0x30], bl
lea rcx, [0x140055d38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
jmp 0x140002558
mov rcx, rdi
mov edx, 0x1c0454
call fcn.1400132c4
mov edx, 0x1c049f
xor ecx, ecx
call fcn.1400132c4
mov r11, qword [r14 + 0x10]
movzx eax, word [r11 + 0xa]
and eax, 0xf
lea rax, [rax + rax*2]
lea rcx, [0x140055680]
xor edi, edi
mov qword [rcx + rax*8], rdi
mov rdx, r15
lea rcx, [0x140055750]
call fcn.14000dc18
mov qword [rsp + 0x38], rdi
movzx r9d, word [r14 + 0x18]
shr r9d, 1
and r9d, 0x10
or r9d, r12d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0x10]
call fcn.1400129a8
mov r15d, dword [rbp + 0x20]
jmp 0x14000258c
cmp dword [rsp + 0x34], 3
jne 0x14001a3d2
cmp dword [r13], 4
jne 0x14001a3d2
and cl, 0xf
cmp cl, 4
je 0x140002634
mov edi, 2
jmp 0x140001427
test bl, bl
je 0x14000259f
lea rcx, [0x140055d38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14000259f
test bl, bl
je 0x14000264b
lea rcx, [0x140055d38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14000264b
Function at 0x140008618
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub eax, ebx
jmp 0x140007bd9
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call sub.MSVCR100.dll_memcpy
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jae 0x140007b99
xor eax, eax
mov word [rdx], ax
dec r8d
jne 0x140007bcb
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop
nop
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jae 0x140007c0c
xor eax, eax
mov word [rcx], ax
dec edx
jne 0x140007bf0
add esi, ebx
jmp 0x14000865e
sub eax, ebx
jmp 0x140007bfe
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.1400070d8
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400085bf
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jb 0x14001ca26
mov ecx, dword [rdi + 0x1718]
mov esi, dword [rdi + 0x58]
cmp ecx, esi
jae 0x14000866b
mov ebx, dword [rdi + 0x94]
add ebx, r9d
cmp ecx, ebx
jae 0x14001ca38
sub esi, ebx
mov eax, 0x102
mov ecx, ebx
cmp esi, eax
cmova esi, eax
add rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, esi
call sub.MSVCR100.dll_memset
lea r11d, [rsi + rbx]
mov dword [rdi + 0x1718], r11d
jmp 0x14000866b
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], r14
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov ecx, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
add ecx, 0xfffffefa
add ecx, ebx
sub esi, edx
cmp edx, ecx
jae 0x140007b9d
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
jne 0x140008564
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov rax, qword [rdi]
cmp dword [rax + 8], 0
je 0x1400085cc
jmp 0x14000863a
lea eax, [rbx + 0x102]
cmp ecx, eax
jae 0x14000866b
sub ebx, ecx
sub esi, ecx
mov eax, 0x102
add ebx, eax
cmp ebx, esi
cmova ebx, esi
add rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, ebx
call sub.MSVCR100.dll_memset
add dword [rdi + 0x1718], ebx
jmp 0x14000866b
Function at 0x14000aa78
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000ad50
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
push r12
push r13
push r14
push r15
sub rsp, 0x60
and dword [r11 + 8], 0
cmp dword [rcx + 0x3c], 0
mov edi, r9d
mov r12, r8
mov r14, rdx
mov r15, rcx
je 0x14000ad92
cmp edi, 0x40000
jae 0x14001bdf2
mov r13, qword [rbp + 0x38]
mov ecx, 0x10000
mov esi, ecx
cmp edi, ecx
cmovb esi, edi
and qword [rsp + 0x50], 0
mov rax, r14
shr rax, 0x20
cmp qword [r13 + 8], 0
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], eax
jne 0x14001be3c
xor ebx, ebx
test ebx, ebx
js 0x14000ae3a
mov rcx, qword [r15 + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rbp + 0x10]
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [r15 + 0x3c], 0
je 0x14000ae1b
test eax, eax
jne 0x14000ae23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001be4b
mov rcx, qword [r15 + 0x30]
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x38]
mov r9b, 1
call fcn.14000ae5c
movzx eax, al
test eax, eax
je 0x14001be4b
mov ecx, dword [rbp + 0x10]
mov rax, qword [rbp + 0x30]
add dword [rax], ecx
add r14, rcx
add r12, rcx
sub edi, ecx
jne 0x14001be6c
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rcx + 0x30]
and qword [r11 - 0x58], 0
and qword [r11 - 0x48], 0
lea rax, [0x14003cff8]
mov qword [r11 - 0x40], r8
lea r9, [r11 - 0x58]
mov qword [r11 - 0x50], rax
mov rax, qword [rbp + 0x38]
mov r8d, edi
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x50]
mov qword [r11 - 0x68], rax
call fcn.140034ae4
mov rdx, qword [rbp + 0x30]
mov ecx, dword [rsp + 0x30]
mov ebx, eax
add dword [rdx], ecx
jmp 0x14000ae3a
mov rcx, r13
call fcn.1400329f4
mov ebx, eax
jmp 0x14000adc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x14000ae23
jmp 0x14000ae3a
cmp esi, ecx
jne 0x14001be7e
mov eax, 0x10000
mov esi, eax
cmp edi, eax
jmp 0x14000ad9f
mov ebx, 0x8000ffff
jmp 0x14000ae3a

Function at 0x14000af10
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_GetFileSizeEx]