joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140018a10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140018a20]
mov dword [rax], 1
mov rax, qword [0x140018a30]
mov dword [rax], 1
mov rax, qword [0x1400189a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140018a00]
mov dword [0x14001b00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140018ae0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140018ac0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140018950]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000f4a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x14000f510
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001b1b4]
test esi, esi
mov rbx, rcx
jle 0x14000f640
mov rax, qword [0x14001b1b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000f55b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000f5e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000f540
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x14000f662
mov rax, qword [0x14001b1b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001b1b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f647
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f5de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f5f0
add dword [0x14001b1b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14001b1b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f5de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000f568
mov rax, qword [0x14001b1b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000fbd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001b220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001b200]
test rbx, rbx
je 0x14000fc2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000fc23
test rsi, rsi
je 0x14000fc23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fc08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000fe40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x14000fe50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x14000fe60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000fe78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000fe80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000fe90
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000fedd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x14000fed4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000fedf
add rax, 0x28
cmp rax, r9
jne 0x14000fec0
xor eax, eax
ret

Function at 0x14000fee0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000ff70
mov rdx, qword [0x1400189a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000ff5e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000ff5e
cmp word [rax + 0x18], 0x20b
jne 0x14000ff5e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000ff70
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000ff49
add rbx, 0x28
cmp rbx, rdi
je 0x14000ff70
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000ff40
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000ff80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400189a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ffa0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ffa8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ffa0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000fffd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000fff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ffa0
add rax, 0x28
cmp rax, r9
jne 0x14000ffe0
xor eax, eax
ret

Function at 0x140010000
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400189a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001001f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010028
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001001f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140010040
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400189a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140010060
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140010068
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140010060
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400100b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400100a7
test rcx, rcx
je 0x140010060
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140010098
xor eax, eax
ret

Function at 0x1400100c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400189a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400100df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400100e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140010100
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400189a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010120
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010128
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010120
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140010120
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140010174
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140010180
add rdx, 0x28
cmp r9, rdx
jne 0x140010160
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140010190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400189a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400101b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400101c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400101b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400101b2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400101b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140010215
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140010228
add rdx, 0x28
cmp rdx, r10
jne 0x140010200
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140010237
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140010247
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001021e
test ecx, ecx
jg 0x140010230
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001140
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov r11d, ecx
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
sub rsp, 0x118
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
cmp word [r8 + 0x48], 0
jne 0x140001173
mov rdx, qword [r8]
lea rbp, [rsp + 0xc]
xor eax, eax
jmp 0x1400011ea
lea rbx, [rsp + 0xc]
mov ecx, 0x41
xor eax, eax
mov rsi, qword [r8 + 0x50]
mov rdi, rbx
rep stosd dword [rdi], eax
mov ax, word [rsi + rcx*2]
xor r9d, r9d
cmp ax, 0x2e
je 0x14000119d
test ax, ax
je 0x1400011b4
mov r9b, 1
lea r10d, [rax - 0x41]
mov edx, eax
xor edx, 0x20
cmp r10b, 0x1a
cmovae edx, eax
mov byte [rsp + rcx + 0xc], dl
inc rcx
mov r10, rbx
mov eax, 0xff
movzx edx, byte [r10]
inc r10
test dl, dl
jne 0x1400011d3
cmp r11d, eax
je 0x1400011da
test r9b, r9b
jne 0x140001188
jmp 0x140001167
imul eax, eax, 0x21
add eax, edx
jmp 0x1400011bc
mov rax, qword [r8 + 0x20]
jmp 0x14000125f
cmp word [rdx + 0x48], 0
jne 0x1400011f1
mov rdx, qword [rdx]
cmp rdx, r8
jne 0x1400011e0
jmp 0x14000125d
mov ecx, 0x41
mov rdi, rbp
xor r10d, r10d
rep stosd dword [rdi], eax
mov rdi, qword [rdx + 0x50]
mov cx, word [rdi + r10*2]
xor ebx, ebx
cmp cx, 0x2e
je 0x140001216
test cx, cx
je 0x140001230
mov bl, 1
lea esi, [rcx - 0x41]
mov r9d, ecx
xor r9d, 0x20
cmp sil, 0x1a
cmovae r9d, ecx
mov byte [rsp + r10 + 0xc], r9b
inc r10
mov rsi, rbp
mov ecx, 0xff
movzx r9d, byte [rsi]
inc rsi
test r9b, r9b
jne 0x14000124f
cmp r11d, ecx
je 0x140001257
test bl, bl
jne 0x140001202
jmp 0x1400011e7
imul ecx, ecx, 0x21
add ecx, r9d
jmp 0x140001238
mov rax, qword [rdx + 0x20]
jmp 0x14000125f
xor eax, eax
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001270
Capabilities:
Parse pe header

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x318
cmp word [rcx], 0x5a4d
movsxd rsi, dword [rcx + 0x3c]
jne 0x1400013fc
add rsi, rcx
mov r8, rcx
cmp dword [rsi], 0x4550
jne 0x1400013fc
add rsi, 0x18
mov ecx, 0x3c
mov r11d, edx
xor eax, eax
lea rdi, [rsp + 0x118]
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x28]
lea rsi, [rsp + 0x118]
mov ecx, 0x3c
rep movsd dword [rdi], dword [rsi]
movsxd rcx, dword [rsp + 0x98]
mov r9d, dword [rsp + 0x9c]
mov rbx, rcx
add rcx, r8
movsxd r10, dword [rcx + 0x20]
movsxd rdi, dword [rcx + 0x1c]
movsxd r12, dword [rcx + 0x24]
mov r13d, dword [rcx + 0x14]
add r10, r8
cmp r13d, eax
jle 0x1400013fc
movsxd rsi, dword [r10]
mov edx, 0xff
add rsi, r8
movzx ebp, byte [rsi]
inc rsi
test bpl, bpl
jne 0x140001326
lea rsi, [rax + 1]
add r10, 4
cmp r11d, edx
je 0x14000132d
mov rax, rsi
jmp 0x1400012f5
imul edx, edx, 0x21
add edx, ebp
jmp 0x140001309
add rax, rax
add rax, r8
movzx eax, word [rax + r12]
lea rax, [r8 + rax*4]
movsxd rdx, dword [rax + rdi]
mov r10, rdx
add rdx, r8
cmp ebx, r10d
jg 0x140001356
movsxd rax, r9d
add rax, rcx
cmp rax, rdx
jg 0x14000135e
mov rax, rdx
jmp 0x1400013fe
lea rbp, [rsp + 0x20c]
xor eax, eax
mov ecx, 0x41
mov rdi, rbp
rep stosd dword [rdi], eax
xor eax, eax
cmp byte [rax + rdx], 0
je 0x14000137f
inc rax
jmp 0x140001374
xor ecx, ecx
cmp rcx, rax
jne 0x14000138d
mov rdx, rbp
xor esi, esi
jmp 0x1400013aa
mov r8b, byte [rdx + rcx]
mov byte [rbp + rcx], r8b
inc rcx
jmp 0x140001381
mov rcx, rdx
inc rdx
cmp byte [rdx - 1], 0x2e
je 0x1400013b1
inc rsi
cmp rsi, rax
jne 0x14000139b
jmp 0x1400013b6
mov byte [rcx], 0
jmp 0x1400013b8
xor esi, esi
mov ecx, 0x381e55c5
call sym.getModuleHandleH__utilsZgmh_u11
mov edx, 0x16c7a3f5
mov rcx, rax
call sym.getProcAddressHash__utilsZgpa_u18
mov rcx, rbp
call rax
lea r9, [rbp + rsi + 1]
mov edx, 0xff
mov rcx, rax
movzx r8d, byte [r9]
inc r9
test r8b, r8b
jne 0x1400013f4
call sym.getProcAddressHash__utilsZgpa_u18
jmp 0x1400013fe
imul edx, edx, 0x21
add edx, r8d
jmp 0x1400013e1
xor eax, eax
add rsp, 0x318
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140002670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400026e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400026e8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400026d5
nop
cmp rbx, rcx
jae 0x1400026e8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400026c0
cmp rbx, rcx
jae 0x1400026e8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1400026ea
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002700
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 eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14000280d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000280d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000280d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400027a5
nop word [rax + rax]
cmp rbx, rcx
jae 0x14000280d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140002790
cmp rbx, rcx
jae 0x14000280d
cmp word [rbx], 0
je 0x14000280d
mov rax, qword [rsi]
mov ecx, 1
movzx edi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x1400027d1
mov edx, edi
mov rcx, rsi
call fcn.140002b60
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.1401aea18
xor edx, edx
test eax, eax
je 0x1400027f4
cmp eax, 0xc
je 0x140002830
cmp eax, 0x50
jne 0x14000282a
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x140002836
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov word [rcx + rdi*2], dx
jmp 0x14000280f
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
call fcn.14000b948
int3
call fcn.14000b96c
int3
mov ecx, 0x80070057
call fcn.140002bc0
int3
Function at 0x140002850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.14000bcdc
mov rsi, rax
test rax, rax
jne 0x140002885
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14000296f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000296f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000296f
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000290a
cmp rbx, rcx
jae 0x14000296f
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400028f5
cmp rbx, rcx
jae 0x14000296f
cmp word [rbx], 0
je 0x14000296f
mov rax, qword [r14]
mov esi, 1
movzx edi, word [rbx]
mov ecx, esi
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x140002938
mov edx, edi
mov rcx, r14
call fcn.140002b60
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call fcn.1401aea18
xor ecx, ecx
test eax, eax
je 0x14000295b
cmp eax, 0xc
je 0x140002996
cmp eax, 0x50
jne 0x140002990
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x14000299c
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x140002973
xor ecx, ecx
mov esi, ecx
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.14000b948
int3
call fcn.14000b96c
int3
mov ecx, 0x80070057
call fcn.140002bc0
int3
Function at 0x1400030b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbx, r9
mov esi, r8d
mov r13, rdx
mov r14, rcx
test r8b, 0xf
jne 0x140003209
mov ecx, esi
call fcn.140004400
mov r12, rax
mov ecx, dword [r14 + 4]
inc ecx
shl ecx, 4
call fcn.140004400
mov rbp, rax
mov r8, rax
mov rdx, rbx
mov rcx, r14
call fcn.1400036e0
mov rcx, qword [rsp + 0xd0]
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x20], xmm0
xor r15d, r15d
test esi, esi
je 0x1400031dd
nop dword [rax]
lea rbx, [r15 + r12]
lea rdi, [r15 + r13]
mov r9, rbp
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.1400032d0
movzx eax, byte [rsp + 0x20]
xor byte [rbx], al
movzx eax, byte [rsp + 0x21]
xor byte [rbx + 1], al
movzx eax, byte [rsp + 0x22]
xor byte [rbx + 2], al
movzx eax, byte [rsp + 0x23]
xor byte [rbx + 3], al
movzx eax, byte [rsp + 0x24]
xor byte [rbx + 4], al
movzx eax, byte [rsp + 0x25]
xor byte [rbx + 5], al
movzx eax, byte [rsp + 0x26]
xor byte [rbx + 6], al
movzx eax, byte [rsp + 0x27]
xor byte [rbx + 7], al
movzx eax, byte [rsp + 0x28]
xor byte [rbx + 8], al
movzx eax, byte [rsp + 0x29]
xor byte [rbx + 9], al
movzx eax, byte [rsp + 0x2a]
xor byte [rbx + 0xa], al
movzx eax, byte [rsp + 0x2b]
xor byte [rbx + 0xb], al
movzx eax, byte [rsp + 0x2c]
xor byte [rbx + 0xc], al
movzx eax, byte [rsp + 0x2d]
xor byte [rbx + 0xd], al
movzx eax, byte [rsp + 0x2e]
xor byte [rbx + 0xe], al
movzx eax, byte [rsp + 0x2f]
xor byte [rbx + 0xf], al
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x20], xmm0
add r15d, 0x10
cmp r15d, esi
jb 0x140003130
mov rcx, rbp
call fcn.140004410
mov rax, r12
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x38]
call fcn.140003030
nop
mov r8, rax
lea rcx, [rsp + 0x58]
call fcn.140003910
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140002fc0
lea rdx, [0x14026dca0]
lea rcx, [rsp + 0x20]
call fcn.1401a9600
int3
Function at 0x1400036e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r14
sub rsp, 0x20
mov r10d, dword [rcx]
xor r9d, r9d
mov r11, r8
mov r14, rcx
lea eax, [r10*4]
test eax, eax
je 0x14000371c
nop
movzx eax, byte [r9 + rdx]
mov byte [r9 + r8], al
inc r9d
mov r10d, dword [rcx]
lea eax, [r10*4]
cmp r9d, eax
jb 0x140003700
mov eax, dword [rcx + 4]
lea r9d, [r10*4]
inc eax
shl eax, 4
cmp r9d, eax
jae 0x14000389d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
lea r12, [0x14023ba00]
mov qword [rsp], r15
lea r15d, [r9 + 2]
nop dword [rax]
mov ebp, dword [r14]
lea eax, [r9 - 4]
movzx r8d, byte [rax + r11]
xor edx, edx
lea eax, [r9 - 3]
movzx r10d, r8b
movzx ebx, byte [rax + r11]
lea eax, [r9 - 2]
movzx edi, byte [rax + r11]
lea eax, [r9 - 1]
movzx esi, byte [rax + r11]
mov eax, r9d
shr eax, 2
div ebp
test edx, edx
jne 0x1400037eb
movzx r10d, byte [rbx + r12]
xor edx, edx
movzx ebx, byte [rdi + r12]
mov eax, r9d
movzx edi, byte [rsi + r12]
mov cl, 1
movzx esi, byte [r8 + r12]
lea r8d, [rbp*4]
div r8d
sub eax, 1
je 0x1400037e6
mov r8d, eax
nop word [rax + rax]
movzx eax, cl
add cl, cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor cl, dl
sub r8, 1
jne 0x1400037d0
xor r10b, cl
jmp 0x140003809
cmp ebp, 6
jbe 0x140003809
cmp edx, 4
jne 0x140003809
movzx r10d, byte [r8 + r12]
movzx ebx, byte [rbx + r12]
movzx edi, byte [rdi + r12]
movzx esi, byte [rsi + r12]
mov ecx, r9d
lea eax, [rbp*4]
sub ecx, eax
xor r10b, byte [rcx + r11]
mov ecx, r9d
mov byte [r9 + r11], r10b
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 - 1]
inc ecx
xor bl, byte [rcx + r11]
mov ecx, r9d
mov byte [rax + r11], bl
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
add ecx, 2
xor dil, byte [rcx + r11]
mov ecx, r9d
mov byte [r15 + r11], dil
add r9d, 4
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 + 1]
add ecx, 3
add r15d, 4
xor sil, byte [rcx + r11]
mov byte [rax + r11], sil
mov eax, dword [r14 + 4]
inc eax
shl eax, 4
cmp r9d, eax
jb 0x140003760
mov r15, qword [rsp]
mov r12, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret