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

Disassembly:
sub esp, 0x80c
mov eax, dword [esp + 0x81c]
push eax
lea ecx, [esp + 0x410]
push 0x4ad158
push ecx
call fcn.00466e90
push 0x200
lea edx, [esp + 0x41c]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x200
call fcn.00468010
mov ecx, dword [esp + 0x82c]
mov edx, dword [esp + 0x828]
push ecx
push edx
lea eax, [esp + 0x22c]
push str.Software_s_s
push eax
mov byte [esp + 0x233], 0
call fcn.00466e90
add esp, 0x28
lea ecx, [esp]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x218]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455f8b
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x81c]
lea ecx, [esp + 0x610]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x455f8b
cmp dword [esp + 8], 1
jne 0x455f8b
push 0x200
lea edx, [esp + 0x610]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00468010
add esp, 0xc
mov byte [esp + 0x20b], 0
mov eax, dword [esp]
test eax, eax
je 0x455f9a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
push ecx
call fcn.00467719
add esp, 0x810
ret

Function at 0x455fb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push ebp
lea eax, [esp + 0x28]
push str.Software_s
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
or esi, 0xffffffff
call fcn.00466e90
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x30]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x45601b
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004560e0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x45601b
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45602a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.Software
push 0x80000001
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x4560c6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push ebp
push ecx
call edi
test eax, eax
jne 0x4560c6
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4560c6
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
test eax, eax
jne 0x4560c6
cmp dword [esp + 0x1c], ebx
jne 0x4560bb
cmp dword [esp + 0x20], ebx
jne 0x4560bb
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4560c6
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4560c6
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x4560e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x456123
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x456155
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x45624f
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 4], eax
imul eax, ecx
push eax
mov dword [esp + 0x18], 1
call fcn.004564a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x456239
mov ecx, dword [esp + 4]
imul ecx, dword [esp + 8]
mov edx, ecx
push esi
shr ecx, 2
push edi
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jbe 0x4561f8
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
push 0
imul ecx, eax
push 0
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
add ecx, ebx
push ecx
push esi
push edx
mov dword [esp + 0x38], eax
call edi
test eax, eax
je 0x4561ef
cmp eax, 0x103
je 0x4561ef
cmp eax, 0xea
jne 0x456226
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4561b5
xor esi, esi
test eax, eax
jbe 0x456222
mov ecx, dword [esp + 0x14]
mov eax, esi
imul eax, dword [esp + 0xc]
add eax, ebx
push eax
push ecx
call fcn.004560e0
add esp, 8
test eax, eax
je 0x456226
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4561fe
xor esi, esi
jmp 0x45622a
mov esi, dword [esp + 0x1c]
push ebx
call fcn.0046728e
add esp, 4
pop edi
test esi, esi
pop esi
je 0x45624f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x456248
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456265
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x1c
ret
Function at 0x456280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [esp + 0x41c]
push ebp
push esi
mov esi, dword [esp + 0x42c]
push edi
mov edi, dword [esp + 0x42c]
push esi
push eax
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x200
or ebp, 0xffffffff
call fcn.00468010
mov ecx, dword [esp + 0x42c]
mov edx, dword [esp + 0x428]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.Software_s_s
push eax
mov byte [edi + esi - 1], 0
call fcn.00466e90
add esp, 0x1c
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45634b
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x428]
lea ecx, [esp + 0x21c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45634b
cmp dword [esp + 0x10], 1
jne 0x45634b
push esi
lea edx, [esp + 0x21c]
push edx
push edi
call fcn.00468010
add esp, 0xc
mov byte [edi + esi - 1], 0
xor ebp, ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45635a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x40c
ret

Function at 0x456370
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push ebp
lea eax, [esp + 0x28]
push str.Software_s
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
or esi, 0xffffffff
call fcn.00466e90
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x30]
push edx
push 0x80000002
call edi
test eax, eax
jne 0x4563db
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004560e0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4563db
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4563ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.Software
push 0x80000002
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x456486
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push ebp
push ecx
call edi
test eax, eax
jne 0x456486
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x456486
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
test eax, eax
jne 0x456486
cmp dword [esp + 0x1c], ebx
jne 0x45647b
cmp dword [esp + 0x20], ebx
jne 0x45647b
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x456486
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x456486
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x459070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, dword [0x5b9dc0]
or eax, 0xffffffff
test ecx, ecx
jne 0x4590d2
push ebx
xor edi, edi
mov esi, 0x5b91c0
mov edx, edi
mov ebx, 8
test dl, 1
je 0x4590b0
shr edx, 1
xor edx, 0xedb88320
jmp 0x4590b2
shr edx, 1
dec ebx
jne 0x4590a1
mov dword [esi], edx
add esi, 4
inc edi
cmp esi, 0x5b95c0
jl 0x45909a
mov esi, dword [esp + 0x14]
mov dword [0x5b9dc0], 1
pop ebx
xor edx, edx
test ebp, ebp
jle 0x4590f8
xor ecx, ecx
mov cl, byte [edx + esi]
mov edi, eax
and edi, 0xff
shr eax, 8
xor ecx, edi
mov ecx, dword [ecx*4 + 0x5b91c0]
xor eax, ecx
inc edx
cmp edx, ebp
jl 0x4590d8
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x459100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
or ebx, 0xffffffff
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
mov ecx, ebx
repne scasb al, byte es:[edi]
mov eax, dword [0x5b9dc4]
not ecx
dec ecx
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
jne 0x45917c
push ebp
xor ebp, ebp
mov edi, 0x5b95c0
mov eax, ebp
cdq
mov dword [esp + 0x10], 8
mov ecx, eax
and ecx, 1
xor esi, esi
or ecx, esi
je 0x459150
xor eax, 0x53d46d27
xor edx, 0x85e1c3d7
mov ecx, 1
call fcn.00469830
dec dword [esp + 0x10]
jne 0x45913a
mov dword [edi], eax
mov dword [edi + 4], edx
add edi, 8
inc ebp
cmp edi, 0x5b9dc0
jl 0x45912f
mov dword [0x5b9dc4], 1
pop ebp
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x4591ca
mov ecx, dword [esp + 0x20]
xor eax, eax
mov al, byte [esi + ecx]
mov edx, ebx
and edx, 0xff
mov ecx, 8
mov edi, eax
xor edi, edx
mov edx, dword [esp + 0x18]
mov eax, ebx
call fcn.00469830
mov ebx, dword [edi*8 + 0x5b95c0]
xor ebx, eax
mov eax, dword [edi*8 + 0x5b95c4]
xor eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x459186
mov edx, dword [esp + 0x18]
pop edi
mov eax, ebx
pop esi
not eax
not edx
pop ebx
add esp, 0x10
ret

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

Disassembly:
mov eax, dword [0x5b9dc0]
test eax, eax
push esi
jne 0x459222
xor edx, edx
mov ecx, 0x5b91c0
mov eax, edx
mov esi, 8
test al, 1
je 0x459205
shr eax, 1
xor eax, 0xedb88320
jmp 0x459207
shr eax, 1
dec esi
jne 0x4591f8
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x5b95c0
jl 0x4591f1
mov dword [0x5b9dc0], 1
mov esi, dword [esp + 0xc]
cmp esi, 0x400
mov eax, dword [esp + 8]
jb 0x45925c
mov edx, esi
shr edx, 0xa
mov ecx, edx
neg ecx
shl ecx, 0xa
push edi
add esi, ecx
mov ecx, 0x5b91c0
mov edi, dword [ecx]
xor dword [eax], edi
add ecx, 4
add eax, 4
cmp ecx, 0x5b95c0
jb 0x459246
dec edx
jne 0x459241
pop edi
test esi, esi
jle 0x459270
mov ecx, 0x5b91c0
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x459267
pop esi
ret
Function at 0x459280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, dword [0x5b9dc0]
not ecx
dec ecx
or edx, 0xffffffff
test eax, eax
mov ebp, ecx
jne 0x4592df
push ebx
xor edi, edi
mov esi, 0x5b91c0
mov eax, edi
mov ebx, 8
test al, 1
je 0x4592bd
shr eax, 1
xor eax, 0xedb88320
jmp 0x4592bf
shr eax, 1
dec ebx
jne 0x4592b0
mov dword [esi], eax
add esi, 4
inc edi
cmp esi, 0x5b95c0
jl 0x4592a9
mov esi, dword [esp + 0x14]
mov dword [0x5b9dc0], 1
pop ebx
xor eax, eax
test ebp, ebp
jle 0x459305
xor ecx, ecx
mov cl, byte [eax + esi]
mov edi, edx
and edi, 0xff
shr edx, 8
xor ecx, edi
mov ecx, dword [ecx*4 + 0x5b91c0]
xor edx, ecx
inc eax
cmp eax, ebp
jl 0x4592e5
not edx
mov esi, edx
mov ecx, esi
and ecx, 0xff
xor edx, edx
mov eax, 0x5b8dc0
lea edi, [edx + ecx]
and edi, 0x800000ff
jns 0x45932b
dec edi
or edi, 0xffffff00
inc edi
mov edi, dword [edi*4 + 0x5b91c0]
xor edi, esi
mov dword [eax], edi
add eax, 4
inc edx
cmp eax, 0x5b91c0
jl 0x459318
pop edi
pop esi
pop ebp
ret

Function at 0x459350
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x400
jb 0x45938b
mov edx, esi
shr edx, 0xa
mov ecx, edx
neg ecx
shl ecx, 0xa
push edi
add esi, ecx
mov ecx, 0x5b8dc0
mov edi, dword [ecx]
xor dword [eax], edi
add ecx, 4
add eax, 4
cmp ecx, 0x5b91c0
jb 0x459375
dec edx
jne 0x459370
pop edi
test esi, esi
jle 0x45939f
mov ecx, 0x5b8dc0
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x459396
pop esi
ret
Function at 0x4593b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 0x4ab358
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 1
push eax
push 0x4ab348
xor ebx, ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov edi, dword [esp + 0x23c]
mov ebp, dword [esp + 0x238]
jne 0x459485
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0xc
call dword [esi + 0x28]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45947d
push 0x104
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [esi + 0x14]
test eax, eax
je 0x459446
mov ebx, 1
jmp 0x45947d
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x18], eax
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], edi
call dword [esi + 0x1c]
mov eax, dword [esp + 0x10]
push 7
push eax
call dword [esi + 0xc]
test eax, eax
je 0x45947d
mov ebx, 2
mov ecx, dword [esp + 0x10]
push ecx
call dword [esi + 8]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x45952e
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4594c3
pop edi
pop esi
mov ebx, 3
pop ebp
mov eax, ebx
pop ebx
add esp, 0x224
ret
cmp edi, 1
mov eax, 0x4af380
je 0x4594d2
mov eax, 0x4ad168
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push str.TileWallpaper
push eax
call esi
cmp edi, 2
mov eax, 0x4b495c
je 0x4594fa
mov eax, 0x4ad168
mov ecx, dword [esp + 0x14]
push 2
push eax
push 1
push 0
push str.WallpaperStyle
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push ebp
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x45952e
mov ebx, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x224
ret

Function at 0x459760
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4b498c]
sub esp, 0x94
cmp eax, 0xffffffff
jne 0x4597f5
mov eax, dword [0x4b4988]
cmp eax, 0xffffffff
mov dword [0x4b498c], 0
jne 0x459798
call dword [sym.imp.KERNEL32.dll_GetVersion]
not eax
shr eax, 0x1f
mov dword [0x4b4988], eax
test eax, eax
jne 0x4597a3
add esp, 0x94
ret
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
je 0x4597c6
xor eax, eax
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x4597d8
xor eax, eax
add esp, 0x94
ret
jne 0x4597eb
mov eax, dword [esp + 8]
test eax, eax
jne 0x4597eb
xor eax, eax
add esp, 0x94
ret
mov eax, 1
mov dword [0x4b498c], eax
add esp, 0x94
ret
Function at 0x459800
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4b4990]
sub esp, 0x94
cmp eax, 0xffffffff
jne 0x45987c
mov eax, dword [0x4b4988]
cmp eax, 0xffffffff
mov dword [0x4b4990], 0
jne 0x459834
call dword [sym.imp.KERNEL32.dll_GetVersion]
not eax
shr eax, 0x1f
mov dword [0x4b4988], eax
test eax, eax
jne 0x45983f
add esp, 0x94
ret
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
je 0x459862
xor eax, eax
add esp, 0x94
ret
cmp dword [esp + 4], 6
jae 0x459872
xor eax, eax
add esp, 0x94
ret
mov eax, 1
mov dword [0x4b4990], eax
add esp, 0x94
ret
Function at 0x462740
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x46275c
mov eax, 0x40000000
add esp, 0x20
ret

Function at 0x4627e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x5ba8b8]
test eax, eax
je 0x4627ff
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x5ba8b8], 0
call fcn.00451970
push esi
mov esi, dword [esp + 8]
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0xc]
push 0
push 0x462760
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0xa
push eax
mov dword [0x5ba8b8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5ba8b8]
test eax, eax
pop esi
jne 0x46283d
or eax, 0xffffffff
ret
call fcn.00451970
xor eax, eax
ret

Function at 0x462850
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push str.InitDDS
call fcn.00451f50
mov eax, dword [0x5ba8e8]
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x4628bb
push 0x4629b0
call fcn.0046818c
add esp, 4
push 0x5ba8c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 8]
push eax
push edi
push edi
push 0x462b10
push edi
push edi
call fcn.0046a69a
add esp, 0x18
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5ba8dc], edi
mov dword [0x5ba8e8], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5ba8c0
call ebx
mov eax, dword [0x5ba8dc]
cmp eax, edi
je 0x462965
push ebp
mov ebp, dword [eax + 0x6a8]
mov edi, dword [eax + 0x620]
push 0x5ba8c0
call ebx
test edi, edi
je 0x46293a
push 0x5ba8c0
call ebx
mov esi, dword [0x5ba8dc]
test esi, esi
je 0x462911
cmp dword [esi + 0x620], edi
je 0x462929
mov esi, dword [esi + 0x6a8]
test esi, esi
jne 0x4628ff
push 0x5ba8c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ba8c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x462958
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ba8c0
call edi
test esi, esi
jne 0x462947
push 0x5ba8c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x462958
push 0x5ba8c0
mov dword [esi + 0x650], 0
call edi
test ebp, ebp
mov eax, ebp
jne 0x4628d7
xor edi, edi
pop ebp
push 0x5ba8c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x5ba8dc], edi
pop ebx
je 0x46298b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
cmp dword [0x5ba8dc], edi
jne 0x46297f
push str.EndDDS
mov dword [0x5ba8e0], edi
mov dword [0x5ba8e4], edi
call fcn.00451f50
add esp, 4
pop edi
pop esi
pop ecx
ret
Function at 0x4650a0
Capabilities:
Check os version
Enumerate gui resources

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [0x5bbda8], 0
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x4650eb
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x46510b
cmp dword [esp + 0x18], 2
jne 0x46510b
cmp dword [esp + 0xc], 5
jne 0x46510b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46510b
mov dword [0x5bbda8], 1
push 0
push 0x465130
mov dword [0x5ba950], 0
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x474cb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x474ce0
push esi
call fcn.00477f90
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x474cd9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x474d63
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x474d4f
mov eax, dword [esi + 8]
test eax, eax
je 0x474d04
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x474d4b
cmp eax, 2
je 0x474d4f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x474cf7
cmp eax, 3
je 0x474d2a
cmp eax, 1
jne 0x474cf7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x474cf7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x474cf7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00474d90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x474d83
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00474d90
add esp, 4
pop esi
ret

Function at 0x475b50
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x475c0a
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x475c0a
cmp byte [eax + 1], 0x64
jne 0x475c0a
cmp byte [eax + 2], 0x6f
jne 0x475c0a
cmp byte [eax + 3], 0x62
jne 0x475c0a
cmp byte [eax + 4], 0x65
jne 0x475c0a
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret