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

Disassembly:
push r12
push r15
mov eax, 0x2048
call fcn.1800b7d60
sub rsp, rax
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r15d, r8d
mov r12d, ecx
mov ecx, r15d
xor r8d, r8d
xor edx, edx
call fcn.180227108
cmp eax, 0xffffffff
je 0x1800a0184
xor r8d, r8d
xor edx, edx
mov ecx, r12d
call fcn.180227108
cmp eax, 0xffffffff
je 0x1800a0184
mov qword [rsp + 0x2068], rbx
mov qword [rsp + 0x2078], rbp
mov qword [rsp + 0x2040], rsi
mov qword [rsp + 0x2038], rdi
mov qword [rsp + 0x2030], r14
xor r14d, r14d
xor ebx, ebx
mov r8d, 0x2000
movsxd rax, ebx
lea rdx, [rsp + 0x20]
sub r8d, ebx
add rdx, rax
mov ecx, r15d
call fcn.1802316dc
mov edi, eax
test eax, eax
je 0x1800a00d1
cmp eax, 0xffffffff
jne 0x1800a00c7
call fcn.180213e9c
cmp dword [rax], 4
jne 0x1800a0173
add ebx, edi
cmp ebx, 0x2000
jl 0x1800a0092
test ebx, ebx
jle 0x1800a0171
mov edi, ebx
lea rsi, [rsp + 0x20]
xor ebp, ebp
mov r8d, edi
mov rdx, rsi
mov ecx, r12d
call fcn.18022c90c
cmp eax, 0xffffffff
je 0x1800a0105
test eax, eax
je 0x1800a010f
movsxd rcx, eax
sub edi, eax
add rsi, rcx
add ebp, eax
jmp 0x1800a010f
call fcn.180213e9c
cmp dword [rax], 4
jne 0x1800a0120
test edi, edi
jg 0x1800a00e2
cmp ebp, 0xffffffff
je 0x1800a0120
add r14d, ebx
jmp 0x1800a0090
mov dword [0x18051c104], 0xf
or eax, 0xffffffff
mov rdi, qword [rsp + 0x2038]
mov rsi, qword [rsp + 0x2040]
mov rbp, qword [rsp + 0x2078]
mov rbx, qword [rsp + 0x2068]
mov r14, qword [rsp + 0x2030]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x2048
pop r15
pop r12
ret
jns 0x1800a017f
mov dword [0x18051c104], 0xe
jmp 0x1800a012a
mov eax, r14d
jmp 0x1800a012d
mov dword [0x18051c104], 0xd
or eax, 0xffffffff
jmp 0x1800a0155
Function at 0x1800a3660
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbx, rcx
mov rdi, rdx
xor ecx, ecx
call fcn.18021442c
mov r9, qword [0x1804b7680]
mov r10, rax
mov qword [rsp + 0x40], rax
test r9, r9
je 0x1800a36e2
movabs r11, 0x1845c8a0ce512957
mov rax, r11
imul qword [0x1804b7678]
mov rax, r11
mov r8, rdx
imul r10
sar r8, 0xd
sar rdx, 0xd
mov rcx, r8
mov rax, rdx
shr rcx, 0x3f
shr rax, 0x3f
add r8, rcx
add rdx, rax
cmp r8, rdx
je 0x1800a3837
xor eax, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
call fcn.1802151bc
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x400
call fcn.18020d280
lea rcx, [rsp + 0x70]
call fcn.1800b0bf0
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x1800a3737
mov r8, qword [rax]
mov edx, dword [rsp + 0x58]
lea r9, [0x1804b7640]
mov ecx, dword [rsp + 0x5c]
inc edx
mov eax, dword [rsp + 0x54]
add ecx, 0x76c
mov dword [rsp + 0x38], eax
mov eax, dword [section..data]
mov dword [rsp + 0x30], edx
lea rdx, str._slog_s__d__04d__02d__02d.log
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x20], eax
call fcn.1800a2b10
mov rax, qword [rsp + 0x88]
cmp rax, 0x10
jb 0x1800a37cf
mov rcx, qword [rsp + 0x70]
inc rax
cmp rax, 0x1000
jb 0x1800a37ca
test cl, 0x1f
jne 0x1800a3875
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1800a387b
sub rcx, rax
cmp rcx, 8
jb 0x1800a3881
cmp rcx, 0x27
ja 0x1800a3887
mov rcx, rax
call fcn.1800b7138
mov rcx, qword [0x1804b7680]
mov qword [rsp + 0x88], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x80], 0
mov byte [rsp + 0x70], 0
test rcx, rcx
je 0x1800a3802
call fcn.1802144f0
call fcn.1800a3060
mov r8d, 0x40
lea rdx, [0x18032b098]
lea rcx, [rsp + 0x90]
call fcn.180214908
mov qword [0x1804b7680], rax
mov r9, rax
test rax, rax
je 0x1800a3854
mov r8, qword [rsp + 0x40]
mov qword [0x1804b7678], r8
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.180214b68
mov rcx, qword [0x1804b7680]
call fcn.180214710
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1800b7d20
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rdi
ret
call fcn.18020ee30
int3
call fcn.18020ee30
int3
call fcn.18020ee30
int3
call fcn.18020ee30
int3
Function at 0x1800a6d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r14, dword [rdx + 0x1c]
xor r11d, r11d
mov rsi, qword [rdx]
or ebp, 0xffffffff
mov r10, qword [rdx + 8]
mov rbx, rcx
mov dword [rcx + 0x192c], r11d
mov r15, rdx
mov dword [rcx + 0x1930], 0x23d
mov ecx, r11d
mov r8d, r11d
test r14d, r14d
jle 0x1800a6dcb
cmp word [rsi + rcx*4], r11w
je 0x1800a6dba
inc dword [rbx + 0x192c]
mov ebp, r8d
movsxd rax, dword [rbx + 0x192c]
mov dword [rbx + rax*4 + 0x1038], r8d
mov byte [rcx + rbx + 0x1934], r11b
jmp 0x1800a6dc0
mov word [rsi + rcx*4 + 2], r11w
inc r8d
inc rcx
cmp rcx, r14
jl 0x1800a6d91
cmp dword [rbx + 0x192c], 2
mov r12d, 1
jge 0x1800a6e38
movsxd r8, ebp
nop dword [rax]
cmp ebp, 2
jge 0x1800a6df1
inc ebp
inc r8
mov edx, ebp
mov rcx, r8
jmp 0x1800a6df7
mov edx, r11d
mov rcx, r11
inc dword [rbx + 0x192c]
movsxd rax, dword [rbx + 0x192c]
mov dword [rbx + rax*4 + 0x1038], edx
mov word [rsi + rcx*4], r12w
mov byte [rbx + rcx + 0x1934], r11b
dec dword [rbx + 0x1af70]
test r10, r10
je 0x1800a6e2f
movzx eax, word [r10 + rcx*4 + 2]
sub dword [rbx + 0x1af74], eax
cmp dword [rbx + 0x192c], 2
jl 0x1800a6de0
mov dword [r15 + 0x24], ebp
mov eax, dword [rbx + 0x192c]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp eax, r12d
jl 0x1800a6e65
nop
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.1800a93f0
dec edi
cmp edi, r12d
jge 0x1800a6e50
movsxd rax, dword [rbx + 0x192c]
mov r8d, r12d
movsxd rdi, dword [rbx + 0x103c]
mov rdx, rsi
mov ecx, dword [rbx + rax*4 + 0x1038]
mov dword [rbx + 0x103c], ecx
mov rcx, rbx
dec dword [rbx + 0x192c]
call fcn.1800a93f0
movsxd rcx, dword [rbx + 0x103c]
dec dword [rbx + 0x1930]
lea r8, [rsi + rcx*4]
movsxd rax, dword [rbx + 0x1930]
movsxd r9, r14d
mov dword [rbx + rax*4 + 0x1038], edi
dec dword [rbx + 0x1930]
movsxd rax, dword [rbx + 0x1930]
mov dword [rbx + rax*4 + 0x1038], ecx
movzx eax, word [r8]
add ax, word [rsi + rdi*4]
mov word [rsi + r9*4], ax
movzx eax, byte [rcx + rbx + 0x1934]
cmp byte [rdi + rbx + 0x1934], al
jb 0x1800a6ef2
movzx eax, byte [rdi + rbx + 0x1934]
jmp 0x1800a6efa
movzx eax, byte [rcx + rbx + 0x1934]
inc al
mov rdx, rsi
mov byte [r9 + rbx + 0x1934], al
mov rcx, rbx
mov word [r8 + 2], r14w
mov r8d, r12d
mov word [rsi + rdi*4 + 2], r14w
mov dword [rbx + 0x103c], r14d
inc r14d
call fcn.1800a93f0
cmp dword [rbx + 0x192c], 2
jge 0x1800a6e65
dec dword [rbx + 0x1930]
mov rdx, r15
movsxd rcx, dword [rbx + 0x1930]
mov eax, dword [rbx + 0x103c]
mov dword [rbx + rcx*4 + 0x1038], eax
mov rcx, rbx
call fcn.1800a83e0
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.1800a8620
Function at 0x1800a7280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x1800a7296
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x18032b5e0]
not ecx
cmp r10, 8
jb 0x1800a7384
mov r11, r10
shr r11, 3
imul rax, r11, 0xfffffffffffffff8
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x1800a72c0
test r10, r10
je 0x1800a73b0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x1800a7390
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1800aa090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
je 0x1800aa11c
mov eax, dword [rdi + 0xb4]
mov qword [rsp + 0x48], rsi
mov esi, dword [rdi + 0xb0]
cmp eax, esi
jb 0x1800aa0dd
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.18020cd80
mov ecx, dword [rdi + 0x90]
mov rdx, rbp
add dword [rdi + 0xb4], esi
add dword [rdi + 0x8c], esi
mov r8d, esi
call fcn.1800a7280
mov dword [rdi + 0x90], eax
mov eax, esi
jmp 0x1800aa0c8
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x1800aa173
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800aa17a
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x8c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x90]
call fcn.1800a7280
mov dword [rdi + 0x90], eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rdi + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800aa820
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1800aa928
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
test rcx, rcx
je 0x1800aa862
cmp dword [rbx + 0x58], edi
jae 0x1800aa862
call fcn.1800b70f4
mov qword [rbx + 0x50], 0
cmp qword [rbx + 0x50], 0
jne 0x1800aa878
lea ecx, [rdi + rdi]
call fcn.1800b787c
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov rcx, qword [rbx + 0x50]
mov r8, rdi
mov rdx, rsi
mov rbp, rdi
call fcn.18020cd80
test edi, edi
je 0x1800aa91f
xor r11d, r11d
lea rsi, [0x18032b5e0]
nop dword [rax]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov ecx, dword [rbx + 0x44]
mov r9d, r8d
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
mov eax, dword [rbx + 0x44]
xor rcx, r10
movzx edx, cl
shr eax, 8
mov ecx, dword [rsi + rdx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [rbx + 0x48]
mov dword [rbx + 0x44], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x48], ecx
movzx eax, byte [rbx + 0x4b]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x4c], eax
mov rax, qword [rbx + 0x50]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x1800aa8a0
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x1800aa978
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x1800aa955
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.18020cd80
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800aa9af
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800ab790
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
cmp qword [rcx + 0x58], 0x10
lea rsi, [rcx + 0x40]
movzx ebx, dl
jb 0x1800ab7b3
mov rcx, qword [rsi]
jmp 0x1800ab7b6
mov rcx, rsi
mov eax, reloc.WS2_32.dll_socket
mov qword [rsp + 0x58], rdi
test bl, bl
mov r14d, reloc.WS2_32.dll_setsockopt
mov r8d, 0x186a0
cmovne r14d, eax
mov edx, r14d
call fcn.18009ea20
test rax, rax
jne 0x1800ab9c7
call fcn.18009fce0
cmp dword [rax], 8
je 0x1800ab8f6
test bl, bl
je 0x1800ab9c5
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab805
mov rcx, qword [rsi]
jmp 0x1800ab808
mov rcx, rsi
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x12019f
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800ab8f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab856
mov rbx, qword [rsi]
jmp 0x1800ab859
mov rbx, rsi
call fcn.18009fce0
mov ecx, dword [rax]
call fcn.18009e8f0
mov r9, rax
lea rdx, str.open_db__s_failed_db_broken:_s__forced_reset_successful
mov r8, rbx
mov ecx, 7
call fcn.1800a2ba0
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab888
mov rcx, qword [rsi]
jmp 0x1800ab88b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab89d
mov rcx, qword [rsi]
jmp 0x1800ab8a0
mov rcx, rsi
or r8d, 0xffffffff
mov edx, r14d
call fcn.18009ea20
test rax, rax
jne 0x1800ab9c7
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab8bf
mov rsi, qword [rsi]
call fcn.18009fce0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call fcn.18009e8f0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, rsi
lea rdx, str.open_db__s_failed_db_broken:_s
mov ecx, 7
call fcn.1800a2ba0
jmp 0x1800ab9c5
call fcn.18009fce0
cmp dword [rax], 3
jne 0x1800ab9c5
cmp qword [rsi + 0x18], 0x10
mov qword [rsp + 0x50], rbp
jb 0x1800ab915
mov rbp, qword [rsi]
jmp 0x1800ab918
mov rbp, rsi
call fcn.18009fce0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call fcn.18009e8f0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, rbp
lea rdx, str.open_db__s_failed_db_broken:_s_:_d
mov ecx, 8
call fcn.1800a2ba0
cmp qword [rsi + 0x18], 0x10
mov rbp, qword [rsp + 0x50]
jb 0x1800ab95b
mov rcx, qword [rsi]
jmp 0x1800ab95e
mov rcx, rsi
call fcn.18009f850
test eax, eax
jne 0x1800ab987
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab971
mov rsi, qword [rsi]
mov r8, rsi
lea rdx, str._s:repaire_failed
mov ecx, 8
call fcn.1800a2ba0
jmp 0x1800ab9c5
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab993
mov r8, qword [rsi]
jmp 0x1800ab996
mov r8, rsi
lea rdx, str._s:repaire_sucess
mov ecx, 8
call fcn.1800a2ba0
cmp qword [rsi + 0x18], 0x10
jb 0x1800ab9b1
mov rsi, qword [rsi]
or r8d, 0xffffffff
mov edx, r14d
mov rcx, rsi
call fcn.18009ea20
test rax, rax
jne 0x1800ab9c7
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800b0030
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor bl, bl
mov r14, rdx
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x1800b0225
mov qword [rsp + 0x290], rsi
call fcn.180081e70
mov rcx, rax
lea rdx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1800b0220
mov ecx, esi
mov qword [rsp + 0x288], rbp
lea rdx, [0x1804b7998]
call fcn.1800b804c
mov rbp, rax
test rax, rax
je 0x1800b01f1
mov rcx, rdi
call fcn.180081e70
mov edx, dword [rsp + 0x30]
mov rcx, rax
mov r9, rbp
mov r8d, esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800b01e9
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800b01e9
mov rax, qword [rsp + 0x38]
mov rdi, qword [r14]
mov qword [rsp + 0x298], r15
movzx r15d, word [rax]
movzx eax, word [rax + 2]
mov rbx, qword [rdi]
shl r15d, 0x10
or r15d, eax
cmp rbx, rdi
je 0x1800b01df
cmp qword [rbx + 0x38], 8
jb 0x1800b0122
mov rax, qword [rbx + 0x20]
jmp 0x1800b0126
lea rax, [rbx + 0x20]
mov r9d, r15d
mov qword [rsp + 0x20], rax
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1800b0910
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800b0187
mov rdx, qword [rsp + 0x40]
cmp word [rdx], 0
jne 0x1800b016f
xor r8d, r8d
jmp 0x1800b017e
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800b0173
lea rcx, [rbx + 0x40]
call fcn.1800856d0
cmp byte [rbx + 0x19], 0
jne 0x1800b01d6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1800b01b1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1800b01d6
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800b01a3
jmp 0x1800b01d6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800b01d3
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1800b01d3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1800b01c0
mov rbx, rax
cmp rbx, rdi
jne 0x1800b0115
mov r15, qword [rsp + 0x298]
mov bl, 1
mov rcx, rbp
call fcn.1800b70f4
mov rbp, qword [rsp + 0x288]
movzx eax, bl
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x260
pop r14
pop rdi
pop rbx
ret
movzx eax, bl
jmp 0x1800b01fc
movzx eax, bl
jmp 0x1800b0204

Function at 0x1800b0970
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800b09af
lea rcx, str.WSAStartup_error___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x1d0
pop rbx
ret
Function at 0x1800b09e0
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbp, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x100]
mov r8d, 0x3e8
call fcn.18020d280
xor eax, eax
lea rcx, [rsp + 0x30]
xor r15d, r15d
mov dword [rsp + 0x22], eax
xor edx, edx
mov word [rsp + 0x20], r15w
mov r8d, reloc.WLDAP32.dll_Ordinal_200
call fcn.18020d280
test r14, r14
je 0x1800b0be0
test rbp, rbp
je 0x1800b0be0
lea r8d, [r15 + 0xc]
mov rcx, r14
lea rdx, str.DeviceMup_
call fcn.180215c38
test eax, eax
jne 0x1800b0a8a
lea rdx, [0x18032cd6c]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [r15 + 1]
jmp 0x1800b0ba1
mov qword [rsp + 0x540], rbx
lea rdx, [rsp + 0x100]
mov qword [rsp + 0x508], rsi
mov ecx, 0x3e8
mov qword [rsp + 0x500], rdi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800b0b7b
mov edi, r15d
cmp word [rsp + 0x100], di
je 0x1800b0b7b
lea rbx, [rsp + 0x100]
nop word [rax + rax]
movsxd rax, edi
lea rsi, [rsp + 0x100]
lea rdx, [0x18032d108]
lea rsi, [rsi + rax*2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800b0b6a
lea rdx, [0x18032d110]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800b0b6a
movzx eax, word [rbx]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
movzx eax, word [rbx + 2]
mov r8d, 0x64
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r15w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1800b0b87
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
lea rdx, [rsp + 0x30]
mov r8, rsi
mov rcx, r14
call fcn.180215c38
test eax, eax
je 0x1800b0bbe
add rbx, 8
add edi, 4
cmp word [rbx], r15w
jne 0x1800b0ae0
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov rsi, qword [rsp + 0x508]
mov rbx, qword [rsp + 0x540]
mov rdi, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x510
pop r15
pop r14
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + rsi*2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x1800b0b89
xor eax, eax
jmp 0x1800b0ba1
Function at 0x1800b1050
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1800b10c2
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.18020d280
mov r8d, 0x104
lea rdx, [rsp + 0x230]
mov rcx, rbx
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
jne 0x1800b10c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800b112a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18020d280
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call fcn.1800b09e0
test eax, eax
je 0x1800b10b9
cmp word [rsp + 0x20], 0
jne 0x1800b10fb
xor r8d, r8d
jmp 0x1800b110f
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800b1104
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800856d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800b7d20
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret
Function at 0x1800b2610
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x268
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
mov rbp, r9
call fcn.18020d280
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1800b271c
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1800b271c
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x1800b271c
mov ecx, edi
call fcn.1800b787c
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800b2714
xor eax, eax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], eax
lea rdx, [0x18032d140]
mov qword [rsp + 0x38], rax
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800b2714
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + 0xa]
mov dword [rsi], eax
movzx eax, word [rcx + 8]
mov dword [r14], eax
movzx eax, word [rcx + 0xe]
mov dword [r15], eax
movzx eax, word [rcx + 0xc]
mov rcx, rbx
mov dword [rbp], eax
call fcn.1800b70f4
mov al, 1
jmp 0x1800b271e
mov rcx, rbx
call fcn.1800b70f4
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x268
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret