joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45ebbc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45ebbc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x45eba6
push eax
call ebp
test ax, ax
jl 0x45ebb4
inc esi
add edi, 4
cmp esi, 6
jb 0x45eb98
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0045e870
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4629a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x462a00
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x462a00
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x462a00
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x462a00
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x462a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x477d0e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x477d46
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475dc2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00475d9a
jmp 0x477d52
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x479442
call fcn.0047f040
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479442
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479439
xor eax, eax
jmp 0x47944a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479450
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f570
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f59e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f5bc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047f4d6
jmp 0x47f5bc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f5bc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047f4d6
test edi, edi
mov eax, edi
jne 0x47f5a6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010d0
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 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
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 0x405c90
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 0x405cfe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x405ccf
cmp eax, 2
jne 0x405cea
mov eax, dword [esp]
test esi, esi
je 0x405cf8
test eax, eax
je 0x405cf3
test al, 1
jne 0x405cea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x405cf8
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 0x4061d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x493b18
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4b8a40]
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 0x406214
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402720
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.00461dfb
add esp, 8
test eax, eax
jl 0x40628b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x40628b
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 0x406278
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.004010b0
int3
Function at 0x4062a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x495528
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b8a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.004448fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4062e6
push 0x80004005
call fcn.004010b0
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 0x4063b3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x406346
push 0x104
lea ecx, [esp + 0x10]
call fcn.00402310
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.00461dfb
add esp, 8
test eax, eax
jl 0x4063a9
cmp eax, dword [esi - 8]
jg 0x4063a9
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.00402360
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 0x4063e3
mov ecx, dword [esi]
push esi
jmp 0x4063dc
push 0x80070057
call fcn.004010b0
push 0x49f6e4
mov ecx, ebx
call fcn.00401bc0
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 0x4063e3
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 0x407090
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x496a00
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b8a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00402360
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004061d0
add esp, 4
test eax, eax
jne 0x4070f0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.main.7z
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00405010
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 1
push eax
mov eax, dword [esp + 0x10]
call fcn.004071a0
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004300a0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
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 0x40715e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 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 0x407186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4071a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4071c7
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.00448bfd
movzx ecx, word [esp + 0x18]
mov esi, dword [eax + 0xc]
push 0x49ffdc
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 0x408260
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4953c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b8a40]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x4b8a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.004448fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4082b1
push 0x80004005
call fcn.004010b0
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.00402260
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 0x408394
push str.YouXunBoxYouxun.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00405010
add esp, 0xc
push str.RUNASADMIN
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00401bc0
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 0x40836f
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 0x408394
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 0x4083c0
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 0x4083e8
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.00461a99
add esp, 0x24
ret
Function at 0x4090b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x495390
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4b8a40]
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 0x49e5cc
push 1
push ebx
push 0x49e5fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40911e
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.00401bc0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.004624a7
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x409153
mov eax, esi
jmp 0x409159
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404f90
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00401f70
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 0x40919a
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 0x4091bd
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 0x49e62c
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x409222
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 0x40920e
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 0x4091e7
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 0x409278
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 0x409290
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 0x409325
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 0x4092d1
push 0x104
mov ecx, esi
call fcn.00402310
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 0x4092f9
push ecx
push eax
call fcn.00461dfb
add esp, 8
test eax, eax
jl 0x40931b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40931b
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.004010b0
xor eax, eax
pop ecx
ret

Function at 0x409330
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b8a40]
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 0x409373
cmp dword [esp + 0x10], 2
jne 0x409373
cmp dword [esp + 4], 6
jne 0x409373
mov eax, 1
cmp dword [esp + 8], eax
je 0x409375
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00461a99
add esp, 0x118
ret
Function at 0x409680
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x493d08
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x4b8a40]
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 0x4096d2
push 0x104
mov ecx, esi
call fcn.00402310
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edi
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x49f6e4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40970b
push ecx
push eax
call fcn.00461dfb
add esp, 8
test eax, eax
jl 0x4097a4
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4097a4
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 0x409746
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 0x40976b
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 0x409793
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.004010b0
int3
Function at 0x40a500
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4952e0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b8a40]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4b8a40]
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.00466ac0
add esp, 0xc
push 0x4a04e8
lea ecx, [esp + 0x10]
call fcn.00401bc0
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 0x40a5eb
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 0x40a5eb
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 0x40a616
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 0x40a641
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 0x40a66f
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.00461a99
add esp, 0x224
ret