joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404813e0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 4], 0
mov rbx, rcx
jne 0x1404814a4
mov ecx, dword [rcx]
lea r8, [rsp + 0x20]
mov r9d, 8
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14048143d
mov dword [rbx + 4], 3
mov eax, 3
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1404e17d0
add rsp, 0x50
pop rbx
ret
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
jne 0x140481451
mov dword [rbx + 4], 3
jmp 0x1404814a4
cmp ax, 0x30
jne 0x140481460
mov dword [rbx + 4], 1
jmp 0x1404814a4
cmp ax, 0x32
jne 0x14048146f
mov dword [rbx + 4], 2
jmp 0x1404814a4
mov ecx, dword [rbx]
lea r8, [rsp + 0x30]
mov r9d, listen
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14048141e
movzx ecx, word [rsp + 0x30]
xor edx, edx
movzx eax, word [rsp + 0x20]
add ecx, 2
cmp eax, ecx
setne dl
add edx, 2
mov dword [rbx + 4], edx
mov eax, dword [rbx + 4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1404e17d0
add rsp, 0x50
pop rbx
ret

Function at 0x140482670
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x1400495e0]
mov qword [rbx], rcx
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x40]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14048272d
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1402d3550
mov rdx, qword [rbx]
mov qword [rsp + 0x30], rdx
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14048271f
cmp eax, edi
je 0x14048272d
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14048272d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1404e17d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x14048ea60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x70], 0x1000
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14048eaa9
mov edi, dword [rsp + 0x60]
jmp 0x14048eabb
cmp byte [rbx + 0x4b], dil
jne 0x14048eabb
mov byte [rbx + 0x4b], 1
mov rcx, rbx
call fcn.14049c0c0
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x78]
cmp edi, 0x1000
cmovae rax, rcx
mov edi, dword [rax]
cmp byte [rbx + 0x4b], 0
jne 0x14048ebec
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14048eb06
mov rdx, qword [rbx + 0x30]
mov rax, rcx
sub rax, rdx
cmp rdi, rax
jle 0x14048eb06
mov rdi, rcx
sub rdi, rdx
test rdi, rdi
jle 0x14048ebec
lea rcx, [rbx + 0x28]
mov rdx, rdi
call fcn.1403dd890
mov rsi, rax
mov word [rbx + 0x48], 0x100
cmp qword [rbx + 0x18], 0
jne 0x14048eb39
mov ecx, 0x28
call fcn.1404e17f4
mov qword [rsp + 0x68], rax
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
lea rax, [0x14048e9f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x18]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14048ebec
mov byte [rbx + 0x49], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
sub ecx, 0x6d
je 0x14048ebe0
cmp ecx, 0x7c
je 0x14048ebe0
mov edx, 0x22
lea rcx, [0x14012f298]
call fcn.140367c40
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, edi
mov rcx, rbx
call fcn.14049c2d0
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14048ebd0
cmp eax, 0xffffffff
je 0x14048ebec
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14048ebec
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
jmp 0x14048ebec
mov byte [rbx + 0x4b], 1
mov rcx, rbx
call fcn.14049c0c0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14048f220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
cmp byte [rcx + 0x31], 0
mov rsi, rdx
mov rbx, rcx
je 0x14048f243
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp qword [rcx + 0x18], 0
mov qword [rsp + 0x48], rdi
jne 0x14048f266
mov ecx, 0x28
call fcn.1404e17f4
mov qword [rsp + 0x40], rax
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
xor ecx, ecx
mov rdx, rsi
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
lea rcx, [rbx + 0x20]
call fcn.14037a4a0
mov rdx, qword [rbx + 0x20]
lea rax, [0x14048f310]
mov r9, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov word [rbx + 0x30], 0x100
mov r8d, dword [rdx + 4]
add rdx, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
jne 0x14048f2f0
lea rcx, [rbx + 0x20]
mov byte [rbx + 0x31], al
call fcn.14037abc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x14048f2de
lea rdx, [0x14012f3c8]
mov ecx, eax
call fcn.14035c910
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x140493700
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
mov qword [rbp - 0x58], rcx
xor esi, esi
mov dword [rsp + 0x64], esi
lea rax, [0x140049658]
mov qword [rcx], rax
mov dword [rsp + 0x64], 1
mov qword [rbp - 0x70], gethostname
lea rax, [0x140132cb0]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x20], esi
mov r9d, 0x20019
lea r8, [rbp - 0x50]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140440950
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1404938cf
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1404938cf
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1404938cf
mov ebx, esi
nop word [rax + rax]
mov dword [rsp + 0x68], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x40]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1404938c3
or r8d, 0xffffffff
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.1402d3550
nop
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.1402d7b40
nop
mov rdx, rax
mov rcx, rdi
call fcn.14037a880
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140493887
cmp eax, 0xffffffff
je 0x140493896
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140493896
mov rcx, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1404938b5
cmp eax, 0xffffffff
je 0x1404938c3
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1404938c3
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140493800
lea rcx, [rsp + 0x70]
call fcn.140440990
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1404e17d0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140495b10
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, select
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
lea r8, [rsp + 0x40]
mov ecx, eax
mov word [rsp + 0x20], bx
lea r9d, [rbx + 3]
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x140495b8b
mov qword [rsp + 0x30], 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.1403ef330
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1404e17d0
add rsp, 0x50
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1404e17d0
add rsp, 0x50
pop rbx
ret
Function at 0x1404d78d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
cmp rcx, rdx
ja 0x1404d79b8
cmp rcx, 1
jb 0x1404d79b8
cmp qword [0x140586bd0], 0
mov qword [rsp + 0x60], rbx
jne 0x1404d7922
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov qword [0x140586bd0], rcx
mov rdx, qword [rdi + 0x10]
mov ecx, 0x20
call qword [rdi]
mov rbx, rax
test rax, rax
je 0x1404d796b
mov rax, qword [0x140586bd0]
mov r9d, 4
add rbp, rax
mov r8d, 0x2000
not rax
xor ecx, ecx
and rbp, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rbx
test rax, rax
jne 0x1404d7982
mov rdx, qword [rdi + 0x10]
call qword [rdi + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea rdx, [rax + rbp]
mov qword [rbx + 0x18], rax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
sub rdx, rsi
call fcn.1404d9d60
test rax, rax
jne 0x1404d79ac
mov rdx, rdi
mov rcx, rbx
call fcn.1404d97b0
jmp 0x1404d796b
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov rax, rbx
jmp 0x1404d796d
mov rbp, qword [rsp + 0x68]
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1404d9650
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140586bc0]
test rcx, rcx
jne 0x1404d967a
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140586bc0], rax
jmp 0x1404d9683
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r10, qword [0x140586be8]
lea rax, [rbx - 0x10]
mov rcx, qword [rax]
mov r9, rax
sub r9, qword [rax + 8]
sub r10, rcx
mov qword [0x140586be8], r10
cmp qword [r9], 0
jne 0x1404d96ba
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x1404d96e9
xor edx, edx
mov qword [rax + 0x20], rcx
mov rcx, qword [0x140586be0]
lea r8, [rax + 0x20]
mov qword [rax], rdx
mov r9, rax
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x1404d96e2
mov qword [rcx + 0x18], rax
mov qword [0x140586be0], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], 0
lea rdx, [rcx + r9]
jne 0x1404d9735
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1404d970f
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test rcx, rcx
je 0x1404d9722
mov qword [rcx + 0x10], rax
jmp 0x1404d9729
mov qword [0x140586be0], rax
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], 0
jne 0x1404d979b
cmp qword [rdx], 1
jne 0x1404d979b
mov rcx, qword [0x140586bf0]
lea rax, [r10 + r10*2]
sub rcx, qword [r8]
shr rax, 1
cmp rcx, rax
jbe 0x1404d979b
mov qword [0x140586bf0], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x1404d9770
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x1404d9783
mov qword [rcx + 0x10], rax
jmp 0x1404d978a
mov qword [0x140586be0], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x140586bc0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
Function at 0x1404d9b90
Capabilities:
Allocate or change rwx memory
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140586bc0]
test rcx, rcx
jne 0x1404d9bc1
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r8, rax
mov qword [0x140586bc0], rax
jmp 0x1404d9bd1
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [0x140586bc0]
mov edi, 0x30
cmp rbx, rdi
cmovae rdi, rbx
mov rbx, qword [0x140586be0]
add rdi, 0x17
and rdi, 0xfffffffffffffff8
test rbx, rbx
je 0x1404d9c00
cmp qword [rbx + 0x20], rdi
jae 0x1404d9c55
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1404d9bf1
lea rbx, [rdi + 0x1000f]
mov qword [rsp + 0x30], rsi
and rbx, 0xffffffffffff0000
mov r9d, 0x40
mov rdx, rbx
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1404d9cc7
mov rcx, qword [0x140586bc0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x20]
lea rax, [rdi + 0x40]
cmp rcx, rax
jbe 0x1404d9c77
sub rcx, rdi
mov qword [rbx + 0x20], rcx
add rbx, rcx
mov qword [rbx + 8], rcx
mov qword [rbx + rdi + 8], rdi
jmp 0x1404d9ca5
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1404d9c88
mov rax, qword [rbx + 0x18]
mov qword [rdx + 0x18], rax
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
test rdx, rdx
je 0x1404d9c9b
mov qword [rdx + 0x10], rax
jmp 0x1404d9ca2
mov qword [0x140586be0], rax
mov rdi, rcx
add qword [0x140586be8], rdi
mov rcx, r8
mov qword [rbx], rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rbx + 0x10]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
sub rbx, 0x10
add qword [0x140586bf0], rbx
mov qword [rax + 8], rdx
lea rax, [rdi + 0x40]
cmp rbx, rax
jbe 0x1404d9d22
mov rcx, qword [0x140586be0]
lea rax, [rsi + rdi]
add qword [0x140586be8], rdi
sub rbx, rdi
mov qword [rsi], rdi
mov qword [rax + 8], rdi
mov qword [rax], rdx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x1404d9d15
mov qword [rcx + 0x18], rax
mov qword [0x140586be0], rax
lea rcx, [rbx + rax]
jmp 0x1404d9d30
add qword [0x140586be8], rbx
lea rcx, [rsi + rbx]
mov qword [rsi], rbx
mov qword [rcx], 1
mov qword [rcx + 8], rbx
mov rcx, qword [0x140586bc0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x38]
lea rax, [rsi + 0x10]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1404e55fc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1404e560f
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.1404ef7f4
lea rdx, [0x140577b10]
lea rcx, [rsp + 0x20]
call fcn.140502510
int3

Function at 0x1404f0210
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140587c58]
xor edx, edx
jmp fcn.1404e55fc
Function at 0x1404f0c00
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140587c58]
jmp fcn.1404e55fc

Function at 0x140519b24
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1405198f8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1405198f8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1405198f8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1405198f8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1405198f8
cmp dword [rcx + 0x84], 0xe
jbe 0x1405198f8
cmp dword [rcx + 0xf8], esi
je 0x1405198f8
mov ecx, r14d
call fcn.140519a40
mov ecx, 2
call fcn.140517694
nop
cmp byte [0x1405882a0], 0
jne 0x1405199c2
mov r15d, 1
mov eax, r15d
xchg dword [0x140588290], eax
test ebx, ebx
jne 0x14051996b
mov rdi, qword [0x14057c500]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140588298]
cmp rcx, rax
je 0x140519962
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1402d1760]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1405883b8]
jmp 0x140519977
cmp ebx, r15d
jne 0x14051997d
lea rcx, [0x1405883d0]
call fcn.14051a290
nop
test ebx, ebx
jne 0x140519994
lea rdx, [0x140001180]
lea rcx, [0x140001158]
call fcn.14051a558
lea rdx, [0x140001190]
lea rcx, [0x140001188]
call fcn.14051a558
movzx eax, byte [0x1405882a0]
test esi, esi
cmove eax, r15d
mov byte [0x1405882a0], al
jmp 0x1405199c2
mov ecx, 2
call fcn.1405176e8
test esi, esi
jne 0x1405199d9
mov ecx, r14d
call fcn.1405199f4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140519888
Function at 0x14051c870
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14051c710
call fcn.140504eb8
mov dword [rax], 0x16
call fcn.1405048b4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14051c6f8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14051c6f8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14051c742
lock or dword [rax + 0x14], 0x10
jmp 0x14051c6f8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14051c75f
mov rcx, qword [rbp + 0x10]
call fcn.14051dabc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140517098
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1405159e4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14051c7b6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14051c6f8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14051c822
mov rcx, qword [rbp + 0x10]
call fcn.140517098
cmp eax, 0xffffffff
je 0x14051c809
mov rcx, qword [rbp + 0x10]
call fcn.140517098
cmp eax, 0xfffffffe
je 0x14051c809
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140517098
movsxd rdi, eax
lea rsi, [0x140588410]
mov rcx, rbx
sar rdi, 6
call fcn.140517098
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14051c810
lea rax, [0x14057ca00]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14051c822
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14051c858
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14051c854
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14051c854
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14051c6fb
jmp 0x14051c6c8
Function at 0x14005a340
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005a34d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005a35d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005a345
lea eax, [rcx + 1]
jmp 0x14005a36b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005a37e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005a364
sub eax, 3
jb 0x14005a39e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005a3ed
sar eax, 1
movsxd rbp, eax
jb 0x14005a3d4
jmp 0x14005a3ac
add ebx, ebx
jne 0x14005a3aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a3d4
inc ecx
add ebx, ebx
jne 0x14005a3ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005a3d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005a3cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005a3bc
add ecx, 2
jmp 0x14005a3d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005a302
jmp 0x14005a34d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2b200
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005a439
cmp rsi, rcx
jae 0x14005a441
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005a420
cmp al, 0x8f
ja 0x14005a420
cmp byte [rsi - 2], 0xf
je 0x14005a426
sub al, 0xe8
cmp al, 1
ja 0x14005a40a
cmp rsi, rcx
jae 0x14005a441
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005a410
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005a441
lodsb al, byte [rsi]
jmp 0x14005a420
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x58000]
mov eax, dword [rdi]
or eax, eax
je 0x14005a49e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x68fb0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005a44e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005a498
mov qword [rbx], rax
add rbx, 8
jmp 0x14005a46e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005a4d8
cmp al, 0xef
ja 0x14005a4ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005a4aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005a4b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005a52c
sub rsp, 0xffffffffffffff80
jmp 0x14000c320