joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3734
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405860
lea eax, [ebp - 0x170]
mov edx, dword [0x408b84]
call fcn.00405fe0
xor eax, eax
push ebp
push 0x4f38da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x4f378a
sub eax, 4
mov eax, dword [eax]
cmp eax, 5
jl 0x4f389e
mov ebx, edx
test ebx, ebx
je 0x4f379e
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x174]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004058d8
mov eax, dword [ebp - 0x174]
mov edx, 0x4f38f0
call fcn.00405808
je 0x4f37d8
lea eax, [ebp - 8]
mov ecx, 0x4f38f0
mov edx, dword [ebp - 4]
call fcn.004056f8
jmp 0x4f37e3
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405478
lea eax, [ebp - 0x178]
mov ecx, 0x4f38fc
mov edx, dword [ebp - 8]
call fcn.004056f8
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x170]
mov edx, 0x3f
call fcn.0040ab9c
test eax, eax
jne 0x4f3896
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.00409d54
mov eax, dword [ebp - 0xc]
mov edx, 0x4f3908
call fcn.00405808
je 0x4f387c
mov eax, dword [ebp - 0xc]
mov edx, 0x4f3914
call fcn.00405808
je 0x4f387c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.004056f8
mov eax, dword [ebp - 0x160]
test al, 0x10
je 0x4f3865
mov eax, dword [ebp - 0xc]
call fcn.004f3734
jmp 0x4f387c
mov edx, eax
and edx, 0x3f
cmp eax, edx
jne 0x4f387c
mov eax, dword [ebp - 0xc]
call fcn.00405870
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x170]
call fcn.0040abec
test eax, eax
je 0x4f3814
lea eax, [ebp - 0x170]
call fcn.0040ac10
mov eax, dword [ebp - 8]
call fcn.0040b040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f38e1
lea eax, [ebp - 0x178]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 0x170]
mov edx, dword [0x408b84]
call fcn.004060b0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405404
ret

Function at 0x4f5fac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405860
xor eax, eax
push ebp
push 0x4f6041
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4f6058
mov edx, dword [ebp - 4]
call fcn.004056f8
push 0xff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 8]
call fcn.00405870
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040a2ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6048
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405404
ret
Function at 0x4f7338
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405860
xor eax, eax
push ebp
push 0x4f7479
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4f7449
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405870
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a8f4
test al, al
jne 0x4f73b9
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403830
lea eax, [ebp - 0x1d0]
call fcn.004035cc
call fcn.004030ac
push dword [0x506ebc]
push 0x4f7490
push dword [0x506ec0]
push 0x4f7490
push dword [0x506ec4]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.00405774
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004f2db8
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405b90
call fcn.00403f28
call fcn.004030ac
lea eax, [ebp - 0x1d0]
call fcn.004038f8
call fcn.004030ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7453
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7480
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 4]
call fcn.004053e0
ret
Function at 0x6fcc7f
Capabilities:
Encode data using xor

Disassembly:
cmc
jns 0x6fcc69
mov ebx, 0xd73d133e
jmp 0x6fcccd
sub esp, 0x1c
jmp 0x6fcc91

Function at 0x6fd8e8
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esi, [esp + 4]
mov dh, dl
setb dl
bts ecx, ebp
jmp 0x6fd93a
xchg dword [esp], ebx
xchg byte [esp + 2], cl
jmp 0x6fd8d2
sub ax, bp
sub esp, 0xbc
jmp 0x6fd924
jae 0x6fd8f1
sub ax, bp
jmp 0x6fd8f4

Function at 0x6fdaa8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 2]
jmp 0x6fdb02
call 0x6fdae4
lea esp, [esp + 2]
jmp 0x6fdb21
jbe 0x6fdab3
ja 0x6fdab3
mov al, bh
add ebp, dword [esi]
bswap eax
bsr dx, dx
jp 0x6fdb44
jnp fcn.006fdb2e
in al, dx
dec esi
fdivr qword [ebx - 0x1ca02eaa]
jae 0x6fdb34
in eax, 0x21
cmpsb byte [esi], byte es:[edi]
lea esp, [esp + 0x10]
dec ebp
xchg ecx, eax
rdtsc
rdtsc
jmp 0x6fdb06
push ecx
shl dword [eax - reloc.WINMM.dll_midiStreamOut], 0x40
daa
shl byte [edx - 0x2d], cl
dec edx
in eax, 0x14
xchg ebx, ebp
call 0xf79c7cd
mov word [edi], ss
or byte [eax], al
add byte [ebp - 0x4f165eb1], cl
or eax, dword [eax]
add byte [esi], ch
cmp dword [eax], ebx
jnp 0x6fdbae
jmp fcn.006fdb2e
mov ah, 0xd3
lahf
xlatb
or dword ds:[eax + reloc.WINMM.dll_midiStreamOut], ebp
loopne 0x6fdc23
mov edx, dword [esp]
jmp 0x6fdbdc
mov cl, al
lea edx, [edx + edi]
mov edx, 0xbd9fa59e
bt edx, eax
jge 0x6fddee
jl 0x6fdc4e
bound ebx, qword [ebp + 0xfc6ffec]
leave
bswap ecx
lea edx, [eax - 0x25]
jmp 0x6fdbc2
xchg dh, dl
salc
dec dx
ja 0x6fdc0c
not dx
call fcn.006fdc99
cmp byte [esi - 9], ah
sar dh, cl
retf 0x148a
mov edx, 0x9074f883
bswap edx
jmp 0x6fddb6
mov edx, 0x9074f883
bswap edx
ror cl, 0
mov dx, 0x5d7c
jmp 0x6fdc22
jmp 0x6fddaf

Function at 0x738e80
Capabilities:
Encode data using xor

Disassembly:
mov edi, dword [ebp - 8]
lea esp, [esp + 4]
jmp 0x737876

Function at 0x835eca
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
cpuid
mov dl, byte [esp]
rdtsc
mov edi, ebp
xchg bx, di
jmp 0x835de7
add esp, 2
mov dword [esp], ecx
xchg ebx, ebp
jmp 0x835dfd

Function at 0x835f54
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x835ff7
dec ah
xchg ebx, edi
xchg bx, cx
cpuid
xchg dword [esp + 5], ecx
lea ecx, [esi*4]
jmp 0x835f85
xchg cl, dh
mov edi, dword [esp + 5]
pop dword [esp + 7]
xchg word [esp + 0xf], dx
mov ebp, dword [esp]
mov byte [esp + 0xb], bl
jmp 0x835f9b
Function at 0x8362b9
Capabilities:
Execute anti-debugging instructions

Disassembly:
std
neg si
seto dh
mov dh, al
rdtsc
cld
jmp 0x8362e3
xchg word [esp + 0x16], cx
jmp 0x8362a3
cld
mov bx, word [esp + 3]
mov word [esp + 1], di
mov ax, word [esp + 7]
mov word [esp], dx
cpuid
jmp 0x8362f6
bsr edx, esp
add esp, 0xe
xchg bl, ah
mov word [esp + 1], di
rdtsc
mov bl, 0x10
jmp 0x8362c0
dec eax
bswap ebp
lea edx, reloc.WINMM.dll_midiStreamOut
shl ah, 6
pop bp
push dword [esp + 9]
jmp 0x83633f
mov bh, dh
push word [esp + 0xc]
rdtsc
mov byte [esp + 3], ah
jmp 0x83636a
xchg bh, al
mov eax, dword [esp + 2]
mov dword [esp + 8], ebx
pop cx
xchg dword [esp + 7], esi
neg di
jmp 0x836329
push word [esp + 4]
mov ax, word [esp + 3]
jmp 0x8363b4
lea esp, [esp + 9]
mov cx, word [esp + 3]
xchg bh, cl
mov ah, bl
mov edx, ebp
bt di, ax
jmp 0x836354
mov al, byte [esp + 1]
not cx
lea edi, reloc.WINMM.dll_midiStreamOut
std
jmp 0x836402
lea eax, [esi*4]
push word [esp + 6]
mov ebp, dword [esp + 6]
pop ax
setnp cl
pop dword [esp]
jmp 0x83639d
sbb bh, 0xe7
push ecx
stc
mov di, ax
mov ebx, ecx
mov ax, word [esp + 3]
jmp 0x83642c
xchg dl, al
mov ecx, 0x7be1ee51
mov bx, ax
clc
mov cl, 4
cmc
jmp 0x8363ce
mov edi, dword [esp + 2]
sub esp, 4
rdtsc
neg bp
pop word [esp]
neg ch
jmp 0x8363e4
lea eax, [esp + ebx]
cpuid
mov dword [esp], ecx
cld
setle al
xchg dl, al
jmp 0x836449
mov word [esp + 2], di
lea esi, [edi*4]
mov bh, ch
pop word [esp + 4]
pop word [esp + 3]
lea ebx, [ecx + edi]
jmp 0x836416
xchg word [esp + 1], dx
xchg word [esp + 3], si
mov cl, byte [esp + 1]
xchg word [esp + 1], di
sbb bl, 0x8a
call fcn.00836b3f
wait
adc dword [ecx + reloc.WINMM.dll_midiStreamOut], eax
xchg ebx, eax
or ah, byte [ebp - 0x6fd17]
invalid
Function at 0x8366e7
Capabilities:
Execute anti-debugging instructions

