joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413a8c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41ec43
call sub.msvcrt.dll__EH_prolog
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
inc esi
push 0x4233a4
lea ecx, [ebp + 0x70]
mov dword [ebp - 4], esi
call fcn.0040e59f
push eax
call sub.msvcrt.dll_strtok_s
add esp, 0xc
xor ebx, ebx
push ebx
push 0x4233a8
lea ecx, [ebp + 0x64]
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x14], ebx
call fcn.0040e59f
push eax
call dword [0xb3a418]
test eax, eax
je 0x413ae4
mov edi, esi
push ebx
push 0x4233b8
lea ecx, [ebp + 0x64]
call fcn.0040e59f
push eax
call dword [0xb3a418]
test eax, eax
je 0x413b02
mov edi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
jmp 0x413c81
cmp edi, ebx
je 0x413c14
lea eax, [ebp - 0x80]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x80]
cmp byte [ebp - 0x80], bl
je 0x413c6c
push 0x3e8
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 0x14], ebx
je 0x413b6e
cmp eax, 2
jne 0x413b6e
lea ecx, [ebp + 0x64]
call fcn.0040e59f
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0xb3a528]
push esi
push str._DRIVE_REMOVABLE_
jmp 0x413b8a
lea ecx, [ebp + 0x64]
call fcn.0040e59f
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0xb3a528]
push esi
push str._DRIVE_FIXED_
lea eax, [ebp - 0x468]
push eax
call fcn.0040f9b4
add esp, 0xc
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0xb3a528]
push ebx
push dword [ebp + 0x88]
lea eax, [ebp - 0x468]
push edi
push dword [ebp + 0x84]
lea ecx, [ebp + 0x58]
push dword [ebp + 0x80]
push ebx
push dword [ebp + 0x7c]
push dword [ebp - 0x10]
push eax
call fcn.0040e59f
push eax
push 0x423157
lea ecx, [ebp + 0x8c]
call fcn.0040e59f
push eax
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040117e
call fcn.004136ba
add esp, 0x80
push esi
call dword [0xb3a3a0]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x413b2a
jmp 0x413c6c
push ebx
push dword [ebp + 0x88]
lea ecx, [ebp + 0x64]
push ebx
push dword [ebp + 0x84]
push dword [ebp + 0x80]
push ebx
push dword [ebp + 0x7c]
push eax
call fcn.0040e59f
push eax
lea ecx, [ebp + 0x58]
call fcn.0040e59f
push eax
push 0x42315a
lea ecx, [ebp + 0x8c]
call fcn.0040e59f
push eax
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040117e
call fcn.004136ba
add esp, 0x80
lea eax, [ebp - 0x18]
push eax
push 0x4233f0
push ebx
call sub.msvcrt.dll_strtok_s
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x413b0a
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.0040f58f
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0040113a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x58]
call fcn.00410fd9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x418847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x928520]
jne 0x418851
repz ret
jmp fcn.0041b53f
Function at 0x41bd16
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x928520]
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.0041816a
and dword [ebp - 0x14], 0
cmp dword [0xb3b0fc], 0
mov dword [ebp - 0x18], eax
jne 0x41bdc9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41be71
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41be71
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xb3b0fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xb3b100], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xb3b104], eax
call edi
push eax
call esi
mov dword [0xb3b10c], eax
test eax, eax
je 0x41bdc9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xb3b108], eax
mov eax, dword [0xb3b108]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41be22
cmp dword [0xb3b10c], ecx
je 0x41be22
push eax
call esi
push dword [0xb3b10c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41be22
test ebx, ebx
je 0x41be22
call edi
test eax, eax
je 0x41be19
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41be19
test byte [ebp - 8], 1
jne 0x41be22
or dword [ebp + 0x10], 0x200000
jmp 0x41be55
mov eax, dword [0xb3b100]
cmp eax, dword [ebp - 0x18]
je 0x41be55
push eax
call esi
test eax, eax
je 0x41be55
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41be55
mov eax, dword [0xb3b104]
cmp eax, dword [ebp - 0x18]
je 0x41be55
push eax
call esi
test eax, eax
je 0x41be55
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xb3b0fc]
call esi
test eax, eax
je 0x41be71
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41be73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418847
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40673a
pop dword [ebp - 0x1c]
mov eax, 0x40673a
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xbfb1cd0d
sub dword [ebp - 0x2c], 0x715f87c2
mov dword [ebp - 0x28], 0xec17170
add dword [ebp - 0x28], 0x2371dad5
mov dword [ebp - 0x24], 0x5e20352e
sub dword [ebp - 0x24], 0x11d3f100
mov dword [ebp - 0x20], 0x81791534
add dword [ebp - 0x20], 0x7e86eacc
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x1e117835
add dword [ebp - 0x2c], 0x5660f121
mov dword [ebp - 0x28], 0x99a0728b
add dword [ebp - 0x28], 0xa7cbeeea
mov dword [ebp - 0x24], 0xf4535316
add dword [ebp - 0x24], 0x6f1c1956
mov dword [ebp - 0x20], 0xe4c03fd1
sub dword [ebp - 0x20], 0xe4c03fd1
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x59c5974b
add eax, 0xa67ae9b5
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x33959
push 0
call eax
mov ecx, 0xfcf58249
add ecx, 0x30ab5fd
mov ebx, eax
mov edx, 0x178f0dd0
sub edx, 0x174829d0
add edx, dword [ebp - 0x1c]
mov edi, 0xf9a32840
sub edi, 0x75b97aa8
sub dword [ebp - 0xc], 0x685db3ef
mov esi, dword [edx]
xor dword [ebp - 0x14], eax
sub esi, edi
add dword [ebp - 0xc], 0x69a786b0
mov dword [ebx], esi
xor dword [ebp - 4], 0x6f266b69
add ebx, 0xf8a04b56
sub ebx, 0xf8a04b52
add edx, 0xa3717ede
add edx, 0x5c8e8126
loop 0x406852
add eax, 0xa7109171
sub eax, 0xa70fbd86
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2563cfd8
add ecx, 0xdadc3028
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1000615c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000616b
pop dword [ebp - 0x2c]
mov eax, 0x53350618
sub eax, 0x4334a4ad
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x38a36
push 0
mov eax, 0x71239084
add eax, 0x9eddd0bc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4250
mov edi, eax
mov ebx, 0x97d1a2a0
sub ebx, 0x87cf5ea0
add ebx, dword [ebp - 0x2c]
mov edx, 0xe5a36c3d
add dword [ebp - 4], esi
mov esi, dword [ebx]
sub dword [ebp - 0x1c], 0x235d38da
add esi, edx
add dword [ebp - 0x1c], ebx
mov dword [edi], esi
xor dword [ebp - 0x14], esi
add edi, 4
add ebx, 4
loop 0x100061be
add eax, 0x14cdd71f
add eax, 0xeb3324f4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb2c39bb8
sub ecx, 0xa2c39bb8
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4034ac
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.00406690
test esi, esi
jne 0x4034e4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004067cc
jmp 0x403502
call sub.KERNEL32.DLL_GetCommandLineW_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403390
mov edi, eax
test esi, esi
je 0x403502
cmp dword [ebx], 0
je 0x403502
dec esi
jmp 0x4034eb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403d20
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403d3e
push dword [eax]
call sub.KERNEL32.DLL_SetEndOfFile_1
dec eax
je 0x403d48
jmp fcn.00403264
mov eax, 0x67
jmp fcn.00403254
ret

