joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c92d00
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140f4c000]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
movups xmmword [rsp + 0x38], xmm0
call fcn.140c91550
test eax, eax
jne 0x140c92efa
movzx eax, byte [rsp + 0x39]
movzx ecx, byte [rsp + 0x3c]
shl ecx, 8
mov qword [rsp + 0x68], rbp
mov ebp, 2
mov qword [rsp + 0x70], rsi
movzx esi, byte [rsp + 0x40]
mov qword [rsp + 0x78], rdi
movzx edi, byte [rsp + 0x38]
shl edi, 8
or edi, eax
shl esi, 8
movzx eax, byte [rsp + 0x3a]
shl edi, 8
or edi, eax
movzx eax, byte [rsp + 0x3b]
shl edi, 8
or rdi, rax
movzx eax, byte [rsp + 0x3d]
or ecx, eax
shl rdi, 0x20
movzx eax, byte [rsp + 0x3e]
shl ecx, 8
or eax, ecx
movzx ecx, byte [rsp + 0x44]
shl eax, 8
or rdi, rax
shl ecx, 8
movzx eax, byte [rsp + 0x3f]
or rdi, rax
movzx eax, byte [rsp + 0x41]
or esi, eax
mov qword [rbx + 0x118], rdi
movzx eax, byte [rsp + 0x42]
shl esi, 8
or esi, eax
movzx eax, byte [rsp + 0x43]
shl esi, 8
or rsi, rax
movzx eax, byte [rsp + 0x45]
or ecx, eax
shl rsi, 0x20
movzx eax, byte [rsp + 0x46]
shl ecx, 8
or eax, ecx
mov ecx, ebp
shl eax, 8
or rsi, rax
movzx eax, byte [rsp + 0x47]
or rsi, rax
mov qword [rbx + 0x98], rsi
call fcn.140c6e430
test eax, eax
jne 0x140c92ee9
mov qword [rbx + 0xd8], 0
mov qword [rbx + 0x58], 0
mov r8d, 4
nop dword [rax + rax]
mov eax, esi
mov rcx, rdi
and eax, 1
shl rcx, 0x3f
imul edx, eax, 0xe1000000
mov rax, rsi
shr rax, 1
mov rsi, rcx
or rsi, rax
mov rax, rdi
shr rax, 1
mov qword [rbx + r8*8 + 0x58], rsi
mov ecx, edx
shl rcx, 0x20
mov rdi, rcx
xor rdi, rax
mov qword [rbx + r8*8 + 0xd8], rdi
shr r8d, 1
jne 0x140c92e40
mov r8, rbp
nop word [rax + rax]
mov r9, qword [rbx + r8*8 + 0xd8]
mov r10, qword [rbx + r8*8 + 0x58]
cmp r8, 1
jle 0x140c92ed8
lea rax, [rbx + 0x60]
lea rdx, [r8 - 1]
nop dword [rax + rax]
mov rcx, r9
xor rcx, qword [rax + 0x80]
mov qword [rax + r8*8 + 0x80], rcx
lea rax, [rax + 8]
mov rcx, r10
xor rcx, qword [rax - 8]
mov qword [rax + r8*8 - 8], rcx
sub rdx, 1
jne 0x140c92eb0
lea eax, [rbp*2]
add r8, r8
mov ebp, eax
cmp eax, 8
jle 0x140c92e90
mov rdi, qword [rsp + 0x78]
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140cbacb0
add rsp, 0x50
pop rbx
ret
Function at 0x140c936c0
Capabilities:
Encode data using xor

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, 0x20
mov r14, qword [rcx + 0x158]
lea rax, [r8 - 4]
mov rbp, qword [rcx + 0x160]
mov rsi, r8
shl r14, 3
mov rbx, rdx
shl rbp, 3
mov rdi, rcx
cmp rax, 0xc
ja 0x140c93818
lea rdx, [rcx + 0x168]
mov rcx, rbx
call fcn.140cfb740
test r14, r14
jne 0x140c93724
test rbp, rbp
je 0x140c93814
lea rdx, [rdi + 0x188]
mov rax, rbp
shr rax, 0x38
mov r8, rdx
xor byte [rdx], al
mov rcx, rdi
mov rax, rbp
shr rax, 0x30
xor byte [rdi + 0x189], al
mov rax, rbp
shr rax, 0x28
xor byte [rdi + 0x18a], al
mov rax, rbp
shr rax, 0x20
xor byte [rdi + 0x18b], al
mov rax, rbp
shr rax, 0x18
xor byte [rdi + 0x18c], al
mov rax, rbp
shr rax, 0x10
xor byte [rdi + 0x18d], al
mov rax, rbp
shr rax, 8
xor byte [rdi + 0x18e], al
mov rax, r14
xor byte [rdi + 0x18f], bpl
shr rax, 0x38
xor byte [rdi + 0x190], al
mov rax, r14
shr rax, 0x30
xor byte [rdi + 0x191], al
mov rax, r14
shr rax, 0x28
xor byte [rdi + 0x192], al
mov rax, r14
shr rax, 0x20
xor byte [rdi + 0x193], al
mov rax, r14
shr rax, 0x18
xor byte [rdi + 0x194], al
mov rax, r14
shr rax, 0x10
xor byte [rdi + 0x195], al
mov rax, r14
shr rax, 8
xor byte [rdi + 0x196], al
xor byte [rdi + 0x197], r14b
call fcn.140c92f10
test rsi, rsi
je 0x140c93814
sub rdi, rbx
nop
movzx eax, byte [rdi + rbx + 0x188]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne 0x140c93800
xor eax, eax
jmp 0x140c9381d
mov eax, 0xffffffec
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 0x140c97ca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx r10d, byte [r8 + 1]
mov rbx, rcx
movzx ecx, byte [r8 + 5]
mov r11d, edx
movzx eax, byte [r8]
mov rsi, r9
movzx edi, byte [r8 + 4]
movzx edx, byte [r8 + 3]
shl eax, 8
or eax, r10d
shl edi, 8
movzx r10d, byte [r8 + 2]
or edi, ecx
movzx ecx, byte [r8 + 6]
shl eax, 8
shl edi, 8
or eax, r10d
or edi, ecx
shl eax, 8
movzx ecx, byte [r8 + 7]
or eax, edx
shl edi, 8
mov r10d, reloc.WS2_32.dll_recv
or edi, ecx
test r11d, r11d
jne 0x140c97d65
lea r11, [rbx + 0x44]
nop
xor eax, dword [r11]
lea r11, [r11 - 4]
mov ecx, eax
mov r9d, eax
shr ecx, 0x10
mov edx, ecx
movzx ecx, cl
shr rdx, 8
mov r8d, dword [rbx + rdx*4 + 0x48]
add r8d, dword [rbx + rcx*4 + 0x448]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x848]
mov eax, r8d
add eax, dword [rbx + rcx*4 + 0xc48]
xor eax, edi
mov edi, r9d
sub r10, 1
jne 0x140c97d10
xor r9d, dword [rbx]
xor eax, dword [rbx + 4]
jmp 0x140c97dc4
mov r11, rbx
nop dword [rax + rax]
xor eax, dword [r11]
lea r11, [r11 + 4]
mov ecx, eax
mov r9d, eax
shr ecx, 0x10
mov edx, ecx
movzx ecx, cl
shr rdx, 8
mov r8d, dword [rbx + rdx*4 + 0x48]
add r8d, dword [rbx + rcx*4 + 0x448]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rbx + rdx*4 + 0x848]
mov eax, r8d
add eax, dword [rbx + rcx*4 + 0xc48]
xor eax, edi
mov edi, r9d
sub r10, 1
jne 0x140c97d70
xor r9d, dword [rbx + 0x44]
xor eax, dword [rbx + 0x40]
mov rbx, qword [rsp + 8]
mov ecx, r9d
mov rdi, qword [rsp + 0x18]
shr ecx, 0x18
mov byte [rsi], cl
mov ecx, r9d
shr ecx, 0x10
mov byte [rsi + 1], cl
mov ecx, r9d
shr ecx, 8
mov byte [rsi + 2], cl
mov ecx, eax
shr ecx, 0x18
mov byte [rsi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 5], cl
mov ecx, eax
mov byte [rsi + 7], al
xor eax, eax
shr ecx, 8
mov byte [rsi + 6], cl
mov byte [rsi + 3], r9b
mov rsi, qword [rsp + 0x10]
ret
Function at 0x140c9a6b0
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x70]
add rcx, 0x4ac
call fcn.140c86240
mov rcx, qword [rbx + 0x70]
add rcx, 0x504
call fcn.140c88580
mov rcx, qword [rbx + 0x70]
xor edx, edx
add rcx, 0x560
call fcn.140c8b530
mov rcx, qword [rbx + 0x70]
mov edx, 1
add rcx, 0x5d0
add rsp, 0x20
pop rbx
jmp fcn.140c85220
Function at 0x140cbb45c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140cbb4a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140cbb4a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140cbb4a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140cbb4a6
cmp dword [rcx + 0x84], 0xe
jbe 0x140cbb4a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140cbb4a8
xor al, al
add rsp, 0x28
ret

