joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001235
Capabilities:
Delete file

Disassembly:
jmp 0x140003030
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140019300]
call fcn.1400012c6
lea rdx, [0x14000ffc4]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400030dd
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1400030b2
cmp dword [rbp + 0x108], 0
je 0x1400030a9
mov rdx, qword [rbp + 0x100]
lea rcx, str._i___s_Deleted._n
call fcn.14000115e
mov eax, 1
jmp 0x1400030df
cmp dword [rbp + 0x108], 0
je 0x1400030d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x100]
lea rcx, str.____Error_deleting_file__s:__d_n
call fcn.14000115e
xor eax, eax
jmp 0x1400030df
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14000129e
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400037a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x140019300]
call fcn.1400012c6
lea rdx, [0x14000fea4]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14000380f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_opening_file__s:__ld_n
call fcn.14000115e
jmp 0x140003885
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x168]
mov edx, 1
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x168]
cmp qword [rbp + 0x48], rax
je 0x14000385f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x64], eax
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Writing_to_File__s:__ld_n
call fcn.14000115e
jmp 0x14000387b
cmp dword [rbp + 0x178], 0
je 0x14000387b
mov rdx, qword [rbp + 0x170]
lea rcx, str._i___s_Written_to_Disk._n
call fcn.14000115e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400012a8
Capabilities:
Write file on windows

Disassembly:
jmp 0x140003900
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140019300]
call fcn.1400012c6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140003980
xor eax, eax
jmp 0x140003a23
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400039b2
lea rcx, str.____Memory_allocation_failed_n
call fcn.14000115e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003a23
mov r8, qword [rbp + 0x148]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x148]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003a14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x140]
lea rcx, str.____Failed_to_write_to_file__s:__d_n
call fcn.14000115e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003a23
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14000fc90]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140002d10
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140002d10
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
lea rcx, [0x140019233]
call fcn.1400012c6
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140002de6
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.14000115e
xor eax, eax
jmp 0x140002deb
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14000f9e0]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140003030
Capabilities:
Delete file

Disassembly:
jmp 0x140003030
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140019300]
call fcn.1400012c6
lea rdx, [0x14000ffc4]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400030dd
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1400030b2
cmp dword [rbp + 0x108], 0
je 0x1400030a9
mov rdx, qword [rbp + 0x100]
lea rcx, str._i___s_Deleted._n
call fcn.14000115e
mov eax, 1
jmp 0x1400030df
cmp dword [rbp + 0x108], 0
je 0x1400030d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x100]
lea rcx, str.____Error_deleting_file__s:__d_n
call fcn.14000115e
xor eax, eax
jmp 0x1400030df
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140003120
Capabilities:
Convert ip address from string

Disassembly:
jmp 0x140003120
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140019300]
call fcn.1400012c6
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140003193
lea rcx, str.strdup_failed
call qword [sym.imp.ucrtbased.dll_perror]
xor eax, eax
jmp 0x14000326f
mov edx, 0x3a
mov rcx, qword [rbp + 8]
call sub.VCRUNTIME140D.dll_strchr
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140003252
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov r8d, send
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ucrtbased.dll_strncpy]
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rbp + 0x168]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_atoi]
mov rcx, qword [rbp + 0x170]
mov dword [rcx], eax
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x168]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140003242
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
shl rax, 0x10
mov rcx, qword [rbp + 0x170]
movsxd rcx, dword [rcx]
or rax, rcx
mov rcx, qword [rbp + 0x178]
mov qword [rcx], rax
jmp 0x140003250
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x14000326f
jmp 0x140003260
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x14000326f
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14000fe80]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400032f0
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x1400032f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
lea rcx, [0x140019300]
call fcn.1400012c6
mov qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14000338b
xor eax, eax
jmp 0x14000345b
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call sub.VCRUNTIME140D.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003413
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x160]
lea rcx, str.____Error_Rading_File__s:__d
call fcn.14000115e
mov rax, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x170]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x168]
cmp qword [rax], 0
je 0x140003452
mov rax, qword [rbp + 0x170]
mov eax, dword [rax]
test rax, rax
jne 0x140003456
xor eax, eax
jmp 0x14000345b
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14000fd20]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400034e0
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
jmp 0x1400034e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
lea rcx, [0x140019300]
call fcn.1400012c6
mov qword [rbp + 0x238], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0
je 0x140003567
mov edx, dword [rbp + 0x254]
lea rcx, str.____WSAStartup_failed:__d_n
call fcn.14000115e
xor eax, eax
jmp 0x1400036ee
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x1400035ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Socket_creation_failed:__ld_n
call fcn.14000115e
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400036ee
mov eax, 2
mov word [rbp + 0x1e8], ax
movzx ecx, word [rbp + 0x418]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
lea r8, [rbp + 0x1ec]
mov rdx, qword [rbp + 0x410]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140003632
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Connection_failed:__ld_n
call fcn.14000115e
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400036ee
mov eax, dword [rbp + 0x428]
cmp qword [rbp + 0x238], rax
jae 0x1400036d6
mov eax, dword [rbp + 0x428]
sub rax, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x420]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0xffffffff
jne 0x1400036b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Send_failed:__ld_n
call fcn.14000115e
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400036ee
movsxd rax, dword [rbp + 0x214]
mov rcx, qword [rbp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
jmp 0x140003632
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14000fdf0]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x3f8]
pop rdi
pop rbp
ret
Function at 0x1400037a0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400037a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x140019300]
call fcn.1400012c6
lea rdx, [0x14000fea4]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14000380f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_opening_file__s:__ld_n
call fcn.14000115e
jmp 0x140003885
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x168]
mov edx, 1
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x168]
cmp qword [rbp + 0x48], rax
je 0x14000385f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x64], eax
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Writing_to_File__s:__ld_n
call fcn.14000115e
jmp 0x14000387b
cmp dword [rbp + 0x178], 0
je 0x14000387b
mov rdx, qword [rbp + 0x170]
lea rcx, str._i___s_Written_to_Disk._n
call fcn.14000115e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140003900
Capabilities:
Write file on windows

