joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002120
Capabilities:
Compare security identifiers

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x30
xor ebp, ebp
mov r13d, edx
mov rsi, rcx
mov qword [rsp + 0x70], rbp
cmp edx, 1
jne 0x140002146
mov r14, qword [rcx + 8]
mov ebx, ebp
jmp 0x140002156
cmp edx, 2
jne 0x14000235e
mov r14, qword [rcx + 0x10]
lea ebx, [rdx - 1]
test r14, r14
jne 0x140002169
xor eax, eax
add rsp, 0x30
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
mov r9d, 2
lea rdx, [rsp + 0x20]
mov rcx, r14
lea r8d, [r9 + 0xa]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x14000219f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x30], eax
mov eax, 0x1d
add rsp, 0x30
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov r12d, dword [rsp + 0x20]
mov qword [rsp + 0x78], r15
movsxd r15, ebx
test r12d, r12d
je 0x14000232b
nop
lea r8, [rsp + 0x70]
mov edx, ebp
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x14000234b
mov rcx, qword [rsp + 0x70]
test byte [rcx + 1], 0x10
jne 0x140002320
mov rax, qword [rsi + 0x48]
mov rbx, qword [rax + 0x18]
test rbx, rbx
je 0x140002320
nop dword [rax + rax]
mov rdi, rbx
test rbx, rbx
je 0x140002345
mov rbx, qword [rbx]
mov rdi, qword [rdi + 0x10]
test r15, r15
je 0x140002220
cmp dword [rdi + 0x28], 0
je 0x14000223d
jmp 0x140002226
cmp dword [rdi + 0x24], 0
je 0x14000223d
mov rdx, qword [rdi + 0x18]
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140002247
mov rcx, qword [rsp + 0x70]
test rbx, rbx
jne 0x140002200
jmp 0x140002320
mov eax, dword [rdi + 0x20]
bt eax, 9
jae 0x14000226d
mov edx, ebp
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
je 0x140002332
dec r12d
dec ebp
jmp 0x140002320
bt eax, 8
jae 0x1400022ba
mov r9, qword [rdi + 0x30]
mov r8d, ebp
mov rdx, r14
mov r9, qword [r9 + 0x18]
mov rcx, rsi
call fcn.140001330
mov r14, rax
test rax, rax
jne 0x1400022e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x30], eax
mov eax, 0x1f
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
bt eax, 0xa
jae 0x140002320
mov r9, qword [rdi + 0x30]
mov r8d, ebp
mov rdx, r14
mov r9, qword [r9 + 0x18]
mov rcx, rsi
call fcn.1400015c0
mov r14, rax
test rax, rax
je 0x140002291
inc r12d
cmp r13d, 1
jne 0x1400022f1
mov rcx, rsi
call fcn.140001de0
jmp 0x1400022ff
cmp r13d, 2
jne 0x1400022ff
mov rcx, rsi
call fcn.140001e10
cmp r13d, 1
jne 0x14000230f
mov qword [rsi + 8], r14
mov dword [rsi + 0x54], r13d
jmp 0x140002320
cmp r13d, 2
jne 0x140002320
mov qword [rsi + 0x10], r14
mov dword [rsi + 0x58], 1
inc ebp
cmp ebp, r12d
jb 0x1400021c0
xor eax, eax
jmp 0x14000229f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x30], eax
mov eax, 0x1e
jmp 0x14000229f
call fcn.14001eb98
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x30], eax
mov eax, 0x1d
jmp 0x14000229f
mov eax, 3
add rsp, 0x30
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002ec7
test al, 0x10
mov eax, 1
cmovne ebx, eax
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140002ee6
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rdx
mov rbp, rcx
add rcx, 0x188
call fcn.140004410
mov rcx, qword [rbp + 0x190]
xor ebx, ebx
test rcx, rcx
je 0x140004e02
call fcn.140031d90
mov qword [rbp + 0x190], rbx
mov qword [rsp + 0x70], rbx
lea r8, [0x14004bdb8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x70]
call fcn.140031ca0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
setne bl
test rcx, rcx
je 0x140004e30
call fcn.140031d90
lea r8, [0x14004bdb0]
mov rdx, qword [rdi]
lea rcx, [rbp + 0x190]
call fcn.140031ca0
mov r9, qword [rbp + 0x190]
test r9, r9
je 0x140004e98
test eax, eax
jne 0x140004e98
test ebx, ebx
jne 0x140004e76
mov eax, 0xfeff
mov word [rsp + 0x60], ax
lea edx, [rbx + 2]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.140031ac0
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140004e94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140004f10
mov r8, rdi
lea rdx, str.ERROR:_Opening_log_file:__
lea rcx, [rsp + 0x78]
call fcn.140004340
nop
lea r8, str.__failed_
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140004270
mov rdx, rax
mov rcx, rbp
call fcn.1400044d0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004ef0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140004f0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x22
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009090
Capabilities:
Get domain controller name

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13d, r9d
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rax + 8], r15
add rcx, 8
call fcn.1400025c0
mov dword [rsi + 0x10], r15d
mov dword [rsi + 0x14], r15d
mov dword [rsi + 0x18], r15d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400090f1
mov rax, qword [rcx]
lea edx, [r15 + 1]
call qword [rax]
mov qword [rsi + 0x20], r15
mov rdx, qword [rbp]
cmp dword [rdx - 0x10], r15d
jne 0x140009121
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x140009117
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x2b
jmp 0x1400091ec
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x1400091c7
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax + 0x28]
or rbx, 0xffffffffffffffff
test rdx, rdx
jne 0x140009162
mov ecx, r15d
jmp 0x140009173
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsi + 8]
call fcn.140003420
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140009191
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [rsi + 0x10], r14d
mov dword [rsi + 0x14], r13d
mov eax, dword [rsp + 0xa0]
mov dword [rsi + 0x18], eax
mov qword [rsi + 0x20], r15
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400091c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400091ec
mov rdx, qword [rbp]
sub rdx, 0x18
or rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400091e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x2b
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rbx, [rcx + 0x178]
mov rdi, rcx
mov rcx, qword [rbx]
test rcx, rcx
je 0x140014658
call fcn.140031d90
mov qword [rbx], 0
mov rdx, qword [rdi + 0x170]
cmp dword [rdx - 0x10], 0
je 0x14001469d
lea r8, [0x14004e960]
mov rcx, rbx
call fcn.140031ca0
mov r9, qword [rbx]
test r9, r9
je 0x1400146d7
test eax, eax
jne 0x1400146d7
mov edx, 2
mov eax, 0xfeff
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
mov word [rsp + 0x30], ax
call fcn.140031ac0
mov rcx, qword [rdi + 0x90]
mov eax, dword [rdi + 0x98]
sub rcx, 0x18
cmp eax, 1
jne 0x1400146e7
call fcn.140002780
lea r8, [fcn.1400111f0]
lea rdx, [rsp + 0x30]
add rax, 0x18
mov rcx, rdi
mov qword [rsp + 0x30], rax
call fcn.14000b7a0
jmp 0x14001472e
mov eax, 0x22
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 4
jne 0x140014710
call fcn.140002780
lea r8, [fcn.1400111f0]
lea rdx, [rsp + 0x30]
add rax, 0x18
mov rcx, rdi
mov qword [rsp + 0x30], rax
call fcn.1400062e0
jmp 0x14001472e
call fcn.140002780
lea rdx, [rsp + 0x30]
xor r8d, r8d
add rax, 0x18
mov rcx, rdi
mov qword [rsp + 0x30], rax
call fcn.1400111f0
mov rcx, qword [rbx]
mov edi, eax
test rcx, rcx
je 0x140014744
call fcn.140031d90
mov qword [rbx], 0
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e8f0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x210
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rdi, rdx
mov esi, ecx
lea rdx, [0x140014cf0]
lea rcx, [rsp + 0x30]
call fcn.140009820
nop
mov dword [0x140067d10], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor r9d, r9d
mov r8, rbx
xor edx, edx
call fcn.1400210d8
test eax, eax
jne 0x14001e970
lea rcx, str.ERROR:_MFC_initialization_failed__n
call fcn.140032464
nop
lea rcx, [rsp + 0x30]
call fcn.140009b00
mov eax, 2
jmp 0x14001e9b2
lea r9, [rsp + 0x30]
lea r8, [0x140014cf0]
mov rdx, rdi
mov ecx, esi
call fcn.140014d40
mov ebx, eax
test eax, eax
je 0x14001e99a
lea rcx, [rsp + 0x30]
call fcn.140009b00
mov eax, ebx
jmp 0x14001e9b2
lea rcx, [rsp + 0x30]
call fcn.140014800
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.140009b00
mov eax, ebx
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140027164
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14002e940
mov rsi, rax
test rax, rax
je 0x1400271e0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x1400271db
cmp dword [rbx], 0x40
jb 0x1400271db
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400271db
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1400271e4
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140033244
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400330ac

Function at 0x140039607
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140066450]
jne 0x140031eca
rol rcx, 0x10
test cx, 0xffff
jne 0x140031ec6
repz ret
ror rcx, 0x10
jmp 0x140039560
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14006bc50]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14006bd48]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400395e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14006bc50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140039607
mov rax, qword [rsp + 0x88]
mov qword [0x14006bd48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14006bce8], rax
mov rax, qword [0x14006bd48]
mov qword [0x14006bbc0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14006bcd0], rax
mov dword [0x14006bbb0], 0xc0000409
mov dword [0x14006bbb4], 1
mov rax, qword [0x140066450]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140066458]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14006bc48], eax
mov ecx, 1
call fcn.14003d394
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140054be8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14006bc48], 0
jne 0x14003968e
mov ecx, 1
call fcn.14003d394
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140040314
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400349b0
xor ebx, ebx
mov rdi, rax
cmp qword [0x14006c800], rbx
jne 0x14004041a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400404ef
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400404ef
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400566d0]
mov rcx, rsi
mov qword [0x14006c800], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400566b8]
mov rcx, rsi
mov qword [0x14006c808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14006c810], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14006c820], rax
test rax, rax
je 0x140040411
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14006c818], rax
jmp 0x140040421
mov rax, qword [0x14006c818]
jmp 0x140040428
mov rax, qword [0x14006c818]
mov r11, qword [0x14006c820]
cmp rax, rdi
je 0x140040490
cmp r11, rdi
je 0x140040490
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14006c820]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140040490
test rax, rax
je 0x140040490
call rsi
test rax, rax
je 0x14004048a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14004048a
test byte [rsp + 0x38], 1
jne 0x140040490
bts ebp, 0x15
jmp 0x1400404ce
mov rcx, qword [0x14006c808]
cmp rcx, rdi
je 0x1400404ce
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400404ce
call rax
mov rbx, rax
test rax, rax
je 0x1400404ce
mov rcx, qword [0x14006c810]
cmp rcx, rdi
je 0x1400404ce
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400404ce
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14006c800]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400404ef
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400404f1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x1400130c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014410
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014430
xor al, al
jmp 0x1400144b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014443
xor al, al
jmp 0x1400144b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001446d
xor al, al
jmp 0x1400144b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014481
xor al, al
jmp 0x1400144b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014493
xor al, al
jmp 0x1400144b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400144af
xor al, al
jmp 0x1400144b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400112b7
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400117d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x3f0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x94
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x418]
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x1400220a3]
call fcn.140011375
movzx eax, byte [rbp + 0x3f0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140011847
xor eax, eax
jmp 0x140011998
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax], 0x4550
je 0x140011870
xor eax, eax
jmp 0x140011998
lea rax, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0xe0]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1f4], 0
jmp 0x140011912
mov eax, dword [rbp + 0x1f4]
inc eax
mov dword [rbp + 0x1f4], eax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x1f4], eax
jae 0x140011996
mov eax, dword [rbp + 0x1f4]
mov rcx, qword [rbp + 0x198]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x218], rax
mov eax, dword [rbp + 0x1f4]
mov rcx, qword [rbp + 0x1d8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x1b8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
mov rdx, qword [rbp + 0x218]
mov rcx, qword [rbp + 0x3f8]
call fcn.1400113d9
test eax, eax
jne 0x140011991
mov rax, qword [rbp + 0x238]
jmp 0x140011998
jmp 0x140011904
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011311
mov rax, rdi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.1400111ae
lea rsp, [rbp + 0x3d0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001bf70]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001bf80]
mov dword [rax], 1
mov rax, qword [0x14001bf90]
mov dword [rax], 1
mov rax, qword [0x14001bf60]
mov dword [rax], 1
mov rax, qword [0x14001be00]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001bf50]
mov dword [0x14001f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001bf10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001bef0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001bd90]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001b50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402076d4]
mov r12, rcx
test ebx, ebx
jle 0x140001cf0
mov rax, qword [0x1402076d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001c0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001c93
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001bf0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001d12
mov rax, qword [0x1402076d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402076d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c8c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ca0
add dword [0x1402076d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1402076d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001c17
mov rax, qword [0x1402076d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140207740]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140207720]
test rbx, rbx
je 0x140002224
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000221b
test r12, r12
je 0x14000221b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002200
lea rcx, [0x140207740]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002440
Capabilities:
Parse pe header

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