joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4270a7
Capabilities:
Clear file content

Disassembly:
insb byte es:[edi], dx
and al, 0x10
mov edi, edi
push ebp
mov ebp, esp
or esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 0xa]
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xc], ebx
call fcn.0042595a
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [0xfff883ec], edx
je 0x42712f
push 3
push ebx
adc edi, edi
jne 0x427065
call fcn.0042595a
mov ecx, eax
and ebp, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x42712f
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0x10], edi
sub esi, eax
sbb edi, edx
js 0x4271c4
jg 0x427108
cmp esi, ebx
jbe 0x4271c4
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProces3Heip]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ecx - 4], eax
test al, al
jne 0x42713b
call 0xfc41237b
mov dword [eax], 0xc
push 0xfffeb247
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x88000
push dword [ebp + 8]
add bh, bh
jne 0x42714b
call fcn.0042796f
pop ecx
pop ecx
mov dword [ebp - 8], eax
inc ebp
clc
test edi, edi
jl 0x42715b
jg 0x427157
sub esi, ebx
jb 0x42715b
mov eax, ebx
jmp 0x42715d
mov eax, esi
sar bh, 1
jne 0x42715d
push dword [ebp + 8]
call fcn.004209aa
mov eax, esp
or al, 0x93
clc
div dword [esi + esi - 0x67]
sub esi, eax
sbb edi, edx
js 0x42717e
jg 0x42714d
test esi, esi
jne 0x42714d
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [0x7f3e808]
inc eax
add byte [ecx + 0x59], bl
push dword [ebp - 4]
sub al, byte [eax]
call dword [0x40f834]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x42722d
cmp edi, ebx
jg 0x427239
jl 0x42720e
cmp esi, ebx
jae 0x427239
jae 0x4271cf
push dword [ebp + 0x10]
jne 0x4271e2
push dword [ebp + 0xc]
push dword [ebp - 0x78]
call fcn.0042595a
xor eax, edx
add esp, 0x10
cmp eax, 0xffffffdf
je 0x42713f
push dword [edi + 8]
call 0x25f3c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], esp
and edx, edx
mov dword [ebp - 0xb], edx
add edi, eax
push dword [ebp + 0x29]
jne 0x427239
call fcn.0041237b
mov dword [eax], 0xd
call fcn.0041238e
mov esi, eax
call dword [0x42d0d5]
mov cl, 0xfe
dec dword [ebx - 0x2aea0010]
rol byte [edx], 1
mov dword [esi], eax
stosd dword es:[edi], eax
jne 0x42721d
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x42712f
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [0xe712e808]
invalid
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401100
lea ebx, [ebx]
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404dbe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x404d8f
cmp eax, 2
jne 0x404daa
mov eax, dword [esp]
test esi, esi
je 0x404db8
test eax, eax
je 0x404db3
test al, 1
jne 0x404daa
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x404db8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x405290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45f1e8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x4052d4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402310
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004465e2
add esp, 8
test eax, eax
jl 0x40534b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x40534b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405338
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.00401090
int3
Function at 0x405360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x460158
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.00429aa9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4053a6
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405473
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x405406
push 0x104
lea ecx, [esp + 0x10]
call fcn.00401f00
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004465e2
add esp, 8
test eax, eax
jl 0x405469
cmp eax, dword [esi - 8]
jg 0x405469
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esi, 0xfffffff0
push esi
call fcn.00401f50
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4054a3
mov ecx, dword [esi]
push esi
jmp 0x40549c
push 0x80070057
call fcn.00401090
push 0x468634
mov ecx, ebx
call fcn.00401830
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054a3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x406150
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x460d4e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x479920]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov dword [esp + 0x258], 0
mov eax, dword [esp + 0x260]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xc], esp
mov esi, esp
push eax
call fcn.00401f50
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00405290
add esp, 4
test eax, eax
jne 0x4061cd
push eax
mov eax, dword [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.main.zip
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0040af90
add esp, 0xc
mov eax, dword [esp + 0x264]
mov byte [esp + 0x258], 1
push eax
mov eax, dword [esp + 0xc]
call fcn.00406360
add esp, 4
call fcn.00429aa9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40621d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x244], eax
call fcn.00429aa9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40624a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x248], eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x264]
lea edx, [esp + 0xc]
mov byte [esp + 0x25c], 2
call fcn.00419fc0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x258], 1
mov eax, dword [esp + 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x258], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x258], 0xffffffff
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406329
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00446330
add esp, 0x254
ret
Function at 0x406360
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406387
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.0042da12
movzx ecx, word [esp + 0x18]
mov esi, dword [eax + 0xc]
push 0x468ca0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x4073a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x45fff8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x479920]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00429aa9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4073f1
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x42
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00401e50
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4074d4
push str.YouXunBoxYouxun.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040af90
add esp, 0xc
push str.RUNASADMIN
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00401830
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4074af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00446330
add esp, 0x24
ret
Function at 0x4079e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x45ffc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x467cd4
push 1
push ebx
push 0x467d04
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x407a4e
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.00401830
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.00446c8e
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x407a83
mov eax, esi
jmp 0x407a89
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004043d0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00401c10
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407aca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp edi, ebx
je 0x407aed
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x467d34
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x407b52
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x407b3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x407b17
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x407ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x407bc0
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x1a
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407c55
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x407c01
push 0x104
mov ecx, esi
call fcn.00401f00
mov eax, dword [esi]
push edi
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x407c29
push ecx
push eax
call fcn.004465e2
add esp, 8
test eax, eax
jl 0x407c4b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x407c4b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop ecx
ret
push 0x80070057
call fcn.00401090
xor eax, eax
pop ecx
ret

Function at 0x407c60
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x479920]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407ca3
cmp dword [esp + 0x10], 2
jne 0x407ca3
cmp dword [esp + 4], 6
jne 0x407ca3
mov eax, 1
cmp dword [esp + 8], eax
je 0x407ca5
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00446330
add esp, 0x118
ret
Function at 0x407fb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45f168
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 2
mov eax, dword [esi]
mov edi, dword [esp + 0x20]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x408002
push 0x104
mov ecx, esi
call fcn.00401f00
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edi
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x468634
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40803b
push ecx
push eax
call fcn.004465e2
add esp, 8
test eax, eax
jl 0x4080d4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4080d4
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408076
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40809b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret
push 0x80070057
call fcn.00401090
int3
Function at 0x408c20
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x45ff10
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x479920]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x479920]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [esp + 0x228], 1
push eax
lea ecx, [esp + 0x1a]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x104
mov word [esp + 0x1c], ax
call fcn.00448d60
add esp, 0xc
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x10]
call fcn.00401830
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408d0b
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x240]
push eax
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408d0b
mov eax, dword [esp + 0x22c]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x238]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x224], 0
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00446330
add esp, 0x224
ret