joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dbf83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dbfa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004db9da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4dbfc6
test byte [esp + 8], 2
je 0x4dbfc6
call fcn.004dba4d
mov dword [eax], 0xd
call fcn.004dba56
mov dword [eax], 5
jmp 0x4dbf9f
xor eax, eax
ret

Function at 0x4ed62c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ed664
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.004eb6e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004eb6b8
jmp 0x4ed670
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4eed1e
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 0x4eed60
call fcn.004f47d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4eed60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4eed57
xor eax, eax
jmp 0x4eed68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004eed6e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f4d03
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 0x4f4d31
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f4d4f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f4c69
jmp 0x4f4d4f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f4d4f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f4c69
test edi, edi
mov eax, edi
jne 0x4f4d39
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002ec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10002bb8
rdpmc
mov bh, 0xca
lea eax, [ebp - 0x40]
push eax
call fcn.10002bc8
push eax
push esi
push dword [ebp + 8]
call fcn.10002b7d
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.10002bb8
sbb dword [esi], edx
sub byte [edi - 0x73], cl
inc ebp
call 0x60e88cae
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl

Function at 0x10002f30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10002bc8
push eax
push esi
push dword [ebp + 8]
call fcn.10002b7d
mov dword [ebp - 8], eax
inc ebp
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10002bc8
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.10002b7d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10002bc8
push eax
push esi
push dword [ebp + 8]
call fcn.10002b7d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10002bb8
sbb dword [eax + 0x44], eax
ja 0x10002fc3
popfd
jl 0x1000303d
invalid
invalid
Function at 0x10002f70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10002bc8
push eax
push esi
push dword [ebp + 8]
call fcn.10002b7d
mov dword [ebp - 8], eax
inc ebp
clc
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10002bc8
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.10002b7d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10002bc8
push eax
push esi
push dword [ebp + 8]
call fcn.10002b7d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10002bb8
sbb dword [eax + 0x44], eax
ja 0x10002fc3
popfd
jl 0x1000303d
invalid
invalid
Function at 0x100031d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x100031ee
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x100031c9
and eax, 0xffff
push eax
jmp 0x100031cd
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10002b7d
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x100033a7
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x100031ae
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x1000314f
Function at 0x10003ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
call fcn.10002b96
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
invalid
invalid
cwde

Function at 0x10003f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.10002b29
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x10003fc5
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x1000400e
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
test dword [eax], eax
stc
invalid
dec dword [edi]
mov esi, 0xfc6c0584
invalid
push edi
ror byte [ebx - 0x6ff73], 1
dec dword [eax - 0x393f27c]
invalid
invalid
jmp 0x10003fb8
call fcn.10002bb8
salc
pop ebp
add eax, ebx
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
invalid
inc dword [eax]
Function at 0x10007c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x10007ca0
mov eax, 0x7806009
jmp 0x10007dc3
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x7fffffff
push 0xffffffffffffffff
push 0
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x10007ce1
mov dword [ebp - 4], 0x7f06107
mov eax, dword [ebp - 4]
jmp 0x10007dc3
cmp dword [ebp + 0x10], 0
jne 0x10007d1e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov ax, word [edx]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x28], 2
cmp word [ebp - 0x2e], 0
jne 0x10007cf6
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
shl edx, 1
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007d7f
mov dword [ebp - 4], 0x8e06107
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x27
je 0x10007d5d
cmp dword [ebp - 0x20], 0x70
jne 0x10007d64
mov dword [ebp - 4], 0x920600b
cmp dword [ebp - 0x20], 2
je 0x10007d76
cmp dword [ebp - 0x20], 0x40
je 0x10007d76
cmp dword [ebp - 0x20], 1
jne 0x10007d7d
mov dword [ebp - 4], 0x970602d
jmp 0x10007d98
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x1c]
je 0x10007d90
mov dword [ebp - 4], 0x9e06107
jmp 0x10007d98
xor edx, edx
jne 0x10007ce1
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x7fffffff
push 0xffffffffffffffff
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
je 0x10008355
cmp dword [ebp + 0xc], 0
jne 0x1000835c
mov eax, 0x17006009
jmp 0x100083d7
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10008397
mov dword [ebp - 8], 0x17e06101
jmp 0x100083c4
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x10014868
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100083c0
mov dword [ebp - 8], 0x18706102
jmp 0x100083c4
xor ecx, ecx
jne 0x1000836a
cmp dword [ebp - 4], 0
je 0x100083d4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a3d0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100131fb
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x1001928c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x10], 0
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [ebp - 0x224]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000a463
jmp 0x1000a59a
xor eax, eax
jne 0x1000a458
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x22c], 0
jmp 0x1000a48e
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0x19
jge 0x1000a59a
lea ecx, [ebp - 0x264]
call fcn.1000a5c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1000a4d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.1000a5e0
jmp 0x1000a59a
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1000a51d
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x264]
call fcn.10001e50
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000a720
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
add eax, 2
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x26c]
mov dx, word [ecx]
mov word [ebp - 0x272], dx
add dword [ebp - 0x26c], 2
cmp word [ebp - 0x272], 0
jne 0x1000a538
mov eax, dword [ebp - 0x26c]
sub eax, dword [ebp - 0x270]
sar eax, 1
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov edx, dword [ebp - 0x228]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.1000a5e0
jmp 0x1000a47f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100117a3
mov esp, ebp
pop ebp
ret 4
Function at 0x100117a3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001928c]
jne 0x100117ad
repz ret
jmp fcn.10011eaa
Function at 0x406760
Capabilities:
Set registry value

Disassembly:
sub esp, 0x430
lea eax, [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x438]
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2c]
push str.__uninstall
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 5
mov esi, 0x44afe0
lea edi, [esp + 0x14]
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push str.REG_SZ
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallUltimate_ZIP_Cracker
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406883
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x14]
push ebp
push ecx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.DisplayName
push eax
call edi
lea ecx, [esp + 0x30]
push ecx
call esi
inc eax
lea edx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.UninstallString
push eax
call edi
mov ebp, dword [esp + 0x448]
push ebp
call esi
mov ecx, dword [esp + 0x10]
inc eax
push eax
push ebp
push 1
push 0
push str.Path
push ecx
call edi
push ebx
call esi
mov edx, dword [esp + 0x10]
inc eax
push eax
push ebx
push 1
push 0
push str.File1
push edx
call edi
mov ebx, dword [esp + 0x44c]
push ebx
call esi
inc eax
push eax
mov eax, dword [esp + 0x14]
push ebx
push 1
push 0
push str.File2
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x430
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x430
ret
Function at 0x4068a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
push eax
xor esi, esi
push 0x435688
push 1
push esi
push 0x435678
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4069b1
mov ecx, dword [esp + 0x22c]
test ecx, ecx
jne 0x4068d9
mov ecx, 0x45cff0
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x224]
test eax, eax
je 0x4068fa
mov ecx, dword [esp + 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [esp + 4]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [esp + 0x21c]
test ecx, ecx
je 0x40691e
mov eax, dword [esp + 4]
push 0
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x220]
test eax, eax
je 0x406952
mov ecx, dword [esp + 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x435698
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4069a7
mov ecx, dword [esp + 0x228]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, 1
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret
Function at 0x4069c0
Capabilities:
Get file size
Read file on windows
Timestomp file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42f9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x44e69c]
push esi
push edi
mov dword [esp + 8], eax
xor esi, esi
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call fcn.0042984f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0042989e
mov ecx, dword [esp + 8]
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406b49
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
mov dword [esp + 0x20], esi
call fcn.0042937f
add esp, 4
mov ebp, eax
call fcn.0042dd0c
mov ebx, dword [eax + 8]
lea edx, [esp + 0x18]
push 0
push edx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406b2f
cmp esi, dword [esp + 0x18]
jne 0x406b2f
mov eax, ebp
sub eax, ebx
mov ebx, dword [esp + 0x38]
push ebx
mov dword [eax + 0x44b31c], 0
lea esi, [eax + 0x44b34c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jl 0x406ab1
mov edx, ebx
mov ecx, esi
sub edx, esi
lea esi, [eax + 1]
mov al, byte [edx + ecx]
add al, 0x7a
mov byte [ecx], al
inc ecx
dec esi
jne 0x406aa6
mov ecx, dword [esp + 0x34]
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406b2f
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push 0
push edx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406afa
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 1
cmp eax, ebx
je 0x406b02
mov dword [esp + 0x14], 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.004293a8
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
jne 0x406b57
push 0
push 0x10
push str.There_was_an_error_creating_a_program_image
call fcn.0042bf06
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042963e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x406b80
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x14]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x11c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
jl 0x406c03
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
mov bl, byte [esi + edi]
cmp bl, 0x5c
je 0x406bc6
cmp bl, 0x2f
je 0x406bc6
test bl, bl
jne 0x406bf3
test esi, esi
je 0x406bef
cmp byte [esi + edi - 1], 0x3a
je 0x406bef
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406bef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406c13
test bl, bl
je 0x406bfe
mov eax, dword [esp + 0x10]
mov byte [eax], bl
inc eax
mov dword [esp + 0x10], eax
inc esi
cmp esi, ebp
jle 0x406bb5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push edi
lea edx, [esp + 0x18]
push str.Unable_to_create_the_folder_n_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push 0x10
push eax
call fcn.0042bf06
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x406c50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
test eax, eax
je 0x406c65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406cb4
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret

Function at 0x409c00
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x409c0d
mov eax, str.http:__www.home.ru_vdg_uzc.htm
push 1
push 0x45cff0
push 0x45cff0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x409c70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x466124]
cmp ecx, 8
jae 0x409c8e
mov eax, ecx
test eax, eax
mov dword [ebp - 4], eax
jne 0x409c96
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, 8
mov dword [ebp - 4], eax
push ebx
sub ecx, eax
push esi
push edi
mov dword [0x466124], ecx
mov dword [0x46612c], 1
mov dword [0x466128], eax
mov ebx, dword [0x466120]
mov ecx, dword [0x46611c]
mov edx, dword [0x466118]
lea edi, [0x466130]
mov esi, dword [0x466114]
mov eax, edx
and eax, 0xffff
shr eax, 2
movzx eax, byte [eax + 0x466138]
shl eax, 8
lodsb al, byte [esi]
xor al, ah
stosb byte es:[edi], al
xor al, bl
and eax, 0xff
shr ebx, 8
xor ebx, dword [eax*4 + 0x46a138]
mov eax, ebx
and eax, 0xff
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr eax, 0x18
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x46a138]
sub dword [ebp - 4], 1
jne 0x409cce
mov dword [0x466114], esi
mov dword [0x466120], ebx
mov dword [0x46611c], ecx
mov dword [0x466118], edx
mov al, byte [0x466130]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret