joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010a26
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x10016210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x234]
call fcn.10005740
mov dword [ebp - 4], 1
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.10008320
add esp, 0xc
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x218], 0
je 0x100050d6
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x234]
call fcn.10005920
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005830
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.100058c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008311
mov esp, ebp
pop ebp
ret 8
Function at 0x10005130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010a56
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10016210]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
cmp dword [0x10017160], 0
jne 0x1000516f
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x10017160], eax
push 0
push 0x2731
mov eax, dword [0x10017160]
push eax
call dword [sym.imp.USER32.dll_RemoveMenu]
push 0
push 0x2349
mov ecx, dword [0x10017160]
push ecx
call dword [sym.imp.USER32.dll_RemoveMenu]
push 0
push 0x2348
mov edx, dword [0x10017160]
push edx
call dword [sym.imp.USER32.dll_RemoveMenu]
push 5
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.10005020
mov dword [ebp - 4], 0
push str.SuixinSearchStartInfo.ini
lea ecx, [ebp - 0x30]
call fcn.10005940
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.10005960
push eax
push 0
push str.showabout
push 0x10011784
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10005210
push 0x10011790
push 0x2731
push 0x10
mov ecx, dword [0x10017160]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [ebp - 0x30]
call fcn.10005960
push eax
push 0
push str.showfeedback
push 0x100117ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000524d
push 0x100117b8
push 0x2349
push 0x10
mov edx, dword [0x10017160]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [ebp - 0x30]
call fcn.10005960
push eax
push 1
push str.showexit
push str.StartInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10005289
push 0x100117dc
push 0x2348
push 0x10
mov eax, dword [0x10017160]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100058c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10008311
mov esp, ebp
pop ebp
ret
Function at 0x100052c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x10016210]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp - 0xe4]
call fcn.10003760
mov dword [ebp - 4], 0x64
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jne 0x10005302
mov dword [ebp - 4], 0x50
push 0x64
push 0
lea eax, [ebp - 0xe0]
push eax
call fcn.10008320
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0xd8], 8
push 0x64
push 0
lea edx, [ebp - 0x70]
push edx
call fcn.10008320
add esp, 0xc
mov dword [ebp - 0x70], 0x64
mov dword [ebp - 0x6c], 0x801
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x13c]
push edx
push 0x41d
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x1000538e
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x68]
mov dword [edx + 0x158], eax
lea ecx, [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x13c]
push eax
push 0x406
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10008311
mov esp, ebp
pop ebp
ret

Function at 0x100053e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10016210]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x74]
call fcn.10003760
mov dword [ebp - 4], 0x64
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jne 0x10005419
mov dword [ebp - 4], 0x50
push 0x64
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.10008320
add esp, 0xc
mov dword [ebp - 0x6c], 1
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x158]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x13c]
push edx
push 0x406
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10008311
mov esp, ebp
pop ebp
ret
Function at 0x10005480
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x10016210]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x130], 0x128
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x100054c6
xor eax, eax
jmp 0x10005537
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x100054ee
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10005537
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.100105e9
add esp, 8
test eax, eax
jne 0x10005510
mov edx, dword [ebp - 0x128]
mov dword [ebp - 4], edx
jmp 0x10005527
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100054ee
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10008311
mov esp, ebp
pop ebp
ret 4

Function at 0x10008311
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016210]
jne 0x1000831b
repz ret
jmp fcn.1000957b
Function at 0x1000ee57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10016210]
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.1000b4c0
and dword [ebp - 0x14], 0
cmp dword [0x10017f34], 0
mov dword [ebp - 0x18], eax
jne 0x1000ef0a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000efb2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000efb2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10017f34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10017f38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10017f3c], eax
call edi
push eax
call esi
mov dword [0x10017f44], eax
test eax, eax
je 0x1000ef0a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10017f40], eax
mov eax, dword [0x10017f40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000ef63
cmp dword [0x10017f44], ecx
je 0x1000ef63
push eax
call esi
push dword [0x10017f44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000ef63
test ebx, ebx
je 0x1000ef63
call edi
test eax, eax
je 0x1000ef5a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000ef5a
test byte [ebp - 8], 1
jne 0x1000ef63
or dword [ebp + 0x10], 0x200000
jmp 0x1000ef96
mov eax, dword [0x10017f38]
cmp eax, dword [ebp - 0x18]
je 0x1000ef96
push eax
call esi
test eax, eax
je 0x1000ef96
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000ef96
mov eax, dword [0x10017f3c]
cmp eax, dword [ebp - 0x18]
je 0x1000ef96
push eax
call esi
test eax, eax
je 0x1000ef96
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10017f34]
call esi
test eax, eax
je 0x1000efb2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000efb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008311
leave
ret
Function at 0x403478
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004064f4
test esi, esi
jne 0x4034b0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406630
jmp 0x4034ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040335c
mov edi, eax
test esi, esi
je 0x4034ce
cmp dword [ebx], 0
je 0x4034ce
dec esi
jmp 0x4034b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x591008], 0x8088405
inc edx
mov dword [ebx + 0x591008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4040b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x591024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x404128
xor eax, eax
push ebp
push 0x404121
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404180
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404128
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x591024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x591024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4053b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a3054], 0
je 0x405411
cmp word [0x5a3330], 0xd7b2
jne 0x4053d9
cmp dword [0x5a3338], 0
jbe 0x4053d9
mov eax, 0x5a332c
call dword [0x5a3348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40543c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x591034], 0
jne 0x40542d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4055b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x59103c], 0
je 0x4055d6
mov edx, esi
mov eax, ebx
call dword [0x59103c]
jmp 0x4055e5
mov eax, 8
call fcn.004030a4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a3055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405578
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408a60
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a858
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x40a90f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.0040792c
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x40a8a0
test esi, esi
jle 0x40a8a0
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.004056dc
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40a540]
call fcn.00407af4
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.00405680
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a916
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x40d278
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40d318
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.00405fcc
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00405d60
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d2a2
cmp byte [esp], 0
je 0x40d2e7
mov eax, edi
call fcn.00405d60
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d324
mov eax, edi
call fcn.00405d60
push eax
mov eax, edi
call fcn.00405d60
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.0040325c
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.00405fcc
jmp 0x40d324
mov eax, edi
mov edx, 0x40d338
call fcn.00405680
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40dfa8
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x5919e8], 0
jne 0x40dfdc
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40dfd5
movzx eax, byte [esp]
mov byte [0x5919e8], al
jmp 0x40dfdc
mov byte [0x5919e8], 0x2c
movzx eax, byte [0x5919e8]
pop edx
ret

Function at 0x40e530
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405680
mov eax, ebx
call fcn.00405d58
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x40e558
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x40e56c
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40e561
pop edx
pop esi
pop ebx
ret
Function at 0x40e7b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x40e8fa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e7d8
cmp dword [ebx + 4], 0
jne 0x40e8fa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40e7fe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e7fe
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0040e704
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x40e8fa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x40e8ad
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40e853
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0040e744
test al, al
je 0x40e8a3
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x40e8a3
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x40e8a3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x40e8cb
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x40e8cb
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0040e798
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x40e8fa
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00412a44
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40ecc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x40ecf5
cmp dword [ebx + 0x54], 0
jne 0x40ecf5
cmp dword [ebx + 0x5c], 0
jne 0x40ecf5
mov esi, dword [ebp - 8]
jmp 0x40eda0
cmp esi, 0xffffffff
jne 0x40ed00
dec esi
jmp 0x40eda0
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x40eda0
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.0040325c
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x40ed62
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40ed67
mov word [edx], 0
dec eax
test eax, eax
jne 0x40ed44
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x40ed93
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40ed98
mov word [edx], 0
dec eax
test eax, eax
jne 0x40ed75
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x40edbc
cmp eax, dword [esp]
pop edx
pop eax
je 0x40ee2a
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.0040ec50
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x40ee04
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x40ee2a
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x40ecd4
cmp eax, dword [ecx + 0x14]
jne 0x40ecd4
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x410380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4104cd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4103a8
cmp dword [ebx + 4], 0
jne 0x4104cd
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4103ce
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4103ce
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0040e704
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4104cd
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x41047d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x410423
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0040e744
test al, al
je 0x410473
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x410473
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x410473
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x41049b
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x41049b
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0040e798
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x4104cd
cmp dword [ebx + 8], 0
jne 0x4104cd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x412a44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x412a68
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x5926bc]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x412a4f
mov eax, esi
pop esi
ret