Disassembly:
shl ecx, cl
mov ax, word [esp + 1]
push word [esp]
mov dword [esp], edx
xchg si, bp
xchg word [esp + 1], si
jmp 0x8366c3
lea esp, [esp + 0xf]
mov bx, word [esp + 3]
xchg word [esp + 1], di
shl ebp, 0x18
mov word [esp], di
pop si
jmp 0x83668b
pop bx
xchg bx, ax
cld
mov cl, ch
xchg edi, ebp
mov si, 0x5593
jmp 0x83677d
jmp 0x8366aa
setg dl
push ecx
push word [esp + 2]
setae cl
std
jmp 0x83674b
not esi
mov word [esp + 3], ax
xchg dx, bp
setns dh
neg si
neg ecx
jmp 0x8366e9
pop eax
btc ebp, esp
shl ebx, 0x1f
pop edi
mov dh, 0xaf
neg si
jmp 0x83675e
lea esp, [esp + 4]
mov si, sp
lea esp, [esp + 6]
xchg edi, ebx
push ebx
neg esi
jmp 0x836713
mov dword [esp + 6], ebp
mov word [esp + 2], ax
xchg edi, edx
xchg si, ax
mov bh, dh
bswap ebp
jmp 0x836729
mov ax, 0x7c68
setno dh
mov si, word [esp]
bswap ebx
bsr esi, eax
xchg ch, bl
jmp 0x8367ab
add esp, 0
bswap ebp
sub esp, 0x19
xchg byte [esp + 2], ah
pop dword [esp]
lea esp, [esp + 0xf]
jmp 0x8366ff
pop cx
bt eax, edx
sub esp, 0x11
rdtsc
pop si
jmp 0x8369ca
xchg ebx, edx
mov ax, 0xd2ef
xchg al, bh
mov edi, eax
sub esp, 0xc
lea esp, [esp]
jmp 0x836795
xchg dword [esp], edx
sub esp, 0x13
mov di, word [esp + 0x14]
rdtsc
setne al
bswap ecx
jmp 0x836870
sub esp, 0x18
lea ecx, reloc.WINMM.dll_midiStreamOut
push dword [esp + 0x13]
jmp 0x836843
btc bp, di
lea ebp, [edx*4]
stc
add esp, 6
rdtsc
neg edi
jmp 0x8367eb
xchg dl, al
neg edx
inc esi
not dx
lea eax, reloc.WINMM.dll_midiStreamOut
mov al, bl
jmp 0x83689a
mov esi, 0xc5c01031
sbb bp, 0x6c2f
not ax
xchg word [esp + 0x16], cx
mov ah, 3
xchg word [esp + 0x18], ax
jmp 0x83682a
mov ecx, ebp
mov ch, dh
pop di
xchg byte [esp + 0x16], dl
cld
xchg dword [esp + 4], eax
jmp 0x8367ff
lea edx, [eax*4]
add byte [eax], al
call fcn.008368c4
jl 0x836889
add dh, cl
sbb al, 0x6a
test dword [edi], esi
setnp ch
pop bx
mov ah, byte [esp + 0x27]
sub esp, 0x1c
lea esp, [esp + 0x4e]
xchg edi, esi
jmp 0x836884
btr ebp, eax
xchg bp, ax
xchg word [esp + 5], cx
mov edi, 0x8a116303
not cl
mov byte [esp + 1], al
jmp 0x836815
pop word [esp + 0x12]
lea esi, [ecx*4]
xchg di, ax
mov word [esp + 0x14], si
mov esi, 0xc171e10b
add esp, 0xa
jmp 0x8368ef

Function at 0x836ca5
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x836e7f
rdtsc
mov byte [esp + 7], al
not dl
popal
mov edi, esp
cmc
mov dl, 0x31
pop ebp
neg di
xchg byte [esp + 0xd], dl
setp bh
jmp 0x836d3e
Function at 0x83afca
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x835d75
mov word [esp + 3], bx
lea esp, [esp + 2]
mov dword [esp + 0x24], ebp
call 0x83afb4
jae 0x83afb4
push dword [esp + 1]
mov dword [esp + 0x28], esi
pushal
je 0x83afdb
add dword [ecx + reloc.WINMM.dll_midiStreamOut], ecx
jmp 0x83afd7
push word [esp]
mov byte [esp + 2], dh
mov dword [esp], eax
jmp 0x83afa1
push word [esp + 0x14]
mov dword [esp + 6], eax
adc al, 0x89
inc esp
and al, 6
push dword [esp + 0xe]
lea esp, [esp + 2]
mov dword [esp + 0x48], edi
lea esp, [esp + 0x48]
jmp 0x83bd77
pop eax
sub eax, 0x43b2aa
push eax
jmp 0x83646e
call 0x83b2aa
jmp 0x83b1d1
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x83b2a5
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x83b3c7

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x448620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44d720]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [0x44d720], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x402019
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__4u____s__impossible_to_find__S_r_n
lea eax, [ebp - 0xa0c]
push 0x400
push eax
call fcn.00401f00
add esp, 0x18
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b38f
mov esp, ebp
pop ebp
ret 0xc
push dword [esi + 0x10]
push eax
push dword [esi + 4]
call fcn.00402040
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b38f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402040
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x448620]
xor eax, esp
mov dword [esp + 0x450], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0x1c
push eax
push fcn.00402040
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb edi, edi
and edi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x424
mov esi, eax
mov dword [esp + 0x34], 0x428
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0041d740
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4020ed
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x4020e1
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x14]
call fcn.00402110
lea eax, [esp + 0x30]
push eax
push esi
call ebx
test eax, eax
jne 0x4020c8
cmp esi, 0xffffffff
je 0x4020f9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b38f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ea5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ee4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402ee0
lea ebx, [ebx]
cmp esi, edx
jae 0x402ee4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402ed0
cmp esi, edx
jb 0x402ee9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 4]
push ecx
push 0xf003f
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404e1e
cmp dword [ebp + 0x4c], 8
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
push ebx
cmovae ecx, dword [ebp + 0x20]
add eax, eax
push esi
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x404dcc
push dword [ebp + 8]
call fcn.0040c46c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x404df1
push dword [ebp + 0x20]
call fcn.0040c46c
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x404e16
push dword [ebp + 0x38]
call fcn.0040c46c
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 8
jb 0x404e2f
push dword [ebp + 8]
call fcn.0040c46c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x404e54
push dword [ebp + 0x20]
call fcn.0040c46c
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x404e79
push dword [ebp + 0x38]
call fcn.0040c46c
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x404e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432da0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x448620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 4], 1
lea edx, [ebp - 0x21c]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push edx
cmovae ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x218]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edx
cmovae eax, dword [ebp + 8]
push 0
push 0xffff
push ecx
push eax
push 0x80000001
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x404f28
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404f06
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004032e0
mov bl, 1
jmp 0x404f2a
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x404f3b
push dword [ebp + 8]
call fcn.0040c46c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x404f60
push dword [ebp + 0x20]
call fcn.0040c46c
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b38f
mov esp, ebp
pop ebp
ret
Function at 0x405250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e79
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040ca7a
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4052a7
push 0x80004005
call fcn.00403290
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov ecx, 0x43f640
test eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmovne ecx, eax
xor ebx, ebx
mov dword [ebp - 0x10], ecx
push ecx
call fcn.0041c9fa
mov esi, eax
call fcn.0041c9fa
add esi, eax
push esi
push dword [0x44d7d4]
push str._s_d._s
push edi
call fcn.004074e0
mov ecx, dword [edi]
mov eax, 1
add esp, 0x14
sub eax, dword [ecx - 4]
or eax, dword [ecx - 8]
jge 0x40530d
push 0
mov ecx, edi
call fcn.004031e0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405326
mov ecx, dword [ebp - 0x10]
inc ebx
cmp ebx, 0x2710
jl 0x4052d1
cmp ebx, 0x2710
jne 0x40535b
call fcn.0041c9fa
mov esi, eax
call fcn.0041c9fa
push dword [ebp - 0x10]
add esi, eax
call fcn.0041c9fa
add eax, esi
push eax
push dword [0x44d7d4]
push str._s_a_d._s
push edi
call fcn.004074e0
add esp, 0x14
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ab0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432f50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x448620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
lea eax, [ebp - 0x2c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405c13
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405b14
push 0x80004005
call fcn.00403290
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push str.StartMinimized
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push dword [0x44d7d8]
push str._s_EpicScale__s
push eax
call fcn.004074e0
mov esi, dword [ebp - 0x30]
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x405b64
xor ecx, ecx
jmp 0x405b7f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004041a0
mov byte [ebp - 4], 1
test bl, bl
jne 0x405ba0
push 0
push 0x43f944
lea ecx, [ebp - 0x28]
call fcn.004041a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x43f398
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
jb 0x405bde
push dword [ebp - 0x28]
call fcn.0040c46c
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405c13
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b38f
mov esp, ebp
pop ebp
ret
Function at 0x405c30
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432f88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405cb2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405cb2
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.00405250
add esp, 4
push 0
mov byte [ebp - 4], 1
push dword [eax]
push esi
call fcn.0040e86d
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405cb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret