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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00405b98
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00406358
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46cd19
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406358
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x46cd10
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46cd0a
cmp dword [ebp - 0x10], 1
jne 0x46ccfc
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00405e7c
jmp 0x46cd0a
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.00405cd0
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x472058
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
add eax, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x40
call fcn.00403b8c
pop ecx
pop ecx
pop ebp
ret
Function at 0x472924
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406d68
mov eax, dword [ebp - 0xc]
call fcn.00406d68
xor eax, eax
push ebp
push 0x472a37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00406d80
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x472a1c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0x14], 0
je 0x472a13
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x472a0a
mov eax, dword [ebp - 0x18]
dec eax
sub eax, 2
jb 0x4729ef
sub eax, 4
jne 0x4729fc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
call fcn.00406f3c
jmp 0x472a0a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00406ebc
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472a3e
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406d78
ret
Function at 0x473750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
xor ecx, ecx
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x47390f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x230]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4738e1
lea eax, [ebp - 0x230]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_QueryDosDeviceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4738c3
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x43c]
mov ecx, 0x106
call fcn.00406f90
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.004078ac
test eax, eax
jle 0x4738c3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x473826
mov eax, dword [ebp - 0x18]
sub eax, 0xa
cmp word [eax], 2
je 0x473826
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.00405d84
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47383d
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x473869
mov eax, dword [ebp - 0x20]
sub eax, 0xa
cmp word [eax], 2
je 0x473869
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405d84
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x473880
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 4]
call fcn.0040753c
mov eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x444]
mov edx, dword [ebp - 0xc]
call fcn.00406f3c
mov edx, dword [ebp - 0x444]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00407264
jmp 0x4738e1
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
jne 0x4738bf
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4738db
cmp word [eax], 0
jne 0x4737ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473916
lea eax, [ebp - 0x444]
mov edx, 2
call fcn.00406d78
lea eax, [ebp - 0x14]
call fcn.00406d70
lea eax, [ebp - 4]
call fcn.00406d70
ret
Function at 0x476eb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x726de8
push 0xa
push 0x476f4c
mov eax, dword [0x725b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x476edc
call fcn.00483f6c
push ebx
mov eax, dword [0x725b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x476ef3
call fcn.00483f6c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x476f05
call fcn.00483f6c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x726dec], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x726df0], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x726df4], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x726df8], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x726dfc], ecx
add edx, dword [eax + 0x14]
mov dword [0x726e00], edx
pop esi
pop ebx
ret

Function at 0x478e54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x478efd
test eax, edx
je 0x478f00
push 0
push 0
cmp word [eax - 0xa], 2
je 0x478e7d
push edx
mov edx, eax
mov eax, esp
call fcn.00406fac
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x478e93
push eax
lea eax, [esp + 8]
call fcn.00406fac
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x478ea2
movzx eax, word [eax]
sub eax, ecx
jmp 0x478ec9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x478ee3
add ecx, 4
js 0x478eba
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x478ee0
push eax
mov eax, ecx
mov edx, 2
call fcn.00405bbc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x478ec7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x478ec9
xor eax, eax
ret
test eax, eax
je 0x478f10
test edx, edx
jne 0x478e64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x47a474
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47a492
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x47a4b3
cmp ebx, 3
je 0x47a4b3
cmp ebx, 0x7b
je 0x47a4b3
mov eax, esi
call fcn.0047a434
test al, al
jne 0x47a4b7
xor eax, eax
jmp 0x47a4b9
mov al, 1
pop esi
pop ebx
ret

Function at 0x47a4bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47a4d5
test al, 0x10
jne 0x47a4d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x47a69c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x47a6b0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406e0c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x47a6d2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x480c94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x480ccd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ebc
jmp 0x480cd6
mov eax, ebx
mov edx, esi
call fcn.00406d80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x480ce0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x480d02
movzx eax, word [esp]
jmp 0x480d04
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4815d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4816fd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004813ec
mov esi, eax
mov eax, dword [0x722100]
cmp byte [eax], 0
je 0x4816a5
mov eax, dword [0x721a08]
call fcn.004039d0
call fcn.00403294
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4815b4]
call fcn.00408964
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x481718
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4816e1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x721928]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x725b50]
call fcn.00408b6c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481704
lea eax, [ebp - 4]
mov edx, dword [0x4815b4]
call fcn.00408a84
ret
Function at 0x48235c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x482432
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406dd4
lea eax, [ebp - 4]
call fcn.00407858
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x48241c
mov eax, ebx
call fcn.004030fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x482415
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4823ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x482444
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4823ff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48241c
mov eax, dword [ebp - 0x10]
call fcn.00403118
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482439
lea eax, [ebp - 4]
call fcn.00406d70
ret

Function at 0x483d6b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405f68
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x483d8e
mov eax, edi
add eax, eax
call fcn.004030fc
mov esi, eax
jmp 0x483d90
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x483dc9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x483db3
mov eax, esp
cmp esi, eax
je 0x483dd6
mov eax, esi
call fcn.00403118
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x483e10
cmp bl, 0
je 0x483e0c
cmp bl, 0x41
jl 0x483e07
cmp bl, 0x5a
jg 0x483e07
or bl, 0x20
xor al, bl
inc esi
jmp 0x483deb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x483d50
Function at 0x484674
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.00406d80
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00406e0c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4846bb
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406ebc
jmp 0x4846d4
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040710c
push ebx
mov eax, dword [esi]
call fcn.00406e0c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49ffdc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0049fc58
dec esi
jne 0x49fffe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4a11bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x72911c
cmp dword [edi], 0
jne 0x4a1238
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x729118]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7027e8
mov ecx, 2
call fcn.0040331c
mov edx, 0x4a1194
lea eax, [esi + 5]
call fcn.004a11b4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a11b4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4a120d
mov dword [0x729118], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a14a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x4a160f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a15ec
mov eax, dword [ebp - 0xc]
call fcn.004030fc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4a15e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4a161c
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x28]
mov ax, word [eax + 8]
and ax, 0xffff
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x28]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x24], ax
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x1e]
call fcn.00479c10
push dword [ebp - 0x2c]
push 0x4a162c
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x20]
call fcn.00479c10
push dword [ebp - 0x30]
push 0x4a162c
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x22]
call fcn.00479c10
push dword [ebp - 0x34]
push 0x4a162c
lea edx, [ebp - 0x38]
movzx eax, word [ebp - 0x24]
call fcn.00479c10
push dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov edx, 7
call fcn.00407348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a15ec
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00403118
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1616
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406d78
lea eax, [ebp - 4]
call fcn.00406d70
ret

Function at 0x4a8510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004a7f48
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00406e0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4a856f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x721de8]
mov dl, 1
mov eax, dword [0x4a7dc0]
call fcn.00481848
call fcn.00405354
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a8578
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00406e0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x4a85d0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7224d4]
mov dl, 1
mov eax, dword [0x4a7dc0]
call fcn.00481848
call fcn.00405354
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a7f78
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a9a38
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4a9a3e
ret
Function at 0x4cbdec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x4cbfce
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0050c54c
mov eax, dword [esi]
cmp byte [eax + 0x268], 0
je 0x4cbfb3
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x278]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2d0]
jb 0x4cbe54
mov eax, dword [esi]
add eax, 0x274
xor edx, edx
call fcn.00406d80
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x278], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 8
je 0x4cbf3a
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0xd800
jb 0x4cbe83
cmp ax, 0xdfff
jbe 0x4cbe87
xor eax, eax
jmp 0x4cbe89
mov al, 1
test al, al
je 0x4cbef7
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.0050d7a8
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x4cbf7e
mov eax, dword [esi]
push dword [eax + 0x274]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00406efc
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00406efc
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x274
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x4cbf7e
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00406efc
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x274
call fcn.004071a4
jmp 0x4cbf7e
mov eax, dword [esi]
mov ebx, dword [eax + 0x274]
test ebx, ebx
je 0x4cbf27
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x274
mov ecx, 1
mov edx, ebx
call fcn.0040760c
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.00407100
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.004824e8
cmp al, 2
je 0x4cbf16
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x4cbf6b
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x274
mov ecx, 1
xchg edx, eax
call fcn.0040760c
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x4cbf8f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4cbf9c
push ebp
call fcn.004cbd04
pop ecx
jmp 0x4cbfb3
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbfd5
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00406d78
ret