joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdb40f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x684000]
push edi
or ebp, 0xffffffff
jmp 0xdb4112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xdb4119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb4108
mov eax, 1
add ebx, ebx
jne 0xdb412b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xdb413c
jne 0xdb414c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb414c
dec eax
add ebx, ebx
jne 0xdb4148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xdb4120
xor ecx, ecx
sub eax, 3
jb 0xdb4164
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xdb41d6
sar eax, 1
mov ebp, eax
jmp 0xdb416f
add ebx, ebx
jne 0xdb416f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xdb417c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xdb41a0
inc ecx
add ebx, ebx
jne 0xdb418c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xdb4181
jne 0xdb419d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdb4181
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xdb41c0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xdb41b1
jmp 0xdb410e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xdb41c0
add edi, ecx
jmp 0xdb410e
pop esi
mov edi, esi
mov ecx, 0xd7a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xdb41de
cmp byte [edi], 9
jne 0xdb41de
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0xdb41e3
lea edi, [esi + 0x9b2000]
mov eax, dword [edi]
or eax, eax
je 0xdb425b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9c37c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9c3850]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xdb4210
mov ecx, edi
jns 0xdb423f
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 + 0x9c3854]
or eax, eax
je 0xdb4255
mov dword [ebx], eax
add ebx, 4
jmp 0xdb422d
call dword [esi + 0x9c3858]
popal
jmp 0x423f2b
Function at 0x4022f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x5f4
xor eax, eax
push ebx
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov ecx, 0x11
lea edi, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x44
mov word [esp + 0x58], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x10]
push 0xa4
push ecx
lea edx, [esp + 0x2c]
push 0x7d
push edx
push 0x2d
push 0
push 0x68
push 0
mov eax, dword [esp + 0x638]
push 0xcf
push 3
mov ecx, dword [esp + 0x638]
push 0x4c
push 0
push 0xd8
push 0
push 0x53
push 0
push 0x1a
push eax
push 0x8b
push ecx
push 0x6c
call fcn.00402200
mov esi, dword [0x5409d0]
mov ebx, 0x10002
mov ecx, 0xb2
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x68]
push edx
push eax
call esi
push 0x1a
push 0
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x18]
push 6
push 4
lea ecx, [esp + 0x1c]
push 0xf
push ecx
add edx, 8
push 0x3a
push edx
push 0x33
push eax
push 0
call fcn.00402250
lea ecx, [esp + 0x68]
mov dword [esp + 0x334], ebx
mov edx, dword [esp + 0x14]
push ecx
push edx
call esi
push 0xe9
mov ecx, 0x12
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push 0x12
call fcn.00402140
push 0x88
push 3
mov ebx, dword [esp + 0x610]
mov eax, dword [esp + 0x18]
push 0xba
push 0x2fff
mov edi, dword [ebx + 0x3c]
push 0x4d
add edi, ebx
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
push ecx
push 0xf6
push edx
push 0xd3
push eax
push 0xcc
call fcn.00402170
lea ecx, [esp + 0x20]
push 0xbb
mov dword [esp + 0x10], eax
mov edx, dword [edi + 0x54]
push ecx
push 0x1d
push edx
mov edx, dword [esp + 0x20]
push 0x95
push ebx
push 0xf1
push eax
push 0xb
mov ecx, 0x36
call fcn.00402150
xor eax, eax
mov ax, word [edi + 0x14]
lea ecx, [eax + edi + 0x18]
mov al, byte [edi + 6]
cmp al, 1
jl 0x4024db
push ebp
movsx ebp, al
lea edx, [ebp + ebp*4]
lea esi, [ecx + edx*8 - 0x14]
mov ecx, dword [esi - 4]
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 0x2f
push eax
mov eax, dword [esi - 8]
push 0x27
push ecx
add edx, ebx
push 0x91
push edx
mov edx, dword [esp + 0x28]
add eax, edx
mov edx, dword [esp + 0x2c]
push 0xd4
push eax
push 0x8e
mov ecx, 0x3d
call fcn.00402150
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
add edx, ecx
push edx
push eax
call fcn.004021a0
sub esi, 0x28
dec ebp
jne 0x402483
pop ebp
mov eax, dword [esp + 0x3d8]
lea ecx, [esp + 0x20]
push 0xc5
push ecx
push 0x48
push 4
lea edx, [esp + 0x1c]
push 0xc6
push edx
mov edx, dword [esp + 0x28]
add eax, 8
push 0x1b
push eax
push 3
mov ecx, 0xb3
call fcn.00402150
mov ecx, dword [edi + 0x28]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x334]
push 0x1e
push edx
push 0x3b
add ecx, ebx
push eax
push 0xda
mov dword [esp + 0x3f8], ecx
call fcn.004022b0
pop edi
pop esi
pop ebx
add esp, 0x5f4
ret 0x1c
Function at 0x402550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x540970]
cmp eax, 0x108
jle 0x402589
push 0x61
push 0xa
push 0xbe
push str.798F
push 0x9a
push 0
push 0x88
call fcn.004021e0
mov eax, dword [0x540970]
cmp eax, 0x129
jle 0x4025b1
push 0x34
push 0xa
push 0x7a
push str.798F
push pe_nt_image_headers32
push 0
push 0x8c
call fcn.004021e0
mov eax, dword [0x540970]
inc eax
cmp eax, 0x104
mov dword [0x540970], eax
jne 0x4025d3
push 0x4b
push str.Yz_bSbnrk
push 0x64
call fcn.004020a0
add esp, 0xc
mov esp, ebp
pop ebp
ret
cmp eax, 0x129
jl 0x40273d
mov eax, dword [0x540ba8]
test eax, eax
jne 0x40273d
push esi
push 0xcd
push 0xa
push 0x5c
push str.798F
push 0xa
mov esi, 1
push 0
push 0x29
mov dword [0x540ba8], esi
call fcn.004021e0
mov ecx, dword [0x407030]
lea eax, [ebp - 8]
push 0xef
push eax
push 0xe7
push 0x40
push 0x56
push ecx
push 0x6f
push str.ljEZljGNBjy777_Z
push 0xeb
call fcn.004021c0
mov eax, dword [0x407030]
mov dword [ebp - 0xc], str.ljEZljGNBjy777_Z
cmp eax, esi
mov dword [ebp - 0x10], str.ljEZljGNBjy777_Z
mov byte [ebp - 1], 0xee
jl 0x4026e5
push ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov byte [ebp - 2], al
movsx edx, byte [ebp - 2]
push edx
push str.NZy1kBz
call fcn.00403200
mov ecx, dword [ebp - 0xc]
mov ebx, eax
mov eax, str.NZy1kBz
sub bl, al
shl bl, 4
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov byte [ebp - 2], al
movsx ecx, byte [ebp - 2]
mov al, byte [ebp - 1]
push ecx
add al, 5
push str.NZy1kBz
mov byte [ebp - 1], al
call fcn.00403200
mov edx, str.NZy1kBz
add esp, 0x10
sub bl, dl
mov dl, byte [ebp - 1]
add al, bl
xor al, dl
inc al
mov byte [ebp - 3], al
mov eax, 0
mov al, byte [ebp - 3]
mov ebx, dword [ebp - 0x10]
mov byte [ebx], al
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x407030]
inc ebx
add esi, 2
inc edx
cmp esi, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jle 0x40265a
pop ebx
push 0x3c
push str.ljEZljGNBjy777_Z
push 0xee
call fcn.00402240
mov esi, eax
push 0x45
push 0x104
lea eax, [ebp - 0x114]
push 0xae
push eax
push 0x62
push 0
push 0xdb
call fcn.00402290
push 0xa0
push 0x540bac
lea ecx, [ebp - 0x114]
push 0x84
push ecx
push 0x2e
push esi
push 0xfc
call fcn.004022f0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403f01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x540528
cmp edx, dword [eax]
je 0x403f23
add eax, 8
inc ecx
cmp eax, 0x5405b8
jl 0x403f14
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x540528]
jne 0x404051
mov eax, dword [0x540bb8]
cmp eax, 1
je 0x40402b
test eax, eax
jne 0x403f54
cmp dword [0x540478], 1
je 0x40402b
cmp edx, 0xfc
je 0x404051
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403f8b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004044b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403fce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406388
push edi
call fcn.004030f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004044b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004044c0
lea eax, [ebp - 0xa0]
push 0x406368
push eax
call fcn.004044c0
push dword [esi + 0x54052c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004044c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040521e
add esp, 0x2c
pop edi
jmp 0x404051
lea eax, [ebp + 8]
lea esi, [esi + 0x54052c]
push 0
push eax
push dword [esi]
call fcn.00404620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4194d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
mov al, byte [0x4cd04e]
push esi
mov esi, ecx
push edi
mov cl, byte [0x4cd043]
xor cl, al
mov al, byte [0x4cd041]
mov byte [0x4cd043], cl
mov cl, al
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp + 8], ecx
fild dword [esp + 8]
fdivr qword [0x4d0a08]
fadd qword [0x4d09a8]
fstp qword [0x4d0a08]
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4195e5
mov dl, byte [0x4cd045]
mov cl, byte [0x4cd04d]
or dl, 2
or al, cl
shr dl, 1
and edx, 0xff
mov byte [0x4cd041], al
mov dword [esp + 8], edx
fild dword [esp + 8]
fdivr qword [0x4cd058]
fadd qword [0x4cb350]
fstp qword [0x4d09a8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x419593
mov edx, dword [0x4d0af4]
push 0x4d07e0
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [0x4d0af4]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [0x4cffc8], eax
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x4cd03c]
mov edi, eax
mov dword [esp + 0x10], 0
lea edx, [ecx*4]
mov ecx, dword [0x4cd038]
or edx, ecx
mov dword [esp + 0xc], edx
fild qword [esp + 0xc]
fstp qword [0x4cd058]
call fcn.00419410
test edi, edi
mov dword [esi], edi
je 0x4195e5
push str.IsThemeActive
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
pop edi
pop esi
add esp, 0xc
ret

Function at 0x461b34
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x8f29980a]
push eax
rcr dword [esi], cl
jmp fcn.00461a9b
mov fs, word [edx + 0x7c]
xor cl, byte [esi - 0x7b]
mov ebx, 0xc74cdb3a
cmp bl, bl
dec esp
invalid
mov ebx, 0xe1697dec
test dl, ah
push ebx
xchg edi, eax
inc edx
cmp byte ds:[eax + ecx*2 + 0x3a], dl
push esp
dec eax
cmp al, byte [eax + 0x44f28318]
js 0x461b05
insb byte es:[edi], dx
dec ebp
add al, byte [edi + ebx*8 - 0x64fed02e]
inc edx
loopne 0x461ad0
cmp ah, dh
imul edx, esi, 0xffffffe8
in eax, 0xda
jmp fcn.00461b5d
Function at 0x4c6181
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd3a8
cmp edx, dword [eax]
je 0x4c61a3
add eax, 8
inc ecx
cmp eax, 0x4cd438
jl 0x4c6194
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd3a8]
jne 0x4c62d1
mov eax, dword [0x4d2dd8]
cmp eax, 1
je 0x4c62ab
test eax, eax
jne 0x4c61d4
cmp dword [0x4cd2d4], 1
je 0x4c62ab
cmp edx, 0xfc
je 0x4c62d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c620b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6b60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6ff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c624e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6ff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb6cc
push edi
call fcn.004c8ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6b60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6b70
lea eax, [ebp - 0xa0]
push 0x4cb6ac
push eax
call fcn.004c6b70
push dword [esi + 0x4cd3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6b70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c8e34
add esp, 0x2c
pop edi
jmp 0x4c62d1
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd3ac]
push 0
push eax
push dword [esi]
call fcn.004c6ff0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x438c95
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
or ebx, eax
inc eax
call fcn.00438cc4
sub eax, 0x629587f9
and ebx, eax
xor dword [esi], edi
sub eax, eax
dec ebx
add esi, 1
sub eax, 1
cmp esi, ecx
jne fcn.00438c95
add eax, eax
ret
Function at 0x402ed9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f4b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402f24
cmp dword [ebp + 0x10], ebx
jne 0x402f52
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ed9
test eax, eax
jne 0x402f36
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402f0b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x402f4b
Function at 0x405735
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42e040], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405759
test al, 0x10
jne 0x40575c
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42e040
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405787
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405af8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42d440
push esi
call fcn.00405f0b
push esi
call fcn.00405aab
mov edi, eax
test edi, edi
jne 0x405b19
xor eax, eax
jmp 0x405b6b
push edi
call fcn.00406147
test byte [0x4317f0], 0x80
je 0x405b32
mov al, byte [edi]
test al, al
je 0x405b15
cmp al, 0x5c
je 0x405b15
sub edi, esi
jmp 0x405b4a
call fcn.0040638d
test eax, eax
je 0x405b44
test byte [eax], 0x10
je 0x405b15
push esi
call fcn.00405a5f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b36
call fcn.00405a18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405bdc
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c4f
test edi, edi
jne 0x405c16
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c49
Function at 0x405c53
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.004063cb
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c7f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dc5
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42e1c8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42e1c8
je 0x405cc3
push 1
push 0
push esi
call fcn.00405bdc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dcb
cmp eax, edi
jg 0x405dcb
mov esi, 0x42dc40
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dcb
cmp eax, edi
jg 0x405dcb
push esi
push ebp
push str._s_s_r_n
push 0x42d840
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405dc5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405dbe
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dbe
cmp edi, dword [esp + 0x18]
jne 0x405dbe
push str._Rename__r_n
push esi
call fcn.00405b70
test eax, eax
jne 0x405dd2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f0b
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42d840
push eax
call fcn.00405bbc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x431870]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9f4
push eax
call fcn.00405b70
test eax, eax
je 0x405d89
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405dfb
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405dee
sub eax, esi
jmp 0x405d8b
Function at 0x405dff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e63
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e52
cmp dword [ebp + 0x14], 1
je 0x405e54
cmp dword [ebp + 0x14], 2
je 0x405e54
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405f2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405f4e
mov ecx, dword [0x430fbc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x431818]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42ff80
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x406121
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x406121
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x40612e
inc ebx
cmp cl, 0xfc
jbe 0x406114
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x4060bf
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405fe2
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x40605a
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x406001
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405dff
jmp 0x406055
cmp eax, 0x26
jne 0x406031
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405dff
cmp byte [edi], 0
jne 0x4060b7
push str.C:Program_Files
push edi
call fcn.00405f0b
jmp 0x406055
cmp eax, 0x25
jne 0x406044
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x406055
cmp eax, 0x24
jne 0x40605a
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x4060b7
cmp dword [0x431864], 0
jne 0x406066
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x4317e4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40609c
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040570a
cmp dword [ebp - 8], 0
jne 0x4060a3
jmp 0x40609f
and byte [edi], 0
test esi, esi
jne 0x406066
cmp byte [edi], 0
je 0x4060b7
cmp dword [ebp + 0xc], 0
je 0x4060b7
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00406147
jmp 0x406105
cmp byte [ebp + 0xf], 0xfd
jne 0x4060f3
cmp esi, 0x1b
jne 0x4060d8
push dword [0x4317e4]
push edi
call fcn.00405e69
jmp 0x4060e9
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405f0b
add esi, 0xffffffeb
cmp esi, 6
jae 0x406105
jmp 0x4060b7
cmp byte [ebp + 0xf], 0xff
jne 0x406105
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405f2d
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42ff80
jmp 0x406121
jne 0x40611e
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x406121
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405f79
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x406143
push eax
push dword [ebp + 8]
call fcn.00405f0b
leave
ret 8