joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800142a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x1800142bb
mov qword [r8], 0
call fcn.180014400
mov rbx, rax
test rax, rax
jne 0x1800142d1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call fcn.180049d4c
mov esi, eax
cmp eax, 0xffffffff
je 0x1800143d2
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.180049688
test eax, eax
jne 0x1800143d2
mov rcx, rbx
call fcn.180049d4c
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800143d2
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.180049688
test eax, eax
jne 0x1800143d2
cmp rdi, 0xffffffffffffffff
je 0x1800143d2
mov rax, qword [0x1800d9780]
test rax, rax
je 0x18001434e
inc dword [rax + 0x3bc]
mov rdx, qword [0x1800d9790]
lea rcx, [rdi + rbp]
call qword [0x1800d6640]
mov rsi, rax
test rax, rax
je 0x1800143d2
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1800492b8
cmp rax, rdi
je 0x1800143ab
mov rcx, rbx
call fcn.180048bd0
mov rax, qword [0x1800d9780]
test rax, rax
je 0x180014399
dec dword [rax + 0x3bc]
mov rdx, qword [0x1800d9790]
mov rcx, rsi
call qword [0x1800d6648]
jmp 0x1800143da
test ebp, ebp
jle 0x1800143bd
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call fcn.18003ea20
mov rcx, rbx
call fcn.180048bd0
test r14, r14
je 0x1800143cd
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800143dc
mov rcx, rbx
call fcn.180048bd0
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x1800146b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18001470d
lea rbx, [0x18006d6c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800146f4
cmp r10, 2
jb 0x1800146f4
cmp byte [r9], r8b
jne 0x1800146f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800146d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001474f
lea rbx, [0x18006d6c0]
cmp r8b, 0x23
jne 0x180014733
cmp byte [r9], r8b
jne 0x180014733
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180014720
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800149c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
xor eax, eax
lea r8, [0x18006dc85]
mov dword [rsp + 0x2c], eax
lea r11, [0x18006d6c0]
mov qword [rsp + 0x38], rax
mov r10d, 0xffffffff
mov qword [rsp + 0x60], rax
mov rbx, rcx
lea rax, str.Window
mov edx, r10d
mov qword [rsp + 0x20], rax
mov r9b, 0x57
cmp r9b, 0x23
jne 0x180014a16
cmp byte [r8], r9b
jne 0x180014a16
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x180014a03
mov ecx, dword [rbx + 0x304c]
lea rax, [0x18001f070]
mov edi, dword [rbx + 0x3048]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x18001f1d0]
mov qword [rsp + 0x40], rax
lea rax, [0x18001f100]
mov qword [rsp + 0x48], rax
lea rax, [0x18001ef20]
mov qword [rsp + 0x50], rax
lea rax, [0x18001f2c0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x180014b44
inc edi
test ecx, ecx
je 0x180014a9a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180014a9f
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x180014b44
mov rax, qword [0x1800d9780]
mov qword [rsp + 0x80], rsi
test rax, rax
je 0x180014ac6
inc dword [rax + 0x3bc]
mov rdx, qword [0x1800d9790]
movsxd rax, edi
lea rcx, [rax + rax*8]
shl rcx, 3
call qword [0x1800d6640]
mov rdx, qword [rbx + 0x3050]
mov rsi, rax
test rdx, rdx
je 0x180014b2f
movsxd rcx, dword [rbx + 0x3048]
lea r8, [rcx + rcx*8]
mov rcx, rax
shl r8, 3
call fcn.18003e370
mov rcx, qword [rbx + 0x3050]
test rcx, rcx
je 0x180014b22
mov rax, qword [0x1800d9780]
test rax, rax
je 0x180014b22
dec dword [rax + 0x3bc]
mov rdx, qword [0x1800d9790]
call qword [0x1800d6648]
mov qword [rbx + 0x3050], rsi
mov rsi, qword [rsp + 0x80]
mov dword [rbx + 0x304c], edi
movsxd rax, dword [rbx + 0x3048]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 0x3050]
movups xmmword [rax + rcx*8], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + rcx*8 + 0x20], xmm0
movsd xmm0, qword [rsp + 0x60]
movups xmmword [rax + rcx*8 + 0x30], xmm1
movsd qword [rax + rcx*8 + 0x40], xmm0
inc dword [rbx + 0x3048]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18001e320
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x1800d9780]
cmp byte [rbx + 0x3031], 0
jne 0x18001e471
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001e46a
lea rdx, [0x18006dd50]
mov qword [rsp + 0x38], rdi
call fcn.180014400
mov rdi, rax
test rax, rax
je 0x18001e465
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x40], r14
call fcn.180049d4c
mov r14d, eax
cmp eax, 0xffffffff
je 0x18001e453
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.180049688
test eax, eax
jne 0x18001e453
mov rcx, rdi
call fcn.180049d4c
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x18001e453
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.180049688
test eax, eax
jne 0x18001e453
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x18001e453
mov rax, qword [0x1800d9780]
test rax, rax
je 0x18001e3e5
inc dword [rax + 0x3bc]
mov rdx, qword [0x1800d9790]
mov rcx, r14
call qword [0x1800d6640]
mov rbp, rax
test rax, rax
je 0x18001e453
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.1800492b8
mov rcx, rdi
cmp rax, r14
je 0x18001e41f
call fcn.180048bd0
jmp 0x18001e42f
call fcn.180048bd0
mov rdx, r14
mov rcx, rbp
call fcn.180015590
mov rax, qword [0x1800d9780]
test rax, rax
je 0x18001e441
dec dword [rax + 0x3bc]
mov rdx, qword [0x1800d9790]
mov rcx, rbp
call qword [0x1800d6648]
jmp 0x18001e45b
mov rcx, rdi
call fcn.180048bd0
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x3031], 1
movss xmm0, dword [rbx + 0x3034]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18001e4b4
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x3034], xmm0
jb 0x18001e4b4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001e4a3
call fcn.18001c9e0
jmp 0x18001e4aa
mov byte [rbx + 0x3a4], 1
mov dword [rbx + 0x3034], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x180022760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x1800228f1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x1800227d0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180025d50
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.1800203b0
mov dword [rbx + 0x80], 0
jmp 0x1800228dd
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180026290
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180033a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x1800d6a88]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rax, [rsp + 0x40]
mov edi, 0x104
mov dword [rsp + 0x28], edi
lea r9, str._HH:mm:ss_
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xc00
call qword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea esi, [rax - 1]
movsxd rbx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, edi
lea rcx, [rsp + 0x40]
sub rdx, rbx
lea r8, str._TID:_0x_X_
add rcx, rbx
mov r9d, eax
call fcn.180033b50
add esi, eax
lea rbx, [rsp + 0x40]
movsxd rax, esi
lea rbp, [rsp + 0x198]
sub rdi, rax
add rbx, rax
call fcn.18000c390
mov r9, qword [rsp + 0x190]
mov r8, rdi
mov qword [rsp + 0x28], rbp
mov rdx, rbx
xor ebp, ebp
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x20], rbp
call fcn.1800482cc
test eax, eax
mov qword [rsp + 0x20], rbp
mov ecx, 0xffffffff
lea rdx, [rsp + 0x40]
cmovs eax, ecx
mov rcx, qword [0x1800d9850]
xor r9d, r9d
lea r8d, [rsi + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18003c840
add rsp, 0x168
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180033dd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180033e01
xor eax, eax
lea r8, [0x180005cd0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x18003b8a0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18003b8ce
xor eax, eax
jmp 0x18003b9b4
cmp qword [rcx + 0x68], 0
je 0x18003b8df
call fcn.18003b9d0
jmp 0x18003b9b4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18003b8f6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003b8f8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18003b92a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18003e370
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18003b9ae
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18003b961
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18003b98a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800492b8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18003b9ae
cmp rsi, rbx
ja 0x18003b968
test rsi, rsi
je 0x18003b9ae
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800492b8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180049acc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18003c910
sub rsp, rax
mov rax, qword [0x1800d6a88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005a664
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180049b1b
mov rax, rbp
jmp 0x180049c23
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xdb160]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005d818
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xdb160]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180049c1f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180049c1f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005d818
test rax, rax
js 0x180049c1f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180049c1f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180049c11
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180049c11
cmp byte [rcx], 0xd
jne 0x180049bf7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180049c06
cmp byte [rcx + 1], 0xa
jne 0x180049c06
inc rcx
jmp 0x180049c06
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd6e90]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180049bd9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180049c23
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003c840
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005ca50
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, [0x1800db160]
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 0x18005caa7
cmp word [rdx], r13w
jne 0x18005caa7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005caac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005cbd1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005cbf2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005cae5
mov rdx, r9
mov word [rbx], cx
jmp 0x18005cb0c
cmp r9, r8
jae 0x18005cb1c
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 0x18005cac6
jmp 0x18005cbd1
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 0x18005cbc6
cmp dword [rsp + 0x80], esi
je 0x18005cbc6
lea r8, [0x1800db160]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005cb9e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005cb6e
mov word [rbx], r13w
jmp 0x18005cbce
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 0x18005cb7b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005cbce
cmp word [rsp + 0x70], r13w
jne 0x18005cbab
cmp rbx, r14
je 0x18005cb68
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005d820
cmp word [rsp + 0x70], r13w
je 0x18005cbd1
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, [0x1800db160]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005cbcb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005cbd1
Function at 0x18005d9bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005d9d2
mov al, 1
jmp 0x18005da32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005d9e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005da30
mov ecx, dword [rcx + 0x18]
nop
call fcn.180065720
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005da30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005da30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005da30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005da32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180060db0
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 0x180060de0
xor eax, eax
jmp 0x180060ea3
mov rbp, rbx
cmp word [rax], si
je 0x180060e05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180060dec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180060de8
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.18005f498
movsxd r14, eax
test eax, eax
jne 0x180060e43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180060dd9
mov rcx, r14
call fcn.180059364
mov rdi, rax
test rax, rax
jne 0x180060e5c
xor ecx, ecx
call fcn.1800576b8
jmp 0x180060e38
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.18005f498
test eax, eax
jne 0x180060e8d
mov rcx, rdi
call fcn.1800576b8
jmp 0x180060e97
xor ecx, ecx
call fcn.1800576b8
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 0x1800636f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180055ad8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180063795
cmp ebx, dword [rsp + 0x30]
je 0x18006378e
test esi, esi
je 0x18006378e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180063769
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180063776
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180063753
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18006377a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180063797
mov eax, 1
jmp 0x180063797
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180067df8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18005d820
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005d820
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180067f48
cmp rax, 0xffffffffffffffff
je 0x180067f48
xor edi, edi
test rbp, rbp
jle 0x180067ef3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800588a4
mov rbx, rax
test rax, rax
jne 0x180067e80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180067ee9
mov edx, 0x8000
mov ecx, r14d
call fcn.180067c7c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18005c748
cmp eax, 0xffffffff
je 0x180067ec9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180067e90
mov edx, r15d
mov ecx, r14d
call fcn.180067c7c
jmp 0x180067ee9
cmp byte [rsi + 0x38], dil
je 0x180067ee0
cmp dword [rsi + 0x34], 5
jne 0x180067ee0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180067ee9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800576b8
jmp 0x180067f5c
jns 0x180067f5c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005d820
cmp rax, 0xffffffffffffffff
jne 0x180067f14
cmp byte [rsi + 0x30], dil
je 0x180067f5c
mov edi, dword [rsi + 0x2c]
jmp 0x180067f5c
mov ecx, r14d
call fcn.180065720
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180067f5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180067f5c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180067f55
mov eax, dword [rsi + 0x2c]
jmp 0x180067f5a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005d820
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140004ba0
Capabilities:
Connect udp socket

Disassembly:
cmp dword [0x1400a621c], 0
jne 0x140004baf
mov eax, 0xffffffff
ret
jmp fcn.140042230