joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f8d8
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 0x14000f947
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f947
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f947
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f947
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f947
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f947
cmp dword [rcx + 0xf8], 0
je 0x14000f947
mov ecx, ebx
call fcn.14000f9f8
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.14000f7d4
nop
cmp dword [rbp + 0x20], 0
je 0x14000f995
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f9a0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000f8d8

Function at 0x14000fadc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f8d8
Function at 0x140015680
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.140006c50
sub rsp, rax
mov rax, qword [0x1400341c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140014260
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400156cf
mov rax, rbp
jmp 0x1400157d7
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 + 0x365a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400167a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x365a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400157d3
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 0x1400157d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400167a0
test rax, rax
js 0x1400157d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400157d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400157c5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400157c5
cmp byte [rcx], 0xd
jne 0x1400157ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400157ba
cmp byte [rcx + 1], 0xa
jne 0x1400157ba
inc rcx
jmp 0x1400157ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x345d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001578d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400157d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007090
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 0x1400159f8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015a0e
mov al, 1
jmp 0x140015a6e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015a1f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015a6c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001abfc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015a6c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015a6c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015a6c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015a6e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015b40
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, [0x1400365a0]
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 0x140015b97
cmp word [rdx], r13w
jne 0x140015b97
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140015b9c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140015cc1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140015ce2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140015bd5
mov rdx, r9
mov word [rbx], cx
jmp 0x140015bfc
cmp r9, r8
jae 0x140015c0c
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 0x140015bb6
jmp 0x140015cc1
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 0x140015cb6
cmp dword [rsp + 0x80], esi
je 0x140015cb6
lea r8, [0x1400365a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140015c8e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140015c5e
mov word [rbx], r13w
jmp 0x140015cbe
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 0x140015c6b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140015cbe
cmp word [rsp + 0x70], r13w
jne 0x140015c9b
cmp rbx, r14
je 0x140015c58
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400167a8
cmp word [rsp + 0x70], r13w
je 0x140015cc1
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, [0x1400365a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140015cbb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140015cc1
Function at 0x14001a0e8
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 0x14001a118
xor eax, eax
jmp 0x14001a1db
mov rbp, rbx
cmp word [rax], si
je 0x14001a13d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a124
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a120
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.1400187f8
movsxd r14, eax
test eax, eax
jne 0x14001a17b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a111
mov rcx, r14
call fcn.140012cf8
mov rdi, rax
test rax, rax
jne 0x14001a194
xor ecx, ecx
call fcn.140012cbc
jmp 0x14001a170
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.1400187f8
test eax, eax
jne 0x14001a1c5
mov rcx, rdi
call fcn.140012cbc
jmp 0x14001a1cf
xor ecx, ecx
call fcn.140012cbc
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 0x14001d150
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.1400130d0
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 0x14001d1f1
cmp ebx, dword [rsp + 0x30]
je 0x14001d1ea
test esi, esi
je 0x14001d1ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001d1c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001d1d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001d1af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001d1d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001d1f3
mov eax, 1
jmp 0x14001d1f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e7a4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f0a8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001e82e
cmp byte [rbp - 0x21], r15b
je 0x14001e829
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001e864
call fcn.140013770
test eax, eax
jne 0x14001e850
cmp byte [rbp - 0x21], r15b
je 0x14001e848
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001e864
cmp byte [rbp - 0x21], r15b
je 0x14001e861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000f1e0
test eax, eax
jne 0x14001e904
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f0a8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001e8a3
cmp byte [rbp - 0x21], r15b
je 0x14001e8d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001e8d8
call fcn.140013770
test eax, eax
jne 0x14001e8c4
cmp byte [rbp - 0x21], r15b
je 0x14001e8bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001e8d8
cmp byte [rbp - 0x21], r15b
je 0x14001e8d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000f1e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001e904
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001e907
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001e915
mov rcx, rdi
call fcn.140012cbc
cmp byte [rbp + 0x3f], r15b
je 0x14001e924
mov rcx, qword [rbp + 0x27]
call fcn.140012cbc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140020090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400200b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400200b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140008f20
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140008f45
cmp rax, rcx
je 0x140008f4b
cmp rdx, 4
jae 0x140008f52
xor eax, eax
xor r8d, r8d
jmp 0x140008ff0
pop rbp
jmp fcn.1400022c0
xor eax, eax
jmp 0x140009007
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140017370]
movdqa xmm3, xmmword [0x140017380]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140008f80
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140009007
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140008ff0
pop rbp
ret
Function at 0x14000fa70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x14000fade
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x140015b50
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x58], rdi
mov rdi, rcx
mov ebx, esi
nop
nop
mov eax, dword [rdi + 0x9d8]
shr eax, 7
test al, 1
jne 0x1000554f
mov ecx, gethostbyaddr
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x10005530
cmp byte [rdi + 0xc8], sil
je 0x10005571
mov byte [rdi + 0xc8], sil
mov rcx, qword [rdi + 0x150]
test rcx, rcx
je 0x10005571
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 0xc0]
mov qword [rsp + 0x48], rbp
lea rbp, [0x1003f428]
test rcx, rcx
je 0x10005644
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10005644
mov rcx, qword [rdi + 0xc0]
lea rdx, [rsp + 0x20]
mov byte [rdi + 0xc8], sil
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x20], 0x103
jne 0x10005644
mov rcx, qword [rdi + 0xc0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rdi + 0xc9], sil
mov dword [rdi + 0xb8], esi
je 0x10005644
lea rcx, [rdi + 0xb0]
mov qword [rdi + 0xb0], rbp
mov byte [rdi + 0xc8], sil
call fcn.10007230
mov qword [rdi + 0xc0], rsi
mov dword [rdi + 0xb8], esi
mov rcx, qword [rdi + 0x150]
test rcx, rcx
je 0x10005631
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0xb0]
mov qword [rdi + 0x150], rsi
call fcn.1003aa90
lea rbx, [rdi + 0x490]
mov rdi, qword [rsp + 0x58]
cmp byte [rbx + 0x18], sil
je 0x1000566c
mov byte [rbx + 0x18], sil
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1000566c
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x10005705
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10005705
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov byte [rbx + 0x18], sil
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x20], 0x103
jne 0x10005705
mov rcx, qword [rbx + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x19], sil
mov dword [rbx + 8], esi
je 0x10005705
mov rcx, rbx
mov qword [rbx], rbp
mov byte [rbx + 0x18], sil
call fcn.10007230
mov qword [rbx + 0x10], rsi
mov dword [rbx + 8], esi
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x100056f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov qword [rbx + 0xa0], rsi
call fcn.1003aa90
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x10007180
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0x18], 0
mov qword [rsp + 0x58], rdi
mov rdi, rcx
jne 0x1000720d
xor ecx, ecx
lea rax, [rsp + 0x40]
lea r8, [0x10006fa0]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x40], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov ecx, dword [rsp + 0x40]
mov qword [rdi + 0x10], rax
mov dword [rdi + 8], ecx
jne 0x1000721f
xor ecx, ecx
mov qword [rsp + 0x50], rbx
call fcn.1001f320
lea rdx, [0x1003f470]
lea rcx, [rsp + 0x48]
mov rbx, rax
call fcn.10024b50
lea r8, [rdi + 0x1a]
lea rdx, str._comm__create_thread__s__failed:__s
mov r9, rbx
mov rcx, rax
call fcn.10024c50
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
mov rcx, qword [rcx + 0xa0]
test rcx, rcx
je 0x1000721f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret

