joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408639
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408672
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40866e
lea ebx, [ebx]
cmp esi, eax
jae 0x408672
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408660
cmp esi, eax
jb 0x408678
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408930
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esi]
lea ecx, [esp]
push ecx
push 0x43d378
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push str.DisplayVersion
push ecx
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089a5
mov eax, dword [esp + 8]
cmp eax, 1
je 0x408973
cmp eax, 2
jne 0x40898d
mov eax, dword [esp]
test eax, eax
je 0x408996
test al, 1
jne 0x40898d
mov edx, eax
shr edx, 1
cmp word [edx*2 + 0x43d376], 0
je 0x40899f
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [0x43d378], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x40a200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp byte [0x43db90], 0
push esi
jne 0x40a2bd
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWARESpecLabGOALcity
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a275
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 8]
push ecx
push 0x43db88
lea edx, [esp + 0x14]
push edx
mov eax, 4
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push str.lang
push eax
call esi
mov ecx, dword [esp + 4]
test eax, eax
je 0x40a27c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
lea edx, [esp + 8]
push edx
push 0x43db8c
lea eax, [esp + 0x14]
push eax
push 0
push str.sublang
push ecx
call esi
test eax, eax
je 0x40a2ab
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x43db90], 1
movzx eax, word [0x43db8c]
movzx ecx, word [0x43db88]
shl eax, 0xa
or eax, ecx
pop esi
add esp, 0xc
ret
Function at 0x412a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x412a60
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x412a70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x413030
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x218
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov ebp, ecx
mov eax, dword [ebp]
push edi
mov edi, dword [ebp + 4]
xor esi, esi
push eax
lea ecx, [esp + 0x14]
or edi, 0x2001f
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.004089d0
mov edi, eax
cmp edi, esi
je 0x41308c
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x41307d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push edx
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
jne 0x4130fa
jmp 0x4130c0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00413030
mov edi, eax
cmp edi, esi
jne 0x41306e
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push esi
push esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
push esi
push ecx
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x4130c0
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41310f
push eax
call edi
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x22c]
mov eax, ebp
mov dword [esp + 0x14], esi
call fcn.00413180
mov ebx, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x41312e
push eax
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x218
ret 4
Function at 0x413cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x420], ebx
push 2
push ebx
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
jne 0x413d0e
call fcn.00412350
mov edi, eax
jmp 0x413e15
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x413d2d
call fcn.00412350
jmp 0x413e0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x413d46
call fcn.00412350
jmp 0x413e0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp + 0x10], edi
cmp eax, edi
jae 0x413d64
mov edi, 0x8007000e
jmp 0x413e0e
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, ebx
ja 0x413d79
cmp eax, 0xffffffff
jbe 0x413d83
push 0x80070216
call fcn.00408a80
cmp eax, 0x400
jbe 0x413daf
lea ecx, [ebp - 0x420]
push ecx
call fcn.00412330
jmp 0x413dbb
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x420], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x420]
cmp eax, ebx
jne 0x413dd3
mov edi, 0x8007000e
jmp 0x413e0e
push edi
push eax
mov eax, dword [ebp + 0xc]
push edi
push eax
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x413dee
call fcn.00412350
jmp 0x413e0c
mov edx, dword [ebp - 0x420]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x420]
push eax
lea edx, [ebp - 0x18]
call fcn.00413b40
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x41c]
cmp dword [ebp - 0x420], ecx
je 0x413e30
lea eax, [ebp - 0x420]
call fcn.00412a40
mov edi, edi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4143a0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43a324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4144dd
lea ecx, [ebp - 0x44]
push ecx
push eax
push eax
push edi
call fcn.0041798f
push eax
call fcn.004176c7
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4144dd
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xe]
push edx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 0x30]
push eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp - 0x30]
push eax
push ecx
mov ecx, dword [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00426ed5
add esp, 0x28
neg eax
sbb eax, eax
inc eax
je 0x4144ca
push edi
push ebx
push 1
push esi
call fcn.00417bff
add esp, 0x10
test eax, eax
je 0x4144b6
nop
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push eax
push esi
push edx
call fcn.0042656a
add esp, 0xc
test eax, eax
js 0x4144b6
push edi
push ebx
push 1
push esi
call fcn.00417bff
add esp, 0x10
test eax, eax
jne 0x414490
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call fcn.00426832
add esp, 4
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417c1c
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00417c1c
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41647c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43c140], 0
push esi
push edi
jne 0x4163f2
call fcn.0041635e
test eax, eax
je 0x416437
mov eax, dword [0x43c140]
cmp eax, 1
jne 0x416413
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x416437
jmp 0x416479
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x416479
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41643b
xor eax, eax
jmp 0x416479
mov eax, dword [esi]
push dword [0x43c140]
call edi
mov edi, eax
test edi, edi
je 0x41645d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x416479
lea edi, [esi + 0xff0]
push esi
push dword [0x43c140]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x416463
mov eax, esi
pop edi
pop esi
ret
jmp 0x4163de

Function at 0x417c1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a324]
jne 0x417c26
repz ret
jmp fcn.0041e3d8
Function at 0x42302c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43a324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041d54d
and dword [ebp - 0x14], 0
cmp dword [0x43cf54], 0
mov dword [ebp - 0x18], eax
jne 0x4230df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x423187
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43204c
push ebx
call edi
test eax, eax
je 0x423187
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x43203c
push ebx
mov dword [0x43cf54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43cf58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43cf5c], eax
call edi
push eax
call esi
mov dword [0x43cf64], eax
test eax, eax
je 0x4230df
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43cf60], eax
mov eax, dword [0x43cf60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x423138
cmp dword [0x43cf64], ecx
je 0x423138
push eax
call esi
push dword [0x43cf64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x423138
test ebx, ebx
je 0x423138
call edi
test eax, eax
je 0x42312f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42312f
test byte [ebp - 8], 1
jne 0x423138
or dword [ebp + 0x10], 0x200000
jmp 0x42316b
mov eax, dword [0x43cf58]
cmp eax, dword [ebp - 0x18]
je 0x42316b
push eax
call esi
test eax, eax
je 0x42316b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42316b
mov eax, dword [0x43cf5c]
cmp eax, dword [ebp - 0x18]
je 0x42316b
push eax
call esi
test eax, eax
je 0x42316b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43cf54]
call esi
test eax, eax
je 0x423187
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x423189
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417c1c
leave
ret

Function at 0x425cb1
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [ebp + 8]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x425d31
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43a324]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jge 0x425d64
xor eax, eax
jmp 0x425e65
inc dword [0x43cf74]
cmp dword [0x43cf74], 1
jne 0x425d87
push 0
call fcn.00429e02
xor eax, 0xbb40e64e
push eax
call fcn.00429e53
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.00425cf6
add esp, 4
xor esi, esi
call fcn.00429e65
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.00425c94
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.00425cb1
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x425d96
mov eax, dword [ebp - 0x20]
push edi
call fcn.00425cf6
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.00425c94
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.00425cb1
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
mov byte [ebp + eax - 0x10], bl
cmp esi, 0xa
jl 0x425de3
mov eax, ecx
call fcn.00425c94
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.00425cb1
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
call fcn.00425c94
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.00425cb1
mov eax, dword [ebp - 0x1c]
add esp, 8
xor bl, byte [ebp - 0x18]
mov byte [eax + esi + 1], bl
lea eax, [esi + 2]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417c1c
leave
ret

Function at 0x4264e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x100090], eax
je 0x426542
cmp dword [esi + 0x6c], eax
jbe 0x426542
push ebx
mov dword [ebp - 4], 0xffffff78
sub dword [ebp - 4], esi
push edi
lea ebx, [esi + 0x88]
lea eax, [esi + 0x100094]
call fcn.00425c94
mov edi, dword [esi + 0x1000a0]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
lea ecx, [esi + 0x100094]
call fcn.00425cb1
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x42650a
pop edi
pop ebx
push dword [esi + 0x6c]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, dword [esi + 0x6c]
je 0x426561
or dword [ebp - 8], 0xffffffff
and dword [esi + 0x6c], 0
mov eax, dword [ebp - 8]
leave
ret
Function at 0x42664e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
jne 0x426668
push 0xffffffffffffff9a
pop eax
jmp 0x42682f
cmp dword [ebx + 0x2c], eax
je 0x426660
cmp dword [ebx + 0x80], 8
push esi
push edi
mov dword [ebx + 0x34], eax
jne 0x4266c8
cmp dword [ebx + 0x84], eax
jne 0x4266c8
lea edi, [ebx + 0x30]
cmp dword [ebx + 0x40], 0
jne 0x4266a3
mov esi, ebx
call fcn.004264e0
lea eax, [ebx + 0x88]
mov dword [ebx + 0x40], 0x100000
mov dword [ebx + 0x3c], eax
mov esi, dword [ebx + 0x44]
push 4
push edi
call fcn.004270cd
pop ecx
pop ecx
mov ecx, dword [ebx + 0x44]
sub ecx, esi
add dword [ebx + 0x6c], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x426686
cmp eax, 1
jne 0x4266c8
and dword [ebp - 4], 0
cmp dword [ebx + 0x6c], 0
jbe 0x4266e3
cmp dword [ebp - 4], 0
jne 0x4266e3
mov esi, ebx
call fcn.004264e0
cmp eax, 0xffffffff
jne 0x4266e3
or dword [ebp - 4], eax
cmp dword [ebx + 0x80], 8
jne 0x426706
cmp dword [ebx + 0x84], 0
jne 0x42671e
lea eax, [ebx + 0x30]
push eax
call fcn.00427464
and dword [ebx + 0x68], 0
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x84], 0
jne 0x42671e
mov eax, dword [ebx + 0x10008c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 0xc], eax
mov edi, dword [ebx + 0x1000a4]
add edi, dword [ebx + 0x44]
mov esi, dword [ebx + 0x74]
mov ecx, dword [ebp + 0x10]
push 4
add esi, 0x10
pop edx
mov dword [ebp + 8], edi
call fcn.00425f87
mov esi, dword [ebx + 0x74]
push 4
add esi, 0x14
pop edx
mov ecx, edi
call fcn.00425f87
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x5c], ecx
jne 0x426761
mov esi, dword [ebx + 0x74]
push 2
add esi, 0x24
pop edx
call fcn.00425f87
mov esi, dword [ebx + 0x74]
mov ecx, dword [ebp + 0xc]
push 4
add esi, 0x18
pop edx
call fcn.00425f87
cmp dword [ebp - 4], 0
jne 0x42678b
push dword [ebx + 0x78]
lea edi, [ebx + 0x24]
push dword [ebx + 0x74]
call fcn.00425eb0
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [ebx + 0x74]
call fcn.00416e1d
xor esi, esi
pop ecx
cmp dword [ebp - 4], esi
jne 0x426821
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x70]
push esi
push esi
add eax, 0xe
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x1c
test eax, eax
je 0x4267ca
or dword [ebp - 4], 0xffffffff
jmp 0x426804
push dword [ebx + 0x20]
mov ecx, dword [ebp + 0x10]
push 4
pop esi
mov edi, ebx
call fcn.00425f3e
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x426804
push dword [ebx + 0x20]
mov ecx, dword [ebp + 8]
call fcn.00425f3e
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x426804
push dword [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
call fcn.00425f3e
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cdq
xor esi, esi
push esi
push edx
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x14
test eax, eax
je 0x426821
or dword [ebp - 4], 0xffffffff
inc dword [ebx + 0x1000b0]
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 0x2c], esi
pop esi
pop ebx
leave
ret
Function at 0x426846
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x426864
push 0xffffffffffffff9a
pop eax
jmp 0x4269da
cmp dword [edi + 0x2c], 1
jne 0x426873
push edi
call fcn.00426832
pop ecx
mov esi, eax
cmp dword [ebp + 0xc], ebx
jne 0x42687d
mov dword [ebp + 8], ebx
jmp 0x426889
push dword [ebp + 0xc]
call fcn.00419f60
pop ecx
mov dword [ebp + 8], eax
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0xc]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp esi, ebx
jne 0x4268d0
mov ebx, dword [edi + 0x24]
jmp 0x4268cc
test esi, esi
jne 0x4268c4
mov eax, dword [ebx + 8]
test eax, eax
je 0x4268c4
push eax
lea eax, [ebx + 0x10]
push eax
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, dword [ebx + 8]
je 0x4268c4
or esi, 0xffffffff
mov eax, dword [ebx + 8]
add dword [ebp - 4], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4268a0
mov eax, dword [edi + 0x24]
call fcn.00425e92
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov ecx, 0x6054b50
push 4
pop esi
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
xor ecx, ecx
push 2
pop ebx
mov esi, ebx
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov esi, ebx
xor ecx, ecx
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov ecx, dword [edi + 0x1000b0]
mov esi, ebx
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov ecx, dword [edi + 0x1000b0]
mov esi, ebx
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov ecx, dword [ebp - 4]
push 4
pop esi
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov ecx, dword [ebp - 8]
sub ecx, dword [edi + 0x1000ac]
push 4
pop esi
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
push dword [edi + 0x20]
mov esi, ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00425f3e
mov esi, eax
pop ecx
test esi, esi
jne 0x4269bb
test ebx, ebx
je 0x4269bb
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, ebx
je 0x4269bb
or esi, 0xffffffff
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0x14]
pop ecx
pop ecx
test eax, eax
je 0x4269d1
test esi, esi
jne 0x4269d1
or esi, 0xffffffff
push edi
call fcn.00416e1d
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4277b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov esi, dword [edi + 0x34]
sub esi, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x427839
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004190c0
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4277fa
mov eax, dword [edi + 0x38]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x42781d
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x427891
mov ecx, dword [edi + 0x6c]
add ecx, dword [edi + 0x64]
push esi
add ecx, dword [edi + 0x30]
mov esi, eax
push ecx
call fcn.004274fc
add dword [edi + 0x6c], eax
mov esi, dword [edi + 0x6c]
pop ecx
pop ecx
cmp esi, 3
jb 0x42787d
mov edx, dword [edi + 0x64]
add edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx eax, byte [edx]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp esi, 0x106
jae 0x427891
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4277bb
pop esi
pop ebx
leave
ret