joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080738
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 7], rdx
cmp qword [rcx + 0x20], 0
je 0x140080926
xor esi, esi
and qword [rbp + 0x17], rsi
and dword [rbp + 0x1f], esi
and qword [rbp + 0x27], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov rax, qword [rax + 0x40]
call qword [case.0x14006f2b2.0]
mov rbx, rax
call fcn.1400567bc
mov rbx, qword [rbx]
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.1400416e0
and qword [rbp + 0x77], rsi
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400807e8
mov rax, qword [rbp + 0x77]
mov qword [rbp + 0x17], rax
and dword [rbp + 0x1f], ebx
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008080d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006f2b2.0]
test ebx, ebx
jne 0x140080917
call fcn.14002f108
mov rcx, rax
test rax, rax
je 0x140080934
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14006f2b2.0]
add rax, 0x18
mov qword [rbp + 0x6f], rax
call fcn.14002f108
mov rcx, rax
test rax, rax
je 0x14008093f
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14006f2b2.0]
add rax, 0x18
mov qword [rbp + 0x7f], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 0x7f]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 7]
call fcn.14007e708
mov rbx, qword [rbp + 0x7f]
test rbx, rbx
je 0x1400808af
mov rcx, rbx
call fcn.1401ee3bc
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400808d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006f2b2.0]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400808f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006f2b2.0]
cmp qword [rbp + 7], 0
jne 0x140080815
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140080910
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140080928
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140080926
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003340
nop
mov ecx, 0x80004005
call fcn.140003340
int3
Function at 0x1400b67ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x1400b67d7
call fcn.1400567bc
mov rbx, qword [rax + 0x18]
lea r8, [0x14025b230]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400b6830
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400b6830
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400b6830
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rbp
mov r8d, eax
call fcn.1400b6848
jmp 0x1400b6832
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14010fb30
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 0x14010fc78
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 0x14010fcba
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 0x1401100b0
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 0x14011017a
test rbx, rbx
je 0x14011017a
test r9, r9
je 0x14011017a
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 0x140110176
cmp dword [rsp + 0x48], 3
jne 0x140110176
cmp dword [rdi], eax
je 0x140110176
mov ecx, dword [rdi]
call fcn.14002dd14
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 0x14011016a
cmp dword [rsp + 0x48], 3
jne 0x14011016a
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.14002dd0c
and qword [rbx], 0
xor eax, eax
jmp 0x140110155
call fcn.14002dd78
int3

Function at 0x14011043c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14011044d
xor eax, eax
jmp 0x14011047b
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 0x140110484
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140110495
xor eax, eax
jmp 0x1401104b9
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 0x140110ae0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x28]
xor ebx, ebx
mov rdi, rcx
cmp dword [rax - 0x10], ebx
je 0x140110b4f
call fcn.14003f67c
test rax, rax
je 0x140110b1e
mov rdx, qword [rax]
mov rcx, rax
mov rax, qword [rdx + 0xe8]
call qword [case.0x14006f2b2.0]
test rax, rax
je 0x140110b1e
mov rbx, qword [rax + 0x40]
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 0x28]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jb 0x140110b4f
mov eax, 1
jmp 0x140110b51
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14012bf64
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 0x14012c113
je 0x14012c139
cmp eax, 0xa1
jb 0x14012c184
cmp eax, 0xa2
jbe 0x14012c139
cmp eax, 0xa3
jbe 0x14012c184
cmp eax, 0xa5
jbe 0x14012c139
cmp eax, 0xa6
jbe 0x14012c184
cmp eax, 0xa8
jbe 0x14012c139
cmp eax, 0x100
jne 0x14012c184
cmp dword [rbx + 0x154], 0xffffffff
je 0x14012c139
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14012c139
mov rax, qword [rsi + 0x10]
sub rax, 0x21
je 0x14012c06d
cmp rax, 1
jne 0x14012c139
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x150]
lea esi, [rax + 1]
add eax, r8d
cmp esi, eax
jge 0x14012c1a2
mov eax, esi
mov rcx, rbx
cdq
idiv r8d
mov rax, qword [rbx]
mov ebp, edx
mov rax, qword [rax + 0x4f8]
call qword [case.0x14006f2b2.0]
test eax, eax
jne 0x14012c0b5
mov ecx, dword [rbx + 0x154]
inc esi
mov r8d, dword [rbx + 0x150]
add ecx, r8d
cmp esi, ecx
jl 0x14012c033
jmp 0x14012c1a2
mov ecx, dword [rbx + 0x154]
lea esi, [rcx - 1]
add esi, dword [rbx + 0x150]
cmp esi, ecx
jle 0x14012c1a2
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.0x14006f2b2.0]
test eax, eax
jne 0x14012c0b5
dec esi
cmp esi, dword [rbx + 0x154]
jg 0x14012c084
jmp 0x14012c1a2
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
mov dword [rbx + 0x3b8], 1
mov rax, qword [rax + 0x428]
call qword [case.0x14006f2b2.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x420]
call qword [case.0x14006f2b2.0]
mov rcx, rax
call fcn.14003ab58
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x154]
mov rax, qword [rax + 0x4e0]
call qword [case.0x14006f2b2.0]
mov dword [rbx + 0x3b8], edi
jmp 0x14012c1a2
cmp eax, 0x200
jb 0x14012c184
cmp eax, 0x202
jbe 0x14012c139
cmp eax, 0x203
jbe 0x14012c184
cmp eax, 0x205
jbe 0x14012c139
add eax, 0xfffffdf9
cmp eax, 1
ja 0x14012c184
mov rax, qword [rbx + 0x1c0]
mov ebp, 0x407
test rax, rax
je 0x14012c161
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14012c161
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 0x14012c184
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14012c184
mov r9, rsi
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsi + 8], 0x203
jne 0x14012c1a9
lea rax, [rbx + 0x3208]
test rax, rax
je 0x14012c19d
mov rdi, qword [rax + 0x40]
cmp qword [rsi], rdi
jne 0x14012c1a9
mov eax, 1
jmp 0x14012c1b4
mov rdx, rsi
mov rcx, rbx
call fcn.1400e01ec
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140136ba0
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.1401fa908
test eax, eax
jne 0x140136c04
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.140042404
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140136c16
jmp 0x140136bc4
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 0x140180708
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x140180833
mov ebx, dword [rdx + 0x10]
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140180833
cmp ebx, 0x43
je 0x140180756
cmp ebx, 0x2d
jne 0x140180833
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140180833
call qword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.14002f108
mov rcx, rax
test rax, rax
je 0x140180852
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14006f2b2.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x48]
call fcn.140003630
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140180833
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006f2b2.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp method.CaddemojiDlg.virtual_536
mov ecx, 0x80004005
call fcn.140003340
int3
Function at 0x1401ba300
Capabilities:
Get thread local storage value

Disassembly:
add rcx, 8
jmp fcn.140216adc

Function at 0x1401ba490
Capabilities:
Get thread local storage value

Disassembly:
add rcx, 8
jmp 0x140216b54
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rbx, rcx
test dword [reloc.WS2_32.dll_accept], 0x80000000
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x10], 0
mov dword [rbp - 0xc], 0
je 0x140216ba2
mov ecx, dword [0x140553a00]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140216ba7
call fcn.14021f128
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x30]
xor eax, eax
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x140216be6
lea rcx, [rbp - 0x30]
mov rdx, rbx
mov qword [rbx + 0x28], rcx
lea rcx, [rbp - 0x30]
call fcn.1402165fc
mov ecx, dword [rbp - 0x20]
lea rdx, [rbp - 0x30]
and ecx, 0xfffffffe
mov dword [rbp - 0x20], ecx
mov rcx, rbx
call fcn.1402169c8
mov al, 1
jmp 0x140216be8
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x1401da09c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1401c42e6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1401c42c9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1401c42b4

Function at 0x1401e369c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140552870]
mov ebx, r9d
mov rdi, r8
mov esi, edx
test rax, rax
je 0x1401e36c7
call qword [case.0x14006f2b2.0]
jmp 0x1401e36dc
call fcn.1401e3668
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401ec9e8
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 0x1401ec87b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ec87b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ec87b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ec87b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ec87b
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ec87b
cmp dword [rcx + 0xf8], 0
je 0x1401ec87b
mov ecx, ebx
call fcn.1401ec91c
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.1401ec70c
cmp dword [rbp + 0x20], 0
je 0x1401ec8c8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401ec8d0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401ec814
Function at 0x140208fb0
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 0x140208cd6
call fcn.1401e988c
mov dword [rax], socket
call fcn.1401e973c
jmp 0x140208e21
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140208e21
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140208e21
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140208d05
lock or dword [rcx + 0x14], 0x10
jmp 0x140208e21
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140208d19
call fcn.140209fec
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140208d29
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140208d2c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401f0404
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1402098dc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140208e0f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140208dbd
mov rcx, rbx
call fcn.1401f0404
cmp eax, 0xffffffff
je 0x140208da8
mov rcx, rbx
call fcn.1401f0404
cmp eax, 0xfffffffe
je 0x140208da8
mov rcx, rbx
call fcn.1401f0404
movsxd rdi, eax
lea r14, [0x140553200]
mov rcx, rbx
sar rdi, 6
call fcn.1401f0404
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140208daf
lea rdx, [0x140542240]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140208dbd
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140208de1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140208de1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140208de1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140208dff
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140208e0a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140208e26
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 0x140208ca0
Function at 0x140218944
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140218957
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140218f58
lea rdx, [0x1402d9338]
lea rcx, [rsp + 0x20]
call fcn.1401e4f50
int3

Function at 0x1402230ac
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140553a00]
xor edx, edx
jmp fcn.140218944

Function at 0x140223a10
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140553a00]
jmp fcn.140218944

Function at 0x14022ee7c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14022ef38]
mov r9, qword [r9 + 8]
jmp fcn.140220ac4

Function at 0x14022ef10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14022ef48]
mov r9, qword [r9 + 8]
jmp fcn.140220ac4
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, 0x5a4d
mov rsi, rdx
mov r9, rcx
cmp word [rcx], ax
jne 0x1400010c5
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
test r8d, r8d
je 0x1400010c5
mov r14d, dword [rcx + r8 + 0x18]
lea rax, [rcx + r8]
xor r10d, r10d
test r14, r14
je 0x1400010c5
mov ebx, dword [rax + 0x20]
mov edi, dword [rax + 0x24]
add rbx, rcx
mov r15d, dword [rax + 0x1c]
add rdi, rcx
movzx r12d, byte [rdx]
nop dword [rax + rax]
movzx eax, word [rdi]
xor edx, edx
mov r11d, dword [rbx]
add r11, r9
lea rbp, [r15 + rax*4]
test r12b, r12b
je 0x1400010a8
mov r8, r11
mov rax, rsi
sub r8, rsi
nop dword [rax]
movzx ecx, byte [r8 + rax]
test cl, cl
je 0x1400010a8
cmp byte [rax], cl
jne 0x1400010a8
inc rax
inc rdx
cmp byte [rax], 0
jne 0x140001090
cmp byte [rdx + rsi], 0
jne 0x1400010b5
cmp byte [rdx + r11], 0
je 0x1400010e2
inc r10
add rdi, 2
add rbx, 4
cmp r10, r14
jb 0x140001070
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
mov eax, dword [rbp + r9]
add rax, r9
jmp 0x1400010c7
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x14002e088]
mov dword [rax], 1
mov rax, qword [0x14002e090]
mov dword [rax], 1
mov rax, qword [0x14002e098]
mov dword [rax], 1
mov rax, qword [0x14002e080]
mov dword [rax], 1
mov rax, qword [0x14002e010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000108b
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000108b
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
je 0x140001081
movzx edx, dx
cmp edx, 0x10b
jne 0x14000108b
cmp dword [rax + rcx + 0x74], 0xf
jb 0x14000108b
cmp dword [rax + rcx + 0xe8], 0
jmp 0x1400010fa
cmp dword [rax + rcx + 0x84], 0xf
jae 0x1400010f2
xor eax, eax
movzx eax, al
mov rcx, qword [0x14002e078]
cmp dword [rcx], 1
mov dword [0x140031430], eax
mov ecx, 2
sbb ecx, 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_app_type
mov rax, qword [0x14002e068]
mov esi, dword [rax]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___p__fmode
mov dword [rax], esi
mov rax, qword [0x14002e058]
mov esi, dword [rax]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___p__commode
mov dword [rax], esi
call dbg._setargv
mov rax, qword [section..rdata]
cmp dword [rax], 1
jne 0x1400010ea
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rsi
ret
cmp dword [rax + rcx + 0xf8], 0
setne al
jmp 0x14000108d
Function at 0x14000a050
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rsi
push rbx
push rax
mov r8, qword gs:[0x60]
mov r9d, dword [0x140031470]
mov edx, dword [0x140031474]
cmp edx, 9
setg r10b
cmp edx, 0xa
setl dl
lea ecx, [r9 - 1]
imul ecx, r9d
mov eax, ecx
not eax
mov r9d, eax
and r9d, 0xfffffffe
and ecx, 1
or ecx, r9d
xor eax, ecx
test eax, ecx
sete cl
setne r11b
mov ebx, r11d
xor bl, dl
mov eax, edx
xor al, cl
mov esi, r11d
and sil, dl
or dl, cl
xor dl, 1
or dl, al
mov eax, ebx
xor al, dl
mov r9d, 0x9a8b38b0
mov eax, 0x8896c539
cmovne eax, r9d
movzx r8d, byte [r8 + 2]
test dl, dl
cmovne r9d, eax
mov dword [rsp + 4], r8d
test bl, bl
cmovne r9d, eax
mov eax, 0x8896c539
and cl, r10b
or cl, sil
mov edx, r10d
and dl, r11b
xor r10b, r11b
or r10b, dl
mov ebx, r10d
xor bl, cl
test r10b, r10b
mov esi, 0x68a234a3
mov edx, 0x68a234a3
cmovne edx, eax
test cl, cl
cmove edx, eax
test bl, bl
cmove edx, esi
mov ecx, 0xaef11d38
mov r8d, 0x1ea4a807
nop word [rax + rax]
cmp ecx, 0x168fb690
jle 0x14000a150
cmp ecx, 0x5391a086
jle 0x14000a180
cmp ecx, 0x5391a087
je 0x14000a1b6
cmp ecx, 0x68a234a3
jne 0x14000a120
mov ecx, r9d
jmp 0x14000a120
cmp ecx, 0x8896c539
je 0x14000a194
cmp ecx, 0x9a8b38b0
je 0x14000a1a7
cmp ecx, 0xaef11d38
jne 0x14000a120
mov ecx, dword [rsp + 4]
cmp ecx, 1
mov ecx, 0x168fb691
cmove ecx, r8d
jmp 0x14000a120
cmp ecx, 0x168fb691
je 0x14000a19b
cmp ecx, 0x1ea4a807
jne 0x14000a120
mov ecx, edx
jmp 0x14000a120
mov ecx, 0x68a234a3
jmp 0x14000a120
mov ecx, 0x5391a087
xor eax, eax
jmp 0x14000a120
mov ecx, 0x5391a087
mov eax, 1
jmp 0x14000a120
add rsp, 8
pop rbx
pop rsi
ret