joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400af3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r13d, r9d
mov esi, r8d
mov r12d, edx
mov r15, rcx
mov r14d, ebx
test rcx, rcx
je 0x1400af3fe
lea r8d, [rbx + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rbp, rax
jmp 0x1400af405
mov rbp, qword [0x140119788]
test rbp, rbp
je 0x1400af5ce
mov qword [rsp + 0x80], rdi
lea rdi, [0x14011b180]
test r12d, r12d
jns 0x1400af42e
movzx eax, r12w
neg ax
movzx edx, ax
jmp 0x1400af466
mov eax, 1
test r12d, r12d
lea r9, [rsp + 0x40]
cmovne eax, r12d
lea r8, [0x1400af3a0]
mov edx, SafeArrayGetElemsize
mov rcx, rbp
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.DLL_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rdi
je 0x1400af597
mov r8d, SafeArrayGetElemsize
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
test rax, rax
je 0x1400af597
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x1400af597
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rdi, rax
test rax, rax
je 0x1400af597
cmp esi, 0xffffffff
cmove esi, r13d
test esi, esi
jne 0x1400af4c7
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rdi + 4]
lea r8, [rdi + 6]
mov r11, rbx
mov r9d, ebx
test eax, eax
jle 0x1400af597
mov rdx, r8
mov r10d, eax
mov edi, 0x100
nop dword [rax + rax]
movzx ecx, byte [r8]
mov eax, ebx
test ecx, ecx
cmove ecx, edi
cmp ecx, r9d
jle 0x1400af508
cmp r9d, esi
setl al
jmp 0x1400af50d
cmp ecx, esi
setge al
test eax, eax
je 0x1400af517
mov r11, rdx
mov r9d, ecx
add rdx, 0xe
add r8, 0xe
dec r10
jne 0x1400af4f0
test r11, r11
je 0x1400af597
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400af597
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x1400af597
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rsi, rax
test rax, rax
je 0x1400af597
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov r8d, 1
mov rcx, rsi
mov edx, eax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r14, rax
mov rcx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x80]
test rcx, rcx
je 0x1400af5b6
test r14, r14
je 0x1400af5b6
mov qword [rcx], rbp
jmp 0x1400af5c4
test r15, r15
je 0x1400af5c4
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
test r14, r14
je 0x1400af5ce
mov rax, r14
jmp 0x1400af5f0
test r12d, r12d
jle 0x1400af5da
lea ebx, [r12 - 1]
jmp 0x1400af5e2
cmp r12d, 0xffffffff
cmovl ebx, r12d
mov r8d, ebx
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1400b12e0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x14011be28]
mov rbx, rdx
call fcn.1400065b0
test eax, eax
jne 0x1400b131d
lea r8, [0x1400e346c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x14011b1d0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140040760
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rbp, [rsi + rbx]
lea rbx, [rsi + 4]
xor r14d, r14d
cmp rbx, rbp
ja 0x1400b13e2
mov r13d, dword [rsi]
test r13d, r13d
je 0x1400b13e2
mov rax, rbx
add rbx, 8
cmp rbx, rbp
ja 0x1400b13e2
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, rbp
ja 0x1400b13e2
mov rdx, r14
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x1400b14a0
test rdi, rdi
je 0x1400b13c9
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
test rax, rax
je 0x1400b1441
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400cb300
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rsi, rbx
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, rbp
jbe 0x1400b1350
cmp dword [0x14011be54], r14d
je 0x1400b141c
cmp qword [0x14011be38], r14
je 0x1400b1408
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
mov eax, 1
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x14011be54], r14d
je 0x1400b1484
cmp qword [0x14011be38], r14
je 0x1400b1470
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, [0x1400e3858]
lea rcx, [0x14011b1d0]
call fcn.140040760
jmp 0x1400b1421
cmp dword [0x14011be54], r14d
je 0x1400b14da
cmp qword [0x14011be38], r14
je 0x1400b14c6
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, str.Out_of_memory.
lea rcx, [0x14011b1d0]
call fcn.140040760
jmp 0x1400b1421
Function at 0x1400b1950
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
movzx ecx, byte [rcx + 0x23]
mov rbx, rdx
test ecx, ecx
je 0x1400b1b90
dec ecx
mov qword [rsp + 0x50], rsi
je 0x1400b19ea
dec ecx
je 0x1400b19b3
dec ecx
je 0x1400b1997
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
je 0x1400b19a1
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x14011be28]
call fcn.140005e70
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x1400b1b2d
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001130
cmp dword [0x14011992c], 0
jne 0x1400b1aeb
cmp qword [rdi + 0x10], 0
jne 0x1400b1aeb
cmp qword [0x14011cd68], rdi
jne 0x1400b1a18
test rbx, rbx
jne 0x1400b1a97
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x1400b1a92
xor esi, esi
mov qword [0x14011cd68], rsi
test rbx, rbx
je 0x1400b1a80
mov edx, dword [0x140119908]
test edx, edx
je 0x1400b1a62
mov r9, qword [rdi + 0x28]
lea r8, str.An_environment_variable_is_being_accessed__see_NoEnv.
lea rcx, [0x14011b1d0]
mov qword [rsp + 0x20], rsi
call fcn.1400411a0
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.1400ae9f0
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x1400b1ad2
cmp byte [rdi + 0x23], 0
jne 0x1400b1aa3
mov rax, qword [rdi + 0x10]
jmp 0x1400b1aa6
mov rax, rdi
test byte [rax + 0x21], 4
je 0x1400b1ab4
mov rcx, rdi
call fcn.1400412f0
xor esi, esi
xor eax, eax
mov word [rbx], si
mov qword [0x14011cd68], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
mov qword [0x14011cd68], rdi
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x1400b1b8b
test r8, r8
jne 0x1400b1b3d
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x1400b1b23
mov rcx, rdi
call fcn.1400412f0
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x1400b1b8b
cmp r8, 0x186a0
jae 0x1400b1b7d
movzx eax, word [rdx]
test ax, ax
je 0x1400b1b73
nop word [rax + rax]
add rdx, 2
mov word [rbx], ax
add rbx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x1400b1b60
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x1400b1b28
mov rcx, rbx
call fcn.1400cb300
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x1400b1b28
mov rcx, qword [rdi + 0x10]
call fcn.1400b1950
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b29b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test r8b, r8b
je 0x1400b29cb
call fcn.140081d90
jmp 0x1400b29db
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
js 0x1400b2a4e
je 0x1400b2a4e
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001a70
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b2a3b
add edi, esi
nop dword [rax]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x1400b2a3b
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001a70
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400b2a10
mov rax, rbx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b54c0
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx ebp, dl
mov rbx, rcx
jne 0x1400b54e7
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
mov qword [rsp + 0x38], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1401144a8]
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call fcn.1400b5b30
cmp byte [rbx], 0
je 0x1400b552f
test rax, rax
jne 0x1400b5538
xor r8d, r8d
movzx edx, bpl
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
jmp fcn.1400b5650
test rax, rax
jne 0x1400b5609
test rdi, rdi
je 0x1400b55cd
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001a70
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b55af
nop dword [rax]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x1400b55af
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001a70
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400b5580
mov rax, qword [0x1401144a8]
mov rsi, qword [rsp + 0x30]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b55cd
mov edx, 1
call fcn.140001a70
cmp byte [rbx], 0
je 0x1400b562c
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rdi
je 0x1400b5609
mov r8, qword [0x1401144a8]
mov rdx, rax
mov rcx, rbx
call fcn.1400b5b30
test rax, rax
je 0x1400b5609
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
cmp byte [rbx], 0
je 0x1400b562c
xor r8d, r8d
movzx edx, bpl
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
jmp fcn.1400b5650
movzx edx, bpl
mov rcx, rbx
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
jmp fcn.1400b58a0
Function at 0x1400caf8c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400cadfc

Function at 0x1400d4a38
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140112e90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400ce708
xor ebx, ebx
cmp qword [0x140117a48], rbx
mov rdi, rax
jne 0x1400d4b4b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400d4c22
lea rdx, [0x1400e29f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x1400d4c22
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140117a48], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140117a50], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140117a58], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
mov r11, rax
mov qword [0x140117a68], rax
test rax, rax
je 0x1400d4b42
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
mov qword [0x140117a60], rax
jmp 0x1400d4b52
mov rax, qword [0x140117a60]
jmp 0x1400d4b59
mov rax, qword [0x140117a60]
mov r11, qword [0x140117a68]
cmp rax, rdi
je 0x1400d4bc0
cmp r11, rdi
je 0x1400d4bc0
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
mov rcx, qword [0x140117a68]
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400d4bc0
test rax, rax
je 0x1400d4bc0
call rsi
test rax, rax
je 0x1400d4bba
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400d4bba
test byte [rsp + 0x40], 1
jne 0x1400d4bc0
bts ebp, 0x15
jmp 0x1400d4c00
mov rcx, qword [0x140117a50]
cmp rcx, rdi
je 0x1400d4c00
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
test rax, rax
je 0x1400d4c00
call rax
mov rbx, rax
test rax, rax
je 0x1400d4c00
mov rcx, qword [0x140117a58]
cmp rcx, rdi
je 0x1400d4c00
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
test rax, rax
je 0x1400d4c00
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140117a48]
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
test rax, rax
je 0x1400d4c22
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400d4c24
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d1940
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d6cb7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140112e90]
jne 0x1400d195a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400d1956
repz ret
ror rcx, 0x10
jmp 0x1400d6c10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140117b90]
call qword [sym.imp.KERNEL32.DLL_RtlCaptureContext]
mov rax, qword [0x140117c88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.DLL_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400d6c95
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140117b90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.DLL_RtlVirtualUnwind
jmp 0x1400d6cb7
mov rax, qword [rsp + 0x88]
mov qword [0x140117c88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140117c28], rax
mov rax, qword [0x140117c88]
mov qword [0x140117b00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140117c10], rax
mov dword [0x140117af0], 0xc0000409
mov dword [0x140117af4], 1
mov rax, qword [0x140112e90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140112e98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
mov dword [0x140117b88], eax
mov ecx, 1
call fcn.1400d475c
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea rcx, [0x1400e33c0]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
cmp dword [0x140117b88], 0
jne 0x1400d6d3e
mov ecx, 1
call fcn.1400d475c
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001a50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140001ac3
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
test eax, eax
je 0x140001aef
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001aa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400600a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov dword [0x1400b9c60], eax
jmp 0x140001ace
Function at 0x14000aa70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
add rcx, 0x1e0
mov rbx, r8
mov rdi, rdx
call fcn.140014440
xor edx, edx
mov rcx, rdi
mov r8d, dword [rax]
mov eax, ebx
sub eax, edi
test rbx, rbx
cmovne edx, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000b690

Function at 0x14000b350
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x14000b36b
mov qword [r8], 0
call fcn.14000b460
mov rbx, rax
test rax, rax
jne 0x14000b381
add rsp, 0x20
pop r15
pop rsi
pop rbx
ret
mov qword [rsp + 0x40], rbp
xor edx, edx
mov qword [rsp + 0x48], rdi
mov r8d, 2
mov rcx, rbx
mov qword [rsp + 0x50], r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b435
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000b435
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b435
lea rcx, [r15 + rdi]
mov rbp, rdi
call fcn.14000d340
mov rdi, rax
test rax, rax
je 0x14000b435
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x14000b40c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.14000d360
jmp 0x14000b43e
test r15d, r15d
jle 0x14000b41f
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call fcn.140061232
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000b430
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14000b440
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rsi
pop rbx
ret
Function at 0x14000b690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x1400b9cf4], 0
lea rdi, [0x1400b9cf0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x14000b768
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x14000b6c0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000b79e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x14000b780
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000b7df
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14000b7c3
cmp byte [r8], r9b
jne 0x14000b7c3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x14000b7b0
not eax
pop rdi
ret
Function at 0x140011d90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400b9c78]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x2d9c], ecx
test rbx, rbx
je 0x140011dff
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140011e10
lea rdx, [0x140063c64]
mov rcx, rbx
mov rdi, rax
call fcn.14000b460
mov rbx, rax
test rax, rax
je 0x140011dfa
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14001de40
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
movzx r9d, cx
mov eax, 0x5e6ea9af
shr ecx, 0x10
mul r8d
mov ebx, r8d
mov esi, r8d
shr edx, 0xb
imul eax, edx, 0x15b0
sub ebx, eax
test r8d, r8d
je 0x14001df8f
mov qword [rsp + 0x20], rdi
xor r11d, r11d
cmp ebx, 7
jbe 0x14001def6
mov edx, 7
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add r11d, 8
add r9d, eax
add edx, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
cmp edx, ebx
jb 0x14001de90
xor edx, edx
xor r8d, r8d
cmp r11d, ebx
jae 0x14001df57
mov eax, ebx
sub eax, r11d
cmp eax, 2
jb 0x14001df44
mov eax, ebx
sub eax, r11d
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea r11d, [r11 + rax*2]
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add edx, r9d
add r10, 2
add r9d, eax
add r8d, r9d
sub rdi, 1
jne 0x14001df20
cmp r11d, ebx
jae 0x14001df51
movzx eax, byte [r10]
add r9d, eax
add ecx, r9d
inc r10
lea eax, [r8 + rdx]
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub esi, ebx
mov ebx, 0x15b0
jne 0x14001de77
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl ecx, 0x10
lea eax, [r9 + rcx]
pop rsi
ret