joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018028
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.140008560
sub rsp, rax
mov rax, qword [0x140032040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140016c08
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018077
mov rax, rbp
jmp 0x14001817f
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 + 0x345a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019148
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x345a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001817b
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 0x14001817b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019148
test rax, rax
js 0x14001817b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001817b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001816d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001816d
cmp byte [rcx], 0xd
jne 0x140018153
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018162
cmp byte [rcx + 1], 0xa
jne 0x140018162
inc rcx
jmp 0x140018162
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x32490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018135
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001817f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007fd0
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 0x1400183a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400183b6
mov al, 1
jmp 0x140018416
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400183c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018414
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c050
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018414
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018414
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018414
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018416
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400184e8
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, [0x1400345a0]
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 0x14001853f
cmp word [rdx], r13w
jne 0x14001853f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140018544
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018669
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001868a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001857d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400185a4
cmp r9, r8
jae 0x1400185b4
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 0x14001855e
jmp 0x140018669
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 0x14001865e
cmp dword [rsp + 0x80], esi
je 0x14001865e
lea r8, [0x1400345a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140018636
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140018606
mov word [rbx], r13w
jmp 0x140018666
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 0x140018613
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140018666
cmp word [rsp + 0x70], r13w
jne 0x140018643
cmp rbx, r14
je 0x140018600
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019150
cmp word [rsp + 0x70], r13w
je 0x140018669
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, [0x1400345a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140018663
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018669
Function at 0x14001b7e8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001b818
xor eax, eax
jmp 0x14001b8db
mov rbp, rbx
cmp word [rax], si
je 0x14001b83d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b824
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b820
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140019de8
movsxd r14, eax
test eax, eax
jne 0x14001b87b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b811
mov rcx, r14
call fcn.14001540c
mov rdi, rax
test rax, rax
jne 0x14001b894
xor ecx, ecx
call fcn.140014984
jmp 0x14001b870
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140019de8
test eax, eax
jne 0x14001b8c5
mov rcx, rdi
call fcn.140014984
jmp 0x14001b8cf
xor ecx, ecx
call fcn.140014984
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001e5a4
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.140014624
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 0x14001e645
cmp ebx, dword [rsp + 0x30]
je 0x14001e63e
test esi, esi
je 0x14001e63e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001e619
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001e626
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001e603
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001e62a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001e647
mov eax, 1
jmp 0x14001e647
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fd94
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140010654
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001fe1e
cmp byte [rbp - 0x21], r15b
je 0x14001fe19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001fe54
call fcn.140014c88
test eax, eax
jne 0x14001fe40
cmp byte [rbp - 0x21], r15b
je 0x14001fe38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001fe54
cmp byte [rbp - 0x21], r15b
je 0x14001fe51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400107d8
test eax, eax
jne 0x14001fef4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010654
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001fe93
cmp byte [rbp - 0x21], r15b
je 0x14001fec8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001fec8
call fcn.140014c88
test eax, eax
jne 0x14001feb4
cmp byte [rbp - 0x21], r15b
je 0x14001fead
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001fec8
cmp byte [rbp - 0x21], r15b
je 0x14001fec5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400107d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001fef4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001fef7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001ff05
mov rcx, rdi
call fcn.140014984
cmp byte [rbp + 0x3f], r15b
je 0x14001ff14
mov rcx, qword [rbp + 0x27]
call fcn.140014984
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140021680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400216a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400216a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000b60c
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push rsi
sub rsp, 0xa8
mov dword [0x18008f8f8], 0xd00
mov qword [rbp - 0x38], rcx
xor eax, eax
mov ecx, eax
xor eax, eax
mov dword [0x18008f8fc], 0xa35
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
mov rcx, qword [rbp - 0x40]
lea rdx, section..data
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0xc0
mov r10d, dword [r9]
imul r8, rcx, 0x168
add rdx, r8
add rdx, 0x10
xor r10d, dword [rdx]
add r10d, eax
add rcx, 1
cmp rcx, 0x29a
mov eax, r10d
mov dword [rbp - 0x48], r10d
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x44], eax
jne 0x18000b63d
mov dword [0x18008f8f8], 0x125f
xor eax, eax
mov ecx, eax
mov dword [0x18008f8fc], 0xe59
mov qword [rbp - 0x50], rcx
mov rax, qword [rbp - 0x50]
lea rcx, [0x180053d73]
lea rdx, [0x180053da2]
mov r8b, byte [rdx + rax]
mov r9b, byte [rcx + rax]
sub r9b, r8b
mov byte [rbp + rax - 0x30], r9b
add rax, 1
cmp rax, 0xe
mov qword [rbp - 0x50], rax
jne 0x18000b6b3
lea rdx, [rbp - 0x30]
mov dword [0x18008f8f8], 0x2a84
mov eax, dword [rbp - 0x48]
mov ecx, eax
mov r8d, ecx
mov dword [0x18008f8fc], 0xfffff3e5
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x60], r8
call fcn.18000c295
mov rcx, rax
mov rdx, qword [rbp - 0x58]
call fcn.18000b06e
xor r9d, r9d
mov ecx, r9d
mov r8d, 0x1000
mov r9d, 4
mov dword [0x18008f8f8], 0x1961
mov rdx, qword [rbp - 0x60]
call rax
xor r8d, r8d
mov ecx, r8d
xor r8d, r8d
mov r9d, dword [0x18008f8fc]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x6c], r9d
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x7c], r8d
mov eax, dword [rbp - 0x7c]
mov rcx, qword [rbp - 0x78]
mov edx, dword [rbp - 0x6c]
lea r8, section..data
imul r9, rcx, 0x168
mov r10, r8
add r10, r9
add r10, 0xc0
mov r11d, dword [r10]
imul r9, rcx, 0x168
mov r10, r8
add r10, r9
add r10, 0x160
mov r9, qword [r10]
imul r10, rcx, 0x168
add r8, r10
add r8, 0x10
mov esi, dword [r8]
add edx, 0xfffff9d2
mov dword [0x18008f8f8], edx
xor esi, r11d
mov edx, eax
mov r8d, edx
mov r10, qword [rbp - 0x68]
add r10, r8
mov edx, esi
mov r8d, edx
mov qword [rbp - 0x88], rcx
mov rcx, r10
mov rdx, r9
mov dword [rbp - 0x8c], eax
mov dword [rbp - 0x90], esi
call fcn.18000c4cd
mov eax, dword [0x18008f8fc]
mov r11d, eax
add r11d, 0xf76
mov dword [0x18008f8f8], r11d
mov r11d, dword [rbp - 0x90]
mov esi, dword [rbp - 0x8c]
add r11d, esi
mov rcx, qword [rbp - 0x88]
add rcx, 1
cmp rcx, 0x29a
mov dword [rbp - 0x6c], eax
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x7c], r11d
jne 0x18000b762
mov dword [0x18008f8fc], 0x31f
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x68]
mov r8d, dword [rbp - 0x48]
call fcn.18000c409
mov rcx, qword [rbp - 0x68]
add rcx, 0x6d283
mov rdx, qword [rbp - 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 0x133c00
mov dword [0x18008f8f8], 0x17da
mov rcx, qword [rbp - 0x68]
add rcx, 0x1cc5f
mov qword [rdx + 0x10], rcx
mov r8d, dword [0x18008f8fc]
add r8d, 0x739
mov dword [0x18008f8fc], r8d
mov qword [rdx + 0x18], 0x2040
xor eax, eax
add rsp, 0xa8
pop rsi
pop rbp
ret
Function at 0x18000be62
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, dword [0x18008f8f8]
add eax, 0x540
mov dword [0x18008f8fc], eax
mov qword [rbp - 8], rcx
mov eax, 0x1165
lea rcx, [0x18000bc84]
mov rdx, qword [rbp - 8]
cmp rdx, 0
mov dword [rbp - 0xc], eax
mov qword [rbp - 0x18], rcx
jne 0x18000bf0b
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 0xc]
cmp word [rax], 0x5a4d
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], ecx
jne 0x18000bec5
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x18000bef8
mov dword [0x18008f8fc], 0xa
mov rax, qword [rbp - 0x20]
add rax, 0xfffffffffffff000
and rax, 0xfffffffffffff000
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0x24]
add eax, 0x85b
mov rcx, qword [rbp - 0x30]
mov dword [rbp - 0xc], eax
mov qword [rbp - 0x18], rcx
jmp 0x18000be9f
mov eax, dword [rbp - 0x24]
mov dword [0x18008f8f8], eax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x38], rax
jmp 0x18000bf26
mov dword [0x18008f8fc], 0x10eb
xor eax, eax
mov edx, eax
mov rcx, qword [rbp - 8]
call fcn.18000bf7e
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rsp, 0x60
pop rbp
ret
Function at 0x14019b000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.14019b0d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14019b037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14019b02d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x14019b0cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x14019b0cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x14019b0ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x14019b081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x14019b072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x14019b021
Function at 0x1400167e0
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 0x140016855
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140016855
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140016845
nop
cmp rbx, rcx
jae 0x140016855
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140016830
cmp rbx, rcx
jae 0x140016855
cmp word [rbx], 0
je 0x140016855
mov rax, rbx
jmp 0x140016857
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 0x140016870
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 rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14001698b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001698b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001698b
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140016919
nop word [rax + rax]
cmp rbx, rcx
jae 0x14001698b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140016900
cmp rbx, rcx
jae 0x14001698b
movzx edi, word [rbx]
test di, di
je 0x14001698b
mov r10, qword [r14]
mov ecx, 1
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x14001694f
mov edx, edi
mov rcx, r14
call fcn.140016fb0
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401d06e0
xor edx, edx
test eax, eax
je 0x140016972
cmp eax, 0xc
je 0x1400169ae
cmp eax, 0x50
jne 0x1400169a8
mov rcx, qword [r14]
cmp edi, dword [rcx - 0xc]
jg 0x1400169b4
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rdi*2], dx
jmp 0x14001698d
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.140032830
int3
call fcn.140032854
int3
mov ecx, 0x80070057
call fcn.140017020
int3
Function at 0x1400169c0
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.140033364
mov rsi, rax
test rax, rax
jne 0x1400169f5
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 0x140016aed
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140016aed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140016aed
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140016a7e
cmp rbx, rcx
jae 0x140016aed
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140016a65
cmp rbx, rcx
jae 0x140016aed
movzx edi, word [rbx]
test di, di
je 0x140016aed
mov r10, qword [r14]
mov ebp, 1
mov ecx, ebp
movzx edx, di
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
sub eax, edi
or ecx, eax
jge 0x140016ab6
mov edx, edi
mov rcx, r14
call fcn.140016fb0
mov r10, qword [r14]
movzx edx, word [rbx]
movzx r9d, dx
lea r8, [rbx + 2]
mov rdx, rdi
mov rcx, r10
call fcn.1401d06e0
xor ecx, ecx
test eax, eax
je 0x140016ad9
cmp eax, 0xc
je 0x140016b14
cmp eax, 0x50
jne 0x140016b0e
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x140016b1a
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x140016af1
xor ecx, ecx
mov ebp, ecx
mov rbx, qword [rsp + 0x30]
mov eax, ebp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.140032830
int3
call fcn.140032854
int3
mov ecx, 0x80070057
call fcn.140017020
int3

Function at 0x140017a40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x1c8], 0
mov ebx, edx
mov rdi, rcx
jne 0x140017a68
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003c348
test ebx, ebx
jne 0x140017a83
mov qword [0x140292530], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14029fffc], eax
cmp qword [0x140292530], 0
je 0x140017ab1
mov edx, ebx
mov rcx, rdi
call fcn.14003c348
movsxd rcx, eax
mov qword [0x140292530], rcx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ebx, 2
jl 0x140017aa1
lea rcx, [0x1402a0140]
call fcn.140020550
mov rax, qword [rdi + 0x1c8]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14029fffc]
mov rcx, qword [rdi + 0x1c8]
mov edx, eax
mov rax, qword [rbx + 0xa0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
Function at 0x14001ceb0
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 r12
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov edi, edx
test r8, r8
je 0x14001d080
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x14001cf20
cmp edi, 3
je 0x14001cf20
sub edi, 1
je 0x14001cf0f
cmp edi, 1
jne 0x14001d080
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x14001d082
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x14001d082
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14001d080
xor ebx, ebx
mov esi, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14001d080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14001cfe6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.14001ad10
test rax, rax
je 0x14001cfbf
mov rsi, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001cfe6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x14001d080
cmp edi, 3
jne 0x14001d07b
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x14001d06d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14001d06d
lea ecx, [rdx + 1]
and ecx, 0xfffffffe
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rdi + 0x1e]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov rdi, rax
test rax, rax
je 0x14001d06d
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x14001d06a
mov rcx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14001d082
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14001d082
mov rax, rsi
jmp 0x14001d082
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret