joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401544
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x4015fd
cmp dword [ebp + 0xc], esi
je 0x4015fd
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.00403d40
push dword [ebp + 8]
mov dword [ebp - 0x54], edi
call fcn.00403cc0
push dword [ebp + 0xc]
mov edi, eax
call fcn.00403cc0
lea eax, [edi + eax + 2]
push eax
call fcn.00403c40
mov edi, eax
add esp, 0x18
cmp edi, esi
jne 0x40159a
push 2
jmp 0x4015ff
push ebx
push dword [ebp + 8]
push edi
call fcn.00403b50
push 0x40a0d8
push edi
call fcn.00403b60
push dword [ebp + 0xc]
push edi
call fcn.00403b60
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
mov ebx, eax
call fcn.00403b1e
cmp ebx, esi
pop ecx
je 0x4015f0
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4015f8
push 0x64
call fcn.00403494
pop ecx
mov eax, ebx
pop ebx
jmp 0x401605
push 1
call fcn.00403494
pop ecx
pop edi
pop esi
leave
ret 8

Function at 0x4016f1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, ecx
push edi
push 0
lea eax, [esi + 0xbb8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 6]
push eax
mov edi, 0x104
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
lea eax, [esi + 0x43c]
push eax
push str._s__02u._02u._04u__02u._02u.vdc3
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.00403dea
lea eax, [ebp - 0x114]
push edi
add esi, 0xcbc
push eax
push esi
call fcn.004038f0
add esp, 0x30
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40176c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
lea eax, [ebp - 0x208]
push esi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov byte [ebp - 0x208], bl
mov byte [ebp - 0x104], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4017a7
push 0x66
call fcn.00403494
pop ecx
jmp 0x4017e7
lea eax, [ebp - 0x104]
push eax
push ebx
lea eax, [ebp - 0x208]
push 0x40a114
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4017e7
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.004011b0
add esp, 0x14
test eax, eax
jne 0x4017eb
xor eax, eax
jmp 0x401865
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.004024c8
test eax, eax
jne 0x401855
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push ebx
push ebx
push dword [ebp + 0x10]
push eax
call fcn.004011b0
add esp, 0x14
test eax, eax
je 0x401855
cmp dword [ebp + 0x18], ebx
je 0x401855
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40184f
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x401848
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
pop esi
pop ebx
leave
ret 0x14
Function at 0x401a24
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0xfc8]
push eax
push 0
push str.Number
push str.Products
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
mov dword [ebp - 8], eax
pop ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
jb 0x401b7e
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x40adc0
push dword [ebp - 4]
and byte [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push str.P_lu
push eax
call fcn.00403d98
add esp, 0xc
lea eax, [ebx + 0xfc8]
push eax
lea eax, [ebp - 0x5c]
push 0x40
push eax
push edi
lea eax, [ebp - 0x18]
push str.Publisher
push eax
call esi
lea eax, [ebx + 0x490]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403e40
pop ecx
test eax, eax
pop ecx
jne 0x401b6f
lea eax, [ebx + 0xfc8]
push eax
lea eax, [ebp - 0x5c]
push 0x41
push eax
push edi
lea eax, [ebp - 0x18]
push str.Name
push eax
call esi
lea eax, [ebx + 0x4d1]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403e40
pop ecx
test eax, eax
pop ecx
jne 0x401b6f
lea eax, [ebx + 0xfc8]
push eax
lea eax, [ebp - 0x5c]
push 0x41
push eax
push edi
lea eax, [ebp - 0x18]
push str.Version
push eax
call esi
lea eax, [ebx + 0x512]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403e40
pop ecx
test eax, eax
pop ecx
jne 0x401b6f
lea eax, [ebx + 0xfc8]
push eax
lea eax, [ebp - 0x5c]
push 0x41
push eax
push edi
lea eax, [ebp - 0x18]
push str.Merchant
push eax
call esi
lea eax, [ebx + 0x523]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403e40
pop ecx
test eax, eax
pop ecx
jne 0x401b6f
lea eax, [ebx + 0xfc8]
push eax
lea eax, [ebp - 0x5c]
push 0x41
push eax
push edi
lea eax, [ebp - 0x18]
push str.ROID
push eax
call esi
lea eax, [ebx + 0x548]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403e40
pop ecx
test eax, eax
pop ecx
je 0x401b85
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x401a64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
jmp 0x401b80
Function at 0x401b8a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov esi, ecx
push str.P_lu
push eax
call fcn.00403d98
add esp, 0xc
lea eax, [esi + 0xfc8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp + 8], eax
push eax
mov edi, 0x104
lea eax, [esi + 0xcbc]
push edi
push eax
push 0x40adc0
lea eax, [ebp - 0x10]
push str.VDC_Path
push eax
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push str.Installs
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
inc eax
push eax
lea eax, [ebp - 0x3c]
push 0x40a1c8
push eax
call fcn.00403d98
add esp, 0xc
lea eax, [ebp - 0x3c]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push str.Installs
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [esi + 0x4d1]
push eax
push str._s__02u._02u._04u__02u._02u.vlf3
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.00403dea
lea ecx, [ebp - 0x140]
lea eax, [esi + 0xec4]
push edi
push ecx
push eax
call fcn.004038f0
add esp, 0x30
lea eax, [esi + 0xec4]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push str.ZERT_File
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push 0x1a
push eax
push 0x40adc0
lea eax, [ebp - 0x10]
push str.PBOB_Type
push eax
call ebx
cmp dword [ebp + 0xc], 0
je 0x401d33
lea eax, [ebp - 0x3c]
push str.ZipLock
push eax
call fcn.00408410
pop ecx
test eax, eax
pop ecx
jne 0x401ce1
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [eax], 1
je 0x401d33
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push str.HVDM
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
jmp 0x401d33
lea eax, [ebp - 0x3c]
push 0x40a174
push eax
call fcn.00408410
pop ecx
test eax, eax
mov eax, dword [ebp + 0xc]
pop ecx
jne 0x401d30
push dword [ebp + 8]
mov dword [eax], 2
lea eax, [esi + 0xab4]
push edi
push eax
push 0x40adc0
lea eax, [ebp - 0x10]
push str.VBOXED_File
push eax
call ebx
push dword [ebp + 0x18]
add esi, 0x490
push esi
push dword [ebp + 0x14]
call fcn.00403a20
add esp, 0xc
jmp 0x401d33
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x401d3d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov esi, ecx
push str.P_lu
push eax
call fcn.00403d98
add esp, 0xc
lea eax, [esi + 0xfc8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp + 8], eax
push eax
lea eax, [esi + 0xcbc]
push 0x104
mov ebx, 0x40adc0
push eax
push ebx
lea eax, [ebp - 0x10]
push str.VDC_Path
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push str.Installs
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
inc eax
push eax
lea eax, [ebp - 0x2c]
push 0x40a1c8
push eax
call fcn.00403d98
add esp, 0xc
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push str.Installs
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp + 8]
lea eax, [esi + 0xec4]
push eax
lea eax, [ebp - 0x10]
push str.ZERT_File
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0x1a
push eax
push ebx
lea eax, [ebp - 0x10]
push str.PBOB_Type
push eax
call edi
cmp dword [ebp + 0xc], 0
je 0x401e8c
lea eax, [ebp - 0x2c]
push str.ZipLock
push eax
call fcn.00408410
pop ecx
test eax, eax
pop ecx
jne 0x401e3a
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [eax], 1
je 0x401e8c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push str.HVDM
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
jmp 0x401e8c
lea eax, [ebp - 0x2c]
push 0x40a174
push eax
call fcn.00408410
pop ecx
test eax, eax
mov eax, dword [ebp + 0xc]
pop ecx
jne 0x401e89
push dword [ebp + 8]
mov dword [eax], 2
lea eax, [esi + 0xab4]
push 0x104
push eax
push ebx
lea eax, [ebp - 0x10]
push str.VBOXED_File
push eax
call edi
push dword [ebp + 0x18]
add esi, 0x490
push esi
push dword [ebp + 0x14]
call fcn.00403a20
add esp, 0xc
jmp 0x401e8c
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x402519
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40259d
push esi
call fcn.00403c40
mov edi, eax
pop ecx
test edi, edi
jne 0x40254a
push 2
call fcn.00403494
pop ecx
jmp 0x40259d
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40255f
xor esi, esi
jmp 0x402594
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x40a394
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40255b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x402585
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402591
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push 1
pop esi
push edi
call fcn.00403b1e
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x402b5a
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x40874b
call fcn.004038d0
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x128]
call fcn.004025a3
xor edi, edi
lea ecx, [ebp - 0x128]
push edi
push esi
mov dword [ebp - 4], edi
mov dword [esi + 0x598], edi
call fcn.004025f0
test eax, eax
jne 0x402ba8
push str.test_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor esi, esi
jmp 0x402d45
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x402bbc
push 0x12c
jmp 0x402d3d
cmp eax, 3
jne 0x402be5
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x47c]
push eax
call fcn.00402d65
mov dword [esi + 0x598], 5
push 1
pop esi
jmp 0x402d45
push 4
pop edi
cmp eax, edi
jne 0x402c06
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x360]
push eax
call fcn.00402d65
mov dword [esi + 0x598], edi
jmp 0x402bdd
push 1
pop ebx
cmp eax, ebx
jne 0x402d38
lea eax, [ebp - 0x128]
lea ecx, [esi + 0xc]
push eax
call fcn.00402d65
mov edi, dword [esi + 0x18]
lea ecx, [esi + 0x128]
push edi
push esi
call fcn.004025f0
test eax, eax
jne 0x402c3e
push 0x12d
jmp 0x402d3d
cmp dword [esi + 0x12c], ebx
je 0x402c50
push 0x12e
jmp 0x402d3d
mov eax, dword [esi + 0x134]
lea ecx, [ebp - 0x128]
add edi, eax
push edi
push esi
call fcn.004025f0
test eax, eax
jne 0x402c73
push 0x12f
jmp 0x402d3d
cmp dword [ebp - 0x124], 3
jne 0x402c9f
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x47c]
push eax
call fcn.00402d65
mov dword [esi + 0x598], 2
mov esi, ebx
jmp 0x402d45
cmp dword [ebp - 0x124], ebx
je 0x402cb1
push 0x132
jmp 0x402d3d
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x244]
push eax
call fcn.00402d65
add edi, dword [esi + 0x250]
lea ecx, [ebp - 0x128]
push edi
push esi
call fcn.004025f0
test eax, eax
jne 0x402ce6
mov dword [esi + 0x598], 6
jmp 0x402c98
push 3
pop edi
cmp dword [ebp - 0x124], edi
jne 0x402d0b
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x47c]
push eax
call fcn.00402d65
mov dword [esi + 0x598], edi
jmp 0x402c98
cmp dword [ebp - 0x124], 4
jne 0x402d31
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x360]
push eax
call fcn.00402d65
mov dword [esi + 0x598], ebx
jmp 0x402c98
push 0x133
jmp 0x402d3d
push 0x134
call fcn.00403494
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.004025e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x402f14
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.00403cc0
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x402f4a
push 0x1f8
call fcn.00403494
pop ecx
jmp 0x402f4d
push 1
pop eax
ret 8

Function at 0x402f50
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402f7a
push 0x1f9
call fcn.00403494
pop ecx
jmp 0x402f7d
push 1
pop eax
ret 0xc
Function at 0x402f80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push edi
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ff6
push 1
pop eax
cmp dword [ebp + 0x10], eax
jne 0x402fb9
and byte [edi + esi - 1], 0
jmp 0x403003
cmp dword [ebp + 0x10], 2
jne 0x402ff6
push ebx
push esi
call fcn.00403c40
pop ecx
lea ebx, [esi - 1]
push ebx
push eax
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004042f8
push dword [ebp + 0xc]
and byte [edi + esi - 1], 0
call fcn.00403b1e
add esp, 0x10
push 1
pop eax
pop ebx
jmp 0x403003
push 0x1fb
call fcn.00403494
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403368
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26d4
call fcn.004038a0
push ebx
push esi
lea ecx, [ebp - 0x26d4]
call fcn.004012e3
mov ebx, dword [ebp + 8]
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x104]
push str.Vbox_
push eax
call fcn.004038f0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x26d4]
push eax
push dword [ebp + 0x10]
call fcn.00401322
test eax, eax
jne 0x403481
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, 0x400
lea eax, [ebp - 0xa08]
push edi
push eax
push 0x3e9
push ebx
call esi
lea eax, [ebp - 0xe08]
push edi
push eax
push 0x3ea
push ebx
call esi
lea eax, [ebp - 0x608]
push edi
push eax
call fcn.004034a0
push eax
push ebx
call esi
test eax, eax
jne 0x403439
lea eax, [ebp - 0x608]
push edi
push eax
push 0x3eb
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004034a0
push eax
lea eax, [ebp - 0x608]
push eax
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0x1608]
push 0x800
push eax
call fcn.00403dea
add esp, 0x18
lea eax, [ebp - 0xe08]
push 0x10
push eax
lea eax, [ebp - 0x1608]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
lea ecx, [ebp - 0x26d4]
call fcn.00401314
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406e81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a800
cmp edx, dword [eax]
je 0x406ea3
add eax, 8
inc ecx
cmp eax, 0x40a890
jl 0x406e94
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a800]
jne 0x406fd1
mov eax, dword [0x40ade8]
cmp eax, 1
je 0x406fab
test eax, eax
jne 0x406ed4
cmp dword [0x40a434], 1
je 0x406fab
cmp edx, 0xfc
je 0x406fd1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406f0b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403b50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403cc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406f4e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403cc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409538
push edi
call fcn.00403a20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403b50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403b60
lea eax, [ebp - 0xa0]
push 0x409518
push eax
call fcn.00403b60
push dword [esi + 0x40a804]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403b60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407c6f
add esp, 0x2c
pop edi
jmp 0x406fd1
lea eax, [ebp + 8]
lea esi, [esi + 0x40a804]
push 0
push eax
push dword [esi]
call fcn.00403cc0
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 0xa2260
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0xa229a
mov edx, dword [esp + 0x10]
mov edi, 0x1505
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
test ebx, ebx
je 0xa22a1
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp ecx, esi
jne 0xa2280
jmp 0xa22a3
mov eax, 0x1505
jmp 0xa22a3
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0xa2990
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0xa2b56
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test ebp, ebp
je 0xa2b4f
mov edx, 0x5e6ea9af
mov eax, ebp
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
sub edx, eax
jmp 0xa2a33
mov edx, dword [esp]
mov eax, edx
sub eax, dword [esp + 4]
add ebx, eax
mov ebp, edx
not ebp
mov esi, dword [esp + 0xc]
and ebp, esi
not esi
mov eax, ecx
mov edx, 0x80078071
mul edx
and esi, dword [esp]
shr edx, 0xf
imul eax, edx, 0xfff1
mov dword [esp], eax
mov eax, edi
mov edx, 0x80078071
mul edx
sub ecx, dword [esp]
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov edx, 0x15b0
sub ebp, esi
je 0xa2b4f
xor eax, eax
cmp edx, 8
mov dword [esp], edx
jb 0xa2ab4
and edx, 0x1ff8
mov dword [esp + 4], edx
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
add eax, 8
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 7]
add edi, esi
mov esi, ecx
xor esi, edi
and ecx, edi
lea ecx, [esi + ecx*2]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0xa2a50
add ebx, eax
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ebp
mov esi, eax
sub esi, edx
jae 0xa29eb
mov ebp, edx
and ebp, 3
mov dword [esp + 4], eax
je 0xa2b02
mov dword [esp + 8], esi
neg ebp
xor eax, eax
mov edx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec eax
cmp ebp, eax
jne 0xa2ae0
mov ebp, dword [esp + 4]
sub ebp, eax
mov esi, dword [esp + 8]
cmp esi, 0xfffffffc
ja 0xa29e0
jmp 0xa2b0f
mov ebp, eax
mov edx, ebx
cmp esi, 0xfffffffc
ja 0xa29e0
mov eax, dword [esp]
sub eax, ebp
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + ebp]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + ebp + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 3]
add edi, esi
add ecx, edi
add ebp, 4
cmp eax, ebp
jne 0xa2b20
jmp 0xa29e0
shl ecx, 0x10
or ecx, edi
jmp 0xa2b5b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xa2b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0xa2bc8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0xa2bca
not eax
xor esi, esi
nop
nop
nop
nop
movzx ebx, byte [ecx + esi]
mov edi, eax
shr edi, 4
xor eax, ebx
and eax, 0xf
xor edi, dword [eax*4 + 0xdf80c]
mov eax, edi
shr eax, 4
shr ebx, 4
mov ebp, ebx
and ebp, edi
and edi, 0xf
or edi, ebx
xor edi, ebp
xor eax, dword [edi*4 + 0xdf80c]
inc esi
cmp edx, esi
jne 0xa2b90
not eax
jmp 0xa2bca
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret