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

Disassembly:
cmp edx, 0x1f
jne 0x140095de8
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 0x140095ca5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140095ca5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140095ca5
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 0x140095cdc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140095d32
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095d32
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095d32
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095d32
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095d32
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.1400956f0
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 0x140095d94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140071aa0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140095ac0
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 0x140095de0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140071aa0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140097550
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d9080]
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 0x1400975e5
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 0x140097646
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140071aa0
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.1400aaf30
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 0x140097701
sub ecx, 1
je 0x140097774
sub ecx, 1
je 0x1400976b0
cmp ecx, 1
je 0x140097693
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c1e10]
call fcn.140071aa0
jmp 0x140097774
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140097280
test eax, eax
je 0x140097774
jmp 0x14009761a
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 0x140097774
sub rax, rsi
cmp rax, rbp
jae 0x140097774
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140071c20
jmp 0x140097774
cmp r8d, 4
jle 0x140097774
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 0x140097774
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400719c0
mov esi, eax
test eax, eax
je 0x140097753
mov edx, 5
mov rcx, rbx
call fcn.140098240
mov eax, esi
jmp 0x14009761a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400804a0
mov rcx, r14
call fcn.140080780
test eax, eax
je 0x140097618
mov edx, 5
mov rcx, rbx
call fcn.140098240
mov eax, Ordinal_45
jmp 0x14009761a
Function at 0x1400aa510
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 0x1400aa552
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 0x1400aa599
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 0x1400aa5f2
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 0x1400aa5b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400aa633
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400bcee2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400bcee3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400aa600
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 0x1400ab75c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ab7a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ab7a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ab7a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ab7a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ab7a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ab7a8
xor al, al
add rsp, 0x28
ret
Function at 0x1832d8108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1832d828f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1832d8139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1832d811f
add dl, dl
jne 0x1832d8146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1832d81a6
xor eax, eax
add dl, dl
jne 0x1832d8155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1832d825d
add dl, dl
jne 0x1832d8166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1832d8173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1832d8180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1832d818d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1832d819a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1832d812e
mov eax, 1
add dl, dl
jne 0x1832d81b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1832d81c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1832d81ab
sub eax, ebx
mov ebx, 1
jne 0x1832d81fc
mov ecx, 1
add dl, dl
jne 0x1832d81de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1832d81eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1832d81d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1832d812e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1832d8218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1832d8225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1832d820d
cmp eax, 0x7d00
jae 0x1832d824b
cmp eax, 0x500
jb 0x1832d8246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1832d812e
cmp eax, 0x7f
ja 0x1832d824e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1832d812e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1832d8282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1832d812e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140cff058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cff1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cff089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cff06f
add dl, dl
jne 0x140cff096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cff0f6
xor eax, eax
add dl, dl
jne 0x140cff0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cff1ad
add dl, dl
jne 0x140cff0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cff0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cff0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cff0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cff0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cff07e
mov eax, 1
add dl, dl
jne 0x140cff106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cff113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cff0fb
sub eax, ebx
mov ebx, 1
jne 0x140cff14c
mov ecx, 1
add dl, dl
jne 0x140cff12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cff13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cff123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cff07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cff168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cff175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cff15d
cmp eax, 0x7d00
jae 0x140cff19b
cmp eax, 0x500
jb 0x140cff196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cff07e
cmp eax, 0x7f
ja 0x140cff19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cff07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cff1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140cff07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000e020
Capabilities:
Terminate process

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

Function at 0x14000e3c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400342a0]
jne 0x1400091ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400091b6
repz ret
ror rcx, 0x10
jmp 0x14000e31c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140036200]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400362f8]
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 0x14000e3a1
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, [0x140036200]
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 0x14000e3c3
mov rax, qword [rsp + 0x88]
mov qword [0x1400362f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140036298], rax
mov rax, qword [0x1400362f8]
mov qword [0x140036170], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140036280], rax
mov dword [0x140036160], 0xc0000409
mov dword [0x140036164], 1
mov rax, qword [0x1400342a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400342a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400361f8], eax
mov ecx, 1
call fcn.14001ad2c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002deb0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400361f8], 0
jne 0x14000e44a
mov ecx, 1
call fcn.14001ad2c
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 0x140003030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x14005d018]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [rcx + 0x10], 0
mov rdi, rdx
je 0x14000314b
cmp qword [rdx + 0x10], 0
je 0x14000314b
cmp qword [rcx + 0x18], 8
mov qword [rsp + 0x280], rbx
mov ebx, 2
mov dword [rsp + 0x30], 0
jb 0x140003083
mov rcx, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x102
ja 0x140003128
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003128
cmp qword [rdi + 0x18], 8
jb 0x1400030bd
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
mov r9d, 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.newdev.dll_UpdateDriverForPlugAndPlayDevicesW]
test eax, eax
jne 0x14000311f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400030f5
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x140003128
lfence
lea rcx, str.e:_build_agentworkspacelaternrock_crashlog_win_mainSrc_srcincludedrvinstall.cpp
mov r9d, 0x5bb
mov qword [rsp + 0x20], rcx
lea rdx, str.HRESULT:_0x_08x___LINE__04i___s_
mov ecx, ebx
mov r8d, eax
call fcn.140003880
jmp 0x140003128
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001a1a0
add rsp, 0x260
pop rdi
ret
mov eax, 3
jmp 0x140003132
Function at 0x140009080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1310]
mov eax, 0x1410
call fcn.14001ad30
sub rsp, rax
mov rax, qword [0x14005d018]
xor rax, rsp
mov qword [rbp + 0x1300], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call fcn.1400293fc
mov rdx, rax
mov dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x54], edx
inc rax
cmp rax, 0x270
jb 0x1400090d1
mov dword [rsp + 0x50], 0x270
call fcn.140019980
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, rdx
sar rax, 0x28
mov byte [rsp + 0x20], al
mov rax, rdx
sar rax, 0x20
mov byte [rsp + 0x21], al
mov rax, rdx
sar rax, 0x18
mov byte [rsp + 0x22], al
mov rax, rdx
sar rax, 0x10
mov byte [rsp + 0x23], al
mov rax, rdx
sar rax, 8
mov byte [rsp + 0x24], al
mov byte [rsp + 0x25], dl
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x26], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x27], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x28], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x29], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x2a], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x2b], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x2c], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x2d], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x2e], al
lea rdx, [rsp + 0x50]
call fcn.140010090
mov byte [rsp + 0x2f], al
mov byte [rbp + 0x12fa], 0
lea rdx, [rbp + 0x12e0]
lea rcx, [rsp + 0x20]
call fcn.140008450
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
lea rax, [rbp + 0x12e0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140009230
lea rdx, [rbp + 0x12e0]
lea rcx, [rsp + 0x20]
call fcn.140006750
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140008850
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140009293
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000928e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400092b6
call fcn.14001a1c0
mov rax, rbx
mov rcx, qword [rbp + 0x1300]
xor rcx, rsp
call fcn.14001a1a0
mov rbx, qword [rsp + 0x1428]
add rsp, 0x1410
pop rbp
ret
call fcn.140027390
int3
Function at 0x1400097d0
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, byte [rcx + 1]
mov rdx, rcx
movzx r8d, byte [rcx]
add r8d, eax
movzx eax, byte [rcx + 2]
add r8d, eax
movzx eax, byte [rcx + 3]
add r8d, eax
movzx eax, byte [rcx + 4]
add r8d, eax
movzx eax, byte [rcx + 5]
add r8d, eax
movzx eax, byte [rcx + 6]
add r8d, eax
movzx eax, byte [rcx + 7]
add r8d, eax
movzx eax, byte [rcx + 8]
add r8d, eax
movzx eax, byte [rcx + 9]
add r8d, eax
movzx eax, byte [rcx + 0xa]
add r8d, eax
movzx eax, byte [rcx + 0xb]
add r8d, eax
movzx eax, byte [rcx + 0xc]
add r8d, eax
movzx eax, byte [rcx + 0xd]
add r8d, eax
movzx eax, byte [rcx + 0xe]
add r8d, eax
movzx eax, byte [rcx + 0xf]
add r8d, eax
movzx eax, byte [rcx + 0x10]
add r8d, eax
movzx eax, byte [rcx + 0x11]
add r8d, eax
movzx eax, byte [rcx + 0x12]
add r8d, eax
movzx eax, byte [rcx + 0x13]
add r8d, eax
movzx eax, byte [rcx + 0x14]
add r8d, eax
movzx eax, byte [rcx + 0x15]
add r8d, eax
movzx eax, byte [rcx + 0x16]
add r8d, eax
movzx eax, byte [rcx + 0x17]
add r8d, eax
movzx eax, byte [rcx + 0x18]
add r8d, eax
movzx eax, byte [rcx + 0x19]
add r8d, eax
movzx eax, byte [rcx + 0x1a]
add r8d, eax
movzx eax, byte [rcx + 0x1b]
add r8d, eax
movzx eax, byte [rcx + 0x1c]
add r8d, eax
movzx eax, byte [rcx + 0x1d]
add r8d, eax
movzx eax, byte [rcx + 0x1e]
add r8d, eax
movzx eax, byte [rcx + 0x1f]
add r8d, eax
movzx eax, byte [rcx + 0x20]
add r8d, eax
movzx eax, byte [rcx + 0x21]
add r8d, eax
movzx eax, byte [rcx + 0x22]
add r8d, eax
movzx eax, byte [rcx + 0x23]
add r8d, eax
movzx eax, byte [rcx + 0x24]
add r8d, eax
movzx eax, byte [rcx + 0x25]
add r8d, eax
movzx eax, byte [rcx + 0x26]
add r8d, eax
movzx eax, byte [rcx + 0x27]
add r8d, eax
movzx eax, byte [rcx + 0x28]
add r8d, eax
movzx eax, byte [rcx + 0x29]
add r8d, eax
movzx eax, byte [rcx + 0x2a]
add r8d, eax
movzx eax, byte [rcx + 0x2b]
add r8d, eax
movzx eax, byte [rcx + 0x2c]
add r8d, eax
movzx eax, byte [rcx + 0x2d]
movzx ecx, byte [rcx + 0x2e]
add r8d, eax
add r8d, ecx
movzx ecx, byte [rdx + 0x2f]
add r8d, ecx
and r8d, 0x800000ff
jge 0x140009936
dec r8d
or r8d, 0xffffff00
inc r8d
neg r8b
movzx eax, r8b
ret
Function at 0x140011e40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140011ea1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140011e60
mov ecx, dword [r10]
jmp 0x140011f8a
cmp ecx, 0x4e0
jb 0x140011f8a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140011ec0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140011f10
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14001aee4
Capabilities:
Parse pe header

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

Function at 0x140029a44
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001ad30
sub rsp, rax
mov rax, qword [0x14005d018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140035f30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140029a93
mov rax, rbp
jmp 0x140029b9b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5fe00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400388bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5fe00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140029b97
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140029b97
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400388bc
test rax, rax
js 0x140029b97
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140029b97
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140029b89
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140029b89
cmp byte [rcx], 0xd
jne 0x140029b6f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140029b7e
cmp byte [rcx + 1], 0xa
jne 0x140029b7e
inc rcx
jmp 0x140029b7e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5d970]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140029b51
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140029b9b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001a1a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret