joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032570
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x78], 0
je 0x1400325c5
mov rax, qword [rsp + 0x78]
mov byte [rax], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareAhnLabACA
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140032601
cmp qword [rsp + 0x38], 0
je 0x140032601
jmp 0x14003260b
jmp 0x140032735
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLog
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14003264d
jmp 0x140032735
cmp dword [rsp + 0x50], 1
je 0x14003265e
jmp 0x140032735
cmp qword [rsp + 0x70], 0
je 0x14003272d
cmp qword [rsp + 0x78], 0
je 0x14003272d
cmp qword [rsp + 0x80], 0
jbe 0x14003272d
mov eax, dword [rsp + 0x80]
sub rax, 1
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLogPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140032716
mov edx, 0x5c
mov rcx, qword [rsp + 0x70]
call fcn.140032760
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400326e4
jmp 0x140032735
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax + 1]
test eax, eax
jne 0x1400326f5
jmp 0x140032735
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14002f900
test eax, eax
jge 0x140032714
jmp 0x140032735
jmp 0x14003272d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14002f890
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x140032751
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x140032ab0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
cmp qword [rsp + 0x270], 0
jne 0x140032afc
jmp 0x140032b4c
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140032b14
jmp 0x140032b4c
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [0x1402941f8]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000e460
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x260
pop rdi
ret
Function at 0x140032b70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
cmp qword [rsp + 0x170], 0
jne 0x140032bba
jmp 0x140032c12
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140032bd2
jmp 0x140032c12
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [0x14029a09c]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140030340
test eax, eax
jge 0x140032c02
jmp 0x140032c12
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x160
pop rdi
ret

Function at 0x140033350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x80], 0
jne 0x140033386
xor eax, eax
jmp 0x1400334c9
lea r8, [rsp + 0x20]
mov edx, 0x100
mov rcx, qword [rsp + 0x80]
call fcn.14000e4e0
test eax, eax
je 0x1400333a8
xor eax, eax
jmp 0x1400334c9
cmp qword [rsp + 0x20], 0
jne 0x1400333b7
xor eax, eax
jmp 0x1400334c9
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
mov eax, 2
mul qword [rsp + 0x20]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140033419
xor eax, eax
jmp 0x1400334c9
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400373b0
mov rax, qword [rsp + 0x20]
sub rax, 1
mov edx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14003345f
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0x30]
call fcn.140037400
mov rax, qword [rsp + 0x60]
jmp 0x1400334c9
mov r9d, 2
lea r8, [0x140293070]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.140037170
mov r9d, 0x100
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.140037170
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x30]
call fcn.140037400
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140033910
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
cmp qword [rsp + 0xb0], 0
jne 0x140033949
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140033a3a
mov dword [rsp + 0x20], 0
lea rdi, [rsp + 0x24]
xor eax, eax
mov ecx, WSAGetLastError
rep stosb byte [rdi], al
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0x441
lea rax, str.exefile
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400339cd
xor eax, eax
jmp 0x140033a3a
cmp dword [rsp + 0xc8], 1
jne 0x140033a1c
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140033a1c
mov ecx, dword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rsp + 0x88], 0
je 0x140033a35
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0xa0
pop rdi
ret

Function at 0x140033c10
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0x90], 0
jne 0x140033c48
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140033d16
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1400368d0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140033c71
xor eax, eax
jmp 0x140033d16
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400373b0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140033cf8
mov dword [rsp + 0x7c], 1
jmp 0x140033d00
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x50]
call fcn.140037400
mov eax, dword [rsp + 0x78]
add rsp, 0x88
ret
Function at 0x140034e00
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
jne 0x140034ebe
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140034eb3
mov dword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x98
ret

Function at 0x140034ee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x58], 0
jne 0x140034f05
mov eax, 0x57
jmp 0x140034fc3
cmp qword [rsp + 0x60], 0
jne 0x140034f17
mov eax, 0x57
jmp 0x140034fc3
mov qword [rsp + 0x38], 0
call fcn.140036150
mov r9d, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareAhnlabASPack9.0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140034f5a
mov eax, dword [rsp + 0x30]
jmp 0x140034fc3
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
shl rcx, 1
mov rax, qword [rsp + 0x58]
mov dword [rax], ecx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x58]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140038a44
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
mov eax, 1
ja 0x140038a98
jne 0x140038a96
cmp dword [rsp + 0x28], eax
jae 0x140038a98
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x158
ret

Function at 0x14003a0f4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x460
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rcx, [rsp + 0x32]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], si
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], si
call sub.MSVCR90.dll_memset
cmp rbx, rsi
je 0x14003a1aa
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_wcslen]
cmp rax, rsi
jbe 0x14003a1aa
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x14003a1aa
lea r9, [rsp + 0x30]
lea r8, [0x1402941f8]
lea rcx, [rsp + 0x240]
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.14003a08c
cmp eax, esi
jl 0x14003a1aa
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x14003a1ac
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14028a900
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rsi
ret
Function at 0x14003a1d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
test rcx, rcx
jne 0x14003a1fe
lea eax, [rcx + 0x57]
jmp 0x14003a2f2
lea rcx, str.wintrust.dll
call fcn.14003a0f4
mov rdi, rax
test rax, rax
jne 0x14003a225
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rdi + 0x7e]
test eax, eax
cmove eax, ecx
jmp 0x14003a2f2
call fcn.140038a44
lea rdx, str.WinVerifyTrust
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvCertFromChain
mov rcx, rdi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r15, r15
je 0x14003a2d5
test r12, r12
je 0x14003a2d5
test r13, r13
je 0x14003a2d5
test rax, rax
je 0x14003a2d5
test ebp, ebp
jne 0x14003a2a8
lea rdx, str.WintrustLoadFunctionPointers
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14003a2d5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x30]
call sub.MSVCR90.dll_memset
mov qword [rbx], rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x20], r14
test ebp, ebp
jne 0x14003a2d1
mov qword [rbx + 0x28], rsi
xor eax, eax
jmp 0x14003a2f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
mov eax, 0x7f
test ebx, ebx
cmove ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003afa8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x120
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14003b17d
test rdx, rdx
jle 0x14003b17d
test r8, r8
je 0x14003b17d
mov r12d, 0xf0
cmp rdx, r12
ja 0x14003b008
mov eax, 0x22000009
jmp 0x14003b182
lea rcx, [rsp + 0x20]
mov r8, r12
xor edx, edx
call sub.MSVCR90.dll_memset
mov ebp, 1
lea rcx, [rsp + 0x20]
lea edx, [rbp + 0x3f]
mov r9, rbx
mov r8, rbp
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, rbp
je 0x14003b03f
mov eax, 0x22000005
jmp 0x14003b182
lea rdx, [0x14029ab98]
lea rcx, [rsp + 0x20]
mov r8d, 2
call sub.MSVCR90.dll_memcmp
test eax, eax
jne 0x14003affe
movzx eax, byte [rsp + 0x5e]
movzx ecx, byte [rsp + 0x5f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x5d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x5c]
shl ecx, 8
mov r8d, ecx
or rcx, rax
cmp rdi, rcx
jle 0x14003affe
movzx edx, byte [rsp + 0x5c]
mov rcx, rbx
or edx, r8d
xor r8d, r8d
call qword [sym.imp.MSVCR90.dll_fseek]
test eax, eax
js 0x14003b035
mov edi, 4
lea rcx, [rsp + 0x60]
mov r9, rbx
mov rdx, rdi
mov r8, rbp
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, rbp
jne 0x14003b035
lea rdx, [0x14029ab90]
lea rcx, [rsp + 0x60]
mov r8, rdi
call sub.MSVCR90.dll_memcmp
test eax, eax
jne 0x14003affe
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0x64]
mov r9, rbx
mov r8, rbp
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, rbp
jne 0x14003b035
lea edx, [rdi - 2]
lea rcx, [rsp + 0x78]
mov r9, rbx
mov r8, rbp
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, rbp
jne 0x14003b035
movzx eax, byte [rsp + 0x78]
movzx ecx, byte [rsp + 0x79]
shl cx, 8
or cx, ax
mov eax, 0x20b
cmp cx, ax
jne 0x14003b168
mov edx, 0x96
lea rcx, [rsp + 0x7a]
mov r8, rbp
mov r9, rbx
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, rbp
jne 0x14003b035
lea rdx, [rsp + 0x20]
mov r8, r12
mov rcx, rsi
call fcn.14028a8de
xor eax, eax
jmp 0x14003b182
mov eax, 0x10b
cmp cx, ax
jne 0x14003affe
mov edx, 0x86
jmp 0x14003b13a
mov eax, 0x22000001
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14028a900
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14005c370
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005c3b2
test rdx, rdx
je 0x14005c3b2
mov r9, rdx
mov edx, 4
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 3]
call qword [sym.imp.MSVCR90.dll_fread]
test eax, eax
jne 0x14005c3a5
mov eax, 0xfffffffe
jmp 0x14005c3b5
mov ecx, dword [rsp + 0x30]
mov eax, 4
mov dword [rbx], ecx
jmp 0x14005c3b5
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14005c3bc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005c400
test rdx, rdx
je 0x14005c400
mov r9, rdx
mov edx, 2
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
call qword [sym.imp.MSVCR90.dll_fread]
test eax, eax
jne 0x14005c3f1
mov eax, 0xfffffffe
jmp 0x14005c403
movzx ecx, word [rsp + 0x30]
mov eax, 2
mov word [rbx], cx
jmp 0x14005c403
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14005c40c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x20], 0
and dword [rax + 8], 0
mov rbx, r8
mov rsi, rcx
test rcx, rcx
je 0x14005c4d3
test rbx, rbx
je 0x14005c4d3
cmp edx, 0x8000
je 0x14005c44e
mov eax, 0xfffffffc
jmp 0x14005c4d6
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.14005c370
test eax, eax
js 0x14005c4d6
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.14005c370
test eax, eax
js 0x14005c4d6
movzx edi, word [rsp + 0x30]
cmp edi, 0x8000
jbe 0x14005c484
mov eax, 0xfffffffb
jmp 0x14005c4d6
mov rdx, rdi
mov r9, rbx
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_fread]
test eax, eax
jne 0x14005c4a4
mov eax, 0xfffffffe
jmp 0x14005c4d6
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call fcn.14005c258
lea rcx, [rsp + 0x30]
mov edx, 4
mov r8d, eax
call fcn.14005c258
mov ecx, 0xfffffffa
cmp eax, dword [rsp + 0x48]
cmovne edi, ecx
mov eax, edi
jmp 0x14005c4d6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005cc78
Capabilities:
Hash data using sha1

Disassembly:
and dword [rcx + 0x14], 0
and dword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
mov eax, 1
ret
Function at 0x14005e230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov rdi, rcx
test rcx, rcx
je 0x14005e30e
test rdx, rdx
jle 0x14005e30e
test rbx, rbx
je 0x14005e30e
mov esi, 0x3c
cmp rdx, rsi
jae 0x14005e283
mov eax, 0x22000009
jmp 0x14005e313
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
mov r9, rdi
mov r8d, 1
mov rdx, rsi
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, 1
je 0x14005e2b6
mov eax, 0x22000005
jmp 0x14005e313
lea rdx, str.MSCF
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.MSVCR90.dll_memcmp
test eax, eax
jne 0x14005e279
test byte [rsp + 0x3e], 4
jne 0x14005e2df
mov eax, 0x2200000e
jmp 0x14005e313
movzx eax, byte [rsp + 0x44]
movzx ecx, byte [rsp + 0x45]
shl cx, 8
or cx, ax
mov eax, shutdown
cmp ax, cx
jne 0x14005e2d8
lea rdx, [rsp + 0x20]
mov r8, rsi
mov rcx, rbx
call fcn.14028a8de
xor eax, eax
jmp 0x14005e313
mov eax, 0x22000001
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14028a900
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140066b10
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.14028b850
sub rsp, rax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x28], 0
je 0x140066bab
cmp qword [rsp + 0x48], 0
je 0x140066bab
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x30]
and eax, 0
test eax, eax
je 0x140066b7a
movsxd rdx, dword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r9, qword [r9 + 0x40]
mov r8d, 1
mov rcx, qword [rsp + 0x48]
call sub.MSVCR90.dll_fwrite
mov dword [rsp + 0x20], eax
jmp 0x140066b9c
movsxd rdx, dword [rsp + 0x50]
mov r9, qword [rsp + 0x40]
mov r9, qword [r9 + 0x40]
mov r8d, 1
mov rcx, qword [rsp + 0x48]
call sub.MSVCR90.dll_fwrite
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140066bab
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret