joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420070
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x420231
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwarePKwarePKzip
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x420231
mov eax, dword [esi + 0x16c]
push edi
test eax, eax
jne 0x4200d1
mov edx, dword [esp + 8]
push 2
push 0x46ac48
push 7
push eax
push str.ExcludeFileAdd
push edx
jmp 0x4200f0
push eax
call fcn.0041e930
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x16c]
push eax
push 7
push 0
push str.ExcludeFileAdd
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov eax, dword [esi + 0x170]
test eax, eax
jne 0x420118
mov edx, dword [esp + 8]
push 2
push 0x46ac48
push 7
push eax
push str.ExcludeFileExtract
push edx
jmp 0x420137
push eax
call fcn.0041e930
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x170]
push eax
push 7
push 0
push str.ExcludeFileExtract
push ecx
call edi
mov eax, dword [esi + 0x160]
test eax, eax
jne 0x420159
mov edx, dword [esp + 8]
push 2
push 0x46ac48
push 7
push eax
push str.IncludeFileAdd
push edx
jmp 0x420178
push eax
call fcn.0041e930
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x160]
push eax
push 7
push 0
push str.IncludeFileAdd
push ecx
call edi
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x42019a
mov edx, dword [esp + 8]
push 2
push 0x46ac48
push 7
push eax
push str.IncludeFileExtract
push edx
jmp 0x4201b9
push eax
call fcn.0041e930
add esp, 4
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 0x164]
push eax
push 7
push 0
push str.IncludeFileExtract
push ecx
call edi
mov eax, dword [esp + 8]
mov dl, byte [esi + 0x151]
push 2
push 0x46627c
push 1
push 0
push str.ListChar
push eax
mov byte [0x46627c], dl
call edi
mov edx, dword [esp + 8]
mov cl, byte [esi + 0x150]
push 2
push 0x46627c
push 1
push 0
push str.OptionChar
push edx
mov byte [0x46627c], cl
call edi
mov esi, 0x466138
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push edx
call edi
add esi, 8
cmp esi, 0x466278
jb 0x420206
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 4
Function at 0x421600
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x46ac9c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x42161f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x46ac98], 1
mov byte [0x46ac94], bl
jne 0x421679
mov ecx, dword [0x46c1cc]
test ecx, ecx
je 0x421667
mov esi, dword [0x46c1c8]
sub esi, 4
cmp esi, ecx
jb 0x421667
mov eax, dword [esi]
test eax, eax
je 0x421660
call eax
mov ecx, dword [0x46c1cc]
sub esi, 4
cmp esi, ecx
jae 0x421652
push 0x42c02c
push 0x42c020
call fcn.004216b0
add esp, 8
push 0x42c034
push 0x42c030
call fcn.004216b0
add esp, 8
test ebx, ebx
jne 0x4216a0
push ebp
mov dword [0x46ac9c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x421d50
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x421d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421d69
xor eax, eax
test eax, eax
je 0x421d7a
push eax
call fcn.00425cc0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x421ee0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x421efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421efe
xor eax, eax
test eax, eax
je 0x421f0f
push eax
call fcn.00425cc0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x422050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b8a0
push 0x4268f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x46ac6c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x46ac68], ecx
shl ecx, 8
add ecx, edx
mov dword [0x46ac64], ecx
shr eax, 0x10
mov dword [0x46ac60], eax
call fcn.004267c0
test eax, eax
jne 0x4220ba
push 0x1c
call fcn.00422170
add esp, 4
mov dword [ebp - 4], 0
call fcn.004247b0
call fcn.004267b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46c1c4], eax
call fcn.00426380
mov dword [0x46acb8], eax
test eax, eax
je 0x4220ed
mov eax, dword [0x46c1c4]
test eax, eax
jne 0x4220f7
push 0xffffffffffffffff
call fcn.004215c0
add esp, 4
call fcn.004260d0
call fcn.00425fe0
call fcn.00421590
mov eax, dword [0x46ac7c]
mov dword [0x46ac80], eax
push eax
mov eax, dword [0x46ac74]
push eax
mov ecx, dword [0x46ac70]
push ecx
call fcn.00419470
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.004215c0
jmp 0x422152
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4249b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x46c1c0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x424b5d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x46c0c0]
lea edi, [ecx*4 + 0x46c0c0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x424b5d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x424a1e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x424a2f
push 2
push ebp
push eax
call fcn.004246f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x424b8e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x424ad9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x424a8a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x424a77
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x424a5a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424b7f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x424ad5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x424a56
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x424b4e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x424b22
cmp eax, 5
jne 0x424b0b
mov dword [0x46ac58], eax
mov dword [0x46ac54], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00425cc0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x424b42
cmp byte [ebp], 0x1a
jne 0x424b42
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x46ac54], 0x1c
jmp 0x424b67
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x46ac54], 9
pop edi
pop esi
pop ebp
mov dword [0x46ac58], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x424ad5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424bbf
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x424ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x424ad9
Function at 0x426380
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x46af00]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4263c2
call edi
mov esi, eax
test esi, esi
je 0x4263ac
mov eax, 1
jmp 0x4263bd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4264cf
mov eax, 2
mov dword [0x46af00], eax
cmp eax, 1
jne 0x426462
test esi, esi
jne 0x4263db
call edi
mov esi, eax
test esi, esi
je 0x4264cf
cmp word [esi], 0
mov eax, esi
je 0x4263f5
add eax, 2
cmp word [eax], 0
jne 0x4263e3
add eax, 2
cmp word [eax], 0
jne 0x4263e3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x426454
push edi
call fcn.004221a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x426454
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x426446
push ebx
call fcn.00422250
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4264cf
test ebx, ebx
jne 0x426473
call ebp
mov ebx, eax
test ebx, ebx
je 0x4264cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x42648b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42647b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42647b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004221a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4264ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x426a10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x466da0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x426a34
add eax, 8
inc ebp
cmp eax, 0x466e30
jb 0x426a25
cmp ecx, dword [ebp*8 + 0x466da0]
jne 0x426bdb
mov eax, dword [0x46acc0]
cmp eax, 1
je 0x426b9d
test eax, eax
jne 0x426a60
cmp dword [0x466514], 1
je 0x426b9d
cmp ecx, 0xfc
je 0x426bdb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x426a9b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x426ae4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x42bc88
add ebx, ecx
push ebx
call fcn.00420cf0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42bc68
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x466da4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00429040
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x46c0c0]
test eax, eax
je 0x426bae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x426bb8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x466da4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x428d20
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x428ede
push 0x3d
push edi
call fcn.00429f70
mov esi, eax
add esp, 8
test esi, esi
je 0x428ede
cmp edi, esi
je 0x428ede
mov dl, byte [esi + 1]
mov ecx, dword [0x46ac80]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x46ac7c]
cmp eax, ecx
jne 0x428d77
push eax
call fcn.00428fb0
add esp, 4
mov dword [0x46ac7c], eax
test eax, eax
jne 0x428df2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x428d9e
mov eax, dword [0x46ac84]
test eax, eax
je 0x428d9e
call fcn.00425dd0
test eax, eax
je 0x428ded
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x428daa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004221a0
add esp, 4
mov dword [0x46ac7c], eax
test eax, eax
je 0x428ede
mov dword [eax], 0
mov eax, dword [0x46ac84]
test eax, eax
jne 0x428ded
push 4
call fcn.004221a0
add esp, 4
mov dword [0x46ac84], eax
test eax, eax
je 0x428ede
mov dword [eax], 0
mov eax, dword [0x46ac7c]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00428f30
mov esi, eax
add esp, 8
test esi, esi
jl 0x428eef
cmp dword [ebx], 0
je 0x428eef
test ebp, ebp
je 0x428ee7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00422250
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x428e49
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x428e38
lea eax, [esi*4]
push eax
push ebx
call fcn.00425320
add esp, 8
test eax, eax
je 0x428e63
mov dword [0x46ac7c], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x428ed6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004221a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x428ed6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00422250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x428e67
test ebp, ebp
jne 0x428ed6
test esi, esi
jge 0x428ef9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00425320
add esp, 8
test eax, eax
je 0x428ede
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x46ac7c], eax
jmp 0x428e67
Function at 0x429df0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0042a440
mov eax, dword [0x46c1c0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x429f52
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x46c0c0]
test byte [edx + ecx*8 + 4], 1
je 0x429f52
push 1
push ebp
push ebx
call fcn.004246f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x429f5c
push 2
push ebp
push ebx
call fcn.004246f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x429f5c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x429ef8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0042a3c0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x429e9f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004249b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x429ebb
sub esi, eax
test esi, esi
jle 0x429ed1
jmp 0x429e90
cmp dword [0x46ac58], 5
jne 0x429ece
mov dword [0x46ac54], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0042a3c0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004246f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x429f39
push 0
push ecx
push ebx
call fcn.004246f0
add esp, 0xc
push ebx
call fcn.00427c90
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x429f39
mov dword [0x46ac54], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x46ac58], eax
push 0
push edi
push ebx
call fcn.004246f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x46ac54], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x42a890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a8b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425cc0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x42a8d6
test byte [esp + 8], 2
je 0x42a8d6
mov dword [0x46ac54], 0xd
mov dword [0x46ac58], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
pushal
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x4f1c00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x4f1c3a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5580c8]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4f1c18
pop esi
ret

Function at 0x4fb55c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jne 0x4fb58b
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
inc eax
imul eax, eax, 3
jmp 0x4fb60e
push ebx
xor eax, eax
cmp ecx, edi
push esi
mov dword [ebp + 8], edi
jle 0x4fb60c
xor esi, esi
xor edx, edx
mov ecx, dword [ebp - 4]
cmp dword [ebp + 8], ecx
jge 0x4fb5f9
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
movsx ecx, byte [ebx + ecx]
inc dword [ebp + 8]
cmp ecx, 0xd
je 0x4fb5f4
cmp ecx, 0xa
je 0x4fb5f4
shl edx, 6
cmp ecx, 0x60
jle 0x4fb5c6
add ecx, 0xffffffb9
jmp 0x4fb5e0
cmp ecx, 0x40
jle 0x4fb5d0
add ecx, 0xffffffbf
jmp 0x4fb5e0
cmp ecx, 0x3d
jne 0x4fb5d8
inc edi
jmp 0x4fb5f3
cmp ecx, 0x2f
jle 0x4fb5e4
add ecx, 4
or edx, ecx
jmp 0x4fb5f3
jne 0x4fb5eb
or edx, 0x3f
jmp 0x4fb5f3
cmp ecx, 0x2b
jne 0x4fb5f3
or edx, 0x3e
inc esi
cmp esi, 4
jne 0x4fb59a
cmp esi, 4
jne 0x4fb635
lea ecx, [eax + 3]
mov esi, ecx
sub esi, edi
cmp esi, dword [ebp + 0x10]
jle 0x4fb62a
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
dec ecx
test edi, edi
je 0x4fb621
mov esi, eax
sub esi, edi
add esi, 3
cmp ecx, esi
jge 0x4fb627
mov esi, dword [ebp + 0xc]
mov byte [ecx + esi], dl
shr edx, 8
cmp ecx, eax
jne 0x4fb611
push 3
pop ecx
sub ecx, edi
add eax, ecx
mov ecx, dword [ebp - 4]
cmp dword [ebp + 8], ecx
jl 0x4fb596
jmp 0x4fb60c
Function at 0x4fbd37
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x4fee05
call 0x5cbb32
mov ecx, dword [ebp + 0x10]
mov eax, ecx
cdq
push 3
pop esi
idiv esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea ecx, [eax + ecx + 3]
mov eax, ecx
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
lea esi, [ecx + eax*2 + 4]
mov ecx, dword [ebp + 8]
call fcn.004f3995
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
call fcn.004f28c9
push 2
pop esi
push esi
mov edi, eax
push 0x515248
push edi
call 0x5cd9f7
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
jle 0x4fbe67
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebx + eax]
inc ebx
shl ecx, 8
cmp ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
jge 0x4fbdc5
movzx edx, byte [ebx + eax]
or ecx, edx
inc ebx
mov dword [ebp - 0x14], ebx
jmp 0x4fbdc8
inc dword [ebp - 0x10]
shl ecx, 8
cmp ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
jge 0x4fbde2
movzx eax, byte [ebx + eax]
or ecx, eax
inc ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], ebx
jmp 0x4fbde5
inc dword [ebp - 0x10]
push 3
pop eax
cmp dword [ebp - 0x10], eax
jg 0x4fbe1f
push 4
pop edx
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x12
sub eax, edx
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
sub dword [ebp - 0x1c], 6
shr ebx, cl
and ebx, 0x3f
mov cl, byte [ebx + 0x515ab0]
mov byte [esi + edi], cl
inc esi
dec edx
jne 0x4fbdfc
test eax, eax
mov ebx, dword [ebp - 0x14]
jl 0x4fbe35
inc eax
push eax
lea ecx, [esi + edi]
push 0x3d
push ecx
mov dword [ebp - 0x20], eax
call 0x5cd120
add esp, 0xc
add esi, dword [ebp - 0x20]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x18], 0x40
je 0x4fbe45
cmp dword [ebp - 0x10], 0
je 0x4fbe5e
push 2
lea eax, [esi + edi]
push 0x515248
push eax
call 0x5cd9f7
add esp, 0xc
inc esi
inc esi
and dword [ebp - 0x18], 0
cmp ebx, dword [ebp + 0x10]
jl 0x4fbda6
mov ecx, dword [ebp + 8]
push esi
call fcn.004f5334
mov eax, dword [ebp + 8]
call 0x5cbc0a
ret
Function at 0x4ff8e7
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret