joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c37e4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rbx, rcx
mov ecx, 0x104
xor edi, edi
mov rsi, rdx
cmp eax, ecx
ja 0x1400c3993
je 0x1400c39b9
cmp eax, 0xa1
jb 0x1400c3a04
cmp eax, 0xa2
jbe 0x1400c39b9
cmp eax, 0xa3
jbe 0x1400c3a04
cmp eax, 0xa5
jbe 0x1400c39b9
cmp eax, 0xa6
jbe 0x1400c3a04
cmp eax, 0xa8
jbe 0x1400c39b9
cmp eax, 0x100
jne 0x1400c3a04
cmp dword [rbx + 0x154], 0xffffffff
je 0x1400c39b9
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400c39b9
mov rax, qword [rsi + 0x10]
sub rax, 0x21
je 0x1400c38ed
cmp rax, 1
jne 0x1400c39b9
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x150]
lea esi, [rax + 1]
add eax, r8d
cmp esi, eax
jge 0x1400c3a22
mov eax, esi
mov rcx, rbx
cdq
idiv r8d
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x1400643c6.0]
test eax, eax
jne 0x1400c3935
mov ecx, dword [rbx + 0x154]
inc esi
mov r8d, dword [rbx + 0x150]
add ecx, r8d
cmp esi, ecx
jl 0x1400c38b3
jmp 0x1400c3a22
mov ecx, dword [rbx + 0x154]
lea esi, [rcx - 1]
add esi, dword [rbx + 0x150]
cmp esi, ecx
jle 0x1400c3a22
mov eax, esi
mov rcx, rbx
cdq
idiv dword [rbx + 0x150]
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x1400643c6.0]
test eax, eax
jne 0x1400c3935
dec esi
cmp esi, dword [rbx + 0x154]
jg 0x1400c3904
jmp 0x1400c3a22
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
mov dword [rbx + 0x3b8], 1
mov rax, qword [rax + 0x428]
call qword [case.0x1400643c6.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x420]
call qword [case.0x1400643c6.0]
mov rcx, rax
call fcn.1400226fc
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x154]
mov rax, qword [rax + 0x4e0]
call qword [case.0x1400643c6.0]
mov dword [rbx + 0x3b8], edi
jmp 0x1400c3a22
cmp eax, 0x200
jb 0x1400c3a04
cmp eax, 0x202
jbe 0x1400c39b9
cmp eax, 0x203
jbe 0x1400c3a04
cmp eax, 0x205
jbe 0x1400c39b9
add eax, 0xfffffdf9
cmp eax, 1
ja 0x1400c3a04
mov rax, qword [rbx + 0x1c0]
mov ebp, 0x407
test rax, rax
je 0x1400c39e1
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400c39e1
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx + 0x1b8]
test rax, rax
je 0x1400c3a04
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400c3a04
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsi + 8], 0x203
jne 0x1400c3a29
lea rax, [rbx + 0x3208]
test rax, rax
je 0x1400c3a1d
mov rdi, qword [rax + 0x40]
cmp qword [rsi], rdi
jne 0x1400c3a29
mov eax, 1
jmp 0x1400c3a34
mov rdx, rsi
mov rcx, rbx
call fcn.1400b7d74
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f4f44
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1403eab08]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15d, r9d
mov ebx, r8d
mov r14, rdx
call fcn.14000b010
mov rcx, rax
test rax, rax
je 0x1400f50f2
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400643c6.0]
add rax, 0x18
mov qword [rsp + 0x20], rax
cmp ebx, 0x13
jne 0x1400f4fbe
lea rcx, str.Pause
call fcn.1402823bc
lea rdx, str.Pause
jmp 0x1400f501c
xor edx, edx
lea r8d, [rdx + 0x66]
lea rcx, [rsp + 0x30]
call fcn.14025a2f0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8, rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
lea eax, [rbx - 0x21]
cmp eax, 0xe
jbe 0x1400f4ff8
cmp ebx, 0x6f
jne 0x1400f4ffc
bts ecx, 0x18
mov r8d, 0x32
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rcx, [rsp + 0x30]
call fcn.1402823bc
lea rdx, [rsp + 0x30]
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140008880
lea rcx, [rsp + 0x20]
call fcn.140099c30
xor edi, edi
mov rbx, qword [rsp + 0x20]
mov eax, dword [rbx - 0x10]
test eax, eax
jle 0x1400f5068
xor esi, esi
cmp edi, eax
jg 0x1400f50fd
movzx ebp, word [rbx + rsi*2]
movzx ecx, bp
call qword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x1400f50d1
inc edi
inc rsi
mov eax, dword [rbx - 0x10]
cmp edi, eax
jl 0x1400f504b
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r14
call fcn.140007e80
test r15d, r15d
jne 0x1400f5089
lea edx, [r15 + 0x2b]
mov rcx, r14
call fcn.140007f6c
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400f50aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400643c6.0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140257b10
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, ebp
call fcn.1402817c4
movzx r8d, ax
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140032470
mov rbx, qword [rsp + 0x20]
jmp 0x1400f5068
mov ecx, 0x80004005
call fcn.1400052b4
nop
mov ecx, 0x80070057
call fcn.1400052b4
int3
Function at 0x1401340cc
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140134298
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1401342da
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1401346fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401347ce
test rbx, rbx
je 0x1401347ce
test r9, r9
je 0x1401347ce
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401347ca
cmp dword [rsp + 0x48], 3
jne 0x1401347ca
test eax, eax
jne 0x1401347ca
cmp dword [rdi], eax
je 0x1401347ca
mov ecx, dword [rdi]
call fcn.140006d94
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401347be
cmp dword [rsp + 0x48], 3
jne 0x1401347be
test eax, eax
jne 0x1401347be
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140006d9c
and qword [rbx], 0
xor eax, eax
jmp 0x1401347a9
call fcn.140007034
int3

Function at 0x140134b2c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140134b3d
xor eax, eax
jmp 0x140134b6b
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140134b74
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140134b85
xor eax, eax
jmp 0x140134ba9
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140173118
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1403eab08]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov edi, r8d
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
test r8d, r8d
je 0x14017322f
call fcn.14000d7d4
mov rbx, qword [rax + 0x18]
movzx edx, di
mov r8d, 0xf1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140173206
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140173206
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140173206
mov esi, r15d
cmp r15w, word [rax + 6]
jae 0x1401731ff
lea rdi, [rax + 8]
movzx edx, word [rdi]
test edx, edx
je 0x1401731f1
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
or r8d, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.14016cb5c
nop
or r9d, 0xffffffff
mov r8, rax
mov rdx, r14
mov rcx, rbp
call fcn.1401723e4
nop
lea rcx, [rsp + 0x40]
call fcn.14016cd6c
inc esi
add rdi, 2
movzx ecx, word [rbx + 6]
cmp esi, ecx
jl 0x1401731b1
mov eax, 1
jmp 0x140173208
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140257b10
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140007034
int3

Function at 0x140191840
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1402a07e8
test eax, eax
jne 0x1401918a4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14001077c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401918b6
jmp 0x140191864
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401dd564
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov esi, edx
mov rdi, rcx
cmp edx, 0x79
jne 0x1401dd597
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1401dd59c
cmp esi, 0x5d
jne 0x1401dd5c1
or eax, 0xffffffff
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rdi
call fcn.1401dd114
mov eax, 1
jmp 0x1401dd667
mov edx, esi
mov rcx, qword [rdi + 0x1558]
call fcn.1401d4bc8
test eax, eax
jne 0x1401dd5b7
cmp qword [rdi + 0x1560], 0
je 0x1401dd61f
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x28], rax
xor ecx, ecx
call fcn.1400a8108
mov ebx, eax
mov dword [rsp + 0x30], eax
and dword [0x1403fa71c], 0
mov rcx, qword [rdi + 0x1560]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1b8]
mov edx, esi
call qword [case.0x1400643c6.0]
nop
mov dword [0x1403fa71c], ebx
jmp 0x1401dd667
cmp qword [rdi + 0x1580], 0
je 0x1401dd665
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x28], rax
xor ecx, ecx
call fcn.1400a8108
mov ebx, eax
mov dword [rsp + 0x30], eax
and dword [0x1403fa71c], 0
mov rcx, qword [rdi + 0x1580]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1d0]
mov edx, esi
call qword [case.0x1400643c6.0]
nop
jmp 0x1401dd617
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140235210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x1402352a6
test rbx, rbx
je 0x1402352a6
test r9, r9
jne 0x140235245
call fcn.14000d7d4
mov r9, qword [rax + 0x18]
test r9, r9
je 0x1402352a6
mov r8, rbx
mov qword [rdi + 0x10], r9
mov rdx, rsi
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1402352a6
mov rcx, qword [rdi + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1402352a6
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1402352a6
mov rbx, qword [rdi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, esi
mov rcx, rdi
mov rdx, rax
mov rax, qword [rbx + 8]
call qword [case.0x1400643c6.0]
jmp 0x1402352a8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1402859ec
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1402857db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402857db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402857db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402857db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402857db
cmp dword [rcx + 0x84], 0xe
jbe 0x1402857db
cmp dword [rcx + 0xf8], 0
je 0x1402857db
mov ecx, ebx
call fcn.14028590c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140285554
cmp dword [rbp + 0x20], 0
je 0x140285828
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140285830
int3
xor r8d, r8d
xor edx, edx
jmp 0x140285774
Function at 0x1402b48c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1402b4566
call fcn.14028730c
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140286cb0
jmp 0x1402b46b1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402b46b1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402b46b1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402b4595
lock or dword [rcx + 0x14], 0x10
jmp 0x1402b46b1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402b45a9
call fcn.1402c0958
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1402b45b9
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1402b45bc
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140280ab4
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1402b3e60
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1402b469f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1402b464d
mov rcx, rbx
call fcn.140280ab4
cmp eax, 0xffffffff
je 0x1402b4638
mov rcx, rbx
call fcn.140280ab4
cmp eax, 0xfffffffe
je 0x1402b4638
mov rcx, rbx
call fcn.140280ab4
movsxd rdi, eax
lea r14, [0x1403fc0b0]
mov rcx, rbx
sar rdi, 6
call fcn.140280ab4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1402b463f
lea rdx, [0x1403eac80]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402b464d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1402b4671
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1402b4671
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1402b4671
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1402b468f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1402b469a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1402b46b6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1402b4530
Function at 0x14000103c
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x1400033a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
lea rcx, [0x140096300]
call fcn.1400012c6
mov qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14000343b
xor eax, eax
jmp 0x14000350b
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call sub.VCRUNTIME140D.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400034c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x160]
lea rcx, str.____Error_Rading_File__s:__d
call fcn.140001163
mov rax, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x170]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x168]
cmp qword [rax], 0
je 0x140003502
mov rax, qword [rbp + 0x170]
mov eax, dword [rax]
test rax, rax
jne 0x140003506
xor eax, eax
jmp 0x14000350b
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400100e0]
call fcn.14000126c
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140001046
Capabilities:
Initialize winsock library
Send data
Send data on socket

Disassembly:
jmp 0x140003590
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
lea rcx, [0x140096300]
call fcn.1400012c6
mov qword [rbp + 0x238], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0
je 0x140003617
mov edx, dword [rbp + 0x254]
lea rcx, str.____WSAStartup_failed:__d_n
call fcn.140001163
xor eax, eax
jmp 0x14000379e
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x14000365c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Socket_creation_failed:__ld_n
call fcn.140001163
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000379e
mov eax, 2
mov word [rbp + 0x1e8], ax
movzx ecx, word [rbp + 0x418]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
lea r8, [rbp + 0x1ec]
mov rdx, qword [rbp + 0x410]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400036e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Connection_failed:__ld_n
call fcn.140001163
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000379e
mov eax, dword [rbp + 0x428]
cmp qword [rbp + 0x238], rax
jae 0x140003786
mov eax, dword [rbp + 0x428]
sub rax, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x420]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0xffffffff
jne 0x140003766
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Send_failed:__ld_n
call fcn.140001163
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000379e
movsxd rax, dword [rbp + 0x214]
mov rcx, qword [rbp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
jmp 0x1400036e2
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400101b0]
call fcn.14000126c
mov rax, rdi
lea rsp, [rbp + 0x3f8]
pop rdi
pop rbp
ret
Function at 0x1400010f0
Capabilities:
Get token privileges

Disassembly:
jmp 0x140003e10
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x1400963cb]
call fcn.1400012c6
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x28]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004009
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x44]
mov edx, socket
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140003e97
mov eax, dword [rbp + 0x44]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140004009
mov dword [rbp + 0x84], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rbp + 0x84]
mov qword [rbp + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x1b8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140003fe7
lea rax, [rbp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x84]
mov r8, qword [rbp + 0xa8]
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140003fe7
lea r8, [rbp + 0xc8]
lea rdx, [0x140011820]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140003fe7
mov dword [rbp + 0xe4], 0
jmp 0x140003f75
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax]
cmp dword [rbp + 0xe4], eax
jae 0x140003fe7
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0xa8]
mov edx, dword [rbp + 0xc8]
cmp dword [rcx + rax + 4], edx
jne 0x140003fe5
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0xa8]
mov edx, dword [rbp + 0xcc]
cmp dword [rcx + rax + 8], edx
jne 0x140003fe5
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax + 0xc]
and eax, 2
test eax, eax
je 0x140003fe5
mov dword [rbp + 4], 1
jmp 0x140003fe7
jmp 0x140003f67
cmp qword [rbp + 0xa8], 0
je 0x140004009
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xa8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x28], 0
je 0x14000401a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140010820]
call fcn.14000126c
mov eax, edi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret