joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fee20
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400fefc8
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 0x1400fee85
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400fee85
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400fee85
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 0x1400feebc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400fef12
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fef12
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fef12
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fef12
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400fef12
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.1400fe8d0
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 0x1400fef74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400db050
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400feca0
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 0x1400fefc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400db050
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140100730
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140167080]
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 0x1401007c5
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 0x140100826
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400db050
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.140114370
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 0x1401008e1
sub ecx, 1
je 0x140100954
sub ecx, 1
je 0x140100890
cmp ecx, 1
je 0x140100873
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140146778]
call fcn.1400db050
jmp 0x140100954
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140100460
test eax, eax
je 0x140100954
jmp 0x1401007fa
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 0x140100954
sub rax, rsi
cmp rax, rbp
jae 0x140100954
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400db1d0
jmp 0x140100954
cmp r8d, 4
jle 0x140100954
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 0x140100954
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400daf70
mov esi, eax
test eax, eax
je 0x140100933
mov edx, 5
mov rcx, rbx
call fcn.140101420
mov eax, esi
jmp 0x1401007fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400e9850
mov rcx, r14
call fcn.1400e9b30
test eax, eax
je 0x1401007f8
mov edx, 5
mov rcx, rbx
call fcn.140101420
mov eax, Ordinal_46
jmp 0x1401007fa
Function at 0x1401136f0
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 0x140113732
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 0x140113779
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
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 0x1401137d2
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.WS2_32.dll_htonl]
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.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140113790
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140113813
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140141692]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140141693]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401137e0
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 0x140114884
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401148ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401148ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401148ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401148ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1401148ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401148d0
xor al, al
add rsp, 0x28
ret

Function at 0x140dfdafc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140dfdb06
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140dfdb2f
pop rbp
sub rbp, 0x33
sub rbp, 0xdfdafc
sub rsp, 0x20
jmp 0x140dfdb4e
mov rax, 0xdfdafc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x6eaed59c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140dfdb6d
jmp 0x140dfdb84
invalid
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405460]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405470]
mov dword [rax], 1
mov rax, qword [0x00405480]
mov dword [rax], 1
mov rax, qword [0x00405450]
mov dword [rax], 1
mov rax, qword [0x00405340]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405440]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00405400]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004052f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408824]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401c28
mov rax, qword [0x00408828]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401aec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401b75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ad0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401c5d
mov rax, qword [0x00408828]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408828]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b6e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401bd0
add dword [0x00408824], 1
cmp edi, 8
jae 0x401ba3
test dil, 4
jne 0x401c14
test edi, edi
je 0x401b98
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401c2f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401b98
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401bbc
jmp 0x401b98
add rsi, qword [0x00408828]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401b98
xor esi, esi
jmp 0x401af7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401b98
mov rax, qword [0x00408828]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4023b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408b00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408ae0]
test rbx, rbx
je 0x402404
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4023fb
test rsi, rsi
je 0x4023fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023e0
lea rcx, [0x00408b00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402640
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402650
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402660
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4026a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402698
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4026a3
add rax, 0x28
cmp rax, r9
jne 0x402684
xor eax, eax
ret

Function at 0x402740
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405340]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4027ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4027ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4027ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4027a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4027af
add rax, 0x28
cmp rax, r9
jne 0x402790
xor eax, eax
add rsp, 0x28
ret

Function at 0x4028b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405340]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4028d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40292d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402924
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402934
add rax, 0x28
cmp rax, r9
jne 0x402910
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405340]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4029be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4029be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4029be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4029b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4029c5
add rcx, 0x28
cmp rcx, rax
jne 0x4029a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4029d8
jmp 0x4029be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4029e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4029be
test r9d, r9d
jg 0x4029d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x77
add al, 0xab
xor al, 0x32
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
mov eax, 0x99eb0fa8
invalid
Function at 0x140002590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x1400025dc
cmp rax, rbx
jne 0x1400025cf
mov ebx, 1
mov esi, ebx
jmp 0x1400025e1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400025b4
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400025f7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000265c
mov eax, dword [0x140004658]
test eax, eax
jne 0x140002656
mov dword [0x140004658], ebx
lea r15, [0x1400033c0]
lea rdi, [0x1400033a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002648
test eax, eax
jne 0x14000264c
cmp qword [rdi], 0
je 0x14000263d
mov rax, qword [rdi]
mov rcx, qword [0x140003388]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000261e
test eax, eax
je 0x14000265c
mov eax, 0xff
jmp 0x140002738
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002683
lea rdx, [0x1400033a0]
lea rcx, [0x140003390]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002690
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x1400026c4
lea rcx, [0x140004660]
call fcn.140002940
test eax, eax
je 0x1400026c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003388]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.1400019b0
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x1400026f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14012b000
add rsp, 0x28
jmp 0x140002590

Function at 0x14000282c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002878
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002870
cmp dword [rcx + 0x3c], edx
jl 0x140002870
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002870
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002878
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180002e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x180002ef8
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180002ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x180002ef8
test rdi, rdi
je 0x180002ee9
mov qword [rdi], rax
test rbx, rbx
je 0x180002ef1
mov qword [rbx], rsi
mov eax, 1
jmp 0x180002efa
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x180037008]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rdx
mov rsi, rcx
mov edx, 1
lea rcx, [rbp - 0x48]
mov rbx, r8
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
lea rcx, [rbp - 0x48]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor r15d, r15d
mov word [rbp + 0x2c], 0x100
xor eax, eax
lea rdi, [rbp - 0x60]
mov qword [rbp - 0x20], rax
mov ecx, 8
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea rax, [rbp - 0x48]
mov dword [rbp - 0x10], r15d
mov qword [rbp - 0x18], rax
xor r8d, r8d
xor eax, eax
mov dword [rbp - 0x20], 0x18
rep stosb byte [rdi], al
mov dword [rbp + 0x28], eax
lea rdi, [rsp + 0x70]
mov ecx, 0x28
mov dl, 1
rep stosb byte [rdi], al
lea rax, [rbp - 0x68]
mov qword [rbp - 0x68], r15
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x28]
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x68], r15
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x180003083
mov rax, qword [rbp - 0x68]
lea r9, [rsp + 0x68]
xorps xmm0, xmm0
mov qword [rbp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 0x18], 5
lea rdx, [rbp - 8]
mov dword [rbp - 8], 0x10000000
lea ecx, [r15 + 1]
mov qword [rbp - 4], 2
movdqu xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], r15d
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
lea edx, [r15 + 1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov r8, qword [rsp + 0x68]
lea edx, [r15 + 1]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], r15d
mov dword [rbp - 0x60], 0x18
cmp qword [rsp + 0x68], r15
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], r15
lea r9, [rbp - 0x60]
cmove r9, rax
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x68]
mov rdi, rax
test rcx, rcx
je 0x1800030cd
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1800030dc
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp rdi, 0xffffffffffffffff
je 0x180003108
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r15
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
jne 0x18000310c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180003117
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180007c10
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret