joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140160970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14021c080]
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 0x140160a05
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 0x140160a66
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14013aec0
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.140173b10
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 0x140160b21
sub ecx, 1
je 0x140160b94
sub ecx, 1
je 0x140160ad0
cmp ecx, 1
je 0x140160ab3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14018a9c0]
call fcn.14013aec0
jmp 0x140160b94
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401606a0
test eax, eax
je 0x140160b94
jmp 0x140160a3a
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 0x140160b94
sub rax, rsi
cmp rax, rbp
jae 0x140160b94
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14013b040
jmp 0x140160b94
cmp r8d, 4
jle 0x140160b94
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 0x140160b94
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14013ade0
mov esi, eax
test eax, eax
je 0x140160b73
mov edx, 5
mov rcx, rbx
call fcn.140161660
mov eax, esi
jmp 0x140160a3a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1401498c0
mov rcx, r14
call fcn.140149ba0
test eax, eax
je 0x140160a38
mov edx, 5
mov rcx, rbx
call fcn.140161660
mov eax, Ordinal_46
jmp 0x140160a3a
Function at 0x140173930
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 0x140173972
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 0x1401739b9
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 0x140173a12
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 0x1401739d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140173a53
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14019013a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14019013b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140173a20
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 0x140174c0c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, dword [rsp + 0x78]
lea r15d, [r8 + 0x9cf]
mov esi, r9d
lea eax, [r15 - 0xcba]
mov r14d, edx
lea r13d, [r9 - 0x46ae]
xor esi, 0x7e93
lea ebx, [r8 - 0x32f]
xor ebp, 0x76f8
xor r14d, 0x756d
mov rdi, rcx
cmp ebp, eax
jl 0x14000122d
mov rdx, qword [section..data]
lea r9d, [r8 - 0x422]
mov eax, dword [rcx + 0x24]
xor r9d, 0xe2b
cmp dword [rdx + 0xc4], eax
ja 0x1400011bb
mov eax, dword [rdx + 0x100]
sub eax, dword [rcx + 0x3c]
xor eax, 0xfa735
mov dword [0x140015080], eax
jmp 0x1400011cd
mov ecx, dword [rdx + 0xc8]
xor ecx, dword [rdx + 0x74]
mov eax, dword [rdi + 8]
imul eax, ecx
mov dword [rdi + 8], eax
mov ecx, ebx
lea eax, [r13 + 0x2bf6]
lea edx, [r9 - 0x909]
mov dword [rsp + 0x20], eax
xor ecx, 0x76a4
lea r8d, [rsi - 0xc47]
mov r9, rdi
call fcn.1400030e4
add eax, 0x9c2
mov dword [0x14001507c], 0xc4ec4ec5
xor ebx, 0x7702
mov dword [rsp + 0x20], eax
lea r8d, [rsi - 0x716]
mov r9, rdi
lea edx, [rbp - 0xb6d]
lea ecx, [r13 + 0x3eec]
call fcn.140003228
jmp 0x140001297
imul ecx, dword [rcx + 0xc8], 0x42d3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [section..data]
mov r9d, r15d
mov edx, dword [rdi + 0xdc]
and r14d, 0x350e
mov ecx, dword [0x140015110]
sub r9d, dword [0x140015034]
mov r8d, dword [rax + 0x7c]
or edx, dword [0x140015028]
or r8d, r15d
sub r8d, dword [0x140015114]
mov eax, r15d
mov qword [rsp + 0x20], r8
xor rcx, rax
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [rdi + 0x74]
mov edx, ebx
xor rcx, rdx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rbp, qword [rsp + 0x58]
xor ebx, 0xdf
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x14000144c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea edi, [rdx - 0x36d8]
lea ecx, [rdx + 0x358]
mov edx, dword [rsp + 0x50]
lea eax, [r9 - 0xc7e]
lea r10d, [r9 - 0xf4d]
lea esi, [rdx - 0x42b]
cmp ecx, eax
jne 0x14000168a
lea eax, [r8 - 0x420c]
xor eax, 0x3a00
cmp ecx, eax
je 0x140001641
lea rax, str.H_2
mov esi, edx
mov qword [rbx + 0xa0], rax
xor r9d, r9d
mov rax, qword [section..data]
mov ecx, dword [rax + 0x18]
sub ecx, dword [0x1400150f8]
xor ecx, 0xffe30a3f
add dword [rbx + 0x110], ecx
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0x60]
sub ecx, dword [rbx + 0x3c]
mov eax, dword [rdx + 0x100]
add ecx, 0x50ec7
imul eax, ecx
mov dword [rdx + 0x100], eax
mov eax, dword [0x140015034]
xor eax, 0xcaaf9
add dword [rbx + 0x94], eax
movsxd rcx, dword [rbx + 0x70]
mov rax, qword [rbx + 0xa0]
mov r8d, dword [r9 + rax]
add r9, 4
imul r8d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0xa8]
mov edx, r8d
shr edx, 0x18
mov byte [rcx + rax], dl
mov edx, r8d
inc dword [rbx + 0x70]
mov rax, qword [section..data]
shr edx, 0x10
mov ecx, dword [rax + 0x48]
add ecx, dword [rbx + 0x100]
xor ecx, 0x29c9ee
sub dword [0x1400150d0], ecx
movsxd rcx, dword [rbx + 0x70]
mov rax, qword [rbx + 0xa8]
mov byte [rcx + rax], dl
mov ecx, 0xfffdd58e
inc dword [rbx + 0x70]
mov edx, r8d
mov rax, qword [section..data]
shr edx, 8
sub ecx, dword [rax + 0xd4]
sub ecx, dword [rbx + 0x60]
add dword [rbx + 0x18], ecx
mov rax, qword [section..data]
mov ecx, dword [rax + 0x60]
mov rax, qword [0x1400150b8]
add ecx, 0x2b47b
xor dword [0x140015120], ecx
movsxd rcx, dword [rbx + 0x70]
mov byte [rcx + rax], dl
inc dword [rbx + 0x70]
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x58]
sub eax, 0x1c26e4
or dword [rcx + 0x2c], eax
mov eax, dword [rbx + 0x9c]
mov rcx, qword [section..data]
sub eax, 0x2cdd8
or dword [rcx + 0x2c], eax
movsxd rcx, dword [0x140015080]
mov rax, qword [rbx + 0xa8]
mov byte [rcx + rax], r8b
inc dword [0x140015080]
cmp r9, 0x8cc4
jl 0x1400014b1
mov rax, qword [section..data]
mov dword [rax + 0x6c], 0xaa4af
mov eax, dword [0x1400150e4]
add eax, 0x72c4b979
xor dword [rbx + 0x6c], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xe8]
cmp dword [rbx + 0xc0], eax
jb 0x140001631
mov eax, dword [0x140015098]
sub eax, dword [rcx + 0x74]
mov dword [rbx + 0xd0], eax
jmp 0x14000168a
lea rax, [0x1400040a0]
mov qword [rcx + 0xa0], rax
jmp 0x14000168a
mov eax, dword [rbx + 0xc4]
mov ecx, r10d
xor rcx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentActCtx]
mov ecx, edi
xor rcx, 0xfffffffffffffe2f
and ecx, 0x43dc
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, 0x3cec
sub eax, dword [rbx + 0xc4]
add dword [0x14001509c], eax
mov ecx, dword [rbx + 0x110]
or ecx, edi
add ecx, dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, qword [rsp + 0x30]
lea eax, [rsi + 0x2eb]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001a50
Capabilities:
Encode data using xor
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, dword [rsp + 0x70]
lea eax, [r9 - 0x43aa]
add ecx, 0xfffffcba
lea r14d, [r9 + 0x32]
mov edi, r9d
xor ebp, 0x2bf6
xor edi, 0x76a4
xor ecx, 0x149
mov rbx, r8
cmp eax, ecx
je 0x140001ad2
mov eax, dword [r8 + 0x2c]
cmp dword [r8 + 0xd0], eax
jb 0x140001ac3
mov rax, qword [section..data]
mov ecx, dword [rax + 0x2c]
sub ecx, dword [r8 + 0x60]
add ecx, 0x2c42
mov dword [r8 + 0x6c], ecx
jmp 0x140001b7a
mov eax, dword [r8 + 0x7c]
xor dword [0x1400150e4], eax
jmp 0x140001b7a
mov eax, dword [r8 + 0xc0]
mov esi, edi
xor eax, 0x43dc
sub eax, r14d
cmp edi, eax
jbe 0x140001b7a
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0x34]
mov eax, dword [rbx + 0x58]
mov r15d, edi
add eax, 0x3c56
imul eax, ecx
cmp edi, eax
jne 0x140001b61
mov ecx, dword [rdx + 0xd4]
mov r8d, dword [rbx + 0x24]
add ecx, r14d
mov r9d, dword [0x140015084]
mov edx, dword [0x140015058]
imul r8d, dword [rbx + 0xe8]
xor edx, 0x350e
xor r9d, dword [rbx + 0x7c]
mov qword [rsp + 0x20], rcx
mov ecx, 0x341b
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, qword [section..data]
add r15d, 4
mov eax, dword [rbx + 0x58]
add eax, 0x3c56
mov ecx, dword [rdx + 0x34]
imul eax, ecx
cmp r15d, eax
je 0x140001b07
mov eax, dword [rbx + 0xc0]
add esi, 3
xor eax, 0x43dc
sub eax, r14d
cmp esi, eax
ja 0x140001af5
mov rbx, qword [rsp + 0x50]
lea eax, [rbp + 0x341b]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001b9c
Capabilities:
Encode data using xor
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov rbx, r9
mov edi, dword [rsp + 0x80]
mov ebp, eax
mov r15d, dword [rsp + 0x78]
xor ebp, 0x7e3f
add r15d, 0xfffff666
lea r14d, [rax - 0x79a]
lea r12d, [rdi - 0xf4d]
mov eax, r14d
xor eax, 0x9be
xor edi, 0x73fc
cmp r12d, eax
jg 0x140001d2a
mov eax, 0xfffff4ea
sub eax, dword [r9 + 0x14]
add dword [r9 + 0x6c], eax
lea rax, [0x1400156f0]
mov qword [0x1400150b0], rax
xor r10d, r10d
mov rax, qword [rbx + 0xa0]
mov r9d, dword [r10 + rax]
add r10, 4
mov eax, dword [rbx + 0x88]
sub eax, 0x7d4c5
add dword [rbx + 0xd0], eax
mov eax, dword [rbx + 0xc0]
add eax, dword [rbx + 0x7c]
xor eax, 0x1693e1
sub dword [rbx + 0x104], eax
mov rcx, qword [section..data]
mov eax, dword [rbx + 0x74]
sub dword [rcx + 0x14], eax
mov eax, 0x52823
mov ecx, dword [rbx + 0x9c]
sub eax, ecx
sub eax, dword [rbx + 0x3c]
add dword [rbx + 0x94], eax
mov eax, dword [rbx + 0x110]
add eax, ecx
xor eax, 0x2cde1
add dword [0x140015058], eax
mov rax, qword [section..data]
movsxd rdx, dword [rbx + 0x70]
imul r9d, dword [rbx + 0x6c]
mov rcx, qword [rax + 0xa8]
mov r8d, r9d
shr r8d, 8
mov byte [rdx + rcx], r8b
inc dword [rbx + 0x70]
mov eax, dword [0x14001508c]
mov rdx, qword [section..data]
mov ecx, dword [rbx + 0x48]
sub ecx, dword [rdx + 0x9c]
sub ecx, 0x14fa95
imul eax, ecx
mov dword [0x14001508c], eax
movsxd rcx, dword [rbx + 0x70]
mov rax, qword [rdx + 0xa8]
mov byte [rcx + rax], r9b
inc dword [rbx + 0x70]
mov eax, dword [rbx + 0x48]
sub eax, 0x17c86e
xor dword [0x1400150e0], eax
mov ecx, dword [rbx + 0xc4]
mov eax, dword [rbx + 0x2c]
add eax, 0xfff40049
add ecx, eax
add dword [rbx + 0x9c], ecx
mov rcx, qword [section..data]
mov eax, dword [0x140015084]
sub dword [rcx + 0x60], eax
cmp r10, 0x5a0
jl 0x140001c1e
jmp 0x140001db6
mov eax, dword [r9 + 0x88]
or eax, dword [0x140015014]
cmp dword [r9 + 0xd8], eax
ja 0x140001db6
imul eax, dword [r9 + 0x38], 0x36d8
mov esi, dword [0x140015118]
cmp esi, eax
jae 0x140001db6
mov ecx, dword [rbx + 0xc4]
or rcx, r14
and ecx, 0x3c56
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [rbx + 0x58]
lea r9, [0x140015010]
add eax, dword [rbx + 0xc8]
mov r8d, r14d
imul ecx, eax, 0x341b
and r8d, r15d
mov eax, dword [rbx + 0x18]
mov edx, edi
sub edx, dword [0x140015110]
sub eax, 0x3c56
xor eax, edi
imul r8d, r15d
sub edx, r12d
mov dword [rsp + 0x20], eax
call fcn.140001ddc
imul ecx, dword [rbx + 0x38], 0x36d8
add esi, 3
mov r15d, eax
cmp esi, ecx
jb 0x140001d52
mov rbx, qword [rsp + 0x50]
lea eax, [rbp - 0x3e7]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140001ddc
Capabilities:
Clear file content
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov edi, dword [rsp + 0xc0]
lea ecx, [r8 + 0x7c2]
mov ebx, r8d
mov dword [rsp + 0xa8], ecx
mov r14d, edi
lea esi, [rdx - 0x341b]
xor r14d, 0x3eec
lea ebp, [r8 + 0x4f0]
add r8d, 0xfffff951
mov dword [rsp + 0x44], r14d
mov r15d, edx
mov dword [rsp + 0xb0], r8d
xor r15d, 0x341b
lea eax, [rsi + 0x3552]
xor ebx, 0x2ba
mov dword [rsp + 0x48], r15d
mov r13, r9
cmp edi, eax
jle 0x140002084
mov eax, esi
mov edx, 0x36d8
xor eax, edx
cmp r8d, eax
je 0x14000203c
lea eax, [rsi + 0x3a30]
cmp ecx, eax
mov rax, qword [section..data]
je 0x140001ed5
mov edx, ebp
mov qword [rsp + 0x28], rax
xor edx, 0x768e
mov r9d, ebp
mov dword [rsp + 0x20], edx
add esi, 0x43aa
xor esi, 0x504
add edi, 0x3e7
xor r9d, 0x572
xor r8d, 0x23d
mov edx, edi
lea ecx, [rsi - 0x11a0]
call fcn.140003428
add r14d, 0x3552
add ebx, 0xfffff4d1
xor ebx, 0x91a
jmp 0x140002034
mov eax, dword [rax + 0xe8]
mov r12d, edi
add eax, r15d
cmp edi, eax
jb 0x14000203c
lea ecx, [r14 + 0x3cec]
xor ecx, edx
lea r10, [0x140015010]
mov dword [rsp + 0x4c], ecx
mov r9d, dword [0x1400150e0]
mov edx, r14d
imul edx, dword [r13 + 0xd0]
add r9d, ebp
mov r8d, dword [r13 + 0xcc]
and r9d, dword [r13 + 0x9c]
or r8d, 0x73ff
mov qword [rsp + 0x20], r10
or edx, 0x43dc
call fcn.1400020a4
mov ecx, dword [rsp + 0xa8]
mov edi, eax
or ecx, eax
mov dword [rsp + 0xc0], eax
imul ecx, ebx
cmp eax, ecx
jle 0x14000200c
mov ecx, ebp
xor ecx, ebx
or ecx, dword [r13 + 0x24]
cmp eax, ecx
je 0x14000200c
mov r15d, dword [rsp + 0xa8]
lea eax, [r14 + 0x2bf6]
cdqe
mov r14d, edi
mov rdi, rax
mov rax, qword [section..data]
mov ecx, dword [rax + 4]
and ecx, 0x350e
sub ecx, dword [r13 + 0x9c]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x140015084]
lea r8, [0x140015010]
mov r9d, dword [r13 + 0x110]
imul r9d, dword [0x140015120]
mov ecx, dword [r13 + 0xc4]
mov edx, dword [r13 + 0x38]
sub ecx, 0x3c56
imul eax, ebp
or ecx, 0x3a30
add edx, esi
xor r9d, r15d
sub eax, r15d
mov dword [rsp + 0x20], eax
call fcn.1400025f8
mov ecx, eax
add r14d, 4
xor ecx, ebx
mov ebp, eax
or ecx, dword [r13 + 0x24]
cmp r14d, ecx
jne 0x140001f7b
mov edi, dword [rsp + 0xc0]
mov r14d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x48]
mov rcx, qword [section..data]
lea r10, [0x140015010]
add r12d, 3
mov ecx, dword [rcx + 0xe8]
add ecx, r15d
cmp r12d, ecx
mov ecx, dword [rsp + 0x4c]
jae 0x140001efd
mov r8d, dword [rsp + 0xb0]
lea eax, [r8 + 0xe71]
lea r9d, [rbx + 0x6af]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r9d
lea r10d, [rsi - 0x9c2]
mov r9, qword [section..data]
lea r8d, [rdi - 0xa96]
xor ebx, 0xf5c
mov dword [rsp + 0x20], r10d
lea edx, [r14 - 0x44]
mov ecx, ebx
call fcn.140001b9c
xor ebp, 0x1d0
lea eax, [rbp - 0x520]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400020a4
Capabilities:
Encode data using xor

Disassembly:
lea eax, [r8 - 0xd7]
xor r9d, 0x11c6
mov r8, qword [rsp + 0x28]
lea r11d, [rcx + 0xdf1]
lea r10d, [rcx + 0x615]
lea ecx, [rdx - 0xfc1]
mov rdx, qword [section..data]
cmp ecx, eax
jg 0x140002101
mov eax, dword [rdx + 0x74]
add r10d, 0x226
xor r10d, 0xd71
cmp dword [rdx + 0x60], eax
jb 0x140002101
lea rax, [0x140015010]
mov qword [r8 + 0xf8], rax
mov rdx, qword [section..data]
lea eax, [r11 - 0xaab]
cmp r9d, eax
jl 0x1400021bc
xor r10d, r10d
mov rax, qword [0x1400150c0]
mov ecx, dword [r10 + rax]
xor ecx, dword [r8 + 0x78]
mov rax, qword [r8 + 0xb0]
mov dword [r10 + rax], ecx
add r10, 4
mov eax, dword [0x14001504c]
mov edx, dword [r8 + 0x74]
add eax, 0xfffda5b5
or dword [r8 + 0x24], eax
mov eax, dword [r8 + 0x14]
mov ecx, dword [r8 + 0x3c]
add ecx, 0xfffda5b6
add edx, ecx
imul eax, edx
mov dword [r8 + 0x14], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0xb8]
add dword [r8 + 0x78], ecx
mov eax, dword [r8 + 0x74]
sub eax, dword [r8 + 0xc0]
mov rcx, qword [section..data]
add eax, 0x12
xor dword [rcx + 0x14], eax
mov eax, dword [r8 + 0x18]
sub eax, 0xd
add dword [r8 + 0xc8], eax
mov eax, dword [r8 + 0xd0]
sub eax, dword [r8 + 0xc8]
xor eax, 0x1471cd
or dword [r8 + 0x9c], eax
cmp r10, 0x10658
jl 0x140002114
jmp 0x1400021f7
mov eax, dword [rdx + 0x58]
and eax, r9d
add eax, r10d
cmp dword [r8 + 0x7c], eax
jbe 0x1400021f7
imul r10d, r10d
cmp r11d, r10d
je 0x1400021f7
mov eax, dword [rdx + 0x10]
add eax, dword [r8 + 0x5c]
mov ecx, dword [0x140015110]
imul ecx, eax
mov dword [0x140015110], ecx
mov eax, dword [rdx + 4]
xor eax, dword [r8 + 0xc4]
xor r9d, eax
lea eax, [r9 - 0x358]
ret
Function at 0x140003228
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, dword [rsp + 0x50]
lea edi, [rcx - 0x200]
mov r8d, eax
mov rbx, r9
xor r8d, 0x7076
lea r9d, [rdx + 0x1c3]
lea esi, [rax - 0x46ae]
add eax, 0xfffff0b3
xor eax, 0xf5c
cmp r8d, eax
jge 0x140003391
mov edx, r9d
lea eax, [rcx + 0x4be]
xor edx, 0x656
cmp eax, edx
je 0x1400033b4
mov rax, qword [section..data]
lea rcx, [0x1400045a0]
sub edi, 0x10f6
xor r9d, r9d
mov qword [rax + 0xa0], rcx
mov edx, dword [rbx + 8]
lea r10d, [r9 + 1]
mov rax, qword [0x1400150b0]
movsxd rcx, dword [rbx + 0x70]
mov r8d, dword [r9 + rax]
add r9, 4
mov rax, qword [section..data]
imul r8d, dword [rax + 0x6c]
mov eax, dword [rbx + 0x60]
xor eax, dword [0x140015098]
sub edx, eax
mov rax, qword [rbx + 0xa8]
sub edx, 0x560c0
mov dword [rbx + 8], edx
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x70], r10d
mov rax, qword [section..data]
movsxd rcx, dword [rax + 0x70]
mov rax, qword [rbx + 0xa8]
mov byte [rcx + rax], r8b
mov rax, qword [section..data]
add dword [rax + 0x70], r10d
mov eax, dword [rbx + 0x58]
mov edx, dword [rbx + 8]
xor eax, 0x1c26e4
add eax, 0xffffffef
add eax, edx
add dword [rbx + 0x2c], eax
mov eax, dword [rbx + 0x94]
sub eax, 0x1af435
xor dword [rbx + 0x24], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0xc4]
add ecx, dword [rbx + 0x7c]
mov eax, dword [rbx + 0xe8]
xor ecx, 0x229387
imul eax, ecx
mov dword [rbx + 0xe8], eax
mov eax, dword [0x1400150e0]
xor eax, r10d
sub dword [rbx + 0x88], eax
mov eax, dword [rbx + 0xd0]
xor eax, r10d
or dword [rbx + 0x104], eax
cmp r9, 0xf210
jl 0x1400032b4
mov dword [rbx + 0x6c], r10d
mov rbx, qword [rsp + 0x30]
xor edi, 0x1ad1
mov rbp, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov eax, dword [0x140015068]
mov rcx, qword [section..data]
xor eax, 0x43dc
add eax, 0x46ae
cmp dword [rcx + 0x58], eax
ja 0x140003391
mov eax, dword [rbx + 0x10]
xor eax, dword [rbx + 0xc0]
cmp esi, eax
jb 0x140003391
mov eax, edi
sub eax, esi
movsxd rbp, eax
lea eax, [r9 + r8]
movsxd r14, eax
mov eax, dword [rcx + 0xc0]
mov rdx, rbp
or eax, dword [0x140015084]
mov rcx, r14
imul r8d, eax, 0x36d8
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [rbx + 0x10]
add esi, 2
xor eax, dword [rbx + 0xc0]
cmp esi, eax
jb 0x140003391
mov rcx, qword [section..data]
jmp 0x1400033eb