joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140128e40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x140128e6b
xor ecx, ecx
lea r9, [0x140213380]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140128e50
ret

Function at 0x140129bb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140245160]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140129be5
lea rcx, [0x140245150]
add rsp, 0x28
jmp fcn.1400a35b0
lea rcx, [0x140245160]
call fcn.1401485a0
cmp dword [0x140245160], 0xffffffff
jne 0x140129bd5
xorps xmm0, xmm0
movups xmmword [0x140245150], xmm0
lea rcx, [0x140245150]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x140245160]
call fcn.140148638
jmp 0x140129bd5
Function at 0x140130a60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140246000]
cmp rsi, 1
jbe 0x140130a83
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140108d40
lea rcx, [0x140246000]
call fcn.1400977e0
test al, al
je 0x140130ac8
xorps xmm0, xmm0
movups xmmword [0x140246008], xmm0
lea rdi, [0x140246000]
lea rsi, [0x140246008]
mov rcx, rsi
xor edx, edx
call fcn.1400a3650
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400978a0
jmp 0x140130a73
mov rsi, qword [0x140246000]
jmp 0x140130a73

Function at 0x140142b70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140246118]
cmp rsi, 1
jbe 0x140142b93
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140108d40
lea rcx, [0x140246118]
call fcn.1400977e0
test al, al
je 0x140142bd8
xorps xmm0, xmm0
movups xmmword [0x140246120], xmm0
lea rdi, [0x140246118]
lea rsi, [0x140246120]
mov rcx, rsi
xor edx, edx
call fcn.1400a3650
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400978a0
jmp 0x140142b83
mov rsi, qword [0x140246118]
jmp 0x140142b83

Function at 0x140142cc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400e0b40]
mov qword [rsp + 0x20], rax
lea rcx, [0x140246190]
lea rdx, [0x1400e09c0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140142d54
cmp dword [0x140246198], 0
jne 0x140142d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14024619c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140142d50
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148f60
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140142d38
call fcn.140162470
int3

Function at 0x140147600
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140246ff8]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140147666
lea rcx, [0x140246fe8]
xor edx, edx
call fcn.140108d40
mov eax, dword [0x140247010]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401476a1
lea rcx, [0x140247000]
xor edx, edx
add rsp, 0x28
jmp fcn.140108d40
lea rcx, [0x140246ff8]
call fcn.1401485a0
cmp dword [0x140246ff8], 0xffffffff
jne 0x140147625
xorps xmm0, xmm0
movups xmmword [0x140246fe8], xmm0
lea rcx, [0x140246fe8]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x140246ff8]
call fcn.140148638
jmp 0x140147625
lea rcx, [0x140247010]
call fcn.1401485a0
cmp dword [0x140247010], 0xffffffff
jne 0x140147654
xorps xmm0, xmm0
movups xmmword [0x140247000], xmm0
lea rcx, [0x140247000]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x140247010]
call fcn.140148638
jmp 0x140147654
Function at 0x14015c2b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14015c408

Function at 0x14015c6e4
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.14016143c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14016143c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14015c834
cmp rax, 0xffffffffffffffff
je 0x14015c834
xor edi, edi
test rbp, rbp
jle 0x14015c7df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14010f350
mov rbx, rax
test rax, rax
jne 0x14015c76c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14015c7d5
mov edx, 0x8000
mov ecx, r14d
call fcn.140162548
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.140165d7c
cmp eax, 0xffffffff
je 0x14015c7b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14015c77c
mov edx, r15d
mov ecx, r14d
call fcn.140162548
jmp 0x14015c7d5
cmp byte [rsi + 0x38], dil
je 0x14015c7cc
cmp dword [rsi + 0x34], 5
jne 0x14015c7cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x14015c7d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14010f2b0
jmp 0x14015c848
jns 0x14015c848
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14016143c
cmp rax, 0xffffffffffffffff
jne 0x14015c800
cmp byte [rsi + 0x30], dil
je 0x14015c848
mov edi, dword [rsi + 0x2c]
jmp 0x14015c848
mov ecx, r14d
call fcn.14015f98c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14015c848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x14015c848
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14015c841
mov eax, dword [rsi + 0x2c]
jmp 0x14015c846
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14016143c
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 0x140162114
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14023aa20]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140162172
cmp word [rdx], r12w
jne 0x140162172
or byte [rax + r8*8 + 0x38], cl
jmp 0x140162178
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401622d3
mov r9d, reloc.OLEAUT32.dll_SafeArrayCopy
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401622ae
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1401621b1
mov rcx, r9
jmp 0x1401621d4
cmp r9, rdx
jae 0x1401621eb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.OLEAUT32.dll_SafeArrayCopy
add rbx, 2
cmp rcx, rdx
jb 0x140162195
jmp 0x1401622d3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401622a8
cmp dword [rsp + 0x80], edi
je 0x1401622a8
mov rdx, r14
lea r11, [0x14023aa20]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140162281
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140162254
mov word [rbx], r12w
jmp 0x1401622cf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14016225d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401622cf
cmp word [rsp + 0x70], r12w
jne 0x14016228e
cmp rbx, rsi
je 0x14016224e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14016143c
cmp word [rsp + 0x70], r12w
je 0x1401622d3
mov word [rbx], r13w
jmp 0x1401622cf
lea r11, [0x14023aa20]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401622cb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401622d3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140169f5c
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.140148f00
sub rsp, rax
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14015f934
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140169fab
mov rax, rbp
jmp 0x14016a0b3
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 + 0x23aa20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401614e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x23aa20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14016a0af
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 0x14016a0af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401614e0
test rax, rax
js 0x14016a0af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14016a0af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14016a0a1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14016a0a1
cmp byte [rcx], 0xd
jne 0x14016a087
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14016a096
cmp byte [rcx + 1], 0xa
jne 0x14016a096
inc rcx
jmp 0x14016a096
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x22a350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14016a069
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14016a0b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140148f60
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 0x14017c9d8
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 0x14017ca08
xor eax, eax
jmp 0x14017cacb
mov rbp, rbx
cmp word [rax], si
je 0x14017ca2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14017ca14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14017ca10
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.14017c928
movsxd r14, eax
test eax, eax
jne 0x14017ca6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14017ca01
mov rcx, r14
call fcn.1400ae070
mov rdi, rax
test rax, rax
jne 0x14017ca84
xor ecx, ecx
call fcn.14010f2b0
jmp 0x14017ca60
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.14017c928
test eax, eax
jne 0x14017cab5
mov rcx, rdi
call fcn.14010f2b0
jmp 0x14017cabf
xor ecx, ecx
call fcn.14010f2b0
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 0x14017cae8
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 0x14017cb6f
mov rsi, rbx
cmp word [rax], bp
je 0x14017cb2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14017cb18
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14017cb14
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ae070
mov rdi, rax
test rax, rax
je 0x14017cb5c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14014b810
mov rbp, rdi
xor ecx, ecx
call fcn.14010f2b0
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
Function at 0x14017f114
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.14015693c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14017f19e
cmp byte [rbp - 0x21], r15b
je 0x14017f199
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14017f1d4
call fcn.1401761d4
test eax, eax
jne 0x14017f1c0
cmp byte [rbp - 0x21], r15b
je 0x14017f1b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14017f1d4
cmp byte [rbp - 0x21], r15b
je 0x14017f1d1
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.14015bf18
test eax, eax
jne 0x14017f274
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14015693c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14017f213
cmp byte [rbp - 0x21], r15b
je 0x14017f248
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14017f248
call fcn.1401761d4
test eax, eax
jne 0x14017f234
cmp byte [rbp - 0x21], r15b
je 0x14017f22d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14017f248
cmp byte [rbp - 0x21], r15b
je 0x14017f245
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.14015bf18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14017f274
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14017f277
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14017f285
mov rcx, rdi
call fcn.14010f2b0
cmp byte [rbp + 0x3f], r15b
je 0x14017f294
mov rcx, qword [rbp + 0x27]
call fcn.14010f2b0
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 0x140180af0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140180b22
call fcn.14015f53c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140160be0
jmp 0x140180c41
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140180c41
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140180c41
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140180b51
lock or dword [rcx + 0x14], 0x10
jmp 0x140180c41
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140180b65
call fcn.14018298c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14015f934
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401618d8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140180c2f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140180bfa
mov rcx, rsi
call fcn.14015f934
cmp eax, edi
je 0x140180be5
mov rcx, rsi
call fcn.14015f934
cmp eax, 0xfffffffe
je 0x140180be5
mov rcx, rsi
call fcn.14015f934
movsxd rbx, eax
lea r14, [0x14023aa20]
mov rcx, rsi
sar rbx, 6
call fcn.14015f934
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140180bec
lea rdx, [0x14022a550]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140180bfa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140180c1e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140180c1e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140180c1e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140180c44
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14018c370
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x28]
mov qword [rdi], rdx
mov rdx, rdi
call fcn.1400ebb50
lea rdx, [rsi + 0xb0]
mov r8d, dword [rdi]
mov rcx, qword [rsi + 0x78]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14018c3c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14018c3e8
mov byte [rsi + 0xd1], 1
lock inc dword [rsi + 8]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140148f60
nop
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call fcn.140047d50
jmp 0x14018c3d3
Function at 0x14018d630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x458
mov rbx, r9
mov r14, r8
mov r15, rdx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov qword [rsp + 0x40], rcx
xor edi, edi
mov qword [rsp + 0x38], rdi
lea rsi, [rsp + 0x50]
mov r8d, 0x400
mov rcx, rsi
mov dl, 0xaa
call fcn.14014bec0
mov qword [rsi - 8], rdi
mov rcx, r15
xor edx, edx
mov r8d, 0x60
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14018d6b6
mov rcx, r15
xor edx, edx
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14018d78b
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14018d77f
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14018d77f
mov r14, rax
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, 0x8007000e
cmp eax, 0xffffffff
jne 0x14018d741
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x48]
cmp rdi, rsi
jne 0x14018d735
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
add rsp, 0x458
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
call fcn.14018dec0
jmp 0x14018d712
mov r15d, eax
lea edx, [r15 + 1]
lea r12, [rsp + 0x48]
mov rcx, r12
call fcn.14018d7c0
mov rax, qword [r12]
test rax, rax
je 0x14018d6ff
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov ecx, 3
xor edx, edx
mov r8, r14
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14018d799
call fcn.14018d3f0
mov ebx, eax
jmp 0x14018d6ff
xor edi, edi
call fcn.14018d3f0
mov ebx, eax
jmp 0x14018d70d
mov r8d, dword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x48]
mov eax, eax
mov word [rcx + rax*2], 0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.14018d800
jmp 0x14018d784

Function at 0x1401a6150
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.140148440
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1401a61c0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14015c094
mov qword [rbx], rax
test rax, rax
je 0x1401a61a7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1401a9630
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400fc030
test al, al
jne 0x1401a9651
mov rcx, rsi
call fcn.1400fc030
test al, al
je 0x1401a965a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401af730
Function at 0x1401a98f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14023d0d0], 0
je 0x1401a9936
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140148f60
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14023d0a8]
test rdi, rdi
je 0x1401a99d7
test byte [reloc.WS2_32.dll_accept], 1
je 0x1401a9919
cmp byte [rdi + 0x17], 0
jns 0x1401a9958
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14023d0d0], rax
inc rax
cmp rax, 1
ja 0x1401a9919
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14014bec0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1401a9aa2
xor esi, esi
jmp 0x1401a9919
mov ecx, SafeArrayCopy
call fcn.140148440
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14014bec0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140206780]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140185a00
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1401a9a3e
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1401a9a44
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1401a9a6a
lea rdx, [0x14020fe3c]
mov r8d, 9
mov rcx, rdi
call fcn.14008fa00
mov qword [0x14023d0a8], rdi
jmp 0x1401a9946
lea r8, [rax + rax]
test r8, r8
je 0x1401a9a49
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1401a9a6e
cmp rdx, 0xfffffffffffffffe
je 0x1401a9a49
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1401a9b69
mov rcx, rdi
call fcn.14018eb00
jmp 0x1401a9a49
mov rdi, qword [0x14023d0a8]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140170424
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14008f650
mov rcx, qword [0x14023d0a8]
call fcn.14008d6c0
cmp word [rax], 0x5c
je 0x1401a9aef
mov rcx, qword [0x14023d0a8]
lea rdx, [0x140209916]
mov r8d, 1
call fcn.14008fa00
mov rcx, qword [0x14023d0a8]
lea rdx, [0x14020fe3c]
mov r8d, 9
call fcn.14008fa00
mov rcx, qword [0x14023d0a8]
cmp byte [rcx + 0x17], 0
jns 0x1401a9b18
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14023d0d0], rax
inc rax
cmp rax, 1
ja 0x1401a9919
mov qword [0x14023d0d0], 0
jmp 0x1401a99d0
call fcn.140162470
int3