Disassembly:
jmp 0x140003900
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140019300]
call fcn.1400012c6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140003980
xor eax, eax
jmp 0x140003a23
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400039b2
lea rcx, str.____Memory_allocation_failed_n
call fcn.14000115e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003a23
mov r8, qword [rbp + 0x148]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x148]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003a14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x140]
lea rcx, str.____Failed_to_write_to_file__s:__d_n
call fcn.14000115e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003a23
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14000fc90]
call fcn.140001267
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x180002910
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000296d
lea rbx, [0x180048fd0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180002954
cmp r10, 2
jb 0x180002954
cmp byte [r9], r8b
jne 0x180002954
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180002930
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800029af
lea rbx, [0x180048fd0]
cmp r8b, 0x23
jne 0x180002993
cmp byte [r9], r8b
jne 0x180002993
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180002980
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180002af0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180002b0a
mov qword [r8], 0
lea rdx, [0x180048a24]
call fcn.1800029c0
mov rbx, rax
test rax, rax
jne 0x180002b2a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180002c01
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002c01
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180002c01
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002c01
cmp rdi, 0xffffffffffffffff
je 0x180002c01
mov rax, qword [0x180055d00]
test rax, rax
je 0x180002b9e
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180002c01
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180002bee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180055d00]
test rax, rax
je 0x180002be3
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180002c0a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180002bfc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180002c0c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180010810
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov rax, qword [0x180055d00]
lea r10, [0x180048fd0]
mov r9, qword [rax + 0x1d18]
movsxd rdx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
not r8d
movzx eax, cl
movzx edx, r8b
shr r8d, 8
xor rdx, rax
movzx eax, byte [rsp + 0x31]
xor r8d, dword [r10 + rdx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x32]
xor r8d, dword [r10 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
movzx eax, byte [rsp + 0x33]
xor r8d, dword [r10 + rcx*4]
lea rcx, [r9 + 0x108]
movzx edx, r8b
xor rdx, rax
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
lea rdx, [rsp + 0x30]
not r8d
mov dword [rsp + 0x30], r8d
call fcn.180022030
add rsp, 0x28
ret

Function at 0x180011250
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x180055d00]
mov edi, edx
cmp byte [rbx + 0x20d5], 0
jne 0x1800112b0
cmp byte [rbx + 0x20d6], 0
jne 0x1800112b0
mov r9d, dword [rbx + 0x3178]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180002890
test dil, 1
je 0x1800113d6
jmp 0x18001133f
movss xmm1, dword [rbx + 0x16ec]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3178]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x18004d804]
mulss xmm1, dword [0x18004d7f8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x120]
addss xmm1, dword [rbx + 0x124]
mov qword [rbx + 0x1ddc], rax
mov dword [rbx + 0x1dc4], 1
movss dword [rbx + 0x1dd4], xmm0
mov byte [rbx + 0x1dfc], 1
movss dword [rbx + 0x1dd8], xmm1
movss xmm0, dword [rbx + 0x1748]
mulss xmm0, dword [0x18004d750]
or dword [rbx + 0x1dc0], 0x41
movss dword [rbx + 0x1e20], xmm0
call fcn.180002890
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180011390
lea r11, [0x180048fd0]
nop
cmp r9b, 0x23
jne 0x180011373
cmp byte [r8], r9b
jne 0x180011373
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180011360
not ecx
call fcn.18000a490
test rax, rax
je 0x1800113d6
cmp byte [rax + 0xcf], 0
je 0x1800113d6
mov byte [rax + 0xd6], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xf0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3178]
mov edx, 0x10
mov r9d, dword [rbx + 0x3178]
call fcn.180002890
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.18000cea0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180045e90
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180016030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800160d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001608a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180022940
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1800031b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180055cf8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800160df
mov rcx, rbx
call fcn.1800031b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180016520
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x180016572
lea r11, [0x180048fd0]
cmp r9b, 0x23
jne 0x180016555
cmp byte [r8], r9b
jne 0x180016555
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180016542
mov r11, qword [0x180055d00]
mov r10, qword [r11 + 0x3228]
test r10, r10
je 0x1800165b9
lea r9, [r10 + 4]
test r9, r9
je 0x1800165b9
not eax
cmp dword [r9], eax
je 0x1800165c2
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3220]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x180016590
mov rcx, rbx
pop rbx
jmp fcn.180016430
mov rax, r9
pop rbx
ret