Function at 0x10007230
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x18], 0
mov qword [rsp + 0x40], rbx
mov rbx, rcx
je 0x10007258
mov byte [rcx + 0x18], 0
mov rcx, qword [rcx + 0xa0]
test rcx, rcx
je 0x10007258
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x10007308
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10007308
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x30]
xor edi, edi
mov byte [rbx + 0x18], 0
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x10007303
mov rcx, qword [rbx + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x19], dil
mov dword [rbx + 8], edi
je 0x10007303
lea rax, [0x1003f428]
mov rcx, rbx
mov byte [rbx + 0x18], dil
mov qword [rbx], rax
call fcn.10007230
mov qword [rbx + 0x10], rdi
mov dword [rbx + 8], edi
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x100072f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov qword [rbx + 0xa0], rdi
call fcn.1003aa90
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x1000b530
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
lea rax, [0x1003f890]
mov qword [rsp + 0x38], rbx
mov byte [rcx + 0x18], 0
mov rbx, rcx
mov qword [rcx], rax
add rcx, 0xa8
mov qword [rsp + 0x48], rdi
call fcn.1002ae60
cmp byte [rbx + 0x18], 0
je 0x1000b577
mov byte [rbx + 0x18], 0
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1000b577
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x40], rsi
xor esi, esi
test rcx, rcx
je 0x1000b5e5
lea edx, [rsi + 0x64]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000b5e5
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov byte [rbx + 0x18], sil
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x1000b5e5
mov rcx, qword [rbx + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x19], sil
mov dword [rbx + 8], esi
je 0x1000b5e5
lea edx, [rsi + 1]
mov rcx, rbx
call fcn.10004e00
lea rcx, [rbx + 0xa8]
call fcn.1002ba80
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x48]
test rcx, rcx
lea r11, [0x1003f428]
mov byte [rbx + 0x18], sil
mov qword [rbx], r11
je 0x1000b66f
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000b66f
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov byte [rbx + 0x18], sil
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x1000b66f
mov rcx, qword [rbx + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 0x19], sil
mov dword [rbx + 8], esi
je 0x1000b66f
mov edx, 1
mov rcx, rbx
call fcn.10004e00
mov qword [rbx + 0x10], rsi
mov dword [rbx + 8], esi
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1000b688
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xa0], rsi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x1000ba90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov byte [rcx + 0x18], 0
mov rsi, rcx
mov qword [rsp + 0x68], rdi
lea rdi, [rcx + 0xa8]
mov rcx, rdi
call fcn.1002ae60
mov rcx, qword [0x10050988]
lea rdx, str.Starting_session_connection
call fcn.1001ebe0
call fcn.1000b6b0
mov rcx, qword [0x10050988]
lea rdx, str.connect_begin
mov ebx, eax
call fcn.1001ebe0
lea rdx, [0x1003f830]
mov r8d, ebx
mov rcx, rdi
call fcn.1002b6a0
mov rcx, qword [0x10050988]
lea rdx, str.connect_end
movzx edi, al
call fcn.1001ebe0
test ebx, ebx
jle 0x1000bbdd
test dil, dil
je 0x1000bbdd
mov rcx, qword [0x10050988]
lea rdx, str.session_connection_succeed
call fcn.1001ebe0
cmp byte [rsi + 0x18], 0
jne 0x1000bbb5
xor ecx, ecx
lea rax, [rsp + 0x50]
lea r8, [0x10006fa0]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x50], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov ecx, dword [rsp + 0x50]
mov qword [rsi + 0x10], rax
mov dword [rsi + 8], ecx
jne 0x1000bbc7
xor ecx, ecx
call fcn.1001f320
lea rdx, [0x1003f470]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.10024b50
lea r8, [rsi + 0x1a]
lea rdx, str._comm__create_thread__s__failed:__s
mov r9, rbx
mov rcx, rax
call fcn.10024c50
mov al, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x1000bbc7
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
mov rcx, qword [0x10050988]
lea rdx, str.session_connection_failed
call fcn.1001ebe0
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
xor al, al
add rsp, 0x48
ret
Function at 0x1000c090
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
sub rsp, 0x168
mov rax, qword [0x10050650]
mov qword [rsp + 0x140], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rsi
mov rsi, r8
mov rbx, rdx
lea rcx, [rsp + 0x31]
mov r8d, 0x103
xor edx, edx
mov qword [r11 - 0x10], rdi
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1000c10f
lea r8, [rcx - 1]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_strncpy]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
mov byte [rsp + rcx + 0x2e], al
lea rcx, [rsp + 0x30]
mov r8d, 0x104
mov rdx, rbx
call fcn.100244b0
xor ebx, ebx
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x24], ebx
mov qword [rsp + 0x28], rbx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [rsp + 0x20], eax
jle 0x1000c1b0
movsxd rcx, eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000c188
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x1003f9bc]
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1000c18f
test rdi, rdi
je 0x1000c1b0
jmp 0x1000c1a8
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
mov r8d, reloc.WS2_32.dll_gethostbyname
call sub.msvcrt.dll_memcpy
movzx edx, word [rdi + 0xa]
mov dword [rsi], edx
mov rcx, rdi
call fcn.1003aa90
mov rdi, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x188]
xor al, al
mov rcx, qword [rsp + 0x140]
call fcn.1003b040
add rsp, 0x168
ret