joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400210a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x140136fcc], 2
movzx r14d, r8b
mov ebx, edx
sete bpl
movzx esi, cx
jne 0x1400210fd
mov eax, esi
mov ecx, esi
and eax, 0xffffff80
je 0x1400210d9
mov edx, gethostbyname
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
movzx esi, word [rsp + 0xa8]
test ebx, ebx
jle 0x140021280
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xb0], r15
xor r15d, r15d
nop dword [rax + rax]
cmp dword [0x140136fcc], r15d
jne 0x14002118c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012f240]
sub eax, dword [0x140136c64]
cmp eax, dword [rcx + 0x118]
jbe 0x14002118c
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140021180
mov edx, 1
mov dword [0x14012f234], r15d
mov ecx, 0xffffffff
call fcn.140001b00
mov dword [0x14012f234], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140136c64], eax
test bpl, bpl
je 0x14002123a
cmp dword [0x140136fcc], r15d
je 0x1400211a7
movzx eax, byte [0x140136d18]
jmp 0x1400211ae
xor ecx, ecx
call fcn.140024620
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140023d80
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x140021219
cmp ax, 0x39
ja 0x140021219
movzx edx, byte [rbx]
xor r8d, r8d
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov ecx, 2
call fcn.1400215d0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x1400211e2
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov ecx, 1
call fcn.1400215d0
jmp 0x140021246
movzx edx, r14b
movzx ecx, si
call fcn.14001f1c0
cmp dword [0x140136fcc], 2
mov rax, qword [0x14012f240]
jne 0x14002125e
mov ecx, dword [rax + 0x80]
jmp 0x140021261
mov ecx, dword [rax + 0x7c]
call fcn.140023890
sub rdi, 1
jne 0x140021120
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x140023af0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140132ad0]
test r10, r10
je 0x140023c2b
movsxd rax, dword [0x140132ba4]
imul r9, rax, 0xd4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140132ba0], eax
sub ecx, dword [0x140136e88]
xorps xmm0, xmm0
mov dword [0x140136e88], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140132ba4]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x14011e540]
mov rcx, qword [0x140132ad0]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140023be0
cmp rax, qword [0x140132b98]
je 0x140023bc4
movsxd rcx, dword [0x140132ba4]
mov r8d, WSAAsyncSelect
imul rdx, rcx, 0xd4
mov rcx, qword [0x140132ad0]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140132ba4]
jmp 0x140023c04
movsxd rdx, dword [0x140132ba4]
mov rax, qword [0x140132ad0]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140023c04
movsxd rdx, dword [0x140132ba4]
movabs r8, 0x41002f004e
mov rax, qword [0x140132ad0]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140132b98], rbx
cmp edx, dword [0x14012f248]
mov rbx, qword [rsp + 0x30]
mov dword [0x140132ba4], edx
jl 0x140023c26
mov dword [0x140132ba4], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140023c30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x140023d7b
cmp ebx, esi
je 0x140023d7b
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140023ca3
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
mov ecx, 1
call fcn.1400215d0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
mov ecx, 2
call fcn.1400215d0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140136030]
sete r14b
jne 0x140023d04
mov edx, 1
mov dword [0x14012f234], 0
mov ecx, 0xffffffff
call fcn.140001b00
mov dword [0x14012f234], 1
cmp dil, 0x14
jne 0x140023d5f
cmp esi, 2
jne 0x140023d5f
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140023d5f
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.WSOCK32.dll_recv
mov ecx, esi
call fcn.1400215d0
test r14b, r14b
je 0x140023d5f
mov edx, 1
mov dword [0x14012f234], 0
mov ecx, 0xffffffff
call fcn.140001b00
mov dword [0x14012f234], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x140023d66
Function at 0x140024620
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140132ae0], 0
je 0x14002463e
test cl, cl
jne 0x14002463e
movzx eax, byte [0x140132bae]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor esi, esi
mov ecx, reloc.WSOCK32.dll_recv
test ax, ax
cmovns ecx, esi
movzx ebx, cl
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x20
movzx edx, cl
test ax, ax
mov ecx, 0xa2
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
test ax, ax
mov ecx, 0xa3
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
test ax, ax
mov ecx, 0xa4
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
test ax, ax
mov ecx, 0xa5
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
test ax, ax
mov ecx, 0x5b
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
test ax, ax
mov ecx, 0x5c
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx edi, cl
cmovns edi, ebx
cmp qword [0x140132ae0], rsi
je 0x140024790
movzx ecx, byte [0x140132bae]
movzx ebx, dil
not bl
and bl, cl
je 0x140024790
movzx edx, byte [0x140132baa]
movzx eax, bl
not al
and byte [0x140132bab], al
and cl, al
and dl, al
mov byte [0x140132bae], cl
lea rcx, [0x140133950]
mov byte [0x140132baa], dl
call fcn.1400247b0
mov rcx, qword [0x140133ae0]
test rcx, rcx
je 0x140024790
test byte [rcx + 0xc], bl
je 0x140024790
mov qword [0x140133ae0], rsi
mov rsi, qword [rsp + 0x38]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140024bb0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140024d80
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x140110f90]
mov eax, dword [0x140110fe0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140110fa0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140110fb0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140110fc0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x140110fd0]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140110fe4]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140024d40
lea rax, [rbp + 0x200]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024d3c
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x140024d3c
mov edx, dword [rbp + 0x1f8]
test edx, edx
je 0x140024d3c
shr edx, 1
mov ecx, edx
dec edx
cmp word [rbp + rdx*2 - 0x50], di
jne 0x140024d1a
test edx, edx
je 0x140024d40
mov ecx, edx
mov r8d, edx
nop word [rax + rax]
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rbp + rax*2 - 0x50], di
jne 0x140024d29
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140024d00
jmp 0x140024d29
cmp ecx, 0x104
jae 0x140024d3c
mov word [rbp + rcx*2 - 0x50], di
mov edx, ecx
test edx, edx
je 0x140024d40
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140024d40
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140024d50
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140024d80
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024d77
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400254c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edi, cx
movzx esi, r9b
mov rbx, rdx
cmp edi, 0xa
jne 0x1400254f0
mov al, 0xd
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
mov qword [rsp + 0x30], rbp
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rbp, ax
mov rcx, rbp
shr rcx, 8
cmp cl, 0xff
jne 0x140025568
cmp bpl, 0xff
jne 0x140025568
test sil, sil
je 0x14002556d
test edi, 0xffffff80
jne 0x14002556d
mov edx, 0x103
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
je 0x14002556d
mov edx, 2
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx r9d, dil
mov ecx, edi
movzx edx, r9b
and dl, 0xdf
movzx ebp, dl
test eax, eax
mov edx, 1
cmove ebp, r9d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
test eax, eax
setne cl
test cl, 0x38
je 0x140025571
xor al, al
jmp 0x1400255b8
test rbx, rbx
je 0x1400255b4
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140025584
or byte [rbx], 8
jmp 0x1400255a4
test cl, 2
je 0x140025594
movzx eax, byte [rbx]
test al, 3
jne 0x140025594
or al, 1
mov byte [rbx], al
test cl, 4
je 0x1400255a4
movzx eax, byte [rbx]
test al, 0xc
jne 0x1400255a4
or al, 4
mov byte [rbx], al
test cl, 1
je 0x1400255b4
movzx eax, byte [rbx]
test al, 0x30
jne 0x1400255b4
or al, 0x10
mov byte [rbx], al
movzx eax, bpl
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140026810
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov eax, ebx
cmp ebx, 0x11c
ja 0x1400268ee
je 0x1400268e6
sub eax, 0x1d
cmp eax, 0x36
ja case.0x140026913.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x269e4]
mov ecx, dword [rdx + rax*4 + 0x26998]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_ioctlsocket
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_send
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x140026913.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x26a44]
mov ecx, dword [rdx + rax*4 + 0x26a1c]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_WSAGetLastError
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
bt bx, 8
jae 0x14002697c
movzx ecx, bl
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x140026990
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret
jns 0x140225825
out 0x50, eax
fcomp qword [rcx + 0xd]
mov ah, 0xaf
ret 0x8697
mov al, 0xba
outsd dx, dword [rsi]
sub dword [rbp + rdx - 0x52], eax
lodsb al, byte [rsi]
movsd dword [rdi], dword [rsi]
adc eax, 0x38e9bc4d
or ebx, dword [rdx]
sub ebx, 0xffffffa3
invalid
sbb al, byte [rbx + 0x5d1ea3eb]
or al, 0xc0
mov dl, 0xfa
invalid
out 0xb9, eax
out 0xf9, al
sbb eax, 0xb73c18fe
ret
mov bh, 0xc3
jne 0x140225819
xchg r12, rax
jo 0x1402257b2
vpsubb ymm6, ymm9, ymm5
cmc
lodsb al, byte [rsi]
imul esi, edx, 0x6b
loop 0x1402257d1
test dword [rcx], esp
pushfq
mov edx, 0x7197dec2
and dword [rdx + rdi*4 + 0x7197dec2], ebx
invalid
adc ah, byte [rsi]
and bl, bh
invalid
wait
mov ss, word [rdi]
invalid
mov edi, dword [rsi + 0x6b]
jle 0x140225893
jne 0x1402257ea
mov ch, 0x89
invalid
adc eax, dword [rcx - 4]
jp 0x140225846
cmpsd dword [rsi], dword [rdi]
invalid
imul esp, dword [rcx], 0x195b031e
dec dword [rcx]
jbe 0x1402257fe
ret 0x5baf
Function at 0x140028580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x1400fccc0]
mov r9, rdx
not ecx
cmp r8d, 8
jb 0x140028651
mov r10d, r8d
shr r10, 3
nop dword [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 0x1400285a0
test r8d, r8d
je 0x14002867d
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 0x140028660
not ecx
mov eax, ecx
ret

Function at 0x140028a80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 1
mov r10, rdx
mov esi, r8d
mov rdi, rcx
jne 0x140028ae9
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140028ad3
mov dword [rdi + 0x10], 7
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdi + 0x18]
lea rax, [rcx + rsi]
cmp rax, rdx
jbe 0x140028afe
mov esi, edx
sub esi, ecx
mov rdx, qword [rdi + 8]
add rdx, rcx
mov r8d, esi
mov rcx, r10
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x20], rbx
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140028b30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x50], ebx
cmp dword [rcx + 0x10], ebx
jne 0x140028c05
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
mov esi, 4
jne 0x140028b87
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140028b81
mov dword [rdi + 0x10], 7
jmp 0x140028bc7
mov ebx, dword [rsp + 0x58]
jmp 0x140028bc7
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 4]
cmp rax, rcx
jbe 0x140028ba2
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x140028bfa
movzx ecx, byte [rsp + 0x52]
movzx eax, byte [rsp + 0x53]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x51]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x50]
shl eax, 8
or eax, ecx
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x14002b750
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x78
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x88]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14002b77f
mov eax, 1
add rsp, 0x78
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x38]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x70], rdi
mov ecx, r9d
mov r10d, r8d
or ecx, 2
mov edi, 0x41000000
test r8b, 2
cmove ecx, r9d
mov edx, ecx
or edx, 4
test r8b, 4
cmove edx, ecx
mov eax, edx
or eax, 0x10
and r10d, 0x10
cmove eax, edx
mov ecx, eax
or ecx, 0x20
test r8b, 0x20
cmove ecx, eax
test r10d, r10d
mov eax, 0x81000000
cmove edi, eax
or edi, ecx
test r9d, r9d
jne 0x14002b7ee
test r10d, r10d
mov edi, 0x41800000
mov eax, 0x81800000
cmove edi, eax
or edi, ecx
mov rcx, qword [rbx + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbx + 0x70], rax
cmp rax, 0x28
jbe 0x14002b930
cmp qword [rbx + 0x20], 0
jne 0x14002b930
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x24
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x90], ax
jne 0x14002b91b
mov edx, dword [rsp + 0xa8]
lea ecx, [rdx + 0x34]
cmp qword [rbx + 0x70], rcx
jbe 0x14002b91b
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
cmp eax, 0x5a4d
je 0x14002b917
add eax, 0xffffbab4
cmp eax, 4
ja 0x14002b91b
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnlock
bt ecx, eax
jae 0x14002b91b
bts edi, 0x16
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x44]
movabs r9, 0xd6bf94d5e57a42bd
movabs r8, 0xfe624e212ac18000
mov dword [rsi + 0x10], edi
add rcx, r8
mov rax, r9
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x4c]
sar rdx, 0x17
add rcx, r8
add r8, qword [rsp + 0x3c]
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [rsi], edx
imul rcx
mov rax, r9
add rdx, rcx
sar rdx, 0x17
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
lea rcx, [rsp + 0x4c]
mov dword [rsi + 4], edx
imul r8
add rdx, r8
lea r8, [rsp + 0xa0]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [rsp + 0xa0]
movzx ecx, word [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
shl ecx, 0x10
or ecx, eax
mov dword [rsi + 0xc], ecx
xor eax, eax
add rsp, 0x78
pop rsi
pop rbx
ret
Function at 0x14002e730
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 0
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jge 0x14002e798
mov edx, 0x8b1f
call fcn.14002f180
mov edx, 0x808
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002f180
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002f180
mov edx, 0xb02
mov rcx, rbx
call fcn.14002f180
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
inc r8d
jmp 0x14002e8f4
mov edx, 0x4034b50
call fcn.14002f180
mov edx, 0x403
mov rcx, rbx
call fcn.14002f180
mov edx, 0x2d
mov rcx, rbx
call fcn.14002f180
movzx edx, word [rdi + 0x30]
mov rcx, rbx
call fcn.14002f180
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002f180
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.14002f180
movzx edx, word [rdi + 0xa]
mov rcx, rbx
call fcn.14002f180
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002f180
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002f180
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002f180
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 0x20]
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 0x24]
mov rcx, rbx
add edx, 0x14
call fcn.14002f180
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call fcn.14002f310
mov edx, 1
mov rcx, rbx
call fcn.14002f180
mov edx, reloc.WSOCK32.dll_recv
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.14002f180
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002f180
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002f180
movzx edx, word [rdi + 0x1e]
mov rcx, rbx
call fcn.14002f180
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.14002f180
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002f180
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002f180
movzx edx, word [rdi + 0x16]
mov rcx, rbx
call fcn.14002f180
mov r8d, dword [rdi + 0x24]
test r8d, r8d
je 0x14002e8fc
mov rdx, qword [rdi + 0x40]
mov rcx, rbx
call fcn.14002f310
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret