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

Disassembly:
jmp 0x140134a8c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140134867
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140134867
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140134867
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140134867
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140134867
cmp dword [rcx + 0x84], 0xe
jbe 0x140134867
cmp dword [rcx + 0xf8], 0
je 0x140134867
mov ecx, ebx
call fcn.1401349d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140134558
nop
cmp dword [rbp + 0x20], 0
je 0x1401348b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401348f0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1401347f8

Function at 0x14007917c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x1400ad6dc
jmp 0x1400caa00
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400ad70e
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400ad6f1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400773ef

Function at 0x140092490
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140092770
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1400925aa
mov rax, qword [0x140199018]
cmp qword [rsp + 0x20], rax
jb 0x1400924f4
mov rax, qword [0x140199020]
cmp qword [rsp + 0x20], rax
ja 0x1400924f4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1400924b6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140077d45
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140079046
test rax, rax
jne 0x140092525
jmp 0x1400925aa
cmp dword [rsp + 0x50], 0x10000
jne 0x14009258d
cmp qword [rsp + 0x48], 0x10000
jb 0x14009258d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call fcn.1400790eb
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14009256b
mov rax, qword [rsp + 0x28]
jmp 0x1400925ac
call fcn.1400750ef
cmp eax, 0x677
jne 0x14009257b
xor eax, eax
jmp 0x1400925ac
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1400925a5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140092770
mov qword [rsp + 0x20], rax
jmp 0x1400924b6
xor eax, eax
add rsp, 0x68
ret
Function at 0x140092600
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400927c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140092716
mov rax, qword [0x140199018]
cmp qword [rsp + 0x20], rax
jb 0x14009265b
mov rax, qword [0x140199020]
cmp qword [rsp + 0x20], rax
ja 0x14009265b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14009261d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140077d45
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140079046
test rax, rax
jne 0x14009268c
jmp 0x140092716
cmp dword [rsp + 0x50], 0x10000
jne 0x1400926f4
cmp qword [rsp + 0x48], 0x10000
jb 0x1400926f4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call fcn.1400790eb
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400926d2
mov rax, qword [rsp + 0x28]
jmp 0x140092718
call fcn.1400750ef
cmp eax, 0x677
jne 0x1400926e2
xor eax, eax
jmp 0x140092718
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140092711
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400927c0
mov qword [rsp + 0x20], rax
jmp 0x14009261d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140092820
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140079195
mov qword [rsp + 0x28], 0
cmp qword [0x14019b8d8], 0
jne 0x140092868
cmp qword [0x14019b8d0], 0
je 0x140092868
mov rax, qword [0x14019b8d0]
mov qword [0x14019b8d8], rax
cmp qword [0x14019b8d8], 0
je 0x14009290e
mov rax, qword [0x14019b8d8]
cmp qword [rax + 0x10], 0
je 0x14009290e
mov rax, qword [0x14019b8d8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14009290e
mov rax, qword [0x14019b8d8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14009290e
mov rax, qword [0x14019b8d8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400928d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400928db
xor eax, eax
jmp 0x140092a85
mov rax, qword [0x14019b8d8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.140077d45
mov rax, qword [rsp + 0x28]
jmp 0x140092a85
mov rax, qword [0x14019b8d0]
mov qword [0x14019b8d8], rax
jmp 0x140092930
mov rax, qword [0x14019b8d8]
mov rax, qword [rax + 8]
mov qword [0x14019b8d8], rax
cmp qword [0x14019b8d8], 0
je 0x14009297d
cmp qword [0x14019b8d8], 0
je 0x14009297b
mov rax, qword [0x14019b8d8]
cmp qword [rax + 0x10], 0
je 0x14009297b
mov rax, qword [0x14019b8d8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14009297b
mov rax, qword [0x14019b8d8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14009297b
jmp 0x1400928ac
jmp 0x14009291e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140092b30
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140092a83
mov rax, qword [rsp + 0x48]
mov qword [0x14019b8d8], rax
mov rax, qword [0x14019b8d8]
mov dword [rax], 0x52727464
mov rax, qword [0x14019b8d8]
mov qword [rax + 0x10], 0
mov rax, qword [0x14019b8d8]
mov rcx, qword [0x14019b8d0]
mov qword [rax + 8], rcx
mov rax, qword [0x14019b8d8]
mov qword [0x14019b8d0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x14019b8d8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140092a34
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x140092a6e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140092a2a
mov rax, qword [0x14019b8d8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1400928ac
xor eax, eax
add rsp, 0x58
ret
Function at 0x140093b80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call fcn.140079046
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140093bc7
xor al, al
jmp 0x140093c69
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140093bf1
xor al, al
jmp 0x140093c69
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x140093c61
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x140093c61
mov al, 1
jmp 0x140093c69
jmp 0x140093c67
xor al, al
add rsp, 0x78
ret

Function at 0x140094070
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14019b8d0]
mov qword [rsp + 0x28], rax
jmp 0x140094090
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400940bf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call fcn.14007862d
test eax, eax
jne 0x1400940bd
call fcn.1400750ef
jmp 0x1400940c1
jmp 0x140094082
xor eax, eax
add rsp, 0x38
ret
Function at 0x1401473a0
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.140074ee2
sub rsp, rax
mov rax, qword [0x140199080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14007929e
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401473ef
mov rax, rbp
jmp 0x1401474f7
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 + 0x19dab0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140075c7a
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x19dab0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401474f3
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 0x1401474f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140075c7a
test rax, rax
js 0x1401474f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401474f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401474e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401474e5
cmp byte [rcx], 0xd
jne 0x1401474cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401474da
cmp byte [rcx + 1], 0xa
jne 0x1401474da
inc rcx
jmp 0x1401474da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1995d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401474ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401474f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007679c
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140147da4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140147dba
mov al, 1
jmp 0x140147e1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140147dcb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140147e18
mov ecx, dword [rcx + 0x18]
nop
call fcn.140079537
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140147e18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140147e18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140147e18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140147e1a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14014821c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14019dab0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140148273
cmp word [rdx], r13w
jne 0x140148273
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140148278
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14014839d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401483be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401482b1
mov rdx, r9
mov word [rbx], cx
jmp 0x1401482d8
cmp r9, r8
jae 0x1401482e8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140148292
jmp 0x14014839d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140148392
cmp dword [rsp + 0x80], esi
je 0x140148392
lea r8, [0x14019dab0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14014836a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14014833a
mov word [rbx], r13w
jmp 0x14014839a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140148347
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14014839a
cmp word [rsp + 0x70], r13w
jne 0x140148377
cmp rbx, r14
je 0x140148334
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140074d89
cmp word [rsp + 0x70], r13w
je 0x14014839d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14019dab0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140148397
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14014839d
Function at 0x140154a54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400751cb
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140154af5
cmp ebx, dword [rsp + 0x30]
je 0x140154aee
test esi, esi
je 0x140154aee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140154ac9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140154ad6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140154ab3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140154ada
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140154af7
mov eax, 1
jmp 0x140154af7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0xcc0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xcc01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xcc0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcc006f
add dl, dl
jne 0xcc0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcc00f6
xor eax, eax
add dl, dl
jne 0xcc00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcc01ad
add dl, dl
jne 0xcc00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xcc00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xcc007e
mov eax, 1
add dl, dl
jne 0xcc0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcc00fb
sub eax, ebx
mov ebx, 1
jne 0xcc014c
mov ecx, 1
add dl, dl
jne 0xcc012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcc013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcc0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcc007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcc0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcc0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcc015d
cmp eax, 0x7d00
jae 0xcc019b
cmp eax, 0x500
jb 0xcc0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcc007e
cmp eax, 0x7f
ja 0xcc019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcc007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xcc01d2
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 0xcc007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov eax, r8d
mov qword [rsp + 0x70], rsi
mov rsi, rdx
shr eax, 4
add ax, 1
mov ebx, r8d
mov rbp, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x401db5
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x401db5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x401db5
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x401ce6
nop
cmp rdi, r11
jae 0x401db5
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x401cd0
cmp rdi, r11
jae 0x401db5
movzx eax, word [rdi]
test ax, ax
je 0x401db5
mov qword [rsp + 0x48], r13
movzx ebx, ax
call qword [0x0043a6d0]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x401d56
mov edx, esi
mov rcx, rbp
call fcn.00401ac0
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x0043a6d0]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x48]
js 0x401daa
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x401daa
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x401db7
mov ecx, 0x80070057
call fcn.00401aa0
int3
xor eax, eax
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret

Function at 0x401de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x401e1b
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x401e5f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x401e5a
cmp rbx, r11
jae 0x401e5f
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x401e48
cmp rbx, r11
jb 0x401e63
xor eax, eax
jmp 0x401e6f
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x4167f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x00438f40]
jne 0x412f7a
rol rcx, 0x10
test cx, 0xffff
jne 0x412f76
repz ret
ror rcx, 0x10
jmp 0x416750
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0043e240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0043e338]
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 0x4167d5
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, [0x0043e240]
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 0x4167f7
mov rax, qword [rsp + 0x88]
mov qword [0x0043e338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0043e2d8], rax
mov rax, qword [0x0043e338]
mov qword [0x0043e1b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0043e2c0], rax
mov dword [0x0043e1a0], 0xc0000409
mov dword [0x0043e1a4], 1
mov rax, qword [0x00438f40]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00438f48]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0043e238], eax
mov ecx, 1
call fcn.004215f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0042dc68]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0043e238], 0
jne 0x41687e
mov ecx, 1
call fcn.004215f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret