joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424ac0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x44]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0
xor eax, eax
push fcn.00424aa0
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
mov edx, 0x42fe88
mov eax, dword [ebp - 8]
mov ecx, 1
call fcn.00409090
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004247b0
test al, al
je 0x424c30
cmp dword [ebp - 0x28], 0
jle 0x424c30
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x2c], eax
mov edx, eax
shl edx, 1
lea eax, [ebp - 0x30]
call fcn.0040b520
xor eax, eax
push fcn.00424a90
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov edx, 0x42fe88
mov eax, dword [ebp - 8]
mov ecx, 1
call fcn.00409090
mov eax, dword [ebp - 0x28]
lea ebx, [eax - 1]
mov dword [ebp - 0x34], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x38], eax
cmp eax, 0x103
je 0x424c1d
cmp dword [ebp - 0x38], 0
je 0x424be4
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x44]
call fcn.00423d70
mov ecx, dword [ebp - 0x44]
mov edx, 1
mov eax, 0x42fd20
call fcn.00422800
mov edx, 0x424bba
mov ecx, ebp
call fcn.0040f5c0
nop
cmp dword [ebp - 0x2c], 0
jne 0x424bf6
lea eax, [ebp - 0x3c]
xor edx, edx
call fcn.00407c60
jmp 0x424c01
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
call fcn.00407c10
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x3c]
call fcn.00407c60
cmp ebx, dword [ebp - 0x34]
ja 0x424b80
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00424a90
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00424aa0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x44]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0
xor eax, eax
push fcn.00424c60
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
mov edx, 0x42fe88
mov eax, dword [ebp - 8]
mov ecx, 1
call fcn.00409090
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004247b0
test al, al
je 0x424df0
cmp dword [ebp - 0x20], 0
jle 0x424df0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov edx, eax
shl edx, 1
lea eax, [ebp - 0x30]
call fcn.0040b520
xor eax, eax
push fcn.00424c50
push ebp
push 0x40f700
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov edx, 0x42fe88
mov eax, dword [ebp - 8]
mov ecx, 1
call fcn.00409090
mov eax, dword [ebp - 0x20]
lea ebx, [eax - 1]
mov dword [ebp - 0x34], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
call sub.advapi32.dll_RegEnumValueW
mov dword [ebp - 0x38], eax
cmp eax, 0x103
je 0x424ddd
cmp dword [ebp - 0x38], 0
je 0x424da4
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x44]
call fcn.00423d70
mov ecx, dword [ebp - 0x44]
mov edx, 1
mov eax, 0x42fd20
call fcn.00422800
mov edx, 0x424d7a
mov ecx, ebp
call fcn.0040f5c0
nop
cmp dword [ebp - 0x2c], 0
jne 0x424db6
lea eax, [ebp - 0x3c]
xor edx, edx
call fcn.00407c60
jmp 0x424dc1
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
call fcn.00407c10
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x3c]
call fcn.00407c60
cmp ebx, dword [ebp - 0x34]
ja 0x424d40
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00424c50
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00424c60
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032d9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032f9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40330b
mov dword [ebp - 0xc], 0x434220
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403320
mov ecx, dword [0x476f58]
add ecx, eax
push ecx
call fcn.0040350a
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034f4
test eax, eax
je 0x4034e2
test byte [ebp + 0x17], 0x80
je 0x40348d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41eb84], 0
and dword [0x41eb80], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x420208
mov dword [0x41e668], 8
mov dword [0x428210], eax
mov dword [0x42820c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x428208], 0x428208
mov dword [ebp + 8], eax
jle 0x4034ea
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403399
mov esi, dword [ebp + 0x14]
mov edi, 0x430220
push esi
push edi
call fcn.004034f4
test eax, eax
je 0x4034e2
sub dword [ebp + 0x14], esi
mov dword [0x41e658], edi
mov dword [0x41e65c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x41e658
mov dword [0x41e660], edi
mov dword [0x41e664], eax
call fcn.00406ac6
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403485
mov esi, dword [0x41e660]
sub esi, edi
call ebx
test byte [0x476fb4], 1
mov edi, eax
je 0x403440
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403407
cmp dword [ebp + 0x14], 0
jne 0x403440
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004055fc
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403479
cmp dword [ebp + 0x10], 0
jne 0x40345f
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00406119
test eax, eax
je 0x403489
add dword [ebp - 4], esi
jmp 0x40346d
mov eax, dword [0x41e660]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x4033bc
jmp 0x4034ea
cmp dword [ebp + 0x14], 0
jg 0x40338c
jmp 0x4034ea
push 0xfffffffffffffffc
jmp 0x4034e4
push 0xfffffffffffffffe
jmp 0x4034e4
test edi, edi
jne 0x4034cf
cmp dword [ebp + 0x14], edi
jle 0x4034ea
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4034a3
mov esi, ebx
mov edi, 0x430220
push esi
push edi
call fcn.004034f4
test eax, eax
je 0x4034e2
push esi
push edi
push dword [ebp + 0xc]
call fcn.00406119
test eax, eax
je 0x403489
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403499
jmp 0x4034ea
cmp dword [ebp + 0x14], esi
jge 0x4034d7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034f4
test eax, eax
jne 0x4034e7
push 0xfffffffffffffffd
pop eax
jmp 0x4034ed
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b5a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x464270], 0x44
push eax
xor eax, eax
push 0x464270
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b99
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b9d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405c3b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406042
mov edi, eax
cmp edi, 0xffffffff
je 0x405c7c
test byte [esp + 0x10], 1
push esi
je 0x405c5e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c64
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c6d
xor eax, eax
inc eax
jmp 0x405c7e
test byte [esp + 0x10], 4
jne 0x405c7c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c83
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f4e
test bl, 8
mov dword [ebp - 8], eax
je 0x405cc2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x476f88], eax
jmp 0x405e3f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405cdc
test eax, eax
je 0x405ded
test bl, 2
je 0x405ded
mov esi, 0x45c270
push edi
push esi
call fcn.00406577
cmp dword [ebp + 8], 0
je 0x405cfb
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405d01
push edi
call fcn.00405e92
cmp word [edi], 0
jne 0x405d11
cmp word [0x45c270], 0x5c
jne 0x405d1c
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de2
cmp word [ebp - 0x22c], 0x2e
jne 0x405d66
cmp word [ebp - 0x22a], 0
je 0x405dc5
cmp word [ebp - 0x22a], 0x2e
jne 0x405d66
cmp word [ebp - 0x228], 0
je 0x405dc5
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406577
test byte [ebp - 0x258], 0x10
je 0x405d91
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405dc5
push dword [ebp + 0xc]
push edi
call fcn.00405c83
jmp 0x405dc5
push dword [ebp - 4]
push edi
call fcn.00405c3b
test eax, eax
jne 0x405dbd
cmp dword [ebp - 4], eax
je 0x405db5
push edi
push 0xfffffffffffffff1
call fcn.004055fc
push 0
push edi
call fcn.00406337
jmp 0x405dc5
inc dword [0x476f88]
jmp 0x405dc5
push edi
push 0xfffffffffffffff2
call fcn.004055fc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d3e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ded
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e3f
cmp dword [ebp - 8], esi
jne 0x405e01
inc dword [0x476f88]
jmp 0x405e3f
push edi
call fcn.004068d4
test eax, eax
je 0x405e3f
push edi
call fcn.00405e46
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c3b
test eax, eax
jne 0x405e37
cmp dword [ebp - 4], esi
je 0x405df9
push edi
push 0xfffffffffffffff1
call fcn.004055fc
push esi
push edi
call fcn.00406337
jmp 0x405e3f
push edi
push 0xffffffffffffffe5
call fcn.004055fc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x460270
push esi
call fcn.00406577
push esi
call fcn.00405ef1
mov edi, eax
test edi, edi
jne 0x405f6f
xor eax, eax
jmp 0x405fc7
push edi
call fcn.00406825
test byte [0x476f18], 0x80
je 0x405f8c
mov ax, word [edi]
test ax, ax
je 0x405f6b
cmp ax, 0x5c
je 0x405f6b
sub edi, esi
sar edi, 1
jmp 0x405fa6
call fcn.004068d4
test eax, eax
je 0x405fa0
test byte [eax], 0x10
je 0x405f6b
push esi
call fcn.00405e92
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f92
call fcn.00405e46
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406042
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406061
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406067
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406096
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060e6
test edi, edi
jne 0x4060a3
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060e0
Function at 0x4061bd
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x464908], 0x55004e
mov dword [0x46490c], 0x4c
mov edi, 0x400
mov ebp, 0x464908
je 0x406213
push 1
push 0
push esi
call fcn.00406067
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406332
cmp eax, edi
jg 0x406332
mov esi, 0x465108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406332
cmp eax, edi
jg 0x406332
push esi
push ebp
push str._ls_ls_r_n
push 0x464508
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x476f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004065b4
push 4
push 0xc0000000
push esi
call fcn.00406067
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406332
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40632b
push edi
push esi
push ebp
call fcn.004060ea
test eax, eax
je 0x40632b
push str._Rename__r_n
push esi
call fcn.00405fcc
test eax, eax
jne 0x4062c9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062fe
add eax, 0xa
push 0x40a580
push eax
call fcn.00405fcc
mov ebp, eax
test ebp, ebp
je 0x4062fa
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062eb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062e5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406300
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x464508
push eax
call fcn.00406022
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406119
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406337
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40635a
push dword [esp + 8]
push dword [esp + 8]
call fcn.004061bd
pop ecx
pop ecx
inc dword [0x476f90]
ret 8
Function at 0x406445
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063e4
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4064b5
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x4064b5
cmp dword [ebp + 0xc], 1
je 0x4064b9
cmp dword [ebp + 0xc], 2
je 0x4064b9
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46590c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x465908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x465908]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc
Function at 0x1006a26
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100f0e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.010069ac
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1006a75
cmp dword [ebp - 0x1c], 5
jb 0x1006a8d
jmp 0x1006a89
cmp dword [ebp - 0x10], 1
jne 0x1006a8d
cmp dword [ebp - 0x1c], 4
ja 0x1006a89
jne 0x1006a8d
cmp dword [ebp - 0x18], 0
jbe 0x1006a8d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001774
call fcn.01002c60
test eax, eax
jge 0x1006aae
mov byte [0x100f130], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100624d
add ebp, 0x78
leave
ret

Function at 0x1006c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d2d0
push 0x10061f5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100f0e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0x20a
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edi, [esi + 0x18]
push 0x20a
push ebx
push edi
call sub.MSVCR80.dll_memset
push 0x20a
push ebx
lea eax, [esi + 0x222]
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
mov dword [esi + 0x42c], 1
mov dword [esi + 0x430], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push ebx
mov edx, dword [0x100f104]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1006cf7
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x20]
push ecx
push ebx
mov edx, dword [0x100f108]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
test eax, eax
je 0x1006d22
push ebx
push ebx
push ebx
push ebx
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1006d36
push ebx
push ebx
push ebx
push ebx
call edi
lea eax, [esi + 0x430]
push eax
call fcn.01006be0
test eax, eax
jge 0x1006d64
push ebx
push ebx
push ebx
push ebx
call edi
jmp 0x1006d64
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10073f0
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d378
push 0x10061f5
mov eax, dword fs:[0]
push eax
sub esp, 0xa2c
mov eax, dword [0x100f0e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x9fc], 1
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x1007466
cmp esi, edi
je 0x1007490
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 0xe0434f4d
je 0x1007458
cmp eax, 0xe0524f54
jne 0x1007466
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1007623
cmp esi, edi
je 0x1007490
mov ecx, dword [esi]
mov eax, dword [ecx]
cmp eax, 0x80000003
je 0x100747c
cmp eax, 0x80000004
jne 0x1007490
mov dword [ebp - 0x9fc], 0xffffffff
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x40
push edi
lea edx, [ebp - 0xa3c]
push edx
call sub.MSVCR80.dll_memset
push 0x7d0
push edi
lea eax, [ebp - 0x7ec]
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
mov ecx, dword [0x100f124]
push ecx
push 0x7d0
lea edx, [ebp - 0x7ec]
push edx
call fcn.01006f60
cmp dword [ebp + 0xc], edi
je 0x1007504
push 0x10015f4
push 0x7d0
lea eax, [ebp - 0x7ec]
push eax
call fcn.01006ff0
mov ecx, dword [0x100f120]
push ecx
push 0x7d0
lea edx, [ebp - 0x7ec]
push edx
call fcn.01006ff0
jmp 0x10075cb
mov dword [0x100f9ec], edi
push 0x20a
lea eax, [ebp - 0x9f8]
push eax
push edi
push esi
push edi
mov ecx, 0x100f5c0
call fcn.01007100
test eax, eax
je 0x1007599
push 0x10015f4
push 0x7d0
lea ecx, [ebp - 0x7ec]
push ecx
call fcn.01006ff0
mov edx, dword [0x100f128]
push edx
push 0x7d0
lea eax, [ebp - 0x7ec]
push eax
call fcn.01006ff0
push 0x1001ae0
push 0x7d0
lea ecx, [ebp - 0x7ec]
push ecx
call fcn.01006ff0
lea edx, [ebp - 0x9f8]
push edx
push 0x7d0
lea eax, [ebp - 0x7ec]
push eax
call fcn.01006ff0
push 0x1001adc
push 0x7d0
lea ecx, [ebp - 0x7ec]
push ecx
call fcn.01006ff0
mov edx, dword [0x100f118]
push edx
push 0x1001ad4
mov esi, dword [sym.imp.MSVCR80.dll_wprintf]
call esi
mov eax, dword [0x100f11c]
push eax
push 0x1001ac8
call esi
lea ecx, [ebp - 0x7ec]
push ecx
push 0x1001ad4
call esi
add esp, 0x18
push 0x1001aa8
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x1007616
lea edx, [ebp - 0x7ec]
mov dword [ebp - 0xa3c], edx
push edi
lea eax, [ebp - 0xa3c]
push eax
push edi
push 1
push edi
push 0xc0000034
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1007616
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x9fc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0100624d
mov esp, ebp
pop ebp
ret 0xc