Function at 0x140cbbc1c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140cbbc56
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140cbbc5b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140cbbca4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140cbbca4
dec r8
sub rdx, 1
jne 0x140cbbc8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140cbeee4
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.140ce217c
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140cbef36
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x140cbef36
sub ecx, 1
je 0x140cbef2f
cmp ecx, 1
je 0x140cbef28
xor eax, eax
jmp 0x140cbef3b
mov eax, 3
jmp 0x140cbef3b
mov eax, 1
jmp 0x140cbef3b
mov eax, 2
add rsp, 0x28
ret

Function at 0x140cc4670
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.140cbaf80
sub rsp, rax
mov rax, qword [0x140f4c000]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140cde394
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140cc46bf
mov rax, rbp
jmp 0x140cc47cb
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xfe4030]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140ce3344
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xfe4030]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140cc47c7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140cc47c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140ce3344
test rax, rax
js 0x140cc47c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140cc47c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140cc47b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140cc47b9
cmp byte [rcx], 0xd
jne 0x140cc479f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140cc47ae
cmp byte [rcx + 1], 0xa
jne 0x140cc47ae
inc rcx
jmp 0x140cc47ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf4c830]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140cc4781
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140cc47cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140cbacb0
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 0x140cd63c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140f4c000]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140df6600]
mov r14, rcx
call fcn.140cea260
xor edi, edi
test rax, rax
je 0x140cd653b
mov ebx, edi
call fcn.140cd67ac
mov ebp, dword [rax]
call fcn.140cd67ac
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, r14
mov dword [rax], edi
call fcn.140cea1ac
mov rsi, rax
test rax, rax
je 0x140cd6435
call fcn.140cd67ac
mov dword [rax], ebp
jmp 0x140cd6466
call fcn.140cd67ac
cmp dword [rax], 0x22
jne 0x140cd6533
call fcn.140cd67ac
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
mov dword [rax], ebp
call fcn.140cea1ac
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140cd6533
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rsi + rcx*2], di
jne 0x140cd646d
cmp rcx, 3
je 0x140cd6515
inc rax
cmp word [rsi + rax*2], di
jne 0x140cd6480
cmp rax, 5
jb 0x140cd6533
mov r8w, 0x5c
mov dx, 0x2f
cmp word [rsi], r8w
je 0x140cd64ab
cmp word [rsi], dx
jne 0x140cd6533
cmp word [rsi + 2], r8w
je 0x140cd64b8
cmp word [rsi + 2], dx
jne 0x140cd6533
cmp word [rsi + 4], r8w
je 0x140cd6533
cmp word [rsi + 4], dx
je 0x140cd6533
lea rcx, [rsi + 6]
jmp 0x140cd64da
cmp ax, r8w
je 0x140cd64e2
cmp ax, dx
je 0x140cd64e2
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140cd64cb
test ax, ax
je 0x140cd6533
add rcx, 2
movzx eax, word [rcx]
test ax, ax
je 0x140cd6533
cmp ax, r8w
je 0x140cd650a
cmp ax, dx
je 0x140cd650a
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140cd64f3
test ax, ax
je 0x140cd6515
cmp word [rcx + 2], di
jne 0x140cd6533
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140cd6526
mov dil, 1
mov rcx, rbx
call fcn.140cccd80
mov al, dil
jmp 0x140cd653d
mov rcx, rbx
call fcn.140cccd80
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140cbacb0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140cd67d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140cd67ef
call fcn.140cea6c4
jmp 0x140cd68a4
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140cd060c
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140cd683a
cmp byte [rbp - 0x38], 0
je 0x140cd686f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140cd686f
call fcn.140ce4afc
test eax, eax
jne 0x140cd685b
cmp byte [rbp - 0x38], al
je 0x140cd6853
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140cd686f
cmp byte [rbp - 0x38], 0
je 0x140cd686c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140cd5744
test eax, eax
je 0x140cd6888
or ebx, 0xffffffff
jmp 0x140cd6893
mov rcx, qword [rbp - 0x20]
call fcn.140cea6c4
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140cd68a2
mov rcx, qword [rbp - 0x20]
call fcn.140ce4790
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140cd9ea8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140cd9f17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140cd9f17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140cd9f17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140cd9f17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140cd9f17
cmp dword [rcx + 0x84], 0xe
jbe 0x140cd9f17
cmp dword [rcx + 0xf8], 0
je 0x140cd9f17
mov ecx, ebx
call fcn.140cd9fbc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140cd9db0
nop
cmp dword [rbp + 0x20], 0
jne 0x140cd9f78
call fcn.140ceb9d0
cmp eax, 1
jne 0x140cd9f68
xor dl, dl
jmp 0x140cd9f72
call fcn.140ceb95c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140cd9f83
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140cd9f8c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140cd9ea8
Function at 0x140cda090
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140cd9f17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140cd9f17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140cd9f17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140cd9f17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140cd9f17
cmp dword [rcx + 0x84], 0xe
jbe 0x140cd9f17
cmp dword [rcx + 0xf8], 0
je 0x140cd9f17
mov ecx, ebx
call fcn.140cd9fbc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140cd9db0
nop
cmp dword [rbp + 0x20], 0
jne 0x140cd9f78
call fcn.140ceb9d0
cmp eax, 1
jne 0x140cd9f68
xor dl, dl
jmp 0x140cd9f72
call fcn.140ceb95c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140cd9f83
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140cd9f8c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140cd9ea8

Function at 0x140cdbad0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140cdbb07
call fcn.140cd67ac
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140cd6fac
xor eax, eax
jmp 0x140cdbb99
mov rdx, r9
mov rcx, r8
call fcn.140cdba6c
mov rbx, rax
test rax, rax
je 0x140cdbb96
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x140cdb9a0]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140cdbb83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140cd673c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140cdbb6a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140cdbb79
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140ce4790
jmp 0x140cdbb96
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140cdbb93
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140ce39d4
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
xor edi, edi
mov rax, r15
lea rcx, [0x140fe4030]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140ce3a2a
cmp word [rdx], r9w
jne 0x140ce3a2a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140ce3a2f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140ce3bae
mov r11d, reloc.WS2_32.dll_listen
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140ce3b79
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140ce3a77
cmp rcx, r8
jae 0x140ce3a97
cmp word [rcx], r9w
jne 0x140ce3a77
add rax, 4
mov edx, r9d
jmp 0x140ce3a7a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140ce3a4c
jmp 0x140ce3bae
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140ce3b72
cmp dword [rsp + 0x80], edi
je 0x140ce3b72
lea r9, [0x140fe4030]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140ce3b4c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140ce3aff
mov word [rbx], bp
jmp 0x140ce3bab
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], reloc.WS2_32.dll_listen
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140ce3b1a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140ce3bab
cmp word [rsp + 0x70], bp
jne 0x140ce3b58
cmp rbx, rsi
je 0x140ce3af7
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140ce334c
cmp word [rsp + 0x70], bp
je 0x140ce3bae
mov word [rbx], reloc.WS2_32.dll_listen
jmp 0x140ce3bab
mov rcx, r15
lea r9, [0x140fe4030]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140ce3ba8
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140ce3bae
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140ce4da4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14100c050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140ce4e09
test rax, rax
jne 0x140ce4df7
lea r9, [0x140df8070]
lea r8, [0x140df8068]
lea rdx, [0x140df8070]
lea ecx, [rax + 0xa]
call fcn.140ce4890
test rax, rax
je 0x140ce4e09
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140cfb580
jmp 0x140ce4e23
xor edx, edx
mov rcx, rbp
call fcn.140ce514c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140ce84f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140ce850a
mov al, 1
jmp 0x140ce8576
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140ce851b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140ce8574
mov ecx, dword [rcx + 0x18]
nop
call fcn.140cde868
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140ce8574
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140ce8574
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140ce8574
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140ce8576
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140cee210
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 0x140cee240
xor eax, eax
jmp 0x140cee303
mov rbp, rbx
cmp word [rax], si
je 0x140cee265
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140cee24c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140cee248
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.140ce9d90
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140cee2a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140cee239
call fcn.140ce6850
mov rdi, rax
test rax, rax
jne 0x140cee2bc
xor ecx, ecx
call fcn.140ce4790
jmp 0x140cee29b
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.140ce9d90
test eax, eax
jne 0x140cee2ed
mov rcx, rdi
call fcn.140ce4790
jmp 0x140cee2f7
xor ecx, ecx
call fcn.140ce4790
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 0x140cee320
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140cee3a7
mov rsi, rbx
cmp word [rax], bp
je 0x140cee366
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140cee350
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140cee34c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140ce6850
mov rdi, rax
test rax, rax
je 0x140cee394
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140cfb740
mov rbp, rdi
xor ecx, ecx
call fcn.140ce4790
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret