joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6eb13c8c0
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x7ff6eb13c8f0
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx], rax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov qword [rcx + 0x14], 0x10325476
add rsp, 0x28
ret
mov r8d, 0xe3
lea rdx, [0x7ff6eb1a67b0]
lea rcx, [0x7ff6eb1a6578]
call fcn.7ff6eb140c00
int3

Function at 0x7ff6eb13e500
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, r9
mov rbx, r8
mov r11d, edx
mov r10, rcx
test r9, r9
je 0x7ff6eb13e6b4
lea ecx, [rdx + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
shl edx, 2
inc edx
cmp dword [r9], edx
jae 0x7ff6eb13e54c
mov dword [r9], edx
mov r9d, 6
mov eax, r9d
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
test r10, r10
je 0x7ff6eb13e6ce
test rbx, rbx
je 0x7ff6eb13e6e8
cmp r10, rbx
jne 0x7ff6eb13e577
mov r9d, 0x10
mov eax, r9d
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x38], rsi
mov eax, 0xaaaaaaab
mov qword [rsp + 0x40], r14
mul r11d
lea r14, [0x7ff6eb1a6cf0]
shr edx, 1
lea ecx, [rdx + rdx*2]
mov edx, r9d
test ecx, ecx
je 0x7ff6eb13e628
dec ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
mov esi, edx
lea edx, [rdx + rdx*2]
nop word [rax + rax]
movzx eax, byte [r10]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
movzx eax, byte [r10 + 2]
movzx ecx, byte [r10 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
movzx eax, byte [rax + r14]
mov byte [r8 + 2], al
movzx eax, byte [r10 + 2]
add r10, 3
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r8 + 3], al
add r8, 4
sub rsi, 1
jne 0x7ff6eb13e5c0
cmp edx, r11d
jae 0x7ff6eb13e693
movzx esi, byte [r10]
mov qword [rsp + 0x30], rbp
lea ebp, [rdx + 1]
cmp ebp, r11d
jae 0x7ff6eb13e645
movzx edx, byte [r10 + 1]
jmp 0x7ff6eb13e648
mov edx, r9d
mov ecx, edx
mov rax, rsi
shr ecx, 4
shr rax, 2
shl esi, 4
add ecx, esi
and ecx, 0x3f
movzx eax, byte [rax + r14]
cmp ebp, r11d
mov rbp, qword [rsp + 0x30]
mov byte [r8], al
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
jae 0x7ff6eb13e684
and edx, 0xf
shl edx, 2
movzx ecx, byte [rdx + r14]
jmp 0x7ff6eb13e686
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov r14, qword [rsp + 0x40]
mov eax, r9d
mov rsi, qword [rsp + 0x38]
mov byte [r8], r9b
sub r8d, ebx
mov rbx, qword [rsp + 0x48]
mov dword [rdi], r8d
add rsp, 0x20
pop rdi
ret
mov r8d, 0x28
lea rdx, [0x7ff6eb1a6d40]
lea rcx, [0x7ff6eb1a6c58]
call fcn.7ff6eb140c00
int3
mov r8d, 0x38
lea rdx, [0x7ff6eb1a6d40]
lea rcx, [0x7ff6eb1a63a8]
call fcn.7ff6eb140c00
int3
mov r8d, 0x39
lea rdx, [0x7ff6eb1a6d40]
lea rcx, [0x7ff6eb1a63b8]
call fcn.7ff6eb140c00
int3
Function at 0x7ff6eb141e20
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rsi
push r13
push r15
sub rsp, 0x50
mov r13, r8
mov esi, edx
mov r15, rcx
test rcx, rcx
je 0x7ff6eb141f85
mov qword [rax + 0x18], rbx
lea r8, [0x7ff6eb1a7678]
mov qword [rax - 0x28], rdi
lea rcx, [rax + 8]
mov r9d, 1
mov qword [rax - 0x30], r12
xor edx, edx
mov qword [rax + 8], 0
mov dword [rax - 0x48], 0xf0000020
call qword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jne 0x7ff6eb141e9c
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x7ff6eb1a7678]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
je 0x7ff6eb141ecf
mov rcx, qword [rsp + 0x70]
mov r8, r15
mov edx, esi
call qword [sym.imp.advapi32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x70]
xor edx, edx
cmp eax, 1
jne 0x7ff6eb141ec9
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
test esi, esi
je 0x7ff6eb141ecf
mov eax, esi
jmp 0x7ff6eb141f69
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
xor edi, edi
xor ebx, ebx
mov r12d, esi
test esi, esi
je 0x7ff6eb141f67
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r14
dec r12d
test r13, r13
je 0x7ff6eb141ef3
call r13
mov ebp, 8
xor r14d, r14d
nop dword [rax + rax]
dec ebp
call fcn.7ff6eb17f37c
mov esi, eax
call fcn.7ff6eb17f37c
cmp esi, eax
jne 0x7ff6eb141f1e
xor ebx, 1
call fcn.7ff6eb17f37c
cmp esi, eax
je 0x7ff6eb141f12
call fcn.7ff6eb17f37c
mov esi, eax
call fcn.7ff6eb17f37c
cmp esi, eax
jne 0x7ff6eb141f3c
nop
xor edi, 1
call fcn.7ff6eb17f37c
cmp esi, eax
je 0x7ff6eb141f30
cmp ebx, edi
je 0x7ff6eb141f02
add r14d, r14d
or r14d, ebx
test ebp, ebp
jne 0x7ff6eb141f00
mov byte [r15], r14b
inc r15
test r12d, r12d
jne 0x7ff6eb141ee8
mov esi, dword [rsp + 0x78]
mov eax, esi
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
jmp 0x7ff6eb141f69
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x38]
add rsp, 0x50
pop r15
pop r13
pop rsi
ret
mov r8d, 0x83
lea rdx, [0x7ff6eb1a76b0]
lea rcx, [0x7ff6eb1a63b8]
call fcn.7ff6eb140c00
int3

Function at 0x7ff6eb1580ac
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x7ff6eb1580bf
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.7ff6eb1586c0
lea rdx, [0x7ff6eb1dac38]
lea rcx, [rsp + 0x20]
call fcn.7ff6eb171dd8
int3

Function at 0x7ff6eb162850
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x7ff6eb208560]
xor edx, edx
jmp fcn.7ff6eb1580ac

Function at 0x7ff6eb1631c8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x7ff6eb208560]
jmp fcn.7ff6eb1580ac

Function at 0x7ff6eb16e994
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, [0x7ff6eb16ea50]
mov r9, qword [r9 + 8]
jmp fcn.7ff6eb160268
Function at 0x7ff6eb16ea28
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, [0x7ff6eb16ea60]
mov r9, qword [r9 + 8]
jmp fcn.7ff6eb160268

Function at 0x7ff6eb1822f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x7ff6eb18211c

Function at 0x7ff6eb18d4d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x7ff6eb18d4f0
call qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
call fcn.7ff6eb1804e4
or eax, 0xffffffff
jmp 0x7ff6eb18d4f2
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140011a30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011a40]
mov dword [rax], 1
mov rax, qword [0x140011a50]
mov dword [rax], 1
mov rax, qword [0x1400119e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140011a20]
mov dword [0x14001400c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140011b00]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140011ae0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140011990]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001640
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
cmp r8d, 2
mov rbx, rcx
mov rsi, rdx
lea r11d, [r8 - 2]
jle 0x140001780
mov rcx, rdx
mov rax, rbx
xor r10d, r10d
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
movzx edx, byte [rcx]
add r10d, 3
add rax, 4
add rcx, 3
shr dl, 2
and edx, 0x3f
movzx edx, byte [r9 + rdx]
mov byte [rax - 4], dl
movsx edx, byte [rcx - 3]
movsx edi, byte [rcx - 2]
shl edx, 4
sar edi, 4
and edx, 0x30
and edi, 0xf
or edx, edi
movsxd rdx, edx
movzx edx, byte [r9 + rdx]
mov byte [rax - 3], dl
movsx edx, byte [rcx - 2]
movsx edi, byte [rcx - 1]
shl edx, 2
sar edi, 6
and edx, 0x3c
and edi, 3
or edx, edi
movsxd rdx, edx
movzx edx, byte [r9 + rdx]
mov byte [rax - 2], dl
movzx edx, byte [rcx - 1]
and edx, 0x3f
cmp r10d, r11d
movzx edx, byte [r9 + rdx]
mov byte [rax - 1], dl
jl 0x140001670
cmp r8d, r10d
jle 0x140001750
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movsxd r11, r10d
sub r8d, 1
lea r9, [rsi + r11]
movzx edx, byte [r9]
shr dl, 2
and edx, 0x3f
cmp r8d, r10d
movzx edx, byte [rcx + rdx]
mov byte [rax], dl
je 0x140001760
lea r10, [rsi + r11 + 1]
movsx edx, byte [r9]
movsx r8d, byte [r10]
shl edx, 4
sar r8d, 4
and edx, 0x30
and r8d, 0xf
or edx, r8d
movsxd rdx, edx
movzx edx, byte [rcx + rdx]
mov byte [rax + 1], dl
movsx edx, byte [r10]
shl edx, 2
and edx, 0x3c
movzx edx, byte [rcx + rdx]
mov byte [rax + 2], dl
add rax, 4
mov byte [rax - 1], 0x3d
mov byte [rax], 0
add rax, 1
sub eax, ebx
pop rbx
pop rsi
pop rdi
ret
movsx edx, byte [r9]
shl edx, 4
and edx, 0x30
movzx edx, byte [rcx + rdx]
mov byte [rax + 1], dl
mov edx, 0x3d
jmp 0x140001745
mov rax, rcx
xor r10d, r10d
jmp 0x1400016e3
Function at 0x140001ac0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov eax, 0x500
mov r9d, 0x220
mov edx, 2
mov r8d, 0x20
mov word [rsp + 0x76], ax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x72], 0
lea rcx, [rsp + 0x72]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
mov dword [rsp + 0x6c], eax
jne 0x140001b40
add rsp, 0x88
ret
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x6c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001b5e
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x6c]
add rsp, 0x88
ret

Function at 0x140001b80
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0xe0
mov eax, 0x500
mov edx, 8
mov rcx, 0xffffffffffffffff
mov dword [rsp + 0x6a], 0
lea r8, [rsp + 0x70]
mov word [rsp + 0x6e], ax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001bc8
xor ebx, ebx
mov eax, ebx
add rsp, 0xe0
pop rbx
ret
lea rax, [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
mov r9d, 0x54
mov edx, 1
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001bb5
lea rax, [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x48], 0
mov r8d, 0x12
lea rcx, [rsp + 0x6a]
mov qword [rsp + 0x50], rax
mov edx, 1
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001bb5
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
add rsp, 0xe0
pop rbx
ret

Function at 0x140001c80
Capabilities:
Enumerate processes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x260
xor edx, edx
mov rbx, rcx
mov ecx, 2
call sym.CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140001d3e
lea rdi, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
mov rdx, rdi
call sym.Process32FirstW
test eax, eax
je 0x140001d35
nop word [rax + rax]
movzx eax, word [rsp + 0x4c]
lea rcx, [rsp + 0x4c]
mov rdx, rbx
movzx r8d, word [rbx]
test ax, ax
jne 0x140001cf4
jmp 0x140001d15
movzx eax, word [rcx + 2]
lea r8, [rdx + 2]
add rcx, 2
test ax, ax
je 0x140001d10
mov rdx, r8
cmp word [rdx], ax
je 0x140001ce0
mov rdx, rdi
mov rcx, rsi
call sym.Process32NextW
test eax, eax
jne 0x140001cc8
mov ebx, 0xffffffff
jmp 0x140001d1f
movzx r8d, word [rdx + 2]
test r8w, r8w
jne 0x140001cf9
mov ebx, dword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x260
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xffffffff
jmp 0x140001d28
Function at 0x140004350
Capabilities:
Get logon sessions

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
test ecx, ecx
mov rdi, rdx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x28], 0
je 0x1400043c8
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x80]
call sym.LsaGetLogonSessionData
test eax, eax
mov ebx, eax
jne 0x140004480
mov edx, 8
mov ecx, 1
call sym.calloc
test rax, rax
je 0x1400044a9
mov rdx, qword [rsp + 0x28]
mov qword [rdi], rax
mov dword [rdi + 8], 1
mov qword [rax], rdx
jmp 0x140004469
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x24]
call sym.LsaEnumerateLogonSessions
test eax, eax
jne 0x140004460
mov ecx, dword [rsp + 0x24]
mov edx, 8
mov r14, rcx
call sym.calloc
test rax, rax
mov rbp, rax
je 0x1400044a9
test r14d, r14d
je 0x140004443
lea r13, [rsp + 0x28]
xor esi, esi
lea r12, [rsp + 0x38]
nop dword [rax]
mov rax, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r12
mov rax, qword [rax + rsi*8]
mov qword [rsp + 0x38], rax
call sym.LsaGetLogonSessionData
test eax, eax
mov ebx, eax
jne 0x140004490
mov rax, qword [rsp + 0x28]
mov qword [rbp + rsi*8], rax
add rsi, 1
cmp esi, dword [rsp + 0x24]
jb 0x140004410
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rsp + 0x30]
call sym.LsaFreeReturnBuffer
mov qword [rdi], rbp
mov dword [rdi + 8], r14d
jmp 0x140004469
mov ecx, eax
call sym.LsaNtStatusToWinError
mov ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov ecx, eax
call sym.LsaNtStatusToWinError
mov ebx, eax
jmp 0x140004469
mov qword [rbp + rsi*8], 0
add rsi, 1
cmp esi, dword [rsp + 0x24]
jb 0x140004410
jmp 0x140004448
mov ebx, 0xc00000a0
jmp 0x140004469
Function at 0x140005370
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
lea rax, [rsp + 0x68]
mov rsi, rcx
mov r12, rdx
mov qword [rsp + 0x30], 0
lea r13, [rsp + 0x70]
xor ecx, ecx
mov rbp, r8
mov qword [rsp + 0x40], rax
mov edi, r9d
mov qword [rsp + 0x38], r13
xor r9d, r9d
mov r8d, 2
mov qword [rsp + 0x28], 0
lea rdx, str.Kerberos
mov qword [rsp + 0x20], 0
call sym.AcquireCredentialsHandleA
test eax, eax
mov ebx, eax
je 0x1400053f0
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, qword [0x1400110e8]
xor edx, edx
mov r8, rsi
mov rcx, r13
lea r14, [rsp + 0x80]
mov r9d, 0x103
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x90], rax
mov rax, qword [0x1400110f0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x98], 0
call sym.InitializeSecurityContextA
test eax, eax
je 0x1400054b0
cmp eax, 0x90312
je 0x1400054b0
mov ebx, eax
mov rcx, r13
call qword [sym.imp.Secur32.dll_FreeCredentialsHandle]
jmp 0x1400053d9
test edi, edi
je 0x1400054c8
test byte [rsp + 0x64], 1
jne 0x1400054c8
mov ebx, 0x80090303
jmp 0x140005498
mov edi, dword [rsp + 0x90]
mov edx, 1
mov rcx, rdi
call sym.calloc
test rax, rax
mov rsi, rax
je 0x140005525
mov rdx, qword [rsp + 0x98]
mov rcx, rax
mov r8, rdi
call dbg._memcpy
mov eax, dword [rsp + 0x90]
mov qword [r12], rsi
mov rcx, qword [rsp + 0x98]
mov dword [rbp], eax
test rcx, rcx
je 0x140005517
call sym.FreeContextBuffer
mov rcx, r14
call qword [sym.imp.Secur32.dll_DeleteSecurityContext]
jmp 0x140005498
mov ebx, 0xc00000a0
jmp 0x140005517
Function at 0x140008a00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140008a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140014094]
test esi, esi
mov rbx, rcx
jle 0x140008ba0
mov rax, qword [0x140014098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140008abb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140008b45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140008aa0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140008bc2
mov rax, qword [0x140014098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140014098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008ba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140008b3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140008b50
add dword [0x140014094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140014098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140008b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140008ac8
mov rax, qword [0x140014098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140009130
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140014100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400140e0]
test rbx, rbx
je 0x14000918c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140009183
test rsi, rsi
je 0x140009183
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009168
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400093a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400093b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400093c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400093d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000941d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140009414
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000941f
add rax, 0x28
cmp rax, r9
jne 0x140009400
xor eax, eax
ret

Function at 0x140009420
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400094b0
mov rdx, qword [0x1400119e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000949e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000949e
cmp word [rax + 0x18], 0x20b
jne 0x14000949e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400094b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140009489
add rbx, 0x28
cmp rbx, rdi
je 0x1400094b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140009480
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400094c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400119e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400094e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400094e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400094e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000953d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140009534
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400094e0
add rax, 0x28
cmp rax, r9
jne 0x140009520
xor eax, eax
ret

Function at 0x140009540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400119e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000955f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140009568
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000955f
movzx ecx, word [rax + 6]
mov eax, ecx
ret