joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c10
Capabilities:
Access peb ldr_data
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x47ae20
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x4917b4
push 1
push 0
push 0x491824
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406c87
lea ecx, [esp + 0x18]
call fcn.0044385a
mov esi, dword [esp + 0x40]
push 0
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0
call fcn.004438f2
test eax, eax
jne 0x406c9a
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.00443883
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x406cf8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406cc5
sub eax, edx
sar eax, 1
je 0x406cf8
push 0
push esi
lea ecx, [esp + 0x20]
call fcn.004438f2
test eax, eax
je 0x406cf8
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push esi
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4917e4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x406c76
mov esi, dword [esp + 0x48]
push esi
lea ecx, [esp + 0xc]
call fcn.00401ab0
lea ecx, [esp + 8]
mov byte [esp + 0x38], 1
call fcn.00404540
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x406d56
push 0x483e4c
push ecx
call fcn.0045bf66
add esp, 8
test eax, eax
je 0x406d56
sub eax, dword [esp + 8]
sar eax, 1
jns 0x406d70
push esi
lea ecx, [esp + 0xc]
call fcn.00401a70
push 0x483e4c
lea ecx, [esp + 0xc]
call fcn.00402c20
jmp 0x406d7a
push esi
lea ecx, [esp + 0xc]
call fcn.00401a70
mov eax, dword [esp + 8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401590
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00405810
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
add esp, 4
push 2
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.00443883
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x406ff0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.0045c3c0
mov ecx, dword [esp + 0x228]
add esp, 0xc
push 0
push ecx
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00401ab0
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0045bdbc
add esp, 0x210
ret
Function at 0x408260
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47e930
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.00401ab0
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
mov dword [esp + 0x18], 0
test eax, eax
jl 0x4082bf
push 0x483df4
push ecx
call fcn.0045bf66
add esp, 8
test eax, eax
je 0x4082bf
sub eax, dword [esp + 8]
sar eax, 1
jns 0x408327
push 0x483af4
push 0
lea ecx, [esp + 0x10]
call fcn.00401850
lea ecx, [esp + 0xc]
push ecx
call fcn.00406e20
add esp, 4
mov eax, dword [eax]
push eax
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00401850
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408314
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x483af4
push 0x483aec
lea ecx, [esp + 0x10]
call fcn.00402510
mov ecx, dword [esp + 8]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40836c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x408800
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47b16e
mov eax, dword fs:[0]
push eax
sub esp, 0x7dc
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x7d8], eax
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x7ec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7fc]
mov esi, dword [esp + 0x804]
mov edi, dword [esp + 0x808]
mov dword [esp + 0x10], 0
push 0x7d0
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x800], 0
call fcn.0045c3c0
mov ecx, dword [esp + 0x80c]
add esp, 0xc
push ecx
push 0x3e8
lea edx, [esp + 0x20]
push edx
push 0x4882d0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea ecx, [esp + 0x14]
call fcn.00401ab0
push edi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x800], 1
call fcn.00402800
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, 0x4a55d8
mov byte [esp + 0x7f8], 2
call fcn.004445b6
lea edx, [esp + 0x18]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x4088d2
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004017a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7f4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x7f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40893e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00401ab0
mov eax, dword [esp + 0x800]
add eax, 0xfffffff0
mov dword [esp + 0x7f4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x7ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7d8]
xor ecx, esp
call fcn.0045bdbc
add esp, 0x7e8
ret
Function at 0x408c40
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47b228
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00413b10
mov eax, dword [0x4a23f0]
cmp eax, 1
mov dword [esp + 0x2c], 0
jge 0x408c8a
mov eax, 1
mov dword [0x4a23f0], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00414cb0
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x2c], 0xffffffff
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00413be0
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x408ce3
push edi
call fcn.00408260
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x408ff0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47b2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
call fcn.0044385a
mov edi, dword [esp + 0x50]
push 0
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0
call fcn.004438f2
test eax, eax
je 0x40904d
push edi
call fcn.00408260
add esp, 4
test eax, eax
je 0x4090d4
mov ebx, dword [esp + 0x4c]
push 0
push ebx
call fcn.00436260
add esp, 8
mov esi, eax
push edi
test esi, esi
je 0x40910a
push 0
push esi
call fcn.004362d0
push esi
mov ebp, eax
call fcn.00436310
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebp, ebp
je 0x4090d4
lea ecx, [esp + 0x14]
call fcn.00444a81
push 0
push 0
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 1
call fcn.00444ef9
test eax, eax
je 0x4090fb
lea ecx, [esp + 0x14]
call fcn.0044496c
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00444a1b
cmp esi, 0x9e
jne 0x4090fb
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.00444b89
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.00443883
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.00444b89
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.00443883
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x409260
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47b341
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, dword [esp + 0x238]
xor ebx, ebx
push 0x208
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.0045c3c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4839a0
push str.TempAppPath
push 0x48398c
call fcn.00409140
add esp, 0xc
test al, al
je 0x40931d
lea edx, [esp + 0x14]
push edx
call fcn.00406e20
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x1c]
jmp 0x409300
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x409300
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40945d
push 0x484184
lea ecx, [esp + 0x14]
push 0x48398c
push ecx
call fcn.004094b0
add esp, 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x230], ebx
cmp eax, ebx
je 0x40944f
push ecx
lea eax, [edx - 0x10]
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401590
lea edx, [esp + 0x1c]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.00407070
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 1
call fcn.00401990
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jl 0x4093cd
push 0x483df4
push ecx
call fcn.0045bf66
add esp, 8
cmp eax, ebx
je 0x4093cd
sub eax, dword [esp + 0x10]
sar eax, 1
jns 0x409416
lea ecx, [esp + 0x18]
push ecx
call fcn.00406e20
add esp, 4
mov eax, dword [eax]
push eax
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 2
call fcn.00401850
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x483af4
push 0x483aec
lea ecx, [esp + 0x18]
call fcn.00402510
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], ebx
je 0x40944f
lea esi, [esp + 0x1c]
mov eax, edx
sub esi, edx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, bx
jne 0x409440
mov dword [esp + 0x230], 0xffffffff
lea eax, [edx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00401ab0
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0045bdbc
add esp, 0x224
ret
Function at 0x40a900
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b5c6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.00409c80
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0x274], ebx
call fcn.00408260
add esp, 8
cmp dword [esp + 0x274], ebx
je 0x40a96e
push edi
mov ecx, 0x4a56e8
call fcn.00410910
push 0x104
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.0045c3c0
add esp, 0xc
lea eax, [esp + 0x58]
push str.commandline
mov ecx, 0x4a55d8
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.runas
mov dword [esp + 0x30], eax
call fcn.004445b6
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401590
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x26c], 1
lea ecx, [esp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x40a9f6
push 0x12
push str.____runas_admin___
call fcn.004017a0
jmp 0x40aa02
push 0x13
push str._____runas_admin___
call fcn.004028e0
push str.runasadmin
mov ecx, 0x4a55d8
call fcn.004445b6
push 0x11
push str.___runas_admin___
mov ecx, eax
call fcn.004017a0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], ebx
call fcn.00406e20
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x38], edx
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [esi - 0x10]
mov byte [esp + 0x26c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aa94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aabb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0045bdbc
add esp, 0x260
ret
Function at 0x40dd80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47bbf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
mov dword [esp + 0x24], 1
call fcn.00401590
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
mov byte [esp + 0x28], 2
call fcn.00401590
mov ecx, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x34]
add esp, 4
push eax
push ecx
mov byte [esp + 0x2c], 1
call fcn.0040d4b0
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40de25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x40fe70
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bf68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 0x20]
push 0x7b6
push str.qupdater.needmsg
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov eax, dword [ebx + 0x20]
mov ecx, dword [0x4a561c]
push eax
push ecx
mov ecx, 0x4a5614
mov dword [ebp - 4], 2
call fcn.00401ed0
mov eax, dword [ebx + 0x20]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x40feff
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40feff
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40ff1a
push 0x40
push 0x3000
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov eax, dword [ebx + 0x20]
push eax
mov ecx, 0x4a55f8
call fcn.0041b5b0
mov dword [eax], edi
mov ecx, dword [ebx + 0x20]
push ecx
mov ecx, 0x4a55bc
call fcn.0041b5b0
mov dword [eax], esi
jmp 0x40ff45
cmp dword [0x4a56f0], 0
mov dword [ebp - 4], 4
jle 0x410025
call fcn.004412f5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ff73
push 0x80004005
call fcn.004011b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [0x4a56f0]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Found__d_files_need_to_update...
mov byte [ebp - 4], 5
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x483af8
mov byte [ebp - 4], 6
call fcn.00401ab0
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 5
call fcn.00412920
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.004029f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410025
mov eax, dword [ebx + 0x184]
cmp eax, 1
je 0x410046
cmp eax, 2
je 0x410046
mov edx, dword [ebx + 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push edx
push 0x401fd0
jmp 0x410055
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0
push ecx
push 0x40ea50
push 0
push 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
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 0x412340
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi + 8], 0xffffffff
mov dword [edi], 0
mov eax, dword [esi]
push eax
call fcn.00437574
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437569
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi], eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x412396
shr dword [edi], 2
mov dword [esi + 8], 1
cmp dword [edi], 0x400
jae 0x412354
mov eax, dword [esi]
test eax, eax
je 0x4123b5
mov ecx, dword [esi + 8]
cmp ecx, dword [edi]
jae 0x4123b5
mov eax, dword [eax + ecx*4]
inc ecx
pop edi
mov dword [esi + 8], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x412400
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], 0
je 0x412488
mov eax, dword [esi + 4]
push eax
call fcn.00437574
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437569
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x412467
shr dword [edi], 2
mov dword [esi + 0xc], 0
cmp dword [edi], 0x400
jae 0x412420
cmp dword [esi], 0
je 0x412488
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi]
jae 0x412488
mov edx, dword [esi + 4]
mov eax, dword [edx + ecx*4]
inc ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x412490
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push esi
push 0x412250
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 4]
mov dword [esi + 0x10], 0
test eax, eax
je 0x4124be
cmp dword [esi + 0xc], 0
jbe 0x4124be
mov eax, dword [eax]
mov dword [esi + 0x10], 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x413420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47c5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
call fcn.00437f1a
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x90]
push 0x485fbc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00445118
push 0
push 0x1000
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x98], 0
call fcn.0044300b
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x8c], 1
call fcn.00412ed0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00442e54
lea ecx, [esp + 0x10]
call fcn.00445383
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 0
call fcn.00442fcd
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0xffffffff
call fcn.00445493
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x7c
ret