joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180102ab0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x180102bd4
cmp r8d, 0xff
jne 0x180102b11
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x180102afb
lea r8, [0x180000000]
mov r9, qword [r8 + r10*8 + 0x1446d0]
mov r8, rdx
lea rdx, [0x180145158]
add rsp, 0x38
jmp fcn.1800df110
mov r8, rdx
mov r9d, r10d
lea rdx, [0x180145168]
add rsp, 0x38
jmp fcn.1800df110
cmp r8d, 0xfb
jne 0x180102b23
lea r9, [0x1801450e4]
jmp 0x180102b61
cmp r8d, 0xfc
jne 0x180102b35
lea r9, [0x1801450ec]
jmp 0x180102b61
cmp r8d, 0xfd
jne 0x180102b47
lea r9, [0x1801450f4]
jmp 0x180102b61
xor r9d, r9d
lea rax, [0x1801450f8]
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x180102bbd
cmp r10d, 0x27
jg 0x180102b94
lea r8, [0x180000000]
mov r8, qword [r8 + r10*8 + 0x144cf0]
test r8, r8
jne 0x180102ba4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, [0x180145190]
call fcn.1800df110
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x180102b7b
lea r8, [0x180145174]
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, [0x180145180]
call fcn.1800df110
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, [0x1801451a0]
call fcn.1800df110
add rsp, 0x38
ret

Function at 0x180102f20
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180102f7f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1801451b0]
mov rcx, rbp
mov r8d, eax
call fcn.1800def90
mov rcx, qword [rbx]
lea rdx, [0x1801451cc]
mov r9d, edi
mov r8d, esi
call fcn.180102ab0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180103130
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1801032d8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x180103195
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x180103195
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180103195
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1801031cc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x180103222
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180103222
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180103222
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180103222
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180103222
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.180102be0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x180103284
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1801451b0]
mov rcx, rbp
mov r8d, eax
call fcn.1800def90
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.180102fb0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1801032d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1801451b0]
mov rcx, rbp
mov r8d, eax
call fcn.1800def90
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x180104a40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x181a970c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x180104ad5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x180104b36
lea rdx, [0x180145a40]
mov rcx, rdi
call fcn.1800def90
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180118850
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x180104bf1
sub ecx, 1
je 0x180104c64
sub ecx, 1
je 0x180104ba0
cmp ecx, 1
je 0x180104b83
lea r8, [0x180145a70]
mov rcx, rdi
lea rdx, [0x181a7dd38]
call fcn.1800def90
jmp 0x180104c64
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.180104770
test eax, eax
je 0x180104c64
jmp 0x180104b0a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x180104c64
sub rax, rsi
cmp rax, rbp
jae 0x180104c64
mov r8, rsi
lea rdx, [0x180145a60]
mov rcx, rdi
call fcn.1800df110
jmp 0x180104c64
cmp r8d, 4
jle 0x180104c64
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x180104c64
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800deeb0
mov esi, eax
test eax, eax
je 0x180104c43
mov edx, 5
mov rcx, rbx
call fcn.180105730
mov eax, esi
jmp 0x180104b0a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800ed990
mov rcx, r14
call fcn.1800edc70
test eax, eax
je 0x180104b08
mov edx, 5
mov rcx, rbx
call fcn.180105730
mov eax, Ordinal_46
jmp 0x180104b0a
Function at 0x180117a00
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x180117a42
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 0x180117a89
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
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 0x180117ae2
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 + reloc.OLEAUT32.dll_VariantClear]
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 + reloc.OLEAUT32.dll_VariantClear]
sub rbp, 1
jne 0x180117aa0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180117b23
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x180148292]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x180148293]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180117af0
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 0x180117b3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1801483a0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180117b76
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180117b7b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180117bc4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x180117bc4
dec r8
sub rdx, 1
jne 0x180117baa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movabs rcx, 0x14000406d
sub rsp, 0x30
movabs rax, sym.imp.KERNEL32.dll_LoadLibraryA
call qword [rax]
add rsp, 0x30
movabs rdx, 0x140004076
mov rcx, rax
sub rsp, 0x30
movabs rax, sym.imp.KERNEL32.dll_GetProcAddress
call qword [rax]
add rsp, 0x30
push 0
push 0
mov r9, 0
movabs r8, 0x140004083
mov rdx, 0
mov rcx, 0
call rax
add rsp, 0x10
jmp loc.140001000
Function at 0x401767
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x4013aa
rol rcx, 0x10
test cx, 0xffff
jne 0x4013a6
repz ret
ror rcx, 0x10
jmp 0x4016c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0040c240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0040c338]
mov qword [rsp + 0x58], rax
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 0x401745
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, [0x0040c240]
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 0x401767
mov rax, qword [rsp + 0x88]
mov qword [0x0040c338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0040c2d8], rax
mov rax, qword [0x0040c338]
mov qword [0x0040c1b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0040c2c0], rax
mov dword [0x0040c1a0], 0xc0000409
mov dword [0x0040c1a4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0040b008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0040c238], eax
mov ecx, 1
call fcn.004035e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004082f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0040c238], 0
jne 0x4017ee
mov ecx, 1
call fcn.004035e0
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 0x404310
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00402f50
xor ebx, ebx
cmp qword [0x0040ce50], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x404441
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x404373
xor eax, eax
jmp 0x404521
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x40436c
mov rcx, rax
call fcn.00402ee0
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0040ce50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402ee0
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0040ce58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402ee0
lea rcx, [rsp + 0x30]
mov qword [0x0040ce60], rax
call fcn.004018f0
test eax, eax
je 0x4043f7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004038d0
cmp dword [rsp + 0x30], 2
jne 0x404441
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402ee0
test rax, rax
mov qword [0x0040ce70], rax
je 0x404441
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00402ee0
mov qword [0x0040ce68], rax
mov rcx, qword [0x0040ce68]
cmp rcx, rsi
je 0x4044d3
cmp qword [0x0040ce70], rsi
je 0x4044d3
call fcn.00402fb0
call rax
test rax, rax
mov rbp, rax
je 0x40449e
mov rcx, qword [0x0040ce70]
call fcn.00402fb0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x40449e
test byte [rsp + 0x48], 1
jne 0x4044d3
lea rcx, [rsp + 0x34]
call fcn.00401940
test eax, eax
je 0x4044c0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004038d0
cmp dword [rsp + 0x34], 4
jb 0x4044cd
bts edi, 0x15
jmp 0x404507
bts edi, 0x12
jmp 0x404507
mov rcx, qword [0x0040ce58]
cmp rcx, rsi
je 0x404507
call fcn.00402fb0
call rax
test rax, rax
mov rbx, rax
je 0x404507
mov rcx, qword [0x0040ce60]
cmp rcx, rsi
je 0x404507
call fcn.00402fb0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0040ce50]
call fcn.00402fb0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140001360
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
jmp 0x1400013d1
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
add rax, 0x28
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x30], eax
jge 0x140001598
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x10], 0
jne 0x1400014b7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x1400014b2
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov rdx, qword [rdx + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [rsp + 0x98]
call qword [rax + 0x28]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000146a
xor eax, eax
jmp 0x14000159d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 8], eax
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
jmp 0x1400013b9
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x38]
add eax, dword [rcx + 0x10]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.140001320
test eax, eax
jne 0x1400014e3
xor eax, eax
jmp 0x14000159d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x98]
mov rdx, qword [rdx + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
mov rax, qword [rsp + 0x98]
call qword [rax + 0x28]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001539
xor eax, eax
jmp 0x14000159d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
mov rdi, qword [rsp + 0x40]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 8], eax
jmp 0x1400013b9
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140005954
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400059e5
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400059e5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059e5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400059c9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400059c3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400059cb
add rdx, 0x28
jmp 0x1400059a8
xor edx, edx
test rdx, rdx
jne 0x1400059d4
xor al, al
jmp 0x1400059eb
test dword [rdx + 0x24], 0x80000000
je 0x1400059e1
xor al, al
jmp 0x1400059eb
mov al, 1
jmp 0x1400059eb
xor al, al
jmp 0x1400059eb
add rsp, 0x18
ret

Function at 0x140009d34
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 0x140009b08
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009b08
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009b08
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009b08
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009b08
cmp dword [rcx + 0x84], 0xe
jbe 0x140009b08
cmp dword [rcx + 0xf8], esi
je 0x140009b08
mov ecx, r14d
call fcn.140009c50
mov ecx, 2
call fcn.14000c854
nop
cmp byte [0x140020e10], 0
jne 0x140009bd2
mov r15d, 1
mov eax, r15d
xchg dword [0x140020e00], eax
test ebx, ebx
jne 0x140009b7b
mov rdi, qword [0x140020018]
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 [0x140020e08]
cmp rcx, rax
je 0x140009b72
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005b78]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140021080]
jmp 0x140009b87
cmp ebx, r15d
jne 0x140009b8d
lea rcx, [0x140021098]
call fcn.14000bbbc
nop
test ebx, ebx
jne 0x140009ba4
lea rdx, [0x140015340]
lea rcx, [0x140015320]
call fcn.14000b4e4
lea rdx, [0x140015350]
lea rcx, [0x140015348]
call fcn.14000b4e4
movzx eax, byte [0x140020e10]
test esi, esi
cmove eax, r15d
mov byte [0x140020e10], al
jmp 0x140009bd2
mov ecx, 2
call fcn.14000c8a8
test esi, esi
jne 0x140009be9
mov ecx, r14d
call fcn.140009c04
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 0x140009a98
Function at 0x14000e97c
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 0x14000e81c
call fcn.14000c090
mov dword [rax], 0x16
call fcn.14000abb0
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 0x14000e804
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14000e804
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14000e84e
lock or dword [rax + 0x14], 0x10
jmp 0x14000e804
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14000e86b
mov rcx, qword [rbp + 0x10]
call fcn.140012ac8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000d264
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14000d950
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14000e8c2
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 0x14000e804
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14000e92e
mov rcx, qword [rbp + 0x10]
call fcn.14000d264
cmp eax, 0xffffffff
je 0x14000e915
mov rcx, qword [rbp + 0x10]
call fcn.14000d264
cmp eax, 0xfffffffe
je 0x14000e915
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000d264
movsxd rdi, eax
lea rsi, [0x140021490]
mov rcx, rbx
sar rdi, 6
call fcn.14000d264
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14000e91c
lea rax, [0x140020430]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14000e92e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14000e964
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14000e960
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14000e960
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 0x14000e807
jmp 0x14000e7d4