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

Disassembly:
retf 0xb958
xor eax, 0x258cc486
mov dword [edx - 0x29d821ff], esp
mov esi, 0x58f3924c
mov edx, 0x150bcc00
adc edi, dword [ebx + 0x1f]
mov dword [0x82e5faea], eax
push ds
pop ss
movsb byte es:[edi], byte [esi]
mov esp, 0x893c8d19
pushfd
xchg esi, eax
jg 0x58282c
add byte [edi - 0x58330a1d], bl
mov byte [ebx + 0x13], ah
mov ch, 0x33
xlatb
hlt
fmul st(5), st(0)
mov word [ebp - 0x1c3f0d16], es
test edx, ebp
shl bl, 0x81
loope 0x5828b2
pop eax
loop 0x582831
test edx, ebp
shl bl, 0x81
loope 0x5828b2
pop eax
loop 0x582831
push edi
pop ebx
xchg esi, eax
jnp 0x582851
mov eax, dword ds:[0xf2aa5f81]
push es
insd dword es:[edi], dx
lds eax, [edi]
xchg ecx, eax
mov dl, 0xb8
aaa
mov fs, word [edx - 0x33153e30]
mov edx, dword [edx]
adc dword [edx - 0x5100eff6], 0x3366233b
fldenv [esi - 0x6dc0bfdc]
ja 0x582898
mov ah, 0xb5
push ebx
cmpsd dword [esi], dword es:[edi]
push ds
add al, 0xe0
aam 0xb1
sbb dword [ecx], 0x8dc13aac
add eax, 0xb455f737
popfd
mov al, byte [0x15d1401e]
inc ebx
int 0x61
cmpsb byte [esi], byte es:[edi]
les esp, [ebx + 0x46]
mov dl, 0x24
mov bh, 0x24
lodsb al, byte [esi]
mov edi, dword [0x26b03d4]
cld
cld
mov edi, 0xaf7145c
mov edx, 0xfa0d4399
lodsb al, byte [esi]
and dh, byte [ebx]
mov byte [ebx + 0x3b], dl
lcall 0xf107, 0xf3f9d1f5
not dword [ebx - 0x3f0d2c4b]
push esp
xchg edi, eax
mov dl, dl
xor al, byte [ebx + 0x6214b9c4]
jbe 0x5829a5
push 0xa359de5d
sbb byte [esi + 0x45536461], cl
scasd eax, dword es:[edi]
cli
movsb byte es:[edi], byte [esi]
je 0x58290d
xor ebp, ecx
push ss
cmp dh, byte [edx]
add eax, 0xee17e4c2
int1
shr byte [ecx + 0x4abd8710], 0x40
jns 0x5829ae
mov edi, 0x6d35f085
scasb al, byte es:[edi]
and bh, byte [edx]
in al, dx
aaa
invalid
mov al, 0x54
lea esp, [edi - 0x3b1cd833]
popfd
jp 0x5829a1
jmp 0xab40c7
push ebx
add byte [ecx + 0xd7603d5], dl
mov edx, 0x3c514466
jb 0x582974
cmc
popfd
retf
adc al, 0xc1
int 0xf3
pop ds
push edx
je 0x582a1d
or edi, dword [ebp + 0x4e605248]
dec esi
jo 0x582982
nop
jmp 0xee8e5cac
add edi, ecx
loopne 0x582a23
invalid
std
adc dword [esi - 9], esi
and dword [edi + edx*2 - 0x6f], edi
inc esp
ret
Function at 0xae69c0
Capabilities:
Check for software breakpoints

Disassembly:
je 0xae69eb
insb byte es:[edi], dx
insb byte es:[edi], dx
dec eax
popal
outsb dx, byte [esi]
insb byte es:[edi], dx
add byte gs:[ebx - 0x62407973], ch
sahf
sbb byte [edi + 0x9b], 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
invalid
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or dword [eax], eax
add byte [eax], al
je 0xae6a10
add byte [eax], al
add byte [ecx], cl
add byte [eax], al
add byte [edx + eax*2 + 0x79], dh
je 0xae6a36
jns 0xae6a44
push ebx
push ebx
ja 0xae6a35
jo 0xae69d6
add byte [eax], al
lodsb al, byte [esi]
dec edx
scasd eax, dword es:[edi]
dec esi
mov ch, 0x4c
xchg ebx, eax
mov ch, 0x41
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dh, bl
adc eax, 0x65a0720f
add esi, ebx
out 0x29, al
lahf
adc byte [ebx + 0xf3d36a3], cl
inc ebp
or esp, edx
xchg dword [ebp + 0x57], esp
adc dh, bh
xchg ebp, eax
loopne 0xae69a4
and ecx, dword cs:[edx]
and bh, ch
aaa
stosb byte es:[edi], al
mov dword [eax], esi
jnp 0xae69c5
fadd qword [esi - 0x2a]
in al, dx
invalid
inc esp
jg 0xae69fe
shl dword [ecx], 1
add eax, 0x5fa44b5d
pop edi
cmp al, 0x98
mov byte [0xc09ae4], al
cmp edx, dword [ebx - 0x7455d339]
mov ebx, 0x881864fd
lodsd eax, dword [esi]
pop ecx
cdq
inc edx
std
sbb byte fs:[eax + 0x429959ad], cl
xor eax, 0x461bc388
xchg ecx, eax
cmp al, 0x57
inc ecx
aad 0x63
pop ss
push cs
cmp bl, 0xcc
sti
insd dword es:[edi], dx
jle 0xae6a2c
pop ebx
cmp ebx, esp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcl edx, 0x19
imul eax
mov edi, 0x88
dec ebx
add ebx, 0xcb
mov edx, 0xa8
rcr edi, 0x8c
rcl esi, 0xe2
rcr ebx, 0x92
mov eax, 0xf3
neg eax
dec edx
bswap esi
rol edi, 0x7f
imul esi
not edx
mov eax, 0x13
rcl esi, 0xf1
sub edi, 0x97
bswap ebx
not ebx
not esi
inc eax
neg edx
rcl edx, 0xb1
bswap edx
sbb eax, 0xcd
dec eax
dec ebx
dec eax
dec ebx
sbb edi, 0x18
and edx, 0xdf
rcl edx, 0x58
not esi
dec eax
or ebx, 0
rcr esi, 0xca
rol esi, 0x1a
rol ebx, 0xf3
ror edi, 0x82
neg eax
inc ebx
rcl edx, 0x6d
neg eax
inc esi
sub eax, 4
mov eax, 0xf4
bswap edx
dec eax
xor ecx, ecx
xor edi, edi
rcr esi, 0x32
ror edi, 0xe9
mov ebx, 0xf0
dec edx
bswap ebx
rcl ebx, 0xde
sbb esi, 0xba
dec edx
dec esi
imul esi
bswap ebx
dec ebx
dec esi
not esi
add eax, 0x97
rcl eax, 0xf5
not esi
dec esi
imul eax
ror eax, 0x56
rol ebx, 0x61
rcr esi, 0x6d
not eax
rcr edx, 0x73
rol ebx, 0x76
add esi, 0xa1
rol edx, 0x25
not esi
ror ebx, 0x24
imul edi
imul edx
dec edi
not edx
and eax, 0x54
or ebx, 0x84
rol ebx, 0xc8
inc ebx
inc ebx
sub eax, 0x5c
dec ebx
and edx, 0xe9
or edx, 0x51
or edi, 0x10
bswap edi
neg edx
or eax, 0x1d
not eax
and esi, 0xd9
neg ebx
rol ebx, 0xfb
mov ecx, dword [ebp + 0xc]
dec ebx
neg ebx
dec edx
or eax, 0xe4
and esi, 0x88
and eax, 0x12
imul ebx
rcr esi, 0x90
neg eax
bswap edx
bswap edi
and edx, 0xe2
or ebx, 0x79
neg esi
rcl edi, 0xa3
mov eax, 0x58
dec ebx
ror edx, 0x21
dec edi
dec ebx
rol edx, 0xdb
bswap eax
sub edx, 0x1f
and eax, 0x8c
imul edi
or edx, 0x38
not edx
dec ebx
or esi, 0xe2
or esi, 0xf1
inc esi
inc edx
bswap esi
inc edx
inc ebx
imul esi
dec esi
or ebx, 0xad
rcl edi, 8
not esi
ror esi, 0
bswap eax
or eax, 0x21
bswap edi
or esi, 0xd
rol edi, 0x8c
sbb edx, 0x31
dec edx
imul esi
bswap edi
mov edi, dword [ebp + 8]
xor esi, eax
mov esi, esi
mov esi, ebx
not byte [edi]
mov esi, eax
mov esi, eax
mov eax, esi
xor eax, ebx
mov ebx, eax
mov eax, eax
mov esi, eax
mov esi, eax
mov eax, eax
add byte [edi], 0x87
xor ebx, ebx
xor ebx, ebx
xor ebx, ebx
xor eax, ebx
mov eax, eax
xor eax, esi
mov eax, esi
xor ebx, esi
xor esi, ebx
sub byte [edi], 0x54
mov esi, esi
mov eax, ebx
xor eax, eax
xor esi, ebx
xor ebx, eax
xor eax, eax
xor eax, eax
mov ebx, esi
xor esi, ebx
imul byte [edi]
inc edi
loop 0x4013c6
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410400]
jne 0x40781f
repz ret
jmp fcn.00409bb0
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x211b3149
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x2b341680
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4026d0
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.00413282
push 1
push 0x208
mov edi, eax
call fcn.00413282
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x40280b
test ebp, ebp
je 0x40280b
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40270f
push 7
push str.http:__
push ebp
call fcn.00413700
add esp, 0xc
test eax, eax
je 0x402755
push 8
push str.https:__
push ebp
call fcn.00413700
add esp, 0xc
test eax, eax
je 0x402755
push 0x5c
push ebp
call fcn.00413080
add esp, 8
test eax, eax
je 0x402755
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4027fa
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
push str.__1_
push edi
call fcn.00413580
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push 0x41a60c
push edi
call fcn.00413580
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x4027e1
mov byte [esi], 0
push 0x41a608
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.00413333
push edi
call fcn.00413333
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402810
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402859
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x402860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.00402950
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x40293a
mov al, byte [esp + 8]
push esi
test al, al
je 0x402912
push 0x5c
push edi
call fcn.00413080
mov esi, eax
add esp, 8
test esi, esi
je 0x4028ad
inc esi
jmp 0x4028af
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41f2dc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4028d3
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402912
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41f098
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x41f098], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b70
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.00402950
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402c02
push 0x5c
push esi
call fcn.00413080
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41f2dc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402bd2
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c02
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402c25
push 0x41f098
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402cd0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.004131d0
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402cf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402d4f
cmp byte [edx], bl
je 0x402d4f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x41a608]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.004131d0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d75
push ebp
call fcn.00413333
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402d91
push 0x5c
push edi
call fcn.00413080
add esp, 8
cmp eax, ebx
je 0x402db3
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00413333
push ebp
call fcn.00413333
add esp, 8
cmp edi, ebx
jne 0x402e1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x405470
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00402110
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401140
add esp, 0x18
cmp eax, 0xffffffff
je 0x4054c8
push eax
call fcn.004013c0
add esp, 4
or eax, 0xffffffff
jmp 0x4054d6
push esi
call fcn.00401190
add esp, 4
cmp eax, 0xffffffff
jne 0x4054df
inc ebx
cmp ebx, 0x3e7
jl 0x405481
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409720
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x800
mov dword [esp + 0xc], 1
call fcn.004021c0
add esp, 8
test eax, eax
jne 0x409750
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x41f0c0]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4098a1
push eax
call fcn.004131d0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4098a1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x41f0c0]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x409896
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x409828
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x41a954
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409828
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x4097e6
jne 0x409828
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x2c]
cmp edx, eax
jbe 0x409828
push 0x1d
push 7
call fcn.00403a00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40988e
mov ecx, dword [0x41f350]
test ecx, ecx
jne 0x40988e
mov ecx, dword [0x41f0c0]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
jne 0x40988e
mov eax, dword [0x41f350]
test eax, eax
jne 0x409896
test byte [edi + 8], 4
je 0x409896
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409896
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x409896
push 0x1e
push 7
call fcn.00403a00
add esp, 8
test eax, eax
je 0x409896
mov ecx, dword [0x41f0c0]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
je 0x409896
mov dword [esp + 0x10], 0
push ebp
call fcn.00413333
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.00402200
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x409940
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4099e9
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x41f0c0]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4099ac
inc dword [esp]
jmp 0x4099bc
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x41f0c0]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x40a110
Capabilities:
Delete registry value
Encode data using xor
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.00406c60
test eax, eax
je 0x40a19b
call fcn.004099f0
test eax, eax
je 0x40a193
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40a186
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x40a173
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40a154
call fcn.004099f0
test eax, eax
jne 0x40a141
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.00408c30
add esp, 0x1c
ret
Function at 0x40b460
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x40b480
push 0x180
push esi
call fcn.00412eec
add esp, 8
mov eax, dword [0x41f2dc]
test eax, eax
je 0x40b4cb
test esi, esi
jne 0x40b4ac
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x40b4fe
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x40b560
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x41a9a8
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401140
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40b678
push ebx
push ebp
call fcn.004012c0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402180
add esp, 0xc
test eax, eax
je 0x40b66e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x40b661
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x40b661
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x40b630
cmp byte [edx + 1], 0x79
jne 0x40b630
cmp byte [edx + 2], 0x7a
jne 0x40b630
cmp byte [edx + 3], 0x3d
jne 0x40b630
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b63b
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x40b5f4
jmp 0x40b661
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401260
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.00401200
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
push ebp
call fcn.004013c0
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret