joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
cmp dword [edi + 0x14], 8
mov eax, edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
jb 0x405ea2
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x2c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ec7
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404280
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov edx, ebx
mov ecx, esi
call fcn.00405fa0
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x405f2e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f8b
push edx
push ecx
call fcn.004152ff
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405f38
mov eax, dword [esi]
push 0
push eax
call fcn.0041999e
add esp, 8
test eax, eax
je 0x405f6d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405f51
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x405f59
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x405f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
int3
Function at 0x406560
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2ac], eax
push edx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00405fa0
push 0x250
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00417b20
add esp, 0x10
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4066f3
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
test byte [ebp - 0x2a8], 0x10
jne 0x4066da
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406620
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00404280
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00405fa0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406696
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40668c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406745
push edx
push ecx
call fcn.004152ff
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4066da
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406745
push edx
push ecx
call fcn.004152ff
add esp, 8
lea eax, [ebp - 0x2a8]
push eax
push esi
call edi
test eax, eax
jne 0x4065f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x406729
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40671f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406745
push edx
push ecx
call fcn.004152ff
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
int3
Function at 0x409d60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x409d91
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x409d80
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40fcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.00417b20
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x8010
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40fd9f
cmp word [ebp - 0x20c], 0
je 0x40fd9f
push 0x43a40c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x43aba8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd70
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404280
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0x10], 0
xor ecx, ebp
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
pop esi
call fcn.00415024
mov esp, ebp
pop ebp
ret

Function at 0x40fdd0
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, esi
mov dword [ebp - 4], ebx
shr edi, 4
and esi, 0xf
inc edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp dword [ebx + 0x14], 8
movzx ecx, ax
mov eax, ebx
jb 0x40fdfa
mov eax, dword [ebx]
push ecx
movzx edi, di
xor edx, edx
push edi
push 6
mov dword [ebx + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push edx
mov word [eax], dx
call ebx
test eax, eax
jne 0x40fe29
push 0x419
push edi
push 6
push eax
call ebx
test eax, eax
je 0x40fe58
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40fe58
xor ecx, ecx
nop dword [eax + eax]
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x40fe52
cmp ecx, esi
je 0x40fe61
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x40fe40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push edx
push eax
call fcn.00404690
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fe80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
mov esi, edx
push 0
push eax
mov ebx, ecx
call fcn.00417b20
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40ff25
cmp dword [ebp - 0x114], 6
jb 0x40ff25
mov ecx, dword [0x440890]
test ecx, ecx
jne 0x40feee
call fcn.00405650
mov ecx, dword [0x440890]
cmp esi, 0x440880
je 0x40ff12
cmp dword [0x440894], 8
mov eax, 0x440880
push ecx
cmovae eax, dword [0x440880]
mov ecx, esi
push eax
call fcn.00404280
push 0x439b60
mov ecx, esi
call fcn.004045b0
mov edi, 0x80000003
jmp 0x40ff40
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40ff2f
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov edi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallYaPinLancher
mov ecx, esi
call fcn.004045b0
mov ecx, dword [ebp - 4]
mov dword [ebx], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00415024
mov esp, ebp
pop ebp
ret
Function at 0x411be0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x10], 0
je 0x411d6a
cmp dword [ecx + 0x14], 8
jb 0x411c1b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x48], 0
mov ecx, edx
mov dword [ebp - 0x44], 7
xor eax, eax
mov word [ebp - 0x58], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00404280
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004053d0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00405fa0
mov edx, dword [ebp - 0x2c]
add esp, 8
cmp edx, 8
jb 0x411cba
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411cb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d84
push edx
push ecx
call fcn.004152ff
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x411d08
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411cfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d89
push edx
push ecx
call fcn.004152ff
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041999e
add esp, 8
test eax, eax
jne 0x411d34
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411d6a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411d60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d8e
push edx
push ecx
call fcn.004152ff
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
int3
Function at 0x412780
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1bb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], edx
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00417b20
add esp, 0xc
lea edx, [ebp - 0x230]
mov ecx, esi
call fcn.004091c0
test al, al
je 0x41283a
cmp dword [ebp - 0x220], 0
je 0x41283a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push 0x43a7cc
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x41285d
push str.www.ya.ru_clid1961774_1
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041b7af
add esp, 0xc
test edi, edi
je 0x4128a9
lea eax, [ebp - 0x230]
cmp edi, eax
je 0x4128a9
mov ecx, edi
call fcn.004040b0
movups xmm0, xmmword [ebp - 0x230]
mov eax, 7
xor ecx, ecx
mov word [ebp - 0x230], cx
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], eax
jmp 0x4128af
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x4128e4
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4128c2
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.00404280
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x41291a
mov ecx, dword [ebp - 0x230]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412910
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412935
push edx
push ecx
call fcn.004152ff
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
int3
Function at 0x412dd0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d25b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
xor eax, eax
mov dword [esi], 0x7fff
mov byte [esi + 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
push eax
mov dword [ebp - 4], eax
lea ecx, [esi + 8]
push dword [esi]
call fcn.00409ee0
lea ecx, [ebp - 0x28]
call fcn.00404c50
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004060a0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x412e82
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412e78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412f33
push edx
push ecx
call fcn.004152ff
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x1c], 8
mov word [ebp - 0x28], ax
lea eax, [esi + 8]
mov dword [ebp - 0x14], 7
jb 0x412ea2
mov eax, dword [esi + 8]
push dword [esi + 0x18]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x412ee0
push 0
inc eax
lea ecx, [esi + 8]
push eax
call fcn.00409ee0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x412ee0
mov byte [esi + 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x412f16
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412f0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412f38
push edx
push ecx
call fcn.004152ff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
int3
Function at 0x4132d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d338
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
push 0x42e2e0
push 1
push 0
push 0x42e320
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x30]
mov esi, eax
test esi, esi
js 0x413423
test ecx, ecx
je 0x413423
mov eax, dword [ecx]
mov esi, dword [ebp - 0x38]
mov edx, dword [eax + 0x50]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41335e
mov eax, dword [esi]
push eax
push ecx
call edx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
jb 0x41336f
mov ebx, dword [ebx]
push 0
push ebx
push eax
call dword [ecx + 0x44]
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.004060a0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push edx
push 0x42e340
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4133ce
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4133ce
cmp dword [edi + 0x14], 8
mov eax, dword [eax]
jb 0x4133c3
mov edi, dword [edi]
push 1
push edi
push dword [ebp - 0x34]
call dword [eax + 0x18]
mov esi, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41340c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413402
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413489
push edx
push ecx
call fcn.004152ff
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 3
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41343e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 8
test ecx, ecx
je 0x41344f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
int3
Function at 0x413640
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push edx
push ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4136ff
push ebx
push esi
push edi
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [edi]
mov dword [ebp - 0x214], eax
cmp ecx, 2
je 0x4136b1
cmp ecx, 1
jne 0x4136ed
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00417b20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
mov dword [ebx], eax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0041b898
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415024
mov esp, ebp
pop ebp
ret
Function at 0x413af0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x440068]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xb
mov esi, edx
mov ebx, ecx
push 0
push esi
push ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [esp + 0x14], 0
test edi, edi
jne 0x413c45
push 0x208
push eax
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x48], xmm0
call fcn.00417b20
add esp, 0xc
mov dword [esp + 0x18], 0x208
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x50], edi
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x30]
push eax
push edi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x413c45
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x413c3d
push 0x208
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00417b20
add esp, 0xc
mov dword [esp + 0x18], 0x208
lea eax, [esp + 0x3c]
dec esi
xorps xmm0, xmm0
mov dword [esp + 0x14], esi
movlpd qword [esp + 0x3c], xmm0
push eax
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x5c]
push eax
push esi
push dword [esp + 0x2c]
call ebx
mov edi, eax
test edi, edi
jne 0x413c3d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push 1
call fcn.00413af0
mov edi, eax
add esp, 4
test edi, edi
je 0x413bd1
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x413c72
cmp edi, 0x103
je 0x413c72
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00415024
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415024
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219