joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010ac80
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14010ac9c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14010acf0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14010ae15
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x14010ae15
test rax, rax
je 0x14010ae15
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x14010ae15
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x14010ad8a
lea rax, [0x14010ae70]
jmp 0x14010ade3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14010ae15
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14010ae03
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x14010adb0
lea rax, [0x14010ae40]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x14010ae2a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x14010bb70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14010bb7b
xor eax, eax
ret
lea r11, [0x140132580]
not ecx
cmp r8d, 8
jb 0x14010bc51
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14010bba0
test r8d, r8d
je 0x14010bc7d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14010bc60
not ecx
mov eax, ecx
ret
Function at 0x14010f84c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14010f886
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14010f88b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14010f8d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140132cd0]
cmp byte [rcx + rax], 0
je 0x14010f8d4
dec r8
sub rdx, 1
jne 0x14010f8ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140110dcc
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
ret
Function at 0x140001e3c
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
jmp 0x14000522d
mov ecx, 0xc1
call qword [0x14007cdf7]
xor eax, eax
jmp 0x14000522d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x140001efd
jmp 0x140006ac4
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
jmp 0x14000588e
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x38]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x48], 0
and al, 0x48
add byte [rax], al
add byte [rax], al
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call fcn.140005f5b
jmp 0x140006126
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x1400040b3
jmp 0x140006e69
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x140001aaf
jmp 0x14000573c
xor eax, eax
jmp 0x14000522d
test eax, eax
jne 0x140005e1d
jmp 0x140001542
mov ecx, 0xc1
call qword [0x140080e81]
xor eax, eax
jmp 0x14000522d
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x30], rax
mov edx, 0x40
mov rcx, qword [rsp + 0x108]
call fcn.140005f5b
jmp 0x140004f88
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14000162b
jmp 0x14000396b
test eax, eax
je 0x14000427f
jmp 0x140003d85
mov ecx, 0xc1
call qword [0x1400821e8]
xor eax, eax
jmp 0x14000522d
mov ecx, 0xc1
call qword [0x1400825d0]
xor eax, eax
jmp 0x14000522d
Function at 0x140004762
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
jmp 0x14000607d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
jmp 0x140004f41
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140005978
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x1a0]
jmp 0x1400027c6
jmp 0x140007945
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jb 0x140002c1b
jmp 0x140006b79
Function at 0x140006832
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140003681
jmp 0x140006992
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.140007d71
jmp 0x140005a1b
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x1400057d3
jmp 0x1400057d3
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1400031ed
jmp 0x1400033ef
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140006689
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
je 0x1400047fd
jmp 0x140006689
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x1400019a0
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140006992
jmp 0x140003681
test eax, eax
je 0x140005a44
jmp 0x140004584
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1400047fd
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400056b5
jmp 0x140004584
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140003cf8
mov rcx, qword [rsp + 0x70]
call fcn.1400020dc
jmp 0x14000307b
Function at 0x1408f4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408f41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408f4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f406f
add dl, dl
jne 0x1408f4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f40f6
xor eax, eax
add dl, dl
jne 0x1408f40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f41ad
add dl, dl
jne 0x1408f40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408f40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408f407e
mov eax, 1
add dl, dl
jne 0x1408f4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f40fb
sub eax, ebx
mov ebx, 1
jne 0x1408f414c
mov ecx, 1
add dl, dl
jne 0x1408f412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408f413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408f4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408f4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f415d
cmp eax, 0x7d00
jae 0x1408f419b
cmp eax, 0x500
jb 0x1408f4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f407e
cmp eax, 0x7f
ja 0x1408f419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408f41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408f407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000bfbc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000c033
movsxd rdx, ecx
lea rcx, [0x14000bf18]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14004f590]
test rbx, rbx
je 0x14000c0a6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000c029
cmp byte [rbx + 0x20], 0
je 0x14000c029
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14000bfef
jmp 0x14000c0a6
mov rbx, qword [0x14004f590]
test rbx, rbx
je 0x14000c0a6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000c09e
cmp byte [rbx + 0x21], 0
je 0x14000c062
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000c08e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14004f590]
call fcn.140010158
mov rbx, rdi
test rdi, rdi
jne 0x14000c03f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000c1b8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14004f820]
call fcn.14000f794
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x14000c2b5
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14000c20f
add rax, 2
cmp word [rax], 0x20
je 0x14000c205
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14000c24d
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14000c28d
cmp cx, r9w
je 0x14000c23f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000c22d
cmp word [rax], bp
je 0x14000c28d
mov rcx, rax
add rax, 2
jmp 0x14000c295
test dx, dx
je 0x14000c292
mov rbx, rax
cmp dx, 0x20
je 0x14000c23f
add rax, 2
cmp word [rax], r9w
jne 0x14000c283
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14000c28d
cmp cx, r9w
je 0x14000c283
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14000c271
movzx edx, word [rax]
test dx, dx
jne 0x14000c255
jmp 0x14000c23f
mov rcx, rax
jmp 0x14000c295
mov r8d, ebp
cmp dword [r14], esi
jne 0x14000c29f
test rdi, rdi
jne 0x14000c2bf
test r8d, r8d
je 0x14000c2a6
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14000c1ff
test rdi, rdi
jne 0x14000c2d4
movsxd rax, esi
jmp 0x14000c2d6
test rbx, rbx
je 0x14000c2d4
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x14000c2d6
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000c2ec
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14004f820]
call fcn.14000f794
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000c1b8

Function at 0x14000cb34
Capabilities:
Reference http user-agent string

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x14000cb44
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r8
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x14000cc09
mov rcx, qword [0x14004f4ec]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x68], esi
mov qword [rdi + 0x40], rax
test sil, r14b
je 0x14000cbf6
lea rax, [rsp + 0x50]
lea r8, [0x14000cdb4]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000cbe9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000cbed
mov esi, dword [rsp + 0x50]
test esi, esi
je 0x14000cc01
mov rbx, rdi
jmp 0x14000cc09
mov rcx, rdi
call fcn.14000cc28
mov rbx, rax
mov rcx, rdi
call fcn.14000ce7c
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14000cb44
Capabilities:
Create thread

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x14000cb44
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r8
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x14000cc09
mov rcx, qword [0x14004f4ec]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x68], esi
mov qword [rdi + 0x40], rax
test sil, r14b
je 0x14000cbf6
lea rax, [rsp + 0x50]
lea r8, [0x14000cdb4]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000cbe9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000cbed
mov esi, dword [rsp + 0x50]
test esi, esi
je 0x14000cc01
mov rbx, rdi
jmp 0x14000cc09
mov rcx, rdi
call fcn.14000cc28
mov rbx, rax
mov rcx, rdi
call fcn.14000ce7c
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000dc30
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
mov edi, 1
cmp dword [0x14004f690], ebx
jne 0x14000dc6b
lea r8, [0x14000db44]
lea edx, [rdi + 0xf]
lea ecx, [rdi + 0x37]
mov dword [0x14004f690], edi
call fcn.14000f8e0
mov qword [0x14004f668], rax
cmp word [0x14004f660], bx
jne 0x14000dd4c
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
mov word [0x14004f660], di
test eax, eax
je 0x14000dc9a
mov word [0x14004f660], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14004f698], rax
test rax, rax
je 0x14000dd4c
lea rdx, [0x140041390]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004f698]
lea rdx, [0x1400413a0]
mov qword [0x14004f670], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004f698]
lea rdx, str.getnameinfo
mov qword [0x14004f678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004f698]
lea rdx, str.WSAStringToAddressA
mov qword [0x14004f680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14004f670], rbx
mov qword [0x14004f688], rax
je 0x14000dd4c
cmp qword [0x14004f678], rbx
je 0x14000dd4c
cmp qword [0x14004f680], rbx
je 0x14000dd4c
mov ecx, dword [0x14004f664]
test rax, rax
cmovne ecx, edi
mov dword [0x14004f664], ecx
movsx rax, word [0x14004f660]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14000df1c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14000e07e
cmp word [rcx], di
je 0x14000e07e
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14000dfbb
cmp word [rsp + 0x22], 0x3a
jne 0x14000dfbb
cmp edx, 2
jne 0x14000dfa2
lea rdx, [0x1400413d4]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000e07e
jmp 0x14000e056
cmp word [rcx], 0x5c
je 0x14000dfc7
cmp word [rcx], 0x2f
jne 0x14000dfd0
mov word [rcx], di
sub rcx, 2
jmp 0x14000dfbb
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14000e017
test byte [rbp + 0x130], 0x10
je 0x14000dffc
mov rbx, 0xfffffffffffffffe
jmp 0x14000e00f
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000e07e
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14000e02c
cmp ax, cx
je 0x14000e042
cmp cx, 0x2f
jne 0x14000e037
cmp ax, cx
je 0x14000e042
cmp cx, 0x2e
jne 0x14000e07e
cmp ax, cx
jne 0x14000e07e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000e05f
test al, 0x10
je 0x14000e07e
mov rbx, 0xfffffffffffffffe
jmp 0x14000e07e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14000e450
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000e494
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret