joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4196d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, 0x208
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 1
call fcn.00472470
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.UninstallString
push str.Software360ChromeUpdateClientState27D39816_7A3D_406c_9ABC_97FB55674016
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x419761
push str.......360chrome.exe
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419761
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00412b70
pop ecx
pop ecx
test eax, eax
je 0x419761
xor eax, eax
inc eax
jmp 0x419763
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.00471830
add ebp, 0x194
leave
ret

Function at 0x419778
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00472470
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00472470
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00418fd1
add esp, 0x20
pop esi
test eax, eax
je 0x41980f
push str.safemon360tray.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x41980f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41980f
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00412b70
pop ecx
pop ecx
test eax, eax
je 0x41980f
xor eax, eax
inc eax
jmp 0x419811
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471830
leave
ret

Function at 0x41ae1e
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
mov edx, dword [esi + 0x10]
test edx, edx
je 0x41ae4b
and dword [ebp - 0x1c], 0
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
pop edi
mov esi, dword [esi + 0x14]
test esi, esi
je 0x41ae59
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
leave
ret
Function at 0x41bbf4
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4a81c6
call fcn.00471d54
mov esi, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
cmp ecx, edi
je 0x41bc55
push esi
call fcn.0041adbb
lea ebx, [esi + 0xc]
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
call fcn.0041bb8f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi], edi
jne 0x41bc4e
push edi
push edi
push esi
push 0x41bbe2
push edi
push edi
call fcn.004776c3
add esp, 0x18
mov dword [esi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00471e2c
ret 4

Function at 0x41bda6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x18
push esi
push edi
mov esi, ecx
jne 0x41be07
cmp dword [ebp + 0xc], 0
je 0x41be07
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41bde7
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x41bde7
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41be07
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 0x18
call fcn.0042b0ca
push 0
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
jmp 0x41be17
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042b0ca
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41cda5
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
and byte [esi + 0x14], 9
mov al, byte [esi + 0x14]
test al, 1
je 0x41cde9
test al, 8
jne 0x41cde9
push 0xfffffffffffffff0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp dword [esp + 0xc], 0
mov ecx, 0x10000000
je 0x41cdd1
or eax, ecx
test ecx, eax
je 0x41cde9
or byte [esi + 0x14], 4
mov cl, byte [esi + 0x14]
test eax, 0x21000000
jne 0x41cde9
or cl, 2
mov byte [esi + 0x14], cl
test byte [esi + 0x14], 2
je 0x41ce07
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 8]
mov ecx, esi
call fcn.0041ca73
jmp 0x41ce12
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 8

Function at 0x41de4b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x41de65
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0xc]
push eax
push 0xb
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x41de7f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x41de90
push 0xd
pop eax
jmp 0x41debd
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41de93
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x41e02d
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x3c8]
sub esp, 0x448
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x3c4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x41e047
push ebx
push ebx
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
cmp eax, ecx
jbe 0x41e05c
sub eax, ecx
mov dword [ebp - 0x7c], eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x41e196
push 0x228
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00472470
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41e18d
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x68], eax
je 0x41e178
push dword [ebp - 0x68]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x41e178
xor eax, eax
push 0x206
mov word [ebp + 0x1bc], ax
lea eax, [ebp + 0x1be]
push ebx
push eax
call fcn.00472470
add esp, 0xc
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp + 0x1bc]
push ecx
push ebx
push edi
mov dword [ebp - 0x80], 0x104
call eax
test eax, eax
jne 0x41e12c
push 0x104
lea eax, [ebp + 0x1bc]
push eax
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41e158
mov eax, dword [esi + 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x1bc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41e158
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xc]
add dword [ebp - 0x78], 2
cmp ecx, ebx
je 0x41e171
push dword [ebp - 0x7c]
push dword [esi + 4]
push dword [ebp - 0x78]
call fcn.004204f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41e09e
pop edi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x3c4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00471830
add ebp, 0x3c8
leave
ret
Function at 0x420200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
push edi
push eax
xor esi, esi
push ecx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x420286
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x420285
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x420285
push esi
push esi
push 0x80
push 2
push esi
push 0x40000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.0041dee1
cmp dword [ebp - 4], esi
je 0x420285
push esi
push ebx
push edi
lea ecx, [ebp - 4]
call fcn.00420174
test eax, eax
jne 0x42027c
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x42031c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x14
mov eax, 0x4a8642
call fcn.00471d54
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0040c756
pop ecx
push eax
push 0x4abc54
push 1
push esi
push 0x4b17ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, esi
jl 0x42047a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [edi + 4]
mov eax, dword [esi]
push eax
push ecx
call dword [edx + 0x50]
mov ebx, eax
test ebx, ebx
jl 0x42047a
push esi
lea ecx, [ebp - 0x18]
call fcn.0040b6c4
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041e1c9
xor esi, esi
cmp eax, esi
jle 0x4203c5
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.004167ec
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004169a7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040b453
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], esi
jle 0x4203d7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x4b1c9c
push eax
mov byte [ebp - 4], 3
call dword [ecx]
mov ebx, eax
cmp ebx, esi
jl 0x42045e
push edi
lea ecx, [ebp - 0x14]
call fcn.0040b6c4
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0041e1c9
cmp eax, esi
jle 0x420443
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004167ec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004169a7
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.0040b453
push dword [ebp - 0x14]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [edi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.0040b453
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x42046f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040b453
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x42048b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
call fcn.00471e2c
ret

Function at 0x4212b7
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov esi, ecx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x18], eax
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x4212a5
push ebx
push ebx
call fcn.004776c3
mov dword [esi + 0x14], eax
mov esi, dword [esi + 0x18]
add esp, 0x18
cmp esi, ebx
je 0x42130a
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
ret
Function at 0x421e26
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x421e31
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x421eec
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4af418]
inc edx
sub edi, 8
dec esi
jne 0x421e51
pop ebx
test edi, edi
je 0x421f05
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4af418]
inc edx
dec edi
jne 0x421ef0
pop edi
not eax
pop esi
ret

Function at 0x4223b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4223e7
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4223e2
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42240f
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4223f8
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004720c0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x424773
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4247f0
cmp dword [ebx + 4], 0xffffffff
jne 0x4247f0
push esi
push edi
lea edi, [ebx + 0x138]
push edi
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4ab9cc
push esi
push edi
call fcn.00424703
cmp dword [ebp + 0x10], 1
pop edi
pop esi
jne 0x4247c2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4247c2
mov eax, 0x2000000
jmp 0x4247f5
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004221c9
add esp, 0x10
test eax, eax
jne 0x4247e0
mov eax, dword [ebp + 0x10]
jmp 0x4247f5
push eax
call fcn.004241f6
mov dword [ebx], eax
mov eax, dword [0x4d7810]
pop ecx
jmp 0x4247f5
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x424bfa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x424cac
movzx ecx, word [esi]
test cx, cx
je 0x424cac
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x424c3c
cmp cx, 0x5c
jne 0x424c3e
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x424c30
push edi
cmp eax, esi
je 0x424c7b
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047814e
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00424bfa
add esp, 0x14
push ebx
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.004246d0
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.00424703
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00471830
leave
ret
Function at 0x42697e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x426989
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x426a44
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4afef8]
inc edx
sub edi, 8
dec esi
jne 0x4269a9
pop ebx
test edi, edi
je 0x426a5d
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4afef8]
inc edx
dec edi
jne 0x426a48
pop edi
not eax
pop esi
ret

Function at 0x426c8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x426d48
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x426d2e
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x426cbe
mov dword [ebp - 4], ecx
push edi
push dword [ebp - 4]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x426cde
mov eax, 0x300
jmp 0x426d71
push dword [ebp - 4]
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x426cfe
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426cd4
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.004720c0
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
push eax
call fcn.004720c0
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x426d71
mov eax, dword [esi]
cmp eax, edi
je 0x426d68
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x426d71
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x426dcb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
push edi
test ecx, ecx
je 0x426e15
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x426e51
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x426ded
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004720c0
add dword [esi + 0x6c], edi
add dword [esi + 0x54], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x58]
call fcn.0042697e
add esp, 0x18
mov dword [esi + 0x58], eax
mov eax, edi
jmp 0x426e53
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x426e4a
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426e51
mov edi, dword [ebp + 0xc]
add dword [esi + 0x54], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x58]
call fcn.0042697e
add esp, 0xc
jmp 0x426e0e
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x427775
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push 7
pop ecx
lea eax, [edi - 1]
cmp ecx, eax
sbb al, al
inc al
push str.bad_pack_level
push eax
push esi
call fcn.004255c5
xor ebx, ebx
lea ecx, [esi + 0x6af70]
add esp, 0xc
lea eax, [esi + 0x6af78]
mov dword [eax], ebx
cmp dword [ecx], ebx
jne 0x4277bb
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push ebx
push eax
mov dword [esi + 0x6af6c], ebx
call fcn.00472470
mov eax, edi
shl eax, 3
movzx ecx, word [eax + 0x4afeaa]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x4afea8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x4afeac]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x4afeae]
add esp, 0xc
cmp edi, 2
mov dword [esi + 0x6af94], eax
jg 0x42781e
mov eax, dword [esp + 0x18]
or word [eax], 4
jmp 0x42782b
cmp edi, 8
jl 0x42782b
mov eax, dword [esp + 0x18]
or word [eax], 2
push 0x10000
lea edi, [esi + 0x1af70]
push edi
push esi
mov dword [esi + 0x6af84], ebx
mov dword [esi + 0x6af74], ebx
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, ebx
je 0x427895
cmp eax, 0xffffffff
je 0x427895
mov dword [esi + 0x6af8c], ebx
cmp eax, 0x106
jae 0x42786d
push esi
call fcn.00426089
pop ecx
mov dword [esi + 0x6af7c], ebx
movzx eax, byte [edi + ebx]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc ebx
mov dword [esi + 0x6af7c], eax
cmp ebx, 2
jb 0x427873
jmp 0x4278a5
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebx
pop edi
pop esi
pop ebx
ret