joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416846
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41efb0
call fcn.00416c09
push 1
call fcn.004168c9
pop ecx
test al, al
jne 0x4166ef
push 7
call fcn.00416f9a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00416894
mov byte [ebp - 0x24], al
mov eax, dword [0x425b2c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4166e8
test eax, eax
jne 0x416759
mov dword [0x425b2c], ecx
push 0x41a360
push 0x41a34c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41673c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x416840
push 0x41a348
push 0x41a324
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x425b2c], 2
jmp 0x41675e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00416a26
pop ecx
call fcn.00416f8e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41678e
push esi
call fcn.00416999
pop ecx
test al, al
je 0x41678e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004171c9
call esi
call fcn.00416f94
mov esi, eax
cmp dword [esi], edi
je 0x4167ac
push esi
call fcn.00416999
pop ecx
test al, al
je 0x4167ac
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004170af
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004170e2
test al, al
jne 0x4167e5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4167ee
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00416a43
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x416840
call fcn.00416c4f
ret
call fcn.00416555
jmp 0x4166d0

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
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x403634
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.00406ba8
test esi, esi
jne 0x40366c
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.00406ce4
jmp 0x40368a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403518
mov edi, eax
test esi, esi
je 0x40368a
cmp dword [ebx], 0
je 0x40368a
dec esi
jmp 0x403673
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404ad8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404d8c
mov byte [esp], al
cmp byte [esp], 0
jne 0x404c61
test edi, edi
je 0x404c61
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404b98
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x404b73
cmp edi, 0xffffffff
je 0x404b37
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404b37
mov byte [esp], 0
jmp 0x404c61
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404b73
test ebx, ebx
jne 0x404b6c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004015c4
test eax, eax
jne 0x404b6c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404c61
pause
dec ebp
test ebp, ebp
jg 0x404b1c
cmp edi, 0xffffffff
je 0x404b98
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404b96
mov byte [esp], 0
jmp 0x404c61
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404ae6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004015c4
cmp ebx, eax
jne 0x404b98
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404cd4
mov edx, eax
mov ebx, dword [0x6958cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404bff
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404bfd
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404bff
xor edi, edi
cmp byte [esp], 0
je 0x404c28
mov ebx, dword [esi]
test bl, 1
jne 0x404c41
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004015c4
cmp ebx, eax
jne 0x404c05
mov byte [esp + 1], 1
jmp 0x404c41
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004015c4
cmp ebx, eax
jne 0x404c28
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404bb2
cmp byte [esp], 0
je 0x404c61
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4058c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x695054], 0
je 0x405921
cmp word [0x695330], 0xd7b2
jne 0x4058e9
cmp dword [0x695338], 0
jbe 0x4058e9
mov eax, 0x69532c
call dword [0x695348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x680788
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 0x40594c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x68002c], 0
jne 0x40593d
push 0
push 0x680780
push 0x680788
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ac0
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 [0x680034], 0
je 0x405ae6
mov edx, esi
mov eax, ebx
call dword [0x680034]
jmp 0x405af5
mov eax, 8
call fcn.00403230
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x695055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405a88
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 0x4075c8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40760a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40762a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406db8
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40d69c
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 0x40d73c
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004064dc
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.00406270
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d6c6
cmp byte [esp], 0
je 0x40d70b
mov eax, edi
call fcn.00406270
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d748
mov eax, edi
call fcn.00406270
push eax
mov eax, edi
call fcn.00406270
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403418
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004064dc
jmp 0x40d748
mov eax, edi
mov edx, 0x40d75c
call fcn.00405b90
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d760
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40d803
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00406e74
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00407530
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40d788
cmp byte [esp], 0
je 0x40d7d1
mov eax, edi
call fcn.00407530
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40d80f
mov eax, edi
call fcn.00407530
push eax
mov eax, edi
call fcn.00407530
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.00403418
mov edx, ebx
mov eax, edi
call fcn.00406e74
jmp 0x40d80f
mov eax, edi
mov edx, 0x40d824
call fcn.00406ba8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e97c
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x680a98], 0
jne 0x40e9b4
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e9ab
movzx eax, word [esp]
mov word [0x680a98], ax
jmp 0x40e9b4
mov word [0x680a98], 0x2c
movzx eax, word [0x680a98]
pop edx
ret
Function at 0x40ef88
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40ef90
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f1a2
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x40efd3
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x680824]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00406dd4
jmp 0x40f16f
test ebx, 0xc0000000
je 0x40f01b
lea edx, [ebp - 0x10]
mov eax, dword [0x680ab0]
call fcn.0040f1c0
mov eax, dword [ebp - 0x10]
call fcn.004061f8
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x680894]
call fcn.0040f1c0
mov eax, dword [ebp - 0x14]
call fcn.004061f8
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x40f01b
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x40f060
cmp ebx, 0xbb7
ja 0x40f060
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x680aac]
call fcn.0040f1c0
mov eax, dword [ebp - 0x18]
call fcn.004061f8
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f065
or edi, 0x800
jmp 0x40f065
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40f168
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x40f108
xor eax, eax
push ebp
push 0x40f101
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406d64
mov eax, dword [esi]
call fcn.00406e68
mov ebx, eax
test ebx, ebx
jbe 0x40f0ea
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x40f0d1
mov eax, esi
call fcn.00407530
mov word [eax + ebx*2 - 2], 0x20
jmp 0x40f0e5
cmp di, 0xa
jne 0x40f0e5
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.004072dc
dec ebx
test ebx, ebx
ja 0x40f0b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f14b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x680ab4]
call fcn.0040f1c0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00406dd4
push dword [ebp - 0x1c]
push 0x40f1bc
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.0040e188
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.0040705c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f16f
cmp dword [ebp - 8], 0
je 0x40f167
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f1a9
lea eax, [ebp - 0x24]
call fcn.00406b98
lea eax, [ebp - 0x20]
call fcn.00405b3c
lea eax, [ebp - 0x1c]
call fcn.00406b98
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00405b60
ret
Function at 0x40f1c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405b90
mov eax, ebx
call fcn.00406268
mov eax, dword [ebx]
call fcn.00405ed0
test eax, eax
jle 0x40f1f1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40f1e6
pop esi
pop ebx
ret

Function at 0x40fedc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ffdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00408324
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40fbd4]
call fcn.004084ec
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
test edi, edi
jne 0x40ff5e
test esi, esi
jle 0x40ff5e
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.00406ba8
jmp 0x40ff6f
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.00406ba8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x40ffc7
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40ffa2
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.00406c34
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x40ffc7
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.00406dfc
mov eax, dword [ebp - 4]
call fcn.004061f8
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ffe4
lea eax, [ebp - 4]
call fcn.00405b3c
ret
Function at 0x410e44
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 0x410f8e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410e6c
cmp dword [ebx + 4], 0
jne 0x410f8e
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x410e92
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410e92
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.00410d98
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x410f8e
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x410f41
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x410ee7
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.00410dd8
test al, al
je 0x410f37
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 0x410f37
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x410f37
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x410f5f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x410f5f
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.00410e2c
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 0x410f8e
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.004150d8
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 0x411358
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 0x411389
cmp dword [ebx + 0x54], 0
jne 0x411389
cmp dword [ebx + 0x5c], 0
jne 0x411389
mov esi, dword [ebp - 8]
jmp 0x411434
cmp esi, 0xffffffff
jne 0x411394
dec esi
jmp 0x411434
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x411434
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00403418
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 0x4113f6
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x4113fb
mov word [edx], 0
dec eax
test eax, eax
jne 0x4113d8
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 0x411427
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x41142c
mov word [edx], 0
dec eax
test eax, eax
jne 0x411409
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 0x411450
cmp eax, dword [esp]
pop edx
pop eax
je 0x4114be
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.004112e4
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x411498
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 0x4114be
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 0x411368
cmp eax, dword [ecx + 0x14]
jne 0x411368
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x412a18
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 0x412b65
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x412a40
cmp dword [ebx + 4], 0
jne 0x412b65
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x412a66
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x412a66
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.00410d98
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x412b65
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x412b15
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x412abb
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.00410dd8
test al, al
je 0x412b0b
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 0x412b0b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x412b0b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x412b33
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x412b33
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.00410e2c
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 0x412b65
cmp dword [ebx + 8], 0
jne 0x412b65
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 0x4150d8
Capabilities:
Encode data using xor
Hash data with crc32

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