Function at 0x404340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x546020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4043d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4043b8
xor eax, eax
push ebp
push 0x4043b1
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 0x404410
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x546020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x546020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4055ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x552054], 0
je 0x40560d
cmp word [0x552330], 0xd7b2
jne 0x4055d5
cmp dword [0x552338], 0
jbe 0x4055d5
mov eax, 0x55232c
call dword [0x552348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405638
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x546030], 0
jne 0x405629
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x4057ac
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 [0x546038], 0
je 0x4057d2
mov edx, esi
mov eax, ebx
call dword [0x546038]
jmp 0x4057e1
mov eax, 8
call fcn.004030cc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x552055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405774
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40aa58
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.00405ed4
xor eax, eax
push ebp
push 0x40ab0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00407c50
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x40aaa0
test esi, esi
jle 0x40aaa0
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.004058d8
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40a740]
call fcn.00407e18
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.0040587c
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 0x40ab16
lea eax, [ebp - 4]
call fcn.00405828
ret

Function at 0x40d478
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 0x40d518
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004061c8
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.00405f5c
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d4a2
cmp byte [esp], 0
je 0x40d4e7
mov eax, edi
call fcn.00405f5c
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d524
mov eax, edi
call fcn.00405f5c
push eax
mov eax, edi
call fcn.00405f5c
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403290
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004061c8
jmp 0x40d524
mov eax, edi
mov edx, 0x40d538
call fcn.0040587c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e1a8
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x546a04], 0
jne 0x40e1dc
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40e1d5
movzx eax, byte [esp]
mov byte [0x546a04], al
jmp 0x40e1dc
mov byte [0x546a04], 0x2c
movzx eax, byte [0x546a04]
pop edx
ret

Function at 0x40e730
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.0040587c
mov eax, ebx
call fcn.00405f54
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x40e758
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x40e76c
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40e761
pop edx
pop esi
pop ebx
ret
Function at 0x40e9b0
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 0x40eafa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e9d8
cmp dword [ebx + 4], 0
jne 0x40eafa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40e9fe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e9fe
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.0040e904
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x40eafa
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x40eaad
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40ea53
push 4
push 0x1000
push 0x100000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
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.0040e944
test al, al
je 0x40eaa3
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
test eax, eax
je 0x40eaa3
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x40eaa3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x40eacb
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x40eacb
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.0040e998
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 0x40eafa
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.00412c44
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 0x40eec4
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 0x40eef5
cmp dword [ebx + 0x54], 0
jne 0x40eef5
cmp dword [ebx + 0x5c], 0
jne 0x40eef5
mov esi, dword [ebp - 8]
jmp 0x40efa0
cmp esi, 0xffffffff
jne 0x40ef00
dec esi
jmp 0x40efa0
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x40efa0
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00403290
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 0x40ef62
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40ef67
mov word [edx], 0
dec eax
test eax, eax
jne 0x40ef44
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 0x40ef93
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40ef98
mov word [edx], 0
dec eax
test eax, eax
jne 0x40ef75
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 0x40efbc
cmp eax, dword [esp]
pop edx
pop eax
je 0x40f02a
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.0040ee50
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x40f004
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 0x40f02a
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 0x40eed4
cmp eax, dword [ecx + 0x14]
jne 0x40eed4
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x410580
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 0x4106cd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4105a8
cmp dword [ebx + 4], 0
jne 0x4106cd
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4105ce
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4105ce
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.0040e904
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4106cd
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x41067d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x410623
push 4
push 0x1000
push 0x100000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
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.0040e944
test al, al
je 0x410673
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
test eax, eax
je 0x410673
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x410673
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x41069b
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x41069b
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.0040e998
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 0x4106cd
cmp dword [ebx + 8], 0
jne 0x4106cd
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 0x412c44
Capabilities:
Encode data using xor
Hash data with crc32

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