joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x41984e
nop dword [eax]
cmp edi, dword [0x51716c]
jb 0x4197d8
cmp edi, dword [0x517170]
ja 0x4197d8
sub edi, 0x8000000
jmp 0x419846
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41984e
cmp dword [ebp - 0xc], 0x10000
jne 0x419831
cmp dword [ebp - 0x10], 0x10000
jb 0x419831
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4198fa
sub edi, 0x10000
jmp 0x419846
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x4197c0
movzx eax, si
test eax, eax
je 0x41985d
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x4198f8
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
cmp esi, dword [0x51716c]
jb 0x419888
cmp esi, dword [0x517170]
ja 0x419888
add esi, 0x8000000
jmp 0x4198f0
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call ebx
test eax, eax
je 0x4198f8
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x4198db
cmp ecx, 0x10000
jb 0x4198db
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4198fa
add esi, 0x10000
jmp 0x4198f0
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x4198f0
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x419870
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419c10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x509968
push 0x4a84c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x419cc2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x419cc2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x419cc2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x419cc2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x51be30], 0
jne 0x41a28c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x51be30
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41a28c
push esi
mov esi, dword [0x51be20]
mov dword [0x51be40], eax
mov dword [0x51be3c], eax
mov dword [0x51be38], eax
push edi
test esi, esi
je 0x41a26e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x41a27b
mov esi, dword [esi + 4]
test esi, esi
jne 0x41a255
xor eax, eax
pop edi
mov dword [0x51be34], eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x51be34], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x41a750
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x51be34]
test eax, eax
jne 0x41a7d2
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x41a771
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.004a4441
mov esi, eax
add esp, 4
test esi, esi
jne 0x41a787
lea edi, [eax + 8]
jmp 0x41a7a6
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41a7be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 8
push esi
call fcn.004a4471
add esp, 8
pop esi
mov dword [0x51be34], edi
mov eax, edi
mov dword [0x51be38], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x51be3c]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x51be3c], esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x41d6d0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d00e1
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x517ba0]
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, ecx
mov esi, dword [0x51c230]
sub esi, dword [0x51c22c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 3
sar esi, 2
push esi
push 0x102f
push dword [edi + 0x40]
call ebx
cmp esi, dword [0x51be44]
jbe 0x41d73a
push 0
lea eax, [esi - 1]
push eax
push 0x1013
push dword [edi + 0x40]
call ebx
push 0
push dword [0x51cf3c]
lea eax, [ebp - 0x4c]
mov dword [0x51be44], esi
push 0x1e
push eax
call fcn.00467e50
movsd xmm0, qword [0x51cf40]
lea eax, [ebp - 0x4c]
add esp, 0x10
push eax
push dword [0x51cf48]
lea eax, [ebp - 0x254]
sub esp, 8
movsd qword [esp], xmm0
push 0x4e24d8
push eax
call fcn.00402e90
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea eax, [ebp - 0x254]
add esp, 0x18
push eax
push 0x419
push dword [edi + 4]
call ebx
push 0x38
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x294], 0x40
push 0
push eax
mov dword [ebp - 0x290], 0
call fcn.004a7410
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
shrd ecx, eax, 0x14
push 0
shr eax, 0x14
push eax
push ecx
lea eax, [ebp - 0x2a4]
push eax
call fcn.00467d40
push eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 0
push 0x4e2534
push eax
call fcn.0049f790
mov esi, eax
push 0x4e2538
mov byte [ebp - 4], 1
call fcn.0049fbd0
push eax
push 0x4e2538
call fcn.0049fd60
add esp, 0x28
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x29c]
mov ecx, esi
push eax
call fcn.0049f8a0
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x41d85b
call fcn.0049fda0
mov ecx, dword [ebp - 0x2a0]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x41d86e
call fcn.0049fda0
mov ecx, dword [ebp - 0x2a4]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x41d881
call fcn.0049fda0
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 8
call fcn.0049f770
push eax
push 0x459
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 4], 0xa
test ecx, ecx
je 0x41d8b1
call fcn.0049fda0
xor eax, eax
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.004a4433
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420710
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d04df
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
push 0x4e27f0
push dword [0x51cb0c]
push dword [ecx + 4]
call fcn.0048d790
mov ebx, dword [ebp + 0x10]
push 0x5c
lea eax, [ebx + 2]
push eax
call fcn.004a83c5
add esp, 0x14
test eax, eax
je 0x4207b3
add eax, 2
push 0x5c
push eax
call fcn.004a83c5
add esp, 8
test eax, eax
je 0x4207b3
sub eax, ebx
sar eax, 1
mov ecx, eax
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 2
push ecx
push 0x4e1a9c
push eax
push ebx
call fcn.0049fd00
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0x1c]
mov ebx, 1
mov dword [ebp - 4], 0
mov ecx, edi
jmp 0x4207d9
push ebx
call fcn.0049fbd0
push eax
push ebx
call fcn.0049fd60
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x1c]
mov ebx, 2
mov dword [ebp - 4], 1
mov ecx, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4207e8
call fcn.0049fad0
mov dword [ebp - 4], 2
test bl, 2
je 0x420809
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 4
test esi, esi
je 0x420809
mov ecx, esi
call fcn.0049fda0
mov byte [ebp - 4], 5
test bl, 1
je 0x420825
mov byte [ebp - 4], 6
test edi, edi
je 0x420821
mov ecx, edi
call fcn.0049fda0
mov byte [ebp - 4], 5
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebx
push 0x450
push dword [edi + 4]
call esi
lea ecx, [ebp - 0x18]
call fcn.0049f770
push eax
push 0x44f
push dword [edi + 4]
call esi
lea ecx, [ebp - 0x18]
call fcn.0049f770
push eax
push 0x403
push dword [edi + 4]
call esi
push 0x3f9
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
call edi
mov ecx, dword [ebp - 0x14]
mov esi, 5
push 0x400
mov dword [ecx + 0x40], eax
xor eax, eax
cmp word [ebx], ax
mov ebx, ecx
cmovne esi, eax
push dword [ebx + 4]
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x4030
push 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x4e2814
push eax
push dword [ebx + 0x40]
mov dword [ebp - 0x30], 0xc8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4e282c
mov dword [ebp - 0x24], 0xc8
mov dword [ebp - 0x20], 0
call fcn.00453980
push 0x4e2840
push dword [0x51cb0c]
push dword [ebx + 0x40]
call fcn.00453ba0
add esp, 0x20
push 0
push 0
push 0x8000
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x20
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 7
test ecx, ecx
je 0x42091b
call fcn.0049fda0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4215b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0643
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ebx, [esi + 0x24]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.004a4441
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
push 0x4e1a9c
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0049fbd0
push eax
push 0x4e1a9c
call fcn.0049fd60
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 4]
mov byte [ebp - 4], 3
cmp eax, dword [edi + 8]
je 0x421681
mov dword [eax], esi
test esi, esi
je 0x42167b
mov ecx, esi
call fcn.0049fad0
add dword [edi + 4], 4
jmp 0x42168d
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00421130
mov dword [ebp - 0x24], esi
test esi, esi
je 0x42169b
mov ecx, esi
call fcn.0049fad0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.004213e0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x3c], xmm0
cmp byte [eax + 0xd], 0
jne 0x4216d7
add eax, 0x10
lea ecx, [ebp - 0x24]
push eax
call fcn.0049f960
test al, al
je 0x42173e
cmp dword [ebx + 4], 0xaaaaaaa
je 0x421772
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
push 0x18
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], 0
call fcn.004a4441
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 6
mov dword [edi + 0x10], ecx
test ecx, ecx
je 0x421719
call fcn.0049fad0
mov eax, dword [ebp - 0x20]
mov ecx, ebx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x14]
push edi
push dword [ebp - 0x38]
mov dword [edi], eax
push dword [ebp - 0x3c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.004200b0
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x42174e
call fcn.0049fda0
mov byte [ebp - 4], 9
test esi, esi
je 0x42175d
mov ecx, esi
call fcn.0049fda0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004202a0
int3
Function at 0x422ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0777
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x4e28a8
mov dword [ebp - 0x21c], edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xc
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x422c2d
lea eax, [ebp - 0x218]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x422c59
jmp 0x422c2f
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi], esi
test esi, esi
je 0x422c63
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
int3

Function at 0x422c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push eax
push 4
push 0
push 0x4e28dc
push esi
mov dword [ebp - 4], 0x9c26c
call edi
lea eax, [ebp - 0xc]
push eax
push 0x4e2900
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call esi
push 0x36
push 0x4e2914
push 1
push 0
push 0x4e294c
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 8]
push eax
push 0x4e2914
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 0xc]
mov edx, 0x4e296c
test eax, eax
cmovne edx, eax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422ce1
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push 0
push 0x4e297c
push dword [ebp - 8]
call edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0
push 0x4e2990
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422d40
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d07c0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x21c]
push eax
push 0x4e2a60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x422e6b
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e2ce8
push dword [ebp - 0x21c]
call esi
push 0x4e2d00
push dword [ebp - 0x21c]
call esi
push 0x4e2d14
push dword [ebp - 0x21c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e2ab8
push dword [ebp - 0x21c]
call esi
push 0x4e2ac4
push dword [ebp - 0x21c]
call esi
push 0x4e2ae0
push dword [ebp - 0x21c]
call esi
push 0x4e2afc
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e2d20
lea ecx, [ebp - 0x224]
call fcn.004229a0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00422a40
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00403090
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x422e57
mov eax, dword [eax]
jmp 0x422e59
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x220]
call fcn.00403090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret
Function at 0x423600
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d08d7
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push 0x104
push eax
mov dword [ebp - 0x424], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e299c
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x4e29b8
push eax
call fcn.00402e90
lea eax, [ebp - 0x218]
push eax
push 0x4e29d4
call fcn.004237d0
add esp, 0x18
test al, al
jne 0x42375d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x42375d
cmp byte [ebp + 0xc], 0
je 0x4236bc
push 0
mov ecx, esi
call fcn.004229a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret
push 0x4e299c
lea eax, [ebp - 0x420]
push 0x4e29ec
push eax
call fcn.00402e90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
push 0x4e29d4
call fcn.004237d0
add esp, 8
test al, al
jne 0x423751
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4e299c
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x4e1450
push eax
call fcn.00402e90
lea eax, [ebp - 0x218]
push eax
push 0x4e29d4
call fcn.004237d0
add esp, 0x18
test al, al
je 0x423696
lea eax, [ebp - 0x218]
push eax
jmp 0x423698
push 0xc
call fcn.004a4441
mov edi, eax
add esp, 4
mov dword [ebp - 0x424], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x42379d
lea eax, [ebp - 0x218]
mov dword [edi + 4], 0
push eax
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x4237ba
jmp 0x42379f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
test edi, edi
jne 0x42369f
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
int3
Function at 0x4237d0
Capabilities:
Extract resource via kernel32 functions
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0x4e2890
push dword [ebp + 8]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x423868
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push edi
mov dword [ebp - 8], eax
call esi
push 0x4e28a0
lea eax, [ebp - 4]
push edi
push eax
call fcn.004b8066
add esp, 0xc
push 0x82
push edi
call esi
mov eax, dword [ebp - 4]
pop esi
test eax, eax
je 0x423868
push eax
push ebx
push 1
push dword [ebp - 8]
call fcn.004b84c7
push dword [ebp - 4]
call fcn.004b81d2
add esp, 0x14
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
push 0x4e2a60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4238c1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4e2ae0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42a850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], edi
mov dword [edi], eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.0049fbd0
push eax
push esi
call fcn.0049fd60
mov dword [edi + 0x10], eax
add esp, 0xc
cmp dword [edi], 0
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0
je 0x42a94c
test ebx, ebx
je 0x42a8de
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
jmp 0x42a8f4
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [edi + 0x1c], eax
call esi
cdq
sub eax, edx
push 2
sar eax, 1
push ebx
mov dword [edi + 0x20], eax
call dword [sym.imp.USER32.dll_GetAncestor]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov esi, eax
mov dword [edi + 0x28], esi
test esi, esi
je 0x42a933
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x42a933
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x42a917
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push 0x41e430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x10