joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419d20
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x419d85
cmp dword [edi], 0
mov esi, dword [esi]
je 0x419d65
push 0x48f04c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419d7b
push 0x4925c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419d7b
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x419d7b
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x4be8d4], 0
jne 0x419dc5
push 0x48f04c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419db7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4be8d0], eax
mov byte [0x4be8d4], 1
jmp 0x419dca
mov eax, dword [0x4be8d0]
mov byte [0x4be8d4], 1
jmp 0x419dca
mov eax, dword [0x4be8d0]
test eax, eax
je 0x419de0
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4

Function at 0x419e00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x18], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0
mov edi, dword [ebp + 4]
or edi, 0x2001f
mov dword [esp + 0x28], 0
push edi
push 0
push dword [esp + 0x240]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x419f14
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
je 0x419e6c
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x24]
and edi, 0x300
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x419f14
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x28]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x100
push ecx
lea ecx, [esp + 0x44]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x419ee9
nop
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00419e00
mov esi, eax
test esi, esi
jne 0x419f14
lea eax, [esp + 0x28]
mov dword [esp + 0x14], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
je 0x419eb0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x419efc
push eax
call ebx
mov dword [esp + 0x18], 0
push dword [esp + 0x234]
mov ecx, ebp
mov dword [esp + 0x20], 0
call fcn.00419d20
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x419f1f
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret 4
Function at 0x41a390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
push esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call ebx
mov edi, eax
test edi, edi
jne 0x41a3e1
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x41a3e1
call fcn.00474100
mov esi, eax
jmp 0x41a4b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41a3fe
call fcn.00474100
jmp 0x41a4a7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41a416
call fcn.00474100
jmp 0x41a4a7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x41a42e
mov esi, 0x8007000e
jmp 0x41a4a9
mov ecx, 2
mul ecx
test edx, edx
ja 0x41a4d2
jb 0x41a448
cmp eax, 0xffffffff
ja 0x41a4d2
cmp eax, 0x400
jbe 0x41a467
push eax
lea ecx, [esp + 0x1c]
call fcn.0041bdd0
cmp dword [esp + 0x18], 0
jne 0x41a46f
mov esi, 0x8007000e
jmp 0x41a4a9
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
push esi
push dword [esp + 0x1c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41a48d
call fcn.00474100
jmp 0x41a4a7
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.0041af20
mov esi, eax
test edi, edi
je 0x41a4b4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x41a4c7
lea ecx, [esp + 0x18]
call fcn.0041bdc0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00474010
int3
Function at 0x41ded0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x41df06
push esi
mov esi, dword [esp + 0xc]
mov edx, 0x811c9dc5
add esi, ecx
cmp ecx, esi
jae 0x41def8
movzx eax, byte [ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x41dee8
mov eax, edx
shr edx, 0x1e
and eax, 0x3fffffff
xor eax, edx
pop esi
ret
xor eax, eax
ret

Function at 0x41ee90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
push ecx
mov edx, str.Overlapped
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0047a0ef
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x41eefc
lea eax, [esp + 4]
mov dword [esp + 4], 4
push eax
push 0x4be828
lea eax, [esp + 0x10]
push eax
push 0
push str.TerminateTimeout
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x64
cmp dword [0x4be828], ecx
cmova ecx, dword [0x4be828]
jmp 0x41ef01
mov ecx, 0x1f4
mov dword [0x4be828], ecx
test esi, esi
je 0x41ef12
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x14
ret

Function at 0x41ef20
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
mov esi, dword [0x4be7bc]
test esi, esi
je 0x41f04b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41ef3b
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x41ef47
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebp
mov ebp, dword fs:[0x2c]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
xor ecx, ecx
lea eax, [esi + 0x48]
xchg dword [eax], ecx
test ecx, ecx
je 0x41efb9
mov edi, dword [esi + 0x30]
test edi, edi
je 0x41efb9
cmp ecx, 2
je 0x41efb0
push 0x10
call fcn.0044acd4
add esp, 4
mov dword [eax], 0xa0000300
push eax
push edi
mov dword [eax + 4], 1
mov dword [eax + 8], 1
push 0x418ac0
mov dword [eax + 0xc], esi
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
nop dword [eax]
push dword [esi + 0x30]
call ebx
test eax, eax
jg 0x41efb0
push dword [0x4be828]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [0x4be7bc]
test edi, edi
je 0x41eff6
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41efdd
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x41efe9
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov dword [edi], 0
mov dword [edi + 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0x2c], eax
dec eax
jne 0x41f03e
mov eax, dword [esi + 0x50]
test eax, eax
je 0x41f016
push 0x324
push eax
call fcn.004426eb
add esp, 8
mov eax, dword [esi + 0x54]
test eax, eax
je 0x41f026
push eax
call fcn.0044f4e5
add esp, 4
mov eax, dword [ebp]
push 0x58
push esi
mov dword [eax + 4], 0
call fcn.004426eb
add esp, 8
mov esi, edi
test edi, edi
jne 0x41ef64
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x41f5c0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
push edi
lea eax, [esi + 0x48]
xchg dword [eax], ecx
test ecx, ecx
je 0x41f61e
mov edi, dword [esi + 0x30]
test edi, edi
je 0x41f61e
cmp ecx, 2
je 0x41f609
push 0x10
call fcn.0044acd4
add esp, 4
mov dword [eax], 0xa0000300
push eax
push edi
mov dword [eax + 4], 1
mov dword [eax + 8], 1
push 0x418ac0
mov dword [eax + 0xc], esi
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
push dword [esi + 0x30]
call edi
test eax, eax
jg 0x41f610
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x420960
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push esi
push edi
push ecx
mov edx, str.ObjMem
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [0x4be884], 0x80000
mov dword [0x4be880], 0x800
call fcn.0047a0ef
mov esi, dword [esp + 0x18]
test eax, eax
jne 0x420a43
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.ZMax
push esi
call edi
test eax, eax
jne 0x4209f7
cmp dword [esp + 0x14], 4
jne 0x4209f7
mov ecx, dword [0x4be884]
cmp dword [esp + 0xc], 0x4000
cmova ecx, dword [esp + 0xc]
mov dword [0x4be884], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.ZMin
push esi
call edi
test eax, eax
jne 0x420a43
cmp dword [esp + 0x10], 4
jne 0x420a43
mov ecx, dword [esp + 0xc]
cmp ecx, 0x40
jbe 0x420a43
mov edx, dword [0x4be884]
cmp ecx, edx
mov eax, dword [0x4be880]
cmovb eax, ecx
mov dword [0x4be880], eax
jmp 0x420a49
mov edx, dword [0x4be884]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [edx*4]
push 1
push 0x2000
push eax
push 0
mov dword [0x4be47c], 0
mov byte [0x4a875b], 0
call edi
mov ecx, eax
mov dword [0x4be478], ecx
test ecx, ecx
jne 0x420a97
push eax
push dword [0x4be884]
push 0x206
call fcn.004093a5
add esp, 0xc
mov edi, eax
jmp 0x420abe
mov eax, dword [0x4be880]
shr eax, 1
add eax, eax
push 4
mov dword [0x4be46c], eax
push 0x1000
shl eax, 2
push eax
push ecx
call edi
mov dword [0x4be478], eax
test eax, eax
je 0x420ad1
xor edi, edi
test esi, esi
je 0x420ac9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret
push dword [0x4be884]
push dword [0x4be46c]
push 2
push 0x207
call fcn.004093fc
int3
Function at 0x4211f0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x42120c
lea eax, [edi + 1]
pop edi
pop esi
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x42130c
push ebx
nop word [eax + eax]
mov edx, 0x15b0
cmp ebp, edx
cmovb edx, ebp
sub ebp, edx
cmp edx, 0x10
jl 0x4212ce
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x421243
test edx, edx
je 0x4212df
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x4212d2
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebp, ebp
jne 0x421220
pop ebx
shl esi, 0x10
pop ebp
or esi, ecx
pop edi
mov eax, esi
pop esi
ret 0xc

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

Disassembly:
test edx, edx
jne 0x4213c9
xor eax, eax
ret 4
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x421487
push edi
mov edi, esi
shr edi, 3
nop
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
sub edi, 1
jne 0x4213e0
pop edi
test esi, esi
je 0x4214aa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x490f70]
sub esi, 1
jne 0x421490
not ecx
mov eax, ecx
pop esi
ret 4
Function at 0x421c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x24]
mov ebp, dword [ebx + 0x6c]
nop dword [eax]
mov edi, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x64]
sub edi, ecx
sub edi, ebp
jne 0x421cbb
test ecx, ecx
jne 0x421cca
test ebp, ebp
jne 0x421cca
mov edi, esi
jmp 0x421d57
cmp edi, 0xffffffff
jne 0x421cca
mov edi, 0xfffffffe
jmp 0x421d57
mov eax, dword [ebx + 0x24]
add eax, 0xfffffefa
add eax, esi
cmp ecx, eax
jb 0x421d57
mov ecx, dword [ebx + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00444710
mov ebp, dword [ebx + 0x44]
add esp, 0xc
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], esi
lea edx, [eax + ebp*2]
nop dword [eax + eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [esp + 0x10], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [esp + 0x10]
mov word [edx], ax
sub ebp, 1
jne 0x421d00
mov eax, dword [ebx + 0x38]
mov ebp, esi
lea edx, [eax + esi*2]
nop dword [eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [esp + 0x10], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [esp + 0x10]
mov word [edx], ax
sub ebp, 1
jne 0x421d30
add edi, esi
mov ebp, dword [ebx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x421df1
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x6c]
add edx, ecx
add edx, dword [ebx + 0x30]
cmp eax, edi
mov dword [esp + 0x10], edx
cmovbe edi, eax
test edi, edi
je 0x421db5
mov ecx, dword [ebp]
sub eax, edi
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x421da1
push edi
push ecx
push dword [ebp + 0x30]
call fcn.004211f0
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp]
mov dword [ebp + 0x30], eax
push edi
push ecx
push edx
call fcn.00444710
add dword [ebp], edi
add esp, 0xc
add dword [ebp + 8], edi
mov ecx, dword [ebx + 0x6c]
lea ebp, [ecx + edi]
mov dword [ebx + 0x6c], ebp
cmp ebp, 3
jb 0x421ddd
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x50]
movzx edx, byte [eax]
mov dword [ebx + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [ebx + 0x4c]
mov dword [ebx + 0x40], edx
cmp ebp, 0x106
jae 0x421df1
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x421ca0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x432b97
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4575dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045728d

Function at 0x4575e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457417
Function at 0x47a07d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov eax, dword [esi]
add eax, eax
mov dword [esi], edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x4a8340
lea eax, [ebp + 0x10]
push eax
push edi
push 0x48efa0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47a0e9
cmp dword [ebp + 0x10], 1
je 0x47a0bc
cmp dword [ebp + 0x10], 2
jne 0x47a0d6
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x47a0db
test cl, 1
jne 0x47a0d6
mov eax, ecx
shr eax, 1
cmp word [eax*2 + 0x4a833e], di
je 0x47a0e3
push 0xd
pop eax
jmp 0x47a0e9
xor eax, eax
mov word [0x4a8340], ax
shr ecx, 1
xor eax, eax
mov dword [esi], ecx
pop edi
pop esi
leave
ret 0xc

Function at 0x47a629
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x238]
push ebx
push esi
push edi
push 0x104
push eax
mov edi, ecx
call fcn.00407e3e
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x47a708
lea ecx, [ebx + 8]
cmp ebx, ecx
sbb eax, eax
and eax, ecx
je 0x47a708
cmp eax, 0x400
ja 0x47a693
call fcn.00442af0
mov esi, esp
test esi, esi
je 0x47a708
mov dword [esi], 0xcccc
jmp 0x47a6a6
push eax
call fcn.0044acd4
mov esi, eax
pop ecx
test esi, esi
je 0x47a708
mov dword [esi], 0xdddd
add esi, 8
test esi, esi
je 0x47a708
push esi
push ebx
push 0
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47a708
and dword [ebp - 8], 0
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 8]
push eax
push str.StringFileInfo040904e4ProductVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push dword [ebp - 4]
lea ecx, [ebp - 0x24]
push dword [ebp - 8]
call fcn.00406ee0
push esi
call fcn.00406c60
pop ecx
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00406c20
lea ecx, [ebp - 0x24]
call fcn.00406f60
jmp 0x47a718
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
lea esp, [ebp - 0x248]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47df03
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x1000
mov eax, 0x10000
cmp dword [ebp - 0x20], ecx
jne 0x47df2b
cmp dword [ebp - 8], eax
jne 0x47df2b
xor eax, eax
leave
ret
push eax
push ecx
push dword [ebp - 8]
push dword [ebp - 0x20]
push 0x208
call fcn.004093a5
add esp, 0x14
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x412590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4125aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4125b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4125a0
mov eax, 1
add ebx, ebx
jne 0x4125c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4125b8
jne 0x4125d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4125b8
xor ecx, ecx
sub eax, 3
jb 0x4125e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41265a
mov ebp, eax
add ebx, ebx
jne 0x4125f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412624
inc ecx
add ebx, ebx
jne 0x412610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412605
jne 0x412621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412605
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412635
jmp 0x4125a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412644
add edi, ecx
jmp 0x4125a6
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4126ac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12708]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x127c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412661
mov ecx, edi
jns 0x412690
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x127cc]
or eax, eax
je 0x4126a6
mov dword [ebx], eax
add ebx, 4
jmp 0x41267e
call dword [esi + 0x127c8]
mov ebp, dword [esi + 0x127d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4126e0
sub esp, 0xffffff80
jmp 0x403ac6
Function at 0x402453
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402462
pop dword [ebp - 0x24]
mov eax, 0x402462
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x6862cc90
sub dword [ebp - 0x34], 0x1a108745
mov dword [ebp - 0x30], 0x87f52538
sub dword [ebp - 0x30], 0x55c1d8f3
mov dword [ebp - 0x2c], 0xead008e1
add dword [ebp - 0x2c], 0x617c3b4d
mov dword [ebp - 0x28], 0x32f9cc9d
add dword [ebp - 0x28], 0xcd063363
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xf7e5057c
sub dword [ebp - 0x34], 0x83729c26
mov dword [ebp - 0x30], 0x151093e
add dword [ebp - 0x30], 0x401b5837
mov dword [ebp - 0x2c], 0xf35235e3
sub dword [ebp - 0x2c], 0x8fe2c977
mov dword [ebp - 0x28], 0x1fe82068
add dword [ebp - 0x28], 0xe017df98
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xcebd7d45
add eax, 0x3188333b
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x4f3f4
push 0
call eax
mov ecx, 0x5269356b
add ecx, 0xad971a63
xor edi, edi
add edi, eax
mov ebx, 0x476000
add ebx, dword [ebp - 0x24]
mov edx, 0x69d75904
add edx, 0xf66e5221
add dword [ebp - 0x10], 0x5ea43e49
mov esi, dword [ebx]
add dword [ebp - 0x18], esi
add esi, edx
xor dword [ebp - 0x14], edi
mov dword [edi], esi
add dword [ebp - 0x20], edi
add edi, 0x35cb1c83
add edi, 0xca34e381
add ebx, 0xf842c2d8
sub ebx, 0xf842c2d4
loop 0x402576
add eax, 0x77749af9
sub eax, 0x777368ee
xor ebx, ebx
add ebx, eax
add eax, 0x1d494ef5
add eax, 0xe2b6b110
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret