joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400692f0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
nop
cmp word [0x140000000], 0x5a4d
je 0x14006932d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x1400693bb
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x140069351
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x1400693bb
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x140069398
cmp ecx, 0x20b
je 0x140069370
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x1400693bb
cmp dword [rax + 0x84], 0xe
ja 0x140069384
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x1400693bb
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x1400693bb
cmp dword [rax + 0x74], 0xe
ja 0x1400693a9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x1400693bb
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x1406a66a0], 0xffffffffffffffff
mov qword [0x1406a66c0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x1406a3890]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x1406a3894]
mov dword [rcx], eax
call fcn.1400695d0
cmp dword [0x1406a66e0], 0
jne 0x140069415
lea rcx, [0x1400695e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x14019b3c8]
lea rcx, [0x14019b3c0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x1406a3898]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1406a389c]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x14019b3b8]
lea rcx, [0x14019b3b0]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x1400694b6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x1400694a6
cmp al, 0x22
je 0x1400694a6
jmp 0x140069490
cmp byte [r8], 0x22
jne 0x1400694c6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x1400694c6
cmp byte [r8], 0x20
jbe 0x1400694c6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x1400694b6
movzx eax, byte [r8]
test al, al
je 0x1400694dc
cmp al, 0x20
ja 0x1400694dc
inc r8
mov qword [rsp + 0x30], r8
jmp 0x1400694c6
test byte [rsp + 0x8c], 1
je 0x1400694f1
movzx r9d, word [rsp + 0x90]
jmp 0x1400694f7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.14005ff1b
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x140069513
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x140069537
mov eax, edi
jmp 0x140069540
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x14006a05c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbp, rax
test rax, rax
je 0x14006a122
lea rcx, [0x1406a6720]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1406a38b0]
jmp 0x14006a0e6
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14006a0e3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1406a38b0]
mov rdx, rsi
call fcn.1400bba74
jmp 0x14006a0e6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006a0b3
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x1406a38b0]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.1400bbabc
lea rcx, [0x1406a6720]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x14006a238
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14006a1c8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
lea rcx, [0x1406a6720]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1406a38b0]
jmp 0x14006a274
cmp qword [rbx + 0x18], rdi
je 0x14006a27b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006a26b
jmp 0x14006a295
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1406a38b0]
call fcn.1400bba74
lea rcx, [0x1406a6720]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x14006a940
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x14006a940
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x1406a38b8]
mov esi, r8d
xor r14d, r14d
call fcn.1400bb054
mov rbx, rax
test rax, rax
je 0x14006ab25
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x14006aa26
mov rcx, r15
call fcn.14006aca8
jmp 0x14006a9a4
mov ecx, 0xa
call qword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x14006a999
mov rcx, qword [rbx + 0x20]
call fcn.14006b29c
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.14006a888
lea rax, [rsp + 0x88]
lea r8, [0x14006ab40]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x14006aa01
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 0xffffffff
je 0x14006aa10
mov edx, esi
mov rcx, r15
call fcn.14006adb0
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x14006aad1
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14006aade
mov rcx, rax
call fcn.14006a7e4
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.1400bbabc
mov rcx, qword [0x1406a38e8]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14006ab25
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x14006aabb
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.14006adb8
jmp 0x14006aac9
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x14006ab25
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x14006ab03
mov edx, esi
mov rcx, r15
call fcn.14006adb0
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x14006ab25
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006b434
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14006b4ab
movsxd rdx, ecx
lea rcx, [0x14006b390]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1406a3938]
test rbx, rbx
je 0x14006b51e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14006b4a1
cmp byte [rbx + 0x20], 0
je 0x14006b4a1
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 0x14006b467
jmp 0x14006b51e
mov rbx, qword [0x1406a3938]
test rbx, rbx
je 0x14006b51e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14006b516
cmp byte [rbx + 0x21], 0
je 0x14006b4da
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14006b506
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, [0x1406a3938]
call fcn.1400bba74
mov rbx, rdi
test rdi, rdi
jne 0x14006b4b7
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14006bad0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1406a6cc0]
call fcn.1400bb054
test rax, rax
je 0x14006bb0d
cmp dword [rax + 0x28], 0
je 0x14006bb0d
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.14006b6f0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400bcb90
Function at 0x1400894c4
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x1400899ec
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x140089b03
cmp edx, 2
je 0x140089b03
mov rcx, qword [0x1406a23c8]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140089aeb
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140089ae4
test edi, edi
jne 0x140089aa4
mov rcx, qword [0x1406a23c8]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140089ae4
cmp ax, 0xd
je 0x140089ac4
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x140089a79
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140153270
jmp 0x140089bcb
mov r8, rcx
mov rcx, qword [0x1406a23c8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140089bac
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140089ba4
test edi, edi
jne 0x140089b6a
mov rcx, qword [0x1406a23c8]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140089ba4
cmp al, 0xd
je 0x140089b84
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x140089b42
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140089bc6
call fcn.1401532d0
jmp 0x140089bcb
call fcn.1401530a0
mov rcx, qword [0x1406a23c8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140089564
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1400895cb
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400895bd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x1400895c7
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x1400895cb
jmp 0x140089588
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140089634
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x140089662
dec edi
mov edx, ebx
mov ecx, edi
call fcn.1400bca50
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140089798
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 [0x1406a6d60]
call fcn.1400bae50
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 0x140089895
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x1400897ef
add rax, 2
cmp word [rax], 0x20
je 0x1400897e5
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14008982d
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14008986d
cmp cx, r9w
je 0x14008981f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14008980d
cmp word [rax], bp
je 0x14008986d
mov rcx, rax
add rax, 2
jmp 0x140089875
test dx, dx
je 0x140089872
mov rbx, rax
cmp dx, 0x20
je 0x14008981f
add rax, 2
cmp word [rax], r9w
jne 0x140089863
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14008986d
cmp cx, r9w
je 0x140089863
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140089851
movzx edx, word [rax]
test dx, dx
jne 0x140089835
jmp 0x14008981f
mov rcx, rax
jmp 0x140089875
mov r8d, ebp
cmp dword [r14], esi
jne 0x14008987f
test rdi, rdi
jne 0x14008989f
test r8d, r8d
je 0x140089886
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x1400897df
test rdi, rdi
jne 0x1400898b4
movsxd rax, esi
jmp 0x1400898b6
test rbx, rbx
je 0x1400898b4
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x1400898b6
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 0x1400898cc
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1406a6d60]
call fcn.1400bae50
xor ecx, ecx
add rsp, 0x28
jmp fcn.140089798

Function at 0x140089960
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1406a6d60]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.1400bae50
test ebx, ebx
js 0x14008998f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140089798
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.1400bca50
mov ecx, ebp
jmp 0x1400899cb
test edi, edi
je 0x1400899d0
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x1400899be
inc ecx
jmp 0x1400899c5
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x1400899ad
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400bcbd0
Function at 0x1400899ec
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x1400899ec
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x140089b03
cmp edx, 2
je 0x140089b03
mov rcx, qword [0x1406a23c8]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140089aeb
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140089ae4
test edi, edi
jne 0x140089aa4
mov rcx, qword [0x1406a23c8]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140089ae4
cmp ax, 0xd
je 0x140089ac4
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x140089a79
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.140153270
jmp 0x140089bcb
mov r8, rcx
mov rcx, qword [0x1406a23c8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x140089bac
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140089ba4
test edi, edi
jne 0x140089b6a
mov rcx, qword [0x1406a23c8]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140089ba4
cmp al, 0xd
je 0x140089b84
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x140089b42
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140089bc6
call fcn.1401532d0
jmp 0x140089bcb
call fcn.1401530a0
mov rcx, qword [0x1406a23c8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008ed5c
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov r12d, ecx
test rdx, rdx
je 0x14008ee8c
mov rcx, qword [0x1406a23c8]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea ebp, [rbx + 1]
mov rcx, r15
or dword [rax + 4], 0xffffffff
mov dword [rax], ebp
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ecx
mov eax, dword [0x14069c190]
mov dword [rdi + 0x44], eax
mov eax, dword [0x1406a3de8]
mov dword [rdi + 0x80], r12d
mov dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x78], rax
test bpl, cl
je 0x14008ee7d
test rsi, rsi
je 0x14008ee36
mov rcx, qword [0x1406a23c8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14008ee30
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x70], rbx
je 0x14008ee73
lea rax, [rsp + 0x68]
lea r8, [0x14008eea8]
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 0x14008ee6b
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14008ee6f
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x14008ee89
mov rcx, rdi
call fcn.14008e808
jmp 0x14008ee8c
mov rcx, rdi
mov qword [rdi + 0x70], r14
call fcn.14008e8a4
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14008f618
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14008f52c]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400bb17c
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1406a3df8], rax
call fcn.1400baee8
xor ebx, ebx
cmp word [0x1406a3df0], bx
mov qword [0x1406a6f00], rax
jne 0x14008f73b
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1406a3df0], di
test eax, eax
je 0x14008f689
mov word [0x1406a3df0], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov qword [0x1406a3e20], rax
test rax, rax
je 0x14008f73b
lea rdx, [0x14017dae0]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x1406a3e20]
lea rdx, [0x14017daf0]
mov qword [0x1406a3e00], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x1406a3e20]
lea rdx, str.getnameinfo
mov qword [0x1406a3e08], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x1406a3e20]
lea rdx, str.WSAStringToAddressA
mov qword [0x1406a3e10], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp qword [0x1406a3e00], rbx
mov qword [0x1406a3e18], rax
je 0x14008f73b
cmp qword [0x1406a3e08], rbx
je 0x14008f73b
cmp qword [0x1406a3e10], rbx
je 0x14008f73b
mov ecx, dword [0x1406a3df4]
test rax, rax
cmovne ecx, edi
mov dword [0x1406a3df4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x14008f8e4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1406a6680]
call fcn.1400bb054
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14008f964
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14008f929
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14008f964
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400bca50
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.1400bcbd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret