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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rsi, rdx
mov ecx, dword [0x180332e08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea r8, str..._srcglobal_state.c
test rax, rax
lea rax, str.add_deferred_cb
je 0x18000d133
mov qword [rsp + 0x28], rdi
lea rdx, str.__s:_d___s:_defer:_p_n
mov r9d, 0x292
mov qword [rsp + 0x20], rax
mov ecx, 3
call fcn.18002b690
mov ecx, 0x28
call fcn.18022c454
mov rbx, rax
test rax, rax
je 0x18000d14c
lea rdx, [rdi + 0x10]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], 1
mov rcx, qword [rdx]
mov qword [rax + 8], rdx
mov qword [rax], rcx
mov rax, qword [rdx]
mov qword [rax + 8], rbx
mov qword [rdx], rbx
mov edx, 2
mov rcx, qword [rdi]
lea r8d, [rdx - 1]
call fcn.180052860
mov rax, rbx
jmp 0x18000d14e
mov r9d, 0x29e
mov qword [rsp + 0x20], rax
lea rdx, str.__s:_d__ERR___s:_no_tls_value_n
xor ecx, ecx
call fcn.18002b690
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18000d170
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rsi, r8
mov ecx, dword [0x180332e08]
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea r8, str..._srcglobal_state.c
test rax, rax
lea rax, str.add_deferred2_cb
je 0x18000d230
mov qword [rsp + 0x28], rdi
lea rdx, str.__s:_d___s:_defer:_p_n
mov r9d, 0x27c
mov qword [rsp + 0x20], rax
mov ecx, 3
call fcn.18002b690
mov ecx, gethostbyaddr
call fcn.18022c454
mov rbx, rax
test rax, rax
je 0x18000d249
mov qword [rax + 8], rax
lea r8, [rdi + 0x10]
mov qword [rax], rax
mov edx, 2
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], rsi
mov dword [rax + 0x10], 2
mov rcx, qword [r8]
mov qword [rax + 8], r8
mov qword [rax], rcx
mov rax, qword [r8]
mov qword [rax + 8], rbx
mov qword [r8], rbx
lea r8d, [rdx - 1]
mov rcx, qword [rdi]
call fcn.180052860
mov rax, rbx
jmp 0x18000d24b
mov r9d, 0x289
mov qword [rsp + 0x20], rax
lea rdx, str.__s:_d__ERR___s:_no_tls_value_n
xor ecx, ecx
call fcn.18002b690
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1800138d0
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x260
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rcx
xor esi, esi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
xor edx, edx
mov r8d, 0x208
call fcn.180229410
lea r8, str.GlobalWSLibDefProxyMutex
mov dword [rsp + 0x30], 0x208
xor edx, edx
mov qword [r14], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
jne 0x18001394c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x2719
call fcn.18001ed70
jmp 0x180013ab8
mov edx, 0x3e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180013971
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, WSASetLastError
jmp 0x180013ab8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x278], rbx
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesVSSERV
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1800139b7
mov edx, 0x271a
mov ecx, eax
call fcn.18001ed70
mov ebx, eax
jmp 0x180013a8c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ImagePath
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1800139fc
mov edx, 2
mov ecx, eax
call fcn.18001ed70
mov ebx, eax
jmp 0x180013a8c
lea rdx, str.vsserv
mov word [rsp + 0x246], si
lea rcx, [rsp + 0x40]
call fcn.1802295a0
test rax, rax
jne 0x180013a1f
lea ebx, [rax + 2]
jmp 0x180013a8c
mov word [rax], si
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], si
jne 0x180013a30
mov ecx, eax
mov dword [rsp + 0x30], eax
lea rcx, [rcx*2 + 0x20]
call fcn.18022c454
mov rsi, rax
test rax, rax
jne 0x180013a59
lea ebx, [rax + 0xc]
jmp 0x180013a8c
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
add r8, r8
mov rcx, rsi
call fcn.180228d60
movups xmm0, xmmword [str.LBWSDftPxyz.dat]
mov eax, dword [rsp + 0x30]
movups xmmword [rsi + rax*2], xmm0
movups xmm1, xmmword [0x180257da0]
movups xmmword [rsi + rax*2 + 0x10], xmm1
mov qword [r14], rsi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180013a9c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180227e50
lea r11, [rsp + 0x260]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x18001dc10
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18001dcb0
mov qword [rsp + 0x1f0], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov edx, 0x2714
call fcn.18001ed70
mov ecx, eax
mov ebx, eax
call fcn.18000b950
mov qword [rsp + 0x30], rax
lea r8, str..._srcwindll_main.c
lea rax, str.wsa_init
mov dword [rsp + 0x28], ebx
mov r9d, 0x23
mov qword [rsp + 0x20], rax
lea rdx, str.__s:_d__ERR___s:__LITTLE_DNS_CREATE_FAILED__WSAStartup_:__d____s___r_n
xor ecx, ecx
call fcn.18002b690
mov rbx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.180227e50
add rsp, 0x1f8
ret
mov dword [0x18032e4f4], 1
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.180227e50
add rsp, 0x1f8
ret
Function at 0x18001e6d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x58
xor ebx, ebx
mov qword [rax + 0x18], rsi
mov qword [rax - 0x18], r12
xor r9d, r9d
mov qword [rax - 0x38], rbx
mov r12, rdx
mov qword [rax - 0x28], r15
mov edi, ebx
mov r15, r8
mov qword [rdx], rbx
mov dword [rax - 0x40], 0x80
lea r8d, [rbx + 1]
mov edx, 0x80000000
mov dword [rax + 0x10], ebx
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001e739
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edx, [rbx + 2]
call fcn.18001ed70
mov ebx, eax
jmp 0x18001e7d2
mov qword [rsp + 0x70], rbp
lea rdx, [rsp + 0x78]
mov rcx, rsi
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test r15, r15
je 0x18001e76a
cmp rbp, r15
ja 0x18001e763
cmp dword [rsp + 0x78], ebx
je 0x18001e76a
mov ebx, 0x4b
jmp 0x18001e7c3
lea ecx, [rbp + 1]
call fcn.18022c454
mov rdi, rax
test rax, rax
jne 0x18001e77f
lea ebx, [rax + 0xc]
jmp 0x18001e7c3
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001e7af
cmp ebp, dword [rsp + 0x78]
jne 0x18001e7af
mov byte [rbp + rdi], bl
mov qword [r12], rdi
mov rdi, rbx
jmp 0x18001e7c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x271b
call fcn.18001ed70
mov ebx, eax
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x70]
test rsi, rsi
je 0x18001e7db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x80]
test rdi, rdi
je 0x18001e7fa
mov rcx, rdi
call fcn.18022c440
mov eax, ebx
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x18001e810
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x18001e9a2
cmp word [rcx], 0
je 0x18001e9a2
test rdx, rdx
je 0x18001e9a2
test r8, r8
je 0x18001e9a2
mov qword [rsp + 0x68], rsi
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x70], rdi
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18001e860
lea rdi, [rax + 0x20]
lea rcx, [rdi + rdi]
call fcn.18022c454
mov rsi, rax
test rax, rax
je 0x18001e99b
mov qword [rsp + 0x78], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9, rbx
lea r8, str._s.tmp._d
mov rdx, rdi
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.18001ed10
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 2
lea r8d, [rdi + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x18001e8f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edx, [rdi + 0xd]
call fcn.18001ed70
mov edi, eax
jmp 0x18001e93f
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001e915
cmp ebp, dword [rsp + 0x60]
je 0x18001e929
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x271c
call fcn.18001ed70
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18001e93f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r15, qword [rsp + 0x78]
test edi, edi
jne 0x18001e97e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x18001e97e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x271c
call fcn.18001ed70
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call fcn.18022c440
mov eax, edi
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
mov eax, reloc.WS2_32.dll_inet_ntoa
jmp 0x18001e988
mov eax, reloc.WS2_32.dll_shutdown
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
Function at 0x18001ea70
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rdi, rdx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rsi, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18001eb05
lea rax, str.get_file_size
mov qword [rsp + 0x28], rsi
mov r9d, 0x90
mov qword [rsp + 0x20], rax
lea r8, str..._srcwin_file_io.c
xor ecx, ecx
lea rdx, str.__s:_d__ERR___s:_cannot_open_file__S_n
call fcn.18002b690
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edx, [rbx + 3]
call fcn.18001ed70
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x60]
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180025b80
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, 0x48
call fcn.18022c454
mov rbx, rax
test rax, rax
jne 0x180025b9e
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.1800260b0
test eax, eax
jne 0x180025c02
mov qword [rsp + 0x28], 0
lea r8, [0x180025c60]
mov r9, rbx
mov dword [rsp + 0x20], 0x10000
mov edx, 0x200000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x180025c14
lea rax, str.network_awareness_create_th
mov r9d, 0x49
lea r8, str..._srcwin_net_awareness.c
mov qword [rsp + 0x20], rax
lea rdx, str.__s:_d__ERR___s:_failed_to_create_network_awareness_thread_n
xor ecx, ecx
call fcn.18002b690
mov rcx, rbx
call fcn.1800263a0
mov rcx, rbx
call fcn.18022c440
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x180026f00
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x180026f1f
lea r8, [0x180000000]
cdqe
mov edx, dword [r8 + rax*4 + 0x26f74]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret

Function at 0x180026ff0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
movzx r9d, byte [rcx]
mov r11, rdx
mov r10, rcx
test r9b, r9b
je 0x1800270e3
mov qword [rsp + 0x20], rbx
lea rbx, [0x180000000]
movzx edx, byte [r11]
test dl, dl
je 0x1800270de
movsx eax, r9b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x18002703b
cdqe
mov ecx, dword [rbx + rax*4 + 0x27108]
add rcx, rbx
jmp rcx
mov r9b, 0x41
jmp case.default.0x18002703b
mov r9b, 0x42
jmp case.default.0x18002703b
mov r9b, 0x43
jmp case.default.0x18002703b
mov r9b, 0x44
jmp case.default.0x18002703b
mov r9b, 0x45
jmp case.default.0x18002703b
mov r9b, 0x46
jmp case.default.0x18002703b
mov r9b, 0x47
jmp case.default.0x18002703b
mov r9b, 0x48
jmp case.default.0x18002703b
mov r9b, 0x49
jmp case.default.0x18002703b
mov r9b, 0x4a
jmp case.default.0x18002703b
mov r9b, 0x4b
jmp case.default.0x18002703b
mov r9b, 0x4c
jmp case.default.0x18002703b
mov r9b, 0x4d
jmp case.default.0x18002703b
mov r9b, 0x4e
jmp case.default.0x18002703b
mov r9b, 0x4f
jmp case.default.0x18002703b
mov r9b, 0x50
jmp case.default.0x18002703b
mov r9b, 0x51
jmp case.default.0x18002703b
mov r9b, 0x52
jmp case.default.0x18002703b
mov r9b, 0x53
jmp case.default.0x18002703b
mov r9b, 0x54
jmp case.default.0x18002703b
mov r9b, 0x55
jmp case.default.0x18002703b
mov r9b, 0x56
jmp case.default.0x18002703b
mov r9b, 0x57
jmp case.default.0x18002703b
mov r9b, 0x58
jmp case.default.0x18002703b
mov r9b, 0x59
jmp case.default.0x18002703b
mov r9b, 0x5a
movzx ecx, dl
call fcn.180026f00
cmp r9b, al
jne 0x1800270de
movzx r9d, byte [r10 + 1]
inc r10
inc r11
test r9b, r9b
jne 0x180027013
mov rbx, qword [rsp + 0x20]
movzx ecx, byte [r10]
call fcn.180026f00
movzx ecx, byte [r11]
movzx r9d, al
call fcn.180026f00
xor ecx, ecx
cmp r9b, al
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180027180
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r9d, byte [rcx]
mov r11, r8
mov rbx, rdx
mov r10, rcx
test r9b, r9b
je 0x180027286
lea rdi, [0x180000000]
nop word [rax + rax]
movzx edx, byte [rbx]
test dl, dl
je 0x180027286
test r11, r11
je 0x18002728b
movsx eax, r9b
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1800271e0
cdqe
mov ecx, dword [rdi + rax*4 + 0x272c8]
add rcx, rdi
jmp rcx
mov r9b, 0x41
jmp case.default.0x1800271e0
mov r9b, 0x42
jmp case.default.0x1800271e0
mov r9b, 0x43
jmp case.default.0x1800271e0
mov r9b, 0x44
jmp case.default.0x1800271e0
mov r9b, 0x45
jmp case.default.0x1800271e0
mov r9b, 0x46
jmp case.default.0x1800271e0
mov r9b, 0x47
jmp case.default.0x1800271e0
mov r9b, 0x48
jmp case.default.0x1800271e0
mov r9b, 0x49
jmp case.default.0x1800271e0
mov r9b, 0x4a
jmp case.default.0x1800271e0
mov r9b, 0x4b
jmp case.default.0x1800271e0
mov r9b, 0x4c
jmp case.default.0x1800271e0
mov r9b, 0x4d
jmp case.default.0x1800271e0
mov r9b, 0x4e
jmp case.default.0x1800271e0
mov r9b, 0x4f
jmp case.default.0x1800271e0
mov r9b, 0x50
jmp case.default.0x1800271e0
mov r9b, 0x51
jmp case.default.0x1800271e0
mov r9b, 0x52
jmp case.default.0x1800271e0
mov r9b, 0x53
jmp case.default.0x1800271e0
mov r9b, 0x54
jmp case.default.0x1800271e0
mov r9b, 0x55
jmp case.default.0x1800271e0
mov r9b, 0x56
jmp case.default.0x1800271e0
mov r9b, 0x57
jmp case.default.0x1800271e0
mov r9b, 0x58
jmp case.default.0x1800271e0
mov r9b, 0x59
jmp case.default.0x1800271e0
mov r9b, 0x5a
movzx ecx, dl
call fcn.180026f00
cmp r9b, al
jne 0x18002729b
movzx r9d, byte [r10 + 1]
inc r10
dec r11
inc rbx
test r9b, r9b
jne 0x1800271b0
test r11, r11
jne 0x18002729b
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx ecx, byte [r10]
call fcn.180026f00
movzx ecx, byte [rbx]
movzx r9d, al
call fcn.180026f00
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
cmp r9b, al
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x18002bd30
Capabilities:
Encode data using xor

Disassembly:
mov r8, 0xffffffffffffffff
mov r10, rdx
mov r9, r8
mov r11, rcx
inc r9
cmp byte [rcx + r9], 0
jne 0x18002bd40
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18002bd50
lea eax, [r9 + r8]
test r9, r9
je 0x18002bd8f
nop dword [rax]
nop word [rax + rax]
mov edx, eax
lea r11, [r11 + 1]
mov ecx, eax
shr edx, 0x1b
shl ecx, 5
mov eax, edx
xor eax, ecx
movsx ecx, byte [r11 - 1]
xor eax, ecx
sub r9, 1
jne 0x18002bd70
test r8, r8
je 0x18002bdbf
nop dword [rax]
nop dword [rax + rax]
mov edx, eax
lea r10, [r10 + 1]
mov ecx, eax
shr edx, 0x1b
shl ecx, 5
mov eax, edx
xor eax, ecx
movsx ecx, byte [r10 - 1]
xor eax, ecx
sub r8, 1
jne 0x18002bda0
btr eax, 0x1f
ret
Function at 0x18002c010
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
movzx ebp, r9w
mov rcx, rdx
mov r14, r8
mov rdi, rdx
call fcn.180232140
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x18002c04d
mov eax, reloc.WS2_32.dll_inet_ntoa
jmp 0x18002c1f0
mov r10, qword [rbx + 0x70]
mov r8, 0xffffffffffffffff
mov r9, r8
mov qword [rsp + 0x30], rsi
inc r9
cmp byte [rdi + r9], 0
jne 0x18002c060
nop word [rax + rax]
inc r8
cmp byte [r10 + r8], 0
jne 0x18002c070
lea edx, [r9 + r8]
mov r11, rdi
test r9, r9
je 0x18002c0af
nop word [rax + rax]
mov ecx, edx
lea r11, [r11 + 1]
mov eax, edx
shr ecx, 0x1b
shl eax, 5
mov edx, ecx
xor edx, eax
movsx eax, byte [r11 - 1]
xor edx, eax
sub r9, 1
jne 0x18002c090
test r8, r8
je 0x18002c0df
nop dword [rax]
nop dword [rax + rax]
mov ecx, edx
lea r10, [r10 + 1]
mov eax, edx
shr ecx, 0x1b
shl eax, 5
mov edx, ecx
xor edx, eax
movsx eax, byte [r10 - 1]
xor edx, eax
sub r8, 1
jne 0x18002c0c0
btr edx, 0x1f
movzx r8d, bp
mov dword [rbx + 0x78], edx
mov rcx, rdi
mov rdx, r14
call fcn.18002d000
mov rsi, rax
test rax, rax
je 0x18002c164
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x18002c10f
mov rdx, qword [rbx + 0x60]
mov rcx, rdi
call rax
mov qword [rbx + 0x28], rsi
lea rcx, [rsi + 0x170]
mov rax, qword [rcx]
lea rdx, [rbx + 0x10]
mov qword [rdx + 8], rcx
mov qword [rdx], rax
mov rax, qword [rcx]
mov qword [rax + 8], rdx
mov qword [rcx], rdx
mov rcx, qword [rbx + 0x20]
add rcx, 0x90
mov rax, qword [rcx]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov rax, qword [rcx]
mov qword [rax + 8], rbx
mov qword [rcx], rbx
cmp dword [rsi + 0x10], 0
je 0x18002c1e9
mov dword [rsi + 0x10], 0
jmp 0x18002c1e1
movzx r8d, bp
mov rdx, r14
mov rcx, rdi
call fcn.18002c970
mov rsi, rax
test rax, rax
jne 0x18002c18d
mov rcx, qword [rbx + 0x68]
call fcn.18022c440
lea eax, [rsi + 0xc]
mov qword [rbx + 0x68], rsi
jmp 0x18002c1eb
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x18002c19f
mov rdx, qword [rbx + 0x60]
mov rcx, rdi
call rax
mov qword [rbx + 0x28], rsi
lea rcx, [rsi + 0x170]
mov rax, qword [rcx]
lea rdx, [rbx + 0x10]
mov qword [rdx + 8], rcx
mov qword [rdx], rax
mov rax, qword [rcx]
mov qword [rax + 8], rdx
mov qword [rcx], rdx
mov rcx, qword [rbx + 0x20]
add rcx, 0x90
mov rax, qword [rcx]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov rax, qword [rcx]
mov qword [rax + 8], rbx
mov qword [rcx], rbx
mov rcx, rsi
call fcn.18002ce00
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180038290
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rsi, [rcx + 0x80]
mov rdi, rcx
mov r12d, dword [rsi + 0x18]
xor r14d, r14d
mov r13d, 0x40000000
mov eax, dword [rsi + 8]
test eax, eax
jne 0x180038338
mov ecx, dword [rdi + 0x74]
test ecx, ecx
je 0x1800382da
cmp ecx, 0xfffffffb
jne 0x180038392
cmp dword [rdi + 0x50], 0
jne 0x180038330
mov ebp, dword [rdi + 0x28]
mov r15, rax
add r15, qword [rdi + 0x30]
sub ebp, eax
xor ebx, ebx
nop
mov ecx, dword [rdi + 0x1c]
mov r8d, ebp
sub r8d, ebx
mov edx, ebx
cmp r8d, r13d
cmova r8d, r13d
add rdx, r15
call fcn.18023d0c4
test eax, eax
jle 0x180038316
add ebx, eax
cmp ebx, ebp
jb 0x1800382f0
test eax, eax
js 0x180038376
test eax, eax
jne 0x180038323
mov dword [rdi + 0x50], 1
add dword [rsi + 8], ebx
mov rax, qword [rdi + 0x30]
mov qword [rsi], rax
mov eax, dword [rsi + 8]
test eax, eax
je 0x1800383f8
xor edx, edx
mov rcx, rsi
call fcn.180039840
mov r14d, eax
lea ecx, [rax + 2]
test ecx, 0xfffffffb
je 0x1800383dd
cmp eax, 0xfffffffc
je 0x1800383c2
cmp eax, 0xfffffffd
je 0x18003839c
cmp dword [rsi + 0x18], 0
je 0x18003840c
cmp eax, 1
jne 0x1800382c3
jmp 0x18003840c
call fcn.1802397c4
mov ecx, dword [rax]
call fcn.180239850
mov r8, rax
mov edx, 0xffffffff
mov rcx, rdi
call fcn.1800374a0
mov eax, 0xffffffff
jmp 0x18003842f
mov rax, qword [rsi + 0x20]
lea r8, str.compressed_data_error
test rax, rax
mov edx, 0xfffffffd
mov rcx, rdi
cmovne r8, rax
call fcn.1800374a0
mov eax, 0xffffffff
jmp 0x18003842f
lea r8, str.out_of_memory
mov edx, 0xfffffffc
mov rcx, rdi
call fcn.1800374a0
mov eax, 0xffffffff
jmp 0x18003842f
lea r8, str.internal_error:_inflate_stream_corrupt
mov edx, 0xfffffffe
mov rcx, rdi
call fcn.1800374a0
mov eax, 0xffffffff
jmp 0x18003842f
lea r8, str.unexpected_end_of_file
mov edx, 0xfffffffb
mov rcx, rdi
call fcn.1800374a0
sub r12d, dword [rsi + 0x18]
mov ecx, r12d
mov dword [rdi], ecx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rdi + 8], rax
cmp r14d, 1
jne 0x18003842d
mov dword [rdi + 0x44], 0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret