joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1401a22b0], 0xffffffff
jne 0x14001536f
call fcn.140014e10
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400152f0]
call fcn.14005e320
jmp 0x1400153a0
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400153a0
call fcn.140015970
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400152f0]
call fcn.14005e320
add rsp, 0x28
ret

Function at 0x1400153e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140015410
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x140015480
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1401a5bb0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400154c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140015500
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x14001555b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x14001555b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x14001555d
xor eax, eax
add rsp, 0x38
ret
Function at 0x140015570
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x140015970
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x1401a5bb0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x1401a5bb0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1401a22b0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x1400339d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x1401a5678], 0
jne 0x140033a75
mov rax, qword [sym.imp.msvcrt.dll_malloc]
mov dword [0x1401a5678], 1
mov qword [sub.msvcrt.dll_malloc], rax
mov rax, qword [sym.imp.msvcrt.dll_free]
mov qword [fcn.14000409c], rax
mov rax, qword [sym.imp.msvcrt.dll_realloc]
mov qword [0x1401a22c8], rax
lea rax, case.0x14003c387.0
mov qword [case.0x14003c387.11], rax
mov rax, qword [sym.imp.msvcrt.dll_calloc]
mov qword [case.0x14003c387.1], rax
call fcn.14003d9b0
test eax, eax
je 0x140033aa3
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x140033aa3
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140033a9d
shr ax, 8
cmp al, 2
jne 0x140033a9d
call fcn.14003e070
test eax, eax
jne 0x140033aa3
mov dword [0x1401a567c], 3
lea rcx, [rsp + 0x1d0]
call fcn.1400357e0
mov rcx, qword [rsp + 0x1d0]
xor edx, edx
test eax, eax
cmovne rcx, rdx
mov rax, rcx
add rsp, 0x1c8
ret
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
xor eax, eax
add rsp, 0x1c8
ret
Function at 0x140033e20
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov eax, dword [0x1401a5678]
mov ebx, ecx
mov edx, eax
inc eax
mov dword [0x1401a5678], eax
test edx, edx
jne 0x140033ee7
mov rax, qword [sym.imp.msvcrt.dll_malloc]
mov qword [sub.msvcrt.dll_malloc], rax
mov rax, qword [sym.imp.msvcrt.dll_free]
mov qword [fcn.14000409c], rax
mov rax, qword [sym.imp.msvcrt.dll_realloc]
mov qword [0x1401a22c8], rax
lea rax, case.0x14003c387.0
mov qword [case.0x14003c387.11], rax
mov rax, qword [sym.imp.msvcrt.dll_calloc]
mov qword [case.0x14003c387.1], rax
test cl, 1
je 0x140033e97
call fcn.14003d9b0
test eax, eax
je 0x140033ef8
test bl, 2
je 0x140033eca
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x140033ef8
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140033ef2
shr ax, 8
cmp al, 2
jne 0x140033ef2
call fcn.14003e070
test eax, eax
jne 0x140033ef8
mov eax, dword [0x1401a56dc]
test bl, 4
mov ecx, 1
cmovne eax, ecx
mov dword [0x1401a567c], ebx
mov dword [0x1401a56dc], eax
xor eax, eax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add rsp, 0x1c0
pop rbx
ret

Function at 0x140038c50
Capabilities:
Write file on windows

Disassembly:
mov rdx, qword [r8 + 0x10]
mov r9, rcx
or rax, 0xffffffffffffffff
mov qword [r8 + 0x18], rdx
nop
inc rax
cmp byte [rdx + rax], 0
jne 0x140038c60
test rax, rax
je 0x140038c7a
cmp byte [rdx + rax - 1], 0x2e
jne 0x140038c7a
mov byte [rdx + rax - 1], 0
mov rcx, qword [r8 + 0x10]
movzx eax, byte [rcx]
test al, al
je 0x140038ca4
lea rcx, [rcx + 1]
and al, 0x80
jne 0x140038c95
movzx eax, byte [rcx]
test al, al
jne 0x140038c85
ret
lea rdx, str.IDN_support_not_present__cant_parse_Unicode_domains_n
mov rcx, r9
jmp fcn.14003e630
ret
Function at 0x14003ed90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14003edd3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14003ee18
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140072fc8]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140041dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x798]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140041e3d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140041e03
cmp qword [rcx + 0x78], rax
je 0x140041e3d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x140041e16
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x140042d50]
lea rdx, [rsp + 0x20]
call fcn.14004ac50
cmp byte [rsp + 0x28], 0
jne 0x140041e51
mov qword [rdi + 0x798], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x140041e59
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140041e77
mov rcx, rbx
call fcn.14003d340
test eax, eax
jne 0x140041e93
jmp 0x140041e3d
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WSOCK32.DLL_recv]
test eax, eax
je 0x140041e3d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140042400
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xd0
mov dword [rax + 0x18], 0x4020
mov dword [rax + 0x10], 0
mov dword [rax + 0x20], 4
mov eax, dword [0x1401a56a0]
mov rbx, rcx
test eax, eax
jne 0x140042495
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x34], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140042489
mov dword [0x1401a56a0], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x1401a56a0], 1
jmp 0x14004249a
cmp eax, 2
je 0x1400424fb
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0xe8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400424d7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400424fb
lea r9, [rsp + 0xf0]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0xd0
pop rbx
ret
Function at 0x14005e320
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1401a5730], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1401a5740]
jne 0x14005e36d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1401a5768], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1401a5730], 1
mov ecx, dword [0x1401a5768]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14005e442
mov rcx, qword [0x1401a4600]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14005e46d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401a5738]
test rax, rax
je 0x14005e3bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1401a5738], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14005e488]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1401a5768]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1401a4600]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14005e46d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001160
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140027008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov rdi, r9
mov qword [rsp + 0x30], rax
lea r9, [r8 + rdx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test rdi, rdi
je 0x1400011e8
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1400011d9
lea rdx, str.E._Error_while_unhooking_application___d_._n
mov rcx, rdi
call fcn.140001070
lea rdx, str.E._Successfully_unhooked_application._n
mov rcx, rdi
call fcn.140001070
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001fb0
add rsp, 0x58
pop rdi
pop rbx
ret

Function at 0x140001200
Capabilities:
Create thread
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140027008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov rbx, r9
mov qword [rsp + 0x30], rax
mov r9, r8
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x14000126d
test rbx, rbx
je 0x14000125b
lea rdx, str.ERROR:_Unable_to_call_FreeLibrary._n
mov rcx, rbx
call fcn.140001070
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x500
jmp 0x1400012c5
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0
je 0x1400012ac
test eax, eax
je 0x1400012ac
test rbx, rbx
je 0x1400012a8
lea rdx, str.FreeLibrary_OK._n
mov rcx, rbx
call fcn.140001070
xor eax, eax
jmp 0x1400012c5
test rbx, rbx
je 0x1400012c0
lea rdx, str.ERROR:_FreeLibrary_failed._n
mov rcx, rbx
call fcn.140001070
mov eax, 0x501
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001fb0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001de0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x140027008]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
lea r8, [0x140023d70]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001e37
mov eax, 1
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140001fb0
add rsp, 0x2e8
ret
mov ecx, 1
call fcn.1400060f4
mov qword [0x140028cb0], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call fcn.1400060f4
mov r9, rax
lea r8, [0x140023d8c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0xb0]
call fcn.14000a9fc
mov rcx, qword [0x140028cb0]
lea rdx, str.Aero_Window_Manager_n_n
call fcn.140001070
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str._awmdll.dll
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.14000a878
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov byte [rsp + 0xa8], 1
lea r9, str.dwm.exe
mov rcx, rax
lea r8, str.main
xor eax, eax
mov edx, 0x208
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], 0x3e8
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov rax, qword [0x140028cb0]
mov dword [rsp + 0x40], 0x3e8
mov qword [rsp + 0x38], rax
lea rax, [fcn.140001dd0]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [0x140023de0]
mov qword [rsp + 0x20], rax
call fcn.1400012e0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140001fb0
add rsp, 0x2e8
ret

Function at 0x140005fc0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005dbc
Function at 0x14000cc34
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400283f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000cc8b
cmp word [rdx], r13w
jne 0x14000cc8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000cc90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000cdb5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000cdd6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000ccc9
mov rdx, r9
mov word [rbx], cx
jmp 0x14000ccf0
cmp r9, r8
jae 0x14000cd00
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000ccaa
jmp 0x14000cdb5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000cdaa
cmp dword [rsp + 0x80], esi
je 0x14000cdaa
lea r8, [0x1400283f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000cd82
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000cd52
mov word [rbx], r13w
jmp 0x14000cdb2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000cd5f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000cdb2
cmp word [rsp + 0x70], r13w
jne 0x14000cd8f
cmp rbx, r14
je 0x14000cd4c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14000c4b8
cmp word [rsp + 0x70], r13w
je 0x14000cdb5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400283f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000cdaf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000cdb5
Function at 0x140010e98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140010eae
mov al, 1
jmp 0x140010f0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140010ebf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140010f0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013854
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010f0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140010f0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010f0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140010f0e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012e50
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140012e80
xor eax, eax
jmp 0x140012f43
mov rbp, rbx
cmp word [rax], si
je 0x140012ea5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140012e8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140012e88
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012d70
movsxd r14, eax
test eax, eax
jne 0x140012ee3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140012e79
mov rcx, r14
call fcn.14000e748
mov rdi, rax
test rax, rax
jne 0x140012efc
xor ecx, ecx
call fcn.14000da08
jmp 0x140012ed8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012d70
test eax, eax
jne 0x140012f2d
mov rcx, rdi
call fcn.14000da08
jmp 0x140012f37
xor ecx, ecx
call fcn.14000da08
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140018160
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011e40
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400181ea
cmp byte [rbp - 0x21], r15b
je 0x1400181e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018220
call fcn.14000dc58
test eax, eax
jne 0x14001820c
cmp byte [rbp - 0x21], r15b
je 0x140018204
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018220
cmp byte [rbp - 0x21], r15b
je 0x14001821d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011420
test eax, eax
jne 0x1400182c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011e40
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001825f
cmp byte [rbp - 0x21], r15b
je 0x140018294
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018294
call fcn.14000dc58
test eax, eax
jne 0x140018280
cmp byte [rbp - 0x21], r15b
je 0x140018279
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018294
cmp byte [rbp - 0x21], r15b
je 0x140018291
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011420
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400182c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400182c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400182d1
mov rcx, rdi
call fcn.14000da08
cmp byte [rbp + 0x3f], r15b
je 0x1400182e0
mov rcx, qword [rbp + 0x27]
call fcn.14000da08
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret