joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9a70
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x1400e9aaf
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400b9690
lea eax, [rdi + 0x11]
jmp 0x1400e9c15
cmp edx, 0xc8
je 0x1400e9ac6
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400b9780
cmp esi, 0x13
jne 0x1400e9adb
mov rdx, rbp
mov rcx, rbx
call fcn.1400e9720
jmp 0x1400e9c11
cmp esi, 0x14
jne 0x1400e9bf3
cmp byte [rbx + 0x718], 2
mov rbp, qword [rbx + 0x18]
jne 0x1400e9b58
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400e9b58
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.1400fd280
test eax, eax
jne 0x1400e9c11
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.14011b924
test rax, rax
je 0x1400e9b4d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400e9b58
mov rcx, qword [rsp + 0x40]
call qword [fcn.14012a718]
mov rdx, qword [rbx + 0x780]
test rdx, rdx
jne 0x1400e9b7d
cmp byte [rbx + 0x1318], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140187ec1]
test rdi, rdi
mov r9, r8
lea rax, [0x14018ed5c]
cmovne r9, rdi
lea rcx, [0x14018f4d4]
cmovne r8, rax
call fcn.1400d1af0
mov rcx, rdi
mov rsi, rax
call qword [fcn.14012a718]
test rsi, rsi
jne 0x1400e9bbb
lea edi, [rsi + 0x1b]
jmp 0x1400e9c13
lea rdx, [rbp + 0x6d0]
mov r9, rsi
lea r8, [0x14018dfe0]
mov rcx, rbx
call fcn.14010f020
mov rcx, rsi
mov edi, eax
call qword [fcn.14012a718]
test edi, edi
jne 0x1400e9c13
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1f
jmp 0x1400e9c13
cmp esi, 0x15
jne 0x1400e9bfe
lea r8d, [rsi - 8]
jmp 0x1400e9c07
cmp esi, 0x16
jne 0x1400e9c13
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1400e9100
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140113ad0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14012a720]
mov rdi, rax
test rax, rax
jne 0x140113b12
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140113b59
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140113bb2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x140113b70
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140113bf3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14019c270]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14019c271]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140113bc0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14012ab38
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 0x14012a870
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012a870
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012a870
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012a870
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012a870
cmp dword [rcx + 0x84], 0xe
jbe 0x14012a870
cmp dword [rcx + 0xf8], esi
je 0x14012a870
mov ecx, r14d
call fcn.14012aa40
mov ecx, 2
call fcn.140167c70
nop
cmp byte [0x1401c7bb8], 0
jne 0x14012a93a
mov r15d, 1
mov eax, r15d
xchg dword [0x1401c7ba8], eax
test ebx, ebx
jne 0x14012a8e3
mov rdi, qword [0x1401c6138]
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 [0x1401c7bb0]
cmp rcx, rax
je 0x14012a8da
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x140185440]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1401c7f20]
jmp 0x14012a8ef
cmp ebx, r15d
jne 0x14012a8f5
lea rcx, [0x1401c7f38]
call fcn.1401620f4
nop
test ebx, ebx
jne 0x14012a90c
lea rdx, [0x1401855d0]
lea rcx, [0x1401855b0]
call fcn.140162778
lea rdx, [0x1401855e0]
lea rcx, [0x1401855d8]
call fcn.140162778
movzx eax, byte [0x1401c7bb8]
test esi, esi
cmove eax, r15d
mov byte [0x1401c7bb8], al
jmp 0x14012a93a
mov ecx, 2
call fcn.140167cc4
test esi, esi
jne 0x14012a951
mov ecx, r14d
call fcn.14012a96c
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 0x14012a800
Function at 0x14016cc10
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 0x14016c838
call fcn.140129588
mov dword [rax], 0x16
call fcn.1401293dc
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 0x14016c820
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14016c820
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14016c86a
lock or dword [rax + 0x14], 0x10
jmp 0x14016c820
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14016c887
mov rcx, qword [rbp + 0x10]
call fcn.14017b4a4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14016ab98
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140164f84
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14016c8de
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 0x14016c820
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14016c94a
mov rcx, qword [rbp + 0x10]
call fcn.14016ab98
cmp eax, 0xffffffff
je 0x14016c931
mov rcx, qword [rbp + 0x10]
call fcn.14016ab98
cmp eax, 0xfffffffe
je 0x14016c931
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14016ab98
movsxd rdi, eax
lea rsi, [0x1401c89c0]
mov rcx, rbx
sar rdi, 6
call fcn.14016ab98
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14016c938
lea rax, [0x1401c6540]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14016c94a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14016c980
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14016c97c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14016c97c
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 0x14016c823
jmp 0x14016c7f0
Function at 0x140178324
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140178344
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140129518
or eax, 0xffffffff
jmp 0x140178346
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140477730]
mov dword [rax], 1
mov rax, qword [0x140477740]
mov dword [rax], 1
mov rax, qword [0x140477750]
mov dword [rax], 1
mov rax, qword [0x1404776c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1403c4ef0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.14044ffa0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.1403e29c0
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1403c4f51
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x1403c4f60
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.1403e29c0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x1403c5030
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.1403de270
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x1403c50ea
mov rdx, r14
mov rcx, rbx
call fcn.1403c4f60
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x1403c512c
sub qword [r14], 1
jne 0x1403c50b1
mov rcx, r14
call fcn.1403c4fa0
sub qword [r13], 1
jne 0x1403c50c0
mov rcx, r13
call fcn.1403c4fa0
sub qword [r12], 1
jne 0x1403c50dc
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.1403c4fa0
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.1403e29c0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1403c50b1
mov rcx, r15
call fcn.1403c4fb0
jmp 0x1403c50b1
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x140444fd0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1404ac509], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140445058
lea rdx, [0x140475afa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140445170
mov rsi, qword [0x1404ac3c0]
jmp 0x140445015
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140445010
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1404329a0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1404ac3c0], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1404ac3c0], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1404ac3c0], rcx
test eax, eax
je 0x140445158
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1404450c0
not eax
cmp r9d, eax
jne 0x1404451d8
mov byte [0x1404ac509], 1
jmp 0x140444fed
cmp byte [0x1404ac508], 0
jne 0x140445004
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1404ace68], rax
call rbx
mov qword [0x1404ace60], rax
call rbx
mov qword [0x1404ace58], rax
call rbx
mov qword [0x1404ace50], rax
call rbx
mov qword [0x1404ace48], rax
call rbx
mov qword [0x1404ace40], rax
call rbx
mov qword [0x1404ace38], rax
call rbx
mov byte [0x1404ac508], 1
mov qword [0x1404ace30], rax
jmp 0x140445004
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14044eca0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140460000
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140460000
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14044f952
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1404ad328]
test eax, eax
je 0x14044f9ea
lea rax, [0x1404ad300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1404ad330]
mov qword [rbp - 8], rax
jmp 0x14044f9ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14044f9c2
cmp qword [rbp - 0x10], 0
je 0x14044f9c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14044f988
lea rax, [0x1404ad300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14044f9eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14044faf0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14044fb18
mov eax, 0
jmp 0x14044fb66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14044fb41
mov eax, 0
jmp 0x14044fb66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14044fb61
mov eax, 0
jmp 0x14044fb66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14044fb6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14044fbea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14044fbe1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14044fbe1
mov rax, qword [rbp - 8]
jmp 0x14044fbff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14044fbb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140059c5c
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x40
xor eax, eax
lea r8, [r11 + 0x10]
and dword [rcx + 8], eax
xorps xmm0, xmm0
and qword [r11 + 0x10], rax
mov rsi, rcx
movups xmmword [rsp + 0x20], xmm0
lea edx, [rax + 1]
mov qword [r11 - 0x18], rax
xor r9d, r9d
lea rcx, str.D:PAI_A_OICI_FA___WD_
xor ebx, ebx
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x140059cd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140059cbc
mov edi, 0x80004005
jmp 0x140059cca
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
jmp 0x140059d99
mov rax, qword [rsp + 0x58]
lea r8, str.Global552FFA80_3393_423d_8671_7BA046BB5906
and dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
jne 0x140059d31
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140059d5e
lea r8, str.Global552FFA80_3393_423d_8671_7BA046BB5906
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
test rax, rax
je 0x140059cab
mov edx, 0x2710
mov rcx, rbx
mov rbp, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140059d7f
cmp eax, 0x80
je 0x140059d75
cmp eax, 0x102
jne 0x140059d86
mov edi, 0x800705b4
jmp 0x140059cca
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x140059d99
jmp 0x140059cca
mov edi, 0x8000ffff
jmp 0x140059cca
mov dword [rsi + 8], 1
mov rcx, qword [rsi]
xor ebx, ebx
test rcx, rcx
je 0x140059d96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbp
mov ecx, edi
call fcn.140082b34
test rbx, rbx
je 0x140059dae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140059dbe
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14005a934
Capabilities:
Get token membership

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x28
lea rax, str.S_1_5_80_123231216_2592883651_3715271367_3753151631_4175906628
xor ecx, ecx
mov qword [rbp + 0x50], rax
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, 0x6bd
jne 0x14005a979
xor edi, edi
lea rdx, [0x14044a25c]
lea rcx, [0x140435ff0]
call fcn.1400f6ac8
jmp 0x14005ab4e
test eax, eax
jne 0x14005ab10
and dword [rbp + 0x38], eax
lea rdx, [rbp + 0x38]
call fcn.140072414
lea rdx, [0x14044ba08]
mov edi, eax
lea rcx, [0x14042c458]
call fcn.1400f74d8
test edi, edi
js 0x14005aaff
cmp dword [rbp + 0x38], 0
je 0x14005a9ca
lea rdx, [0x14044a948]
lea rcx, [0x1404332d8]
call fcn.1400f6e28
xor edi, edi
jmp 0x14005ab06
cmp dword [0x140451834], 0
je 0x14005aafa
xor r14d, r14d
lea r15, [rbp + 0x50]
mov r12d, 0x80004005
mov rcx, qword [r15]
lea rdx, [rbp + 0x48]
xor ebx, ebx
xor edi, edi
and qword [rbp + 0x48], rbx
and dword [rbp + 0x40], ebx
mov dword [rbp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14005aa29
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005aa12
mov edi, r12d
jmp 0x14005aa20
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
jmp 0x14005aa43
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14005aa03
mov ebx, dword [rbp + 0x40]
mov dword [rbp + 0x38], ebx
mov ecx, edi
call fcn.140082b34
lea rcx, [rbp + 0x48]
call fcn.140072df8
test edi, edi
js 0x14005aaff
test ebx, ebx
jne 0x14005a9c3
inc r14d
add r15, 8
cmp r14d, 1
jb 0x14005a9e4
lea r8, [rbp + 0x38]
lea edx, [rbx + 0x12]
call fcn.1400785c0
mov edi, eax
test eax, eax
jns 0x14005aa8a
mov ecx, eax
jmp 0x14005ab01
cmp dword [rbp + 0x38], 0
jne 0x14005a9c3
lea r8, [rbp + 0x38]
mov edx, SafeArrayUnaccessData
call fcn.1400785c0
mov edi, eax
test eax, eax
js 0x14005aa86
lea rdx, [0x14044c458]
lea rcx, [0x14042cd78]
call fcn.1400f7184
cmp dword [rbp + 0x38], 0
jne 0x14005a9c3
lea r8, [rbp + 0x38]
mov edx, SafeArrayGetElement
call fcn.1400785c0
mov edi, eax
test eax, eax
js 0x14005aa86
cmp dword [rbp + 0x38], 0
jne 0x14005a9c3
lea rcx, [rbp + 0x38]
call fcn.14005a738
test eax, eax
js 0x14005aafa
cmp dword [rbp + 0x38], 0
jne 0x14005a9c3
mov edi, 0xc004f025
mov ecx, edi
call fcn.140082a8c
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
jmp 0x14005ab4e
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
lea rdx, [0x14044b90c]
mov ebx, eax
lea rcx, [0x14043b368]
call fcn.1400f7830
movzx edi, bx
mov r12d, 0x80004005
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test edi, edi
cmovns edi, r12d
mov ecx, edi
call fcn.140082a8c
mov ecx, edi
call fcn.140082b34
mov eax, edi
add rsp, 0x28
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret