joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007c8a0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x58]
call fcn.140068dd0
nop
xor ebx, ebx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140068ac0
nop
lea rdx, str.SELECT_COUNT___FROM_ProbeInternetHistory_WHERE_target_
lea rcx, [rsp + 0x40]
call fcn.140068c50
mov r8, qword [rsi]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140068b70
lea rcx, [rsp + 0x40]
call fcn.140068d80
cmp eax, 0x64
jne 0x14007c924
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140068bf0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140068b00
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140068ac0
nop
lea rcx, [rsp + 0x30]
test rbx, rbx
jne 0x14007c994
lea rdx, str.INSERT_INTO_ProbeInternetHistory__target_count_timestamp__VALUES_______
call fcn.140068c50
mov r8, qword [rsi]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140068b70
mov edx, 2
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.140068b50
xor ecx, ecx
call fcn.1401747ac
mov r8, rax
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.140068b50
jmp 0x14007c9cb
lea rdx, str.UPDATE_ProbeInternetHistory_SET_countcount1_timestamp__WHERE_target_
call fcn.140068c50
xor ecx, ecx
call fcn.1401747ac
mov r8, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140068b50
mov r8, qword [rsi]
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140068b70
lea rcx, [rsp + 0x30]
call fcn.140068d80
cmp eax, 0x65
jne 0x14007ca19
lea rcx, [rsp + 0x58]
call fcn.140068e20
nop
lea rcx, [rsp + 0x30]
call fcn.140068b00
nop
lea rcx, [rsp + 0x58]
call fcn.140068e00
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x71]
call fcn.140191ec0
mov rcx, rdi
call fcn.1400687f0
mov rcx, rax
call fcn.1400ad130
mov qword [rsp + 0x20], rax
lea r9, str.ProbeInternetHistoryTable.save
lea r8, str._s:__s
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.140051350
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x40]
call fcn.14016bd70
int3
Function at 0x140080b30
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rsp, 0x28
jmp 0x140080d70
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov byte [rsp + 0x58], 0
mov rax, qword [rcx]
xor ebx, ebx
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x28]
call fcn.140068ac0
nop
lea rdx, str.SELECT_COUNT___FROM_UpdateAcConfig_WHERE_update_file_
lea rcx, [rsp + 0x28]
call fcn.140068c50
mov r8, qword [rdi + 0x10]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp byte [r8 + r9], 0
jne 0x140080dc0
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140068ba0
lea rcx, [rsp + 0x28]
call fcn.140068d80
cmp eax, 0x64
jne 0x140080df6
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140068c00
mov ebx, eax
test ebx, ebx
sete bl
lea rcx, [rsp + 0x28]
call fcn.140068b00
mov byte [rsp + 0x58], bl
jmp 0x140080e10
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi + 8]
call fcn.14006cf50
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140080d70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rsp, 0x28
jmp 0x140080d70
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov byte [rsp + 0x58], 0
mov rax, qword [rcx]
xor ebx, ebx
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x28]
call fcn.140068ac0
nop
lea rdx, str.SELECT_COUNT___FROM_UpdateAcConfig_WHERE_update_file_
lea rcx, [rsp + 0x28]
call fcn.140068c50
mov r8, qword [rdi + 0x10]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp byte [r8 + r9], 0
jne 0x140080dc0
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140068ba0
lea rcx, [rsp + 0x28]
call fcn.140068d80
cmp eax, 0x64
jne 0x140080df6
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140068c00
mov ebx, eax
test ebx, ebx
sete bl
lea rcx, [rsp + 0x28]
call fcn.140068b00
mov byte [rsp + 0x58], bl
jmp 0x140080e10
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi + 8]
call fcn.14006cf50
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140082d90
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x21], rdx
xor esi, esi
mov dword [rbp - 0x39], esi
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rbp - 0x39], 1
mov rdx, r8
lea rcx, [rbp - 0x31]
call fcn.140068ac0
nop
lea rdx, str.SELECT_name_version_FROM_UpdateFileHistory_WHERE_id__AND_confirm0
lea rcx, [rbp - 0x31]
call fcn.140068c50
mov r8, qword [rbx]
mov edx, 1
lea rcx, [rbp - 0x31]
call fcn.140068b50
lea rcx, [rbp - 0x31]
call fcn.140068d80
cmp eax, 0x64
jne 0x140082f6a
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
mov byte [rbp - 9], 0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x17], 0
xor edx, edx
lea rcx, [rbp - 0x31]
call fcn.140068c20
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140082e50
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140004540
mov edx, 1
lea rcx, [rbp - 0x31]
call fcn.140068c20
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140082e80
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.140004540
mov rbx, qword [rdi + 8]
cmp rbx, qword [rdi + 0x10]
je 0x140082ec6
mov qword [rbp - 0x19], rbx
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.140003d00
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.140003d00
nop
add qword [rdi + 8], 0x40
jmp 0x140082ed6
lea r8, [rbp - 9]
mov rdx, rbx
mov rcx, rdi
call fcn.140005c30
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140082f11
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082f0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082f95
call fcn.14016aab8
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x17], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140082f58
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082f53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082f95
call fcn.14016aab8
lea rcx, [rbp - 0x31]
call fcn.140068d80
cmp eax, 0x64
je 0x140082e13
lea rcx, [rbp - 0x31]
call fcn.140068b00
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call fcn.140170de4
int3
Function at 0x1400ac3b0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.140143e40
test eax, eax
jne 0x1400ac54d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [reloc.WS2_32.dll_accept], bpl
mov qword [rsp + 0x38], rsi
jne 0x1400ac3e5
mov esi, ebp
jmp 0x1400ac401
mov ecx, 5
call qword [0x1401f0af0]
mov rsi, rax
test rax, rax
je 0x1400ac401
mov rcx, rax
call qword [0x1401f0b00]
test ebx, ebx
jle 0x1400ac52f
test rdi, rdi
je 0x1400ac52f
cmp dword [0x1401f98a0], ebp
jne 0x1400ac4b8
xor ecx, ecx
call fcn.140095370
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x1401f98a0], xmm0
test rax, rax
jne 0x1400ac458
xorps xmm0, xmm0
mov qword [0x1401f98d0], rax
movups xmmword [0x1401f98b0], xmm0
mov dword [0x1401f98d8], eax
movups xmmword [0x1401f98c0], xmm0
jmp 0x1400ac49c
mov ecx, dword [0x1401f0c30]
test ecx, ecx
je 0x1400ac48a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1401f98b0], xmm0
mov dword [0x1401f98b0], ecx
movups xmmword [0x1401f98c0], xmm0
mov qword [0x1401f98d0], rax
mov dword [0x1401f98d8], eax
jmp 0x1400ac49c
lea r8, [0x1401f98b0]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x1401f98d0]
xor cl, cl
mov byte [0x1401f9920], cl
mov dword [0x1401f98dc], eax
mov dword [0x1401f98d0], ebp
jmp 0x1400ac4bf
movzx ecx, byte [0x1401f9920]
movzx eax, cl
lea rbp, [0x1401f98e0]
cmp ebx, eax
jle 0x1400ac511
nop dword [rax]
test cl, cl
je 0x1400ac4ef
movzx r8d, cl
mov rdx, rbp
mov rcx, rdi
call fcn.140191740
movzx ecx, byte [0x1401f9920]
sub ebx, ecx
add rdi, rcx
inc dword [0x1401f98d0]
lea rdx, [0x1401f98a0]
mov rcx, rbp
call fcn.1400b8020
mov cl, 0x40
mov byte [0x1401f9920], cl
cmp ebx, 0x40
jg 0x1400ac4d0
movzx eax, cl
mov rcx, rdi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call fcn.140191740
sub byte [0x1401f9920], bl
jmp 0x1400ac535
mov dword [0x1401f98a0], ebp
test rsi, rsi
je 0x1400ac543
mov rcx, rsi
call qword [0x1401f0b10]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b2f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa0]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x1400b315c
mov qword [rsp + 0x68], rbp
xor r9d, r9d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r14
nop dword [rax]
nop word [rax + rax]
movsxd rbp, dword [rsi + 0x10]
lea r12, [rdi + 0x88]
mov r15d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400b2fb8
inc dword [rbx + 0x38]
mov r14d, dword [rbx + 0x38]
jmp 0x1400b2fc8
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0xe0]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1400b2ff5
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.1400ce0d0
jmp 0x1400b3020
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSAStartup
mov r9, qword [r9 + 0x68]
call fcn.1401108a0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1400b3064
mov edx, 5
mov rcx, rdi
call fcn.1400ce140
test eax, eax
jne 0x1400b3143
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r9d
add eax, 2
mov dword [rdx + 8], eax
mov byte [rdx + 1], r9b
mov qword [rdx + 0x10], r9
mov word [rdx + 2], r9w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], r9
mov qword [rdx + 0x28], r9
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r9
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], r9
mov qword [rdx + 0x58], r9
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], r9
mov qword [rdx + 0x70], r9
add dword [rdi + 0x90], 5
test rdx, rdx
je 0x1400b3143
mov dword [rdx + 0x3c], r14d
lea ecx, [r15 + 1]
mov dword [rdx + 4], ecx
lea eax, [r15 - 1]
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x34], eax
mov dword [rdx + 0x54], ecx
mov dword [rdx + 0x50], r14d
mov word [rdx + 0x4a], 8
test r14d, r14d
je 0x1400b3132
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400b3132
mov dword [rbx + rax*4 + 0xe0], r14d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
mov rax, qword [rsp + 0x60]
test rsi, rsi
jne 0x1400b2f90
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c4470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xb0
jne 0x1400c4489
movzx eax, byte [rdx + 2]
cmp al, 0xb1
jne 0x1400c4493
mov rcx, qword [rdx + 0x20]
jmp 0x1400c44a3
cmp al, 0x8a
jne 0x1400c4627
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x20]
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x1400c4627
mov dword [r8], 0
cmp byte [rdx], 0x8a
jne 0x1400c44ca
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1400f5230
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x1400c4612
mov qword [rsp + 0x80], rbx
lea rcx, [0x1401219e0]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.1400c5840]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [r15 + rax + 8]
je 0x1400c4580
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x1400c4570
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140138d30
cmp word [rsp + 0x44], 0
je 0x1400c4580
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400febd0
jmp 0x1400c45c0
mov rsi, qword [rdi]
test rbx, rbx
je 0x1400c459c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400c48f0
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x1400c45b0
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400fd160
test rbx, rbx
je 0x1400c45c0
mov rdx, rbx
mov rcx, rsi
call fcn.1401010f0
inc ebp
lea rcx, [0x1401219e0]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x1400c4530
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.140100780
Function at 0x1400e40f0
Capabilities:
Reference sql statements

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
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1401104d0
test ebx, ebx
jne 0x1400e4159
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1401104d0
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 0x140103b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x140103c59
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x1401ae2c0]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140103bd1
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x140103c0c
test ecx, ecx
jne 0x140103c1a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.1400c6e40
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x140103bf0
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x140103b90
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x140103c1f
inc r8
jmp 0x140103bc0
test r10d, r10d
jne 0x140103be9
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x140103c45
test edx, edx
je 0x140103bd1
inc rax
jmp 0x140103c30
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x140103be9
inc rax
jmp 0x140103c30
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140168d84
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, [0x1401bcfe0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140168dbe
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140168dc3
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 0x140168e0c
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 0x140168e0c
dec r8
sub rdx, 1
jne 0x140168df2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14016ba44
Capabilities:
Parse pe header

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

Function at 0x14017496c
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 0x1401749a3
call fcn.140177548
mov dword [rax], socket
call fcn.140170dc4
xor eax, eax
jmp 0x140174a31
mov rdx, r9
mov rcx, r8
call fcn.140174908
mov rbx, rax
test rax, rax
je 0x140174a2e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140174834]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140174a1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401774bc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140174a02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140174a11
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14017ef98
jmp 0x140174a2e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140174a2b
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 0x14017bad8
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 0x14017bb47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017bb47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017bb47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017bb47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017bb47
cmp dword [rcx + 0x84], 0xe
jbe 0x14017bb47
cmp dword [rcx + 0xf8], 0
je 0x14017bb47
mov ecx, ebx
call fcn.14017bbf8
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.14017b9d4
nop
cmp dword [rbp + 0x20], 0
je 0x14017bb95
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14017bba0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14017bad8

Function at 0x14017bcdc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14017bad8
Function at 0x140183268
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.14016aee0
sub rsp, rax
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140180230
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401832b7
mov rax, rbp
jmp 0x1401833bf
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 + 0x1faef0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140184388
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1faef0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401833bb
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 0x1401833bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140184388
test rax, rax
js 0x1401833bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401833bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401833ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401833ad
cmp byte [rcx], 0xd
jne 0x140183393
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401833a2
cmp byte [rcx + 1], 0xa
jne 0x1401833a2
inc rcx
jmp 0x1401833a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1f4600]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140183375
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401833bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14016ab50
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 0x1401835e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401835f6
mov al, 1
jmp 0x140183656
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140183607
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140183654
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401893ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140183654
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140183654
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140183654
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140183656
xor al, al
add rsp, 0x20
pop rbx
ret