joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f4e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xe8], 1
je 0x46f4f0
xor al, al
pop esi
ret
mov eax, dword [esi + 0x114]
push ebx
mov dword [esi + 0x2c], 0
push ebp
cmp word [eax + 0xe], 8
push edi
jne 0x46f5aa
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x46f575
mov ecx, dword [esi + 0x114]
call fcn.0046cfa0
test al, al
je 0x46f550
mov eax, dword [esi + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x46f550
mov edi, dword [esi + 0x70]
mov ecx, esi
add edi, ebp
call fcn.00470330
mov cl, byte [edi]
mov bl, al
push ecx
mov ecx, esi
call fcn.004701b0
mov dl, byte [edi]
xor dl, bl
inc ebp
mov byte [edi], dl
mov eax, dword [esi + 0x64]
cmp ebp, eax
jb 0x46f52a
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x70]
push 0
push edx
push eax
lea ecx, [esi + 0x78]
call fcn.00471fa0
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x38], ecx
mov edx, dword [esi + 0x70]
mov dword [esi + 0x34], edx
mov edi, dword [esi + 0x3c]
lea eax, [esi + 0x28]
push 4
push eax
call fcn.005a5570
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x64]
sub ecx, edi
add edx, ecx
test eax, eax
mov dword [esi + 0x64], edx
je 0x46f50b
cmp eax, 1
je 0x46f5aa
cmp eax, 2
je 0x46f5aa
push eax
mov ecx, esi
call fcn.0046d410
mov eax, dword [esi + 0x64]
test eax, eax
jbe 0x46f60f
mov ecx, dword [esi + 0x114]
call fcn.0046cfa0
test al, al
je 0x46f5fd
mov eax, dword [esi + 0x64]
xor ebx, ebx
test eax, eax
jbe 0x46f5fd
mov edi, dword [esi + 0x70]
mov ebp, dword [esi + 0x1c]
add edi, ebx
and ebp, 0xfffd
mov ecx, esi
or ebp, 2
mov dl, byte [edi]
push edx
call fcn.004701b0
mov eax, ebp
mov dl, byte [edi]
xor eax, 1
imul eax, ebp
sar eax, 8
xor dl, al
inc ebx
mov byte [edi], dl
mov eax, dword [esi + 0x64]
cmp ebx, eax
jb 0x46f5c9
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x70]
push 0
push ecx
push edx
lea ecx, [esi + 0x78]
call fcn.00471fa0
mov eax, dword [esi + 0x114]
pop edi
pop ebp
pop ebx
cmp word [eax + 0xe], 8
jne 0x46f639
lea ecx, [esi + 0x28]
push ecx
call fcn.005a58f0
test eax, eax
je 0x46f639
cmp eax, 2
je 0x46f639
push eax
mov ecx, esi
call fcn.0046d410
mov eax, dword [esi + 0x114]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 0x18]
add ecx, edx
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x1c], ecx
lea ecx, [esi + 0xec]
call fcn.00472ec0
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe8], 0
call fcn.00470da0
mov al, 1
pop esi
ret

Function at 0x46fa00
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0046fa30
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call fcn.005d0da7
mov al, bl
pop ebx
ret
Function at 0x470220
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x5e4af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push 0xc
lea ecx, [esp + 0x1c]
call fcn.00470cf0
mov eax, dword [esp + 0x18]
push ebp
push 0xc
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x34], ebp
call fcn.00471070
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
and eax, 0xfffd
mov edi, dword [esi + 0x14]
or al, 2
mov dl, byte [ecx + ebp]
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
call fcn.005a4fa0
mov dl, bl
mov ecx, edi
and edx, 0xff
and ecx, 0xff
xor edx, ecx
mov ecx, esi
shr edi, 8
mov eax, dword [eax + edx*4]
mov edx, dword [esi + 0x18]
xor eax, edi
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004704a0
inc ebp
mov dword [esi + 0x1c], eax
cmp ebp, 0xc
jl 0x470260
mov ecx, dword [esi + 0x114]
call fcn.0046cfb0
mov esi, dword [esi + 0x114]
test al, al
je 0x4702f5
xor ecx, ecx
mov cl, byte [esi + 0x11]
cmp cl, bl
jmp 0x4702fd
mov edx, dword [esi + 0x14]
shr edx, 0x18
cmp dl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
sete bl
call fcn.00470d70
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4704d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x470548
mov eax, dword [esi + 0xc]
mov cl, byte [eax + edi]
mov eax, dword [esi + 0x14]
mov byte [esp + 0x10], cl
mov ecx, esi
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004704a0
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004704a0
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x4704f5
push 0
call fcn.00442e10
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul edi, eax
push edi
call fcn.00442de1
add esp, 4
xor ebp, ebp
call fcn.00442dee
mov ebx, eax
sar ebx, 6
test bl, bl
mov byte [esp + 0x10], bl
jne 0x470580
mov bl, al
mov byte [esp + 0x10], bl
mov edi, dword [esi + 0x1c]
mov eax, dword [esp + 0x10]
and edi, 0xfffd
push eax
mov ecx, esi
or edi, 2
call fcn.004701b0
mov ecx, edi
mov edx, dword [esp + 0x1c]
xor ecx, 1
imul ecx, edi
mov eax, dword [edx + 4]
sar ecx, 8
xor cl, bl
mov byte [eax + ebp], cl
inc ebp
cmp ebp, 0xa
jl 0x470568
mov ebp, dword [esp + 0x18]
mov edi, dword [esi + 0x1c]
mov ebx, ebp
and edi, 0xfffd
sar ebx, 0x10
mov byte [esp + 0x10], bl
or edi, 2
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004701b0
mov edx, edi
mov eax, dword [esp + 0x1c]
xor edx, 1
imul edx, edi
mov ecx, dword [eax + 4]
mov eax, ebp
sar edx, 8
xor dl, bl
mov byte [ecx + 0xa], dl
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
and edi, 0xfffd
sar eax, 0x18
mov byte [esp + 0x10], al
or edi, 2
call fcn.005a4fa0
mov dl, byte [esp + 0x10]
mov ecx, ebx
and edx, 0xff
and ecx, 0xff
xor edx, ecx
mov ecx, dword [esi + 0x18]
shr ebx, 8
mov eax, dword [eax + edx*4]
mov ebp, dword [esi + 0x1c]
xor eax, ebx
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.005a4fa0
mov ecx, edi
mov edx, ebp
xor ecx, 1
and ebx, 0xff
imul ecx, edi
and edx, 0xff
pop edi
xor ebx, edx
mov edx, dword [esp + 0x18]
shr ebp, 8
mov eax, dword [eax + ebx*4]
xor eax, ebp
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0xc]
sar ecx, 8
xor cl, al
mov eax, dword [edx + 4]
pop esi
pop ebp
mov byte [eax + 0xb], cl
pop ebx
pop ecx
ret 8
Function at 0x471670
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e4cb8
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x20
test al, al
push ebx
push ebp
push esi
mov esi, ecx
jne 0x4717df
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x48]
add edx, eax
test eax, eax
mov dword [esi + 0x48], edx
je 0x4716bc
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x40]
push eax
push edx
mov ebx, dword [ecx]
call dword [ebx + 0x38]
mov dword [esi + 0x30], 0
mov eax, dword [esi + 0x24]
or ebp, 0xffffffff
cmp eax, 1
jne 0x471745
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0046fa30
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.005d0da7
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebp
call fcn.005d0da7
test bl, bl
je 0x47172c
xor eax, eax
jmp 0x471742
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
imul eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x24]
mov ebx, 2
cmp eax, ebx
jne 0x4717d0
mov al, byte [esi + 0x4c]
test al, al
je 0x4717d0
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 0
lea eax, [esp + 0x40]
push 1
push eax
mov ecx, esi
mov dword [esp + 0x40], 1
call fcn.00471820
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0x34], bl
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x3c]
push eax
call fcn.0046ebd0
add esp, 4
test eax, eax
je 0x4717a4
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005d19c1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.005d199f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.005d0da7
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], ebp
call fcn.005d0da7
jmp 0x4717ef
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 4], ebp
je 0x4717ef
mov edx, dword [ecx]
call dword [edx + 0x4c]
jmp 0x4717ef
mov ecx, dword [esi + 0x1c]
or ebp, 0xffffffff
cmp dword [ecx + 4], ebp
je 0x4717ef
mov eax, dword [ecx]
call dword [eax + 0x4c]
lea ecx, [esi + 0x3c]
call fcn.00470da0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x50], ebp
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], 0
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x471820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e4d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x471866
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.005d0e15
test bl, 1
mov dword [esp + 0x28], 3
je 0x47188d
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.005d0da7
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0046e560
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.0046e680
add esp, 0x10
mov ecx, dword [0x650810]
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x4718da
push 0x654a00
lea ecx, [esp + 0x3c]
call fcn.005d0f30
jmp 0x4718f0
mov edx, dword [esi + 0x50]
lea eax, [esp + 0x38]
push edx
push 0x6549f8
push eax
call fcn.005ce66f
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.005d0fd6
push 0x6394b0
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x34], 7
call fcn.005d103c
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x34], 8
call fcn.005d0fd6
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call fcn.005d0da7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.005d0da7
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call fcn.005d0da7
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.005d0da7
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.005d0da7
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.005d0da7
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x471de0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5e4df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 4]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.0046fa30
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.005d0da7
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.005d0da7
test bl, bl
pop ebx
je 0x471e70
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4750e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
call fcn.005d0f30
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.005d0f30
mov ecx, edi
call fcn.005ce926
mov ecx, edi
call fcn.005ce82f
mov edx, dword [ebp + 8]
push ebx
push edx
call fcn.005a1e52
add esp, 8
test eax, eax
je 0x475174
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push ebx
push ebx
push eax
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], ebx
call fcn.0046d300
mov ecx, dword [esi + 4]
call fcn.0046d550
mov ecx, dword [esi + 4]
push ebx
mov dword [esi + 8], eax
call fcn.0046dc80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x475200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x66f8a0
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edi
call fcn.005d0f30
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.005d0f30
mov ecx, ebx
call fcn.005ce926
mov ecx, ebx
call fcn.005ce82f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test eax, eax
jne 0x475292
mov dword [esi + 0x2c], eax
mov dword [esi + 8], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push edi
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], 0
call fcn.0046d360
mov ecx, dword [esi + 4]
call fcn.0046d550
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.0046dc80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x477cb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x673310]
sub esp, 0x114
test eax, eax
jne 0x477dfd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x6731a8
mov dword [0x673310], 1
mov dword [0x6731a8], 0x94
call esi
mov edx, dword [0x6731b8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x654a78], eax
je 0x477dd8
push ebx
push 0x673240
mov dword [0x673240], 0x9c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x673304], eax
call edi
mov dword [0x673308], eax
mov eax, dword [0x673304]
test eax, eax
push 0x6732e0
je 0x477d54
call eax
jmp 0x477d5a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x673244]
cmp eax, 6
jae 0x477d72
cmp eax, 5
jne 0x477d86
cmp dword [0x673248], 2
jb 0x477d86
cmp word [0x6732e0], 9
jne 0x477d86
mov dword [0x67319c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x477da4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x67330c], edx
jmp 0x477daa
mov edx, dword [0x67330c]
test edx, edx
je 0x477dd8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x477dd8
mov ecx, dword [esp + 0x14]
mov dword [0x6731b4], ecx
push 0x6731b0
push 0x6731ac
call fcn.004781a0
add esp, 8
call fcn.00477e10
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x479050
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5face8
push 0x442ef4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x673314]
xor ebx, ebx
cmp eax, ebx
jne 0x4791b0
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4791ab
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x633274
lea edx, [ebp - 0x224]
push edx
call fcn.00441c02
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.005d1478
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x4791ab
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4791a2
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4791a2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x673314], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x4791a2
push esi
call fcn.005d14a1
add esp, 4
mov eax, dword [0x673314]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x4799b1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4799b3
mov esi, edi
test esi, esi
je 0x479a28
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x479a1d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x479a1d
cmp dword [esp + 0x1c], eax
jbe 0x4799ee
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x479a1d
cmp esi, edi
je 0x479a0f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x479a28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x479a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x479aa5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x479aa5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x479aa5
cmp dword [esp + 0x18], eax
jbe 0x479a8b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x479aa9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x479b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x479bdf
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x479bdf
cmp dword [esp + 0xc], 3
jne 0x479bdf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x479bdf
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x479bdf
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc