joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d5c70
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x140164948]
call fcn.1400078b0
test eax, eax
jne 0x1400d5cad
lea r8, [0x14012046c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x140163cc0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140063260
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14, [rsi + rbx]
xor r12d, r12d
lea rbx, [rsi + 4]
cmp rbx, r14
ja 0x1400d5d72
mov r15d, dword [rsi]
test r15d, r15d
je 0x1400d5d72
mov rax, rbx
add rbx, 8
cmp rbx, r14
ja 0x1400d5d72
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, r14
ja 0x1400d5d72
mov rdx, r12
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x1400d5e30
test rdi, rdi
je 0x1400d5d59
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400d5dd1
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400f1320
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, rbp
mov ecx, r15d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r14
jbe 0x1400d5ce0
cmp dword [0x140164974], r12d
je 0x1400d5dac
cmp qword [0x140164958], r12
je 0x1400d5d98
mov rcx, qword [0x140164948]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140164958], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140164974], r12d
mov qword [0x140164948], r12
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x140164974], r12d
je 0x1400d5e14
cmp qword [0x140164958], r12
je 0x1400d5e00
mov rcx, qword [0x140164948]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140164958], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140164974], r12d
mov qword [0x140164948], r12
lea r8, [0x14012046c]
lea rdx, [0x140120af8]
lea rcx, [0x140163cc0]
call fcn.140063260
jmp 0x1400d5db1
cmp dword [0x140164974], r12d
je 0x1400d5e6a
cmp qword [0x140164958], r12
je 0x1400d5e56
mov rcx, qword [0x140164948]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140164958], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140164974], r12d
mov qword [0x140164948], r12
lea r8, [0x14012046c]
lea rdx, str.Out_of_memory.
lea rcx, [0x140163cc0]
call fcn.140063260
jmp 0x1400d5db1
Function at 0x1400d7040
Capabilities:
Log keystrokes

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x38
mov rbx, rcx
test rcx, rcx
je 0x1400d721c
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140163c90]
mov r15d, eax
je 0x1400d7079
mov rcx, rbx
call fcn.1400d86f0
test al, al
jne 0x1400d721c
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1400d709d
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp rbx, rbp
jne 0x1400d70af
mov rax, rbx
add rsp, 0x38
pop r15
pop rsi
pop rbp
pop rbx
ret
cmp byte [0x140160876], 0
jne 0x1400d70cc
mov rdx, rbp
mov rcx, rbx
call fcn.1400d6f80
test rax, rax
jne 0x1400d721e
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r12
xor r12b, r12b
mov qword [rsp + 0x78], r13
xor r13b, r13b
mov qword [rsp + 0x30], r14
test rbp, rbp
je 0x1400d7150
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r14d, eax
test eax, eax
je 0x1400d7155
cmp dword [0x140163c90], eax
je 0x1400d712c
mov rcx, rbp
call fcn.1400d86f0
test al, al
jne 0x1400d712c
mov ecx, dword [0x140163c90]
mov r8d, 1
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne r12b
test r15d, r15d
je 0x1400d7155
cmp r14d, r15d
je 0x1400d7155
mov r8d, 1
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne r13b
jmp 0x1400d7155
mov r14d, dword [rsp + 0x60]
xor edi, edi
nop word [rax + rax]
mov rdx, rbp
mov rcx, rbx
call fcn.1400d6f80
mov rsi, rax
test rax, rax
jne 0x1400d71c2
inc edi
cmp edi, 5
jl 0x1400d7160
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [rax + 2]
call fcn.140020230
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [rsi + 2]
call fcn.140020230
mov rdx, rbp
mov rcx, rbx
call fcn.1400d6f80
mov rsi, rax
mov rdi, qword [rsp + 0x68]
test r12b, r12b
mov r12, qword [rsp + 0x70]
je 0x1400d71e3
mov ecx, dword [0x140163c90]
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
test r13b, r13b
mov r13, qword [rsp + 0x78]
je 0x1400d71fc
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14, qword [rsp + 0x30]
test rsi, rsi
je 0x1400d721c
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rax, rsi
add rsp, 0x38
pop r15
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x38
pop r15
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d7390
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rbx, rcx
test r8b, r8b
je 0x1400d73b0
call fcn.1400997b0
jmp 0x1400d73c0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test esi, esi
cmovns edi, esi
test edi, edi
je 0x1400d7439
mov qword [rsp + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword gs:[0x48]
mov ebp, eax
cmp dword [0x140163c90], esi
jne 0x1400d73f9
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001a10
jmp 0x1400d7404
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d7421
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rdi + rbp]
sub ecx, eax
cmp ecx, 5
jg 0x1400d73e0
mov rbp, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d7650
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x11bf0]
mov eax, 0x11cf0
call fcn.1401119a0
sub rsp, rax
movzx r10d, word [rdx]
mov r11d, 0xffdf
mov rdi, rcx
mov rcx, qword [rbp + 0x11c20]
lea eax, [r10 - 0x41]
test r11w, ax
jne 0x1400d76f8
cmp word [rdx + 2], 0
jne 0x1400d76f8
cmp word [r8], 0
jne 0x1400d76f8
cmp word [r9], 0
jne 0x1400d76f8
cmp word [rcx], 0
jne 0x1400d76f8
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
test rax, rax
je 0x1400d76db
cmp byte [rdi + 0x12a], 0
jne 0x1400d76db
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400d76d9
mov rcx, rbx
call fcn.1400d87a0
test al, al
je 0x1400d76db
xor ebx, ebx
cmp byte [rbp + 0x11c30], 0
je 0x1400d76f0
test rbx, rbx
je 0x1400d76f0
mov qword [rdi + 0xf8], rbx
mov rax, rbx
jmp 0x1400d784d
test r10w, r10w
jne 0x1400d771d
cmp word [r8], r10w
jne 0x1400d771d
cmp word [r9], r10w
jne 0x1400d771d
cmp word [rcx], r10w
jne 0x1400d771d
mov rcx, rdi
call fcn.1400d78a0
jmp 0x1400d784d
xor ebx, ebx
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x20], r9
mov r9, r8
mov dword [rsp + 0x30], ebx
mov r8, rdx
mov byte [rbp + 0x1789], bl
lea rax, [0x14012046c]
mov dword [rbp + 0x178c], ebx
mov rdx, rdi
mov qword [rbp + 0xf48], rax
lea rcx, [rsp + 0x30]
movdqa xmmword [rbp + 0x1790], xmm0
mov qword [rbp + 0x17a0], rbx
mov dword [rbp + 0x17a8], ebx
mov qword [rbp + 0x17b0], rbx
movdqa xmmword [rbp + 0x17c0], xmm0
call fcn.1400d8980
test eax, eax
je 0x1400d784b
test byte [rsp + 0x30], 2
movzx eax, byte [rbp + 0x11c28]
mov byte [rbp + 0x1789], al
mov rax, qword [rbp + 0x11c38]
mov qword [rbp + 0x17a0], rax
mov eax, dword [rbp + 0x11c40]
mov dword [rbp + 0x17a8], eax
je 0x1400d7862
mov rbx, qword [rbp + 0xf68]
cmp rbx, 0xffff
je 0x1400d7820
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d784b
cmp byte [rdi + 0x12a], 0
mov rbx, qword [rbp + 0xf68]
jne 0x1400d7820
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400d7801
mov rcx, rbx
call fcn.1400d87a0
test al, al
je 0x1400d7819
mov rcx, qword [rbp + 0xf68]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1e
jae 0x1400d784b
mov rbx, qword [rbp + 0xf68]
cmp qword [rbp + 0x17c8], rbx
je 0x1400d783a
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x17c8], rbx
call fcn.1400d8ec0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400d8fd0
test rax, rax
jne 0x1400d7874
xor eax, eax
lea r11, [rsp + 0x11cf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rdx, [rsp + 0x30]
lea rcx, [0x1400d7990]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rbp + 0x11c30], 0
mov rax, qword [rbp + 0x1790]
je 0x1400d784d
test rax, rax
je 0x1400d784d
mov qword [rdi + 0xf8], rax
jmp 0x1400d784d
Function at 0x1400d8ec0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1898]
test rcx, rcx
je 0x1400d8fbc
mov eax, dword [rbx]
test eax, eax
je 0x1400d8fbc
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400d8eff
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x1400d8f1d
mov r8d, 0x7fff
lea rdx, [rbx + 0x18ac]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400d8f1d
mov word [rbx + 0x18ac], si
mov eax, dword [rbx]
test al, 4
je 0x1400d8f39
mov rcx, qword [rbx + 0x1898]
lea rdx, [rbx + 0x18a8]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rbx]
test al, 0x20
je 0x1400d8f76
mov rcx, qword [rbx + 0x1898]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400d8f76
movzx r9d, byte [rbx + 0x1858]
lea rdx, [rbx + 0x11aac]
mov ecx, dword [rsp + 0x30]
call fcn.140095220
test eax, eax
jne 0x1400d8f76
mov word [rbx + 0x11aac], si
mov eax, dword [rbx]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
test al, 8
je 0x1400d8fa2
mov rcx, qword [rbx + 0x1898]
lea rdx, [rbx + 0x118aa]
mov r8d, 0x101
call qword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [rbx]
bt eax, 8
jae 0x1400d8fbc
mov rcx, qword [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetParent]
mov qword [rbx + 0x18a0], rax
add rsp, 0x20
pop rbx
ret

Function at 0x1400d97a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11ce8
call fcn.1401119a0
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400d987c
xor r9d, r9d
mov byte [rsp + 0x18a8], dl
xorps xmm0, xmm0
mov dword [rsp + 0x20], r9d
lea rcx, [0x14012046c]
mov byte [rsp + 0x1879], r9b
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400da240]
mov dword [rsp + 0x187c], r9d
movdqa xmmword [rsp + 0x1880], xmm0
mov qword [rsp + 0x1890], r9
mov dword [rsp + 0x1898], r9d
movdqa xmmword [rsp + 0x18b0], xmm0
mov qword [rsp + 0x18a0], rax
mov dword [rsp + 0x18ac], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1880], 0
je 0x1400d987c
mov rax, qword [0x14015bc10]
cmp dword [rax + 0x74], 0xffffffff
jle 0x1400d987c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140163c90], eax
mov rax, qword [0x14015bc10]
mov ecx, dword [rax + 0x74]
je 0x1400d9872
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add rsp, 0x11ce8
ret
mov edx, 1
call fcn.140001a10
mov eax, 1
add rsp, 0x11ce8
ret
Function at 0x1400d9890
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push rbx
push r15
sub rsp, 0x28
cmp qword [rcx + 0x10], 0
movzx r15d, dl
mov rbx, rcx
jne 0x1400d98b3
mov eax, 1
add rsp, 0x28
pop r15
pop rbx
ret
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x14015bc10]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.1400d9fd0
cmp byte [rbx], 0
mov rbp, rax
je 0x1400d98ea
test rax, rax
jne 0x1400d98f3
jmp 0x1400d99b8
test rbp, rbp
jne 0x1400d99b8
test rdi, rdi
je 0x1400d99b8
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword gs:[0x48]
mov r14d, eax
nop word [rax + rax]
cmp dword [0x140163c90], esi
jne 0x1400d9949
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001a10
jmp 0x1400d9954
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d9977
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, r14d
sub ecx, eax
add ecx, 0x1f4
cmp ecx, 5
jg 0x1400d9930
mov rax, qword [0x14015bc10]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
cmp dword [rax + 0x74], 0xffffffff
jle 0x1400d99b8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140163c90], eax
mov rax, qword [0x14015bc10]
mov ecx, dword [rax + 0x74]
je 0x1400d99ae
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d99b8
mov edx, 1
call fcn.140001a10
cmp byte [rbx], 0
movzx edx, r15b
mov rdi, qword [rsp + 0x50]
mov rcx, rbx
je 0x1400d99e0
xor r9d, r9d
mov r8, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x28
pop r15
pop rbx
jmp fcn.1400d9a00
mov rbp, qword [rsp + 0x40]
add rsp, 0x28
pop r15
pop rbx
jmp fcn.1400d9ca0
Function at 0x1400d9ca0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x11cf0
call fcn.1401119a0
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx esi, dl
mov rdi, rcx
je 0x1400d9ef4
xor edx, edx
call fcn.1400d9f10
test eax, eax
jne 0x1400d9ce0
mov rsi, qword [rsp + 0x11d10]
add rsp, 0x11cf0
pop rdi
ret
mov qword [rsp + 0x11d00], rbx
mov qword [rsp + 0x11d08], rbp
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x14015bc10]
mov rcx, rdi
mov rdx, rax
mov rbp, rax
call fcn.1400d9fd0
mov ecx, dword [0x140162c34]
xor ebx, ebx
test rax, rax
mov dword [rsp + 0x30], ebx
lea rax, [0x14012046c]
mov dword [rsp + 0x188c], ebx
cmovne ecx, ebx
mov qword [rsp + 0x1048], rax
mov dword [0x140162c34], ecx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x1890], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x18c0], xmm1
test sil, sil
je 0x1400d9d61
mov byte [rsp + 0x1889], bl
test ecx, ecx
je 0x1400d9d69
mov byte [rsp + 0x1889], 1
mov rax, qword [0x140162c40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x18a0], rax
mov rax, qword [rdi + 0x10]
mov dword [rsp + 0x18a8], ecx
lea rcx, [0x1400da0d0]
mov qword [rsp + 0x18b0], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1890]
test rax, rax
je 0x1400d9eac
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400d8690]
mov qword [rsp + 0x28], rbx
call qword [sym.imp.USER32.dll_EnumWindows]
mov r9, qword [rsp + 0x28]
test r9, r9
je 0x1400d9e20
movsxd rdx, dword [0x140162c34]
mov ecx, ebx
mov r8, qword [rsp + 0x1890]
mov r10, qword [0x140162c40]
test edx, edx
jle 0x1400d9e02
mov rax, r10
cmp qword [rax], r8
je 0x1400d9e16
inc ecx
add rax, 8
cmp ecx, edx
jl 0x1400d9df3
cmp edx, 0x1f4
jge 0x1400d9e16
mov qword [r10 + rdx*8], r8
inc edx
mov dword [0x140162c34], edx
mov qword [rsp + 0x1890], r9
jmp 0x1400d9e28
mov r9, qword [rsp + 0x1890]
mov rcx, r9
call fcn.1400d7040
movsxd rcx, dword [0x140162c34]
mov rdx, qword [rsp + 0x1890]
mov r8, qword [0x140162c40]
test ecx, ecx
jle 0x1400d9e5f
mov rax, r8
nop dword [rax]
cmp qword [rax], rdx
je 0x1400d9e73
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400d9e50
cmp ecx, 0x1f4
jge 0x1400d9e73
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x140162c34], ecx
mov rax, qword [0x14015bc10]
cmp dword [rax + 0x74], 0xffffffff
jle 0x1400d9ee4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140163c90], eax
mov rax, qword [0x14015bc10]
mov ecx, dword [rax + 0x74]
je 0x1400d9ea0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d9ee4
mov edx, 1
call fcn.140001a10
jmp 0x1400d9ee4
mov ecx, dword [0x140162c34]
test ecx, ecx
je 0x1400d9ee4
cmp ecx, 1
mov dword [0x140162c34], ebx
setg cl
test cl, cl
je 0x1400d9ee4
mov rcx, qword [0x140162c40]
xor edx, edx
mov dword [0x140162c34], 1
mov qword [rcx], rbp
mov rcx, rdi
call fcn.1400d9ca0
mov rbx, qword [rsp + 0x11d00]
mov rbp, qword [rsp + 0x11d08]
mov rsi, qword [rsp + 0x11d10]
mov eax, 1
add rsp, 0x11cf0
pop rdi
ret
Function at 0x140101a24
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140101883
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140101883
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140101883
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140101883
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140101883
cmp dword [rcx + 0x84], 0xe
jbe 0x140101883
cmp dword [rcx + 0xf8], 0
je 0x140101883
mov ecx, ebx
call fcn.140101940
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140101710
nop
cmp dword [rbp + 0x20], 0
je 0x1401018d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401018dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140101814

Function at 0x140103634
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401119a0
sub rsp, rax
mov rax, qword [0x14015b038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401077e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140103683
mov rax, rbp
jmp 0x14010378b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x15f750]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14010970c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x15f750]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140103787
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140103787
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14010970c
test rax, rax
js 0x140103787
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140103787
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140103779
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140103779
cmp byte [rcx], 0xd
jne 0x14010375f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14010376e
cmp byte [rcx + 1], 0xa
jne 0x14010376e
inc rcx
jmp 0x14010376e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15b340]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140103741
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14010378b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140111810
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401097b8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14015f750]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140109816
cmp word [rdx], r12w
jne 0x140109816
or byte [rax + r8*8 + 0x38], cl
jmp 0x14010981c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140109977
mov r9d, DispGetParam
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140109952
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140109855
mov rcx, r9
jmp 0x140109878
cmp r9, rdx
jae 0x14010988f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, DispGetParam
add rbx, 2
cmp rcx, rdx
jb 0x140109839
jmp 0x140109977
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14010994c
cmp dword [rsp + 0x80], edi
je 0x14010994c
mov rdx, r14
lea r11, [0x14015f750]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140109925
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401098f8
mov word [rbx], r12w
jmp 0x140109973
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140109901
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140109973
cmp word [rsp + 0x70], r12w
jne 0x140109932
cmp rbx, rsi
je 0x1401098f2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140109714
cmp word [rsp + 0x70], r12w
je 0x140109977
mov word [rbx], r13w
jmp 0x140109973
lea r11, [0x14015f750]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14010996f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140109977
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14010a1cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14010a1fe
call fcn.140102b24
mov dword [rax], reloc.WSOCK32.dll_shutdown
call fcn.140102494
jmp 0x14010a31d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14010a31d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14010a31d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14010a22d
lock or dword [rcx + 0x14], 0x10
jmp 0x14010a31d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14010a241
call fcn.14010fe4c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1401077e0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140109c64
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14010a30b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14010a2d6
mov rcx, rsi
call fcn.1401077e0
cmp eax, edi
je 0x14010a2c1
mov rcx, rsi
call fcn.1401077e0
cmp eax, 0xfffffffe
je 0x14010a2c1
mov rcx, rsi
call fcn.1401077e0
movsxd rbx, eax
lea r14, [0x14015f750]
mov rcx, rsi
sar rbx, 6
call fcn.1401077e0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14010a2c8
lea rdx, [0x14015b2f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14010a2d6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14010a2fa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14010a2fa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14010a2fa
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14010a320
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret