joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b90
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov edx, 0x1505
mov dword [ebp - 8], eax
push esi
mov esi, eax
test eax, eax
jne 0x404bac
pop esi
mov esp, ebp
pop ebp
ret
movsx ecx, byte [eax]
test ecx, ecx
je 0x404bc6
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x404bb3
push ebx
test edx, edx
mov ebx, 1
mov ecx, ebx
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push edi
push 0x46dd70
sub ecx, eax
cmovne ebx, ecx
mov dword [ebp - 4], ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x46dd60]
lea edi, [esi*8]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ecx]
test eax, eax
je 0x404d17
cmp eax, ebx
jne 0x404c57
mov ecx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404c47
test dl, dl
je 0x404c43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404c47
add eax, 2
add ecx, 2
test dl, dl
jne 0x404c27
xor eax, eax
jmp 0x404c4c
sbb eax, eax
or eax, 1
test eax, eax
je 0x404da4
mov ecx, dword [ebp - 0xc]
push dword [ecx + 4]
push dword [ebp - 8]
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.00404600
mov ecx, dword [ebp - 4]
mov eax, 0x14191f7
mul ecx
mov eax, ecx
mov ebx, ecx
sub eax, edx
add esp, 0x18
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fb
sub ebx, eax
inc ebx
lea eax, [ebx*8]
nop word [eax + eax]
cmp esi, ebx
ja 0x404cb7
sub edi, eax
mov eax, 0x3fd
sub eax, ebx
add esi, eax
add edi, 0x1fe8
jmp 0x404cbb
sub esi, ebx
sub edi, eax
cmp esi, ecx
je 0x404d14
mov edx, dword [0x46dd60]
mov eax, dword [edi + edx]
mov dword [ebp - 0xc], eax
cmp eax, ecx
jne 0x404d09
mov eax, dword [edi + edx + 4]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404cf6
test dl, dl
je 0x404cf2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404cf6
add ecx, 2
add eax, 2
test dl, dl
jne 0x404cd6
xor eax, eax
jmp 0x404cfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x404da4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
test eax, eax
lea eax, [ebx*8]
jne 0x404ca0
mov ebx, dword [ebp - 4]
cmp dword [0x46dd54], 0x3fd
jb 0x404d54
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.00404600
add esp, 0x14
xor esi, esi
push 0x46dd70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.0042f409
mov ecx, eax
add esp, 4
mov eax, dword [0x46dd60]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x404d9c
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.00404600
add esp, 0x10
xor esi, esi
push 0x46dd70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
inc dword [0x46dd54]
mov dword [eax], ebx
push 0x46dd70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x46dd88]
push ebx
inc eax
xor bl, bl
mov dword [0x46dd88], eax
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, 1
jne 0x40563e
call fcn.00404f00
mov dword [0x46dc14], eax
test eax, eax
jne 0x4055cc
push str.failed_to_detect_Windows_version
push str.windows_init
push 1
push esi
call fcn.00404600
add esp, 0x10
mov edi, 0xfffffff4
jmp 0x4056c9
cmp eax, 4
jge 0x4055d8
push str.Windows_version_is_too_old
jmp 0x4055b2
mov ecx, esi
call fcn.00404ab0
test al, al
jne 0x4055ed
mov edi, 0xfffffff5
jmp 0x4056c9
push esi
call fcn.0040a240
mov edi, eax
add esp, 4
test edi, edi
jne 0x4056c9
push esi
mov bl, 1
call fcn.004118b0
add esp, 4
test eax, eax
jne 0x405629
push str.UsbDk_backend_is_available
push str.windows_init
push 4
push esi
call fcn.00404600
mov byte [0x46dd50], bl
jmp 0x40563b
push str.UsbDk_backend_is_not_available
push str.windows_init
push 3
push esi
call fcn.00404600
add esp, 0x10
push 1
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + fcn.0040a240], 0x464c10
mov edi, 0xfffffff5
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x405684
xor ecx, ecx
call fcn.00404900
push eax
push str.failed_to_create_I_O_completion_port:__s
push str.windows_init
push 1
push esi
call fcn.00404600
add esp, 0x14
jmp 0x4056c9
push 0
push 0
push esi
push 0x405340
push 0
push 0
call fcn.0042f36e
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x4056c7
push str.failed_to_create_I_O_completion_port_thread
push str.windows_init
push 1
push esi
call fcn.00404600
add esp, 0x10
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4056c9
xor edi, edi
cmp dword [0x46dd88], 1
jne 0x405718
test edi, edi
je 0x405718
cmp byte [0x46dd50], 0
je 0x405700
mov eax, dword [0x46dee8]
test eax, eax
je 0x4056f9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x46dee8], 0
mov byte [0x46dd50], 0
test bl, bl
je 0x40570d
push esi
call fcn.0040a2c0
add esp, 4
call fcn.00404b40
dec dword [0x46dd88]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4060c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov dword [ebp - 8], 0
test edi, edi
je 0x4060e1
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
jmp 0x4060e3
xor eax, eax
push dword [eax + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x406101
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0xf0
push 1
call fcn.0042cabe
mov esi, eax
add esp, 8
test esi, esi
je 0x406157
lea ecx, [esi + 0xac]
mov dword [esi + 0x70], 0
push ecx
mov dword [esi + 0xc4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esi, 0xc8
je 0x406157
mov ecx, dword [ebp + 0x18]
movzx eax, cx
add eax, 8
push eax
call fcn.0042cad9
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x406165
mov ecx, esi
call fcn.00407150
mov eax, 0xfffffff5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp + 0x18]
mov dl, byte [ebp - 1]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f00
add esp, 0x10
cmp byte [ebp - 1], 0
jl 0x40619a
mov ecx, dword [ebp + 0x18]
movzx eax, cx
push eax
push dword [ebp + 0x14]
lea eax, [ebx + 8]
push eax
call fcn.00457cb0
add esp, 0xc
push ecx
lea eax, [ebp - 8]
mov edx, edi
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00405f60
add esp, 0x10
mov byte [esi + 4], 2
mov ecx, esi
call fcn.00407500
mov ebx, eax
mov ecx, esi
test ebx, ebx
jns 0x4061d0
call fcn.00407150
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.00406020
cmp byte [ebp - 1], 0
jge 0x4061f0
push dword [esi + 0x14]
mov eax, dword [esi + 0x20]
add eax, 8
push eax
push dword [ebp + 0x14]
call fcn.00457cb0
add esp, 0xc
mov ecx, dword [esi + 0xc]
cmp ecx, 6
ja case.default.0x4061fc
jmp dword [ecx*4 + 0x4062c4]
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
mov edi, 0xfffffff9
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
mov edi, 0xfffffff7
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
mov edi, 0xfffffffc
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
mov edi, 0xfffffff8
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
or edi, 0xffffffff
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test edi, edi
je 0x406295
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
jmp 0x406297
xor eax, eax
push ecx
push str.unrecognised_status_code__d
push str.libusb_control_transfer
push 2
push eax
call fcn.00404600
add esp, 0x14
mov ecx, esi
mov edi, 0xffffff9d
call fcn.00407150
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x406dc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov edi, ecx
lea eax, [edi + 0x84]
push eax
call esi
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0xbc]
push eax
call esi
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + 0xd8]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0xb8], eax
lea eax, [edi + 0x7c]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0xf8]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x100]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x110]
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x118]
push 1
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x406e76
xor ecx, ecx
call fcn.00404900
push eax
push str.CreateEvent_failed:__s
push str.usbi_create_event
push 1
push 0
call fcn.00404600
mov ebx, 0xffffff9d
jmp 0x406f38
push ecx
mov edx, eax
mov ecx, edi
call fcn.00408940
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x406f10
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x406ed6
xor ecx, ecx
call fcn.00404900
push eax
push str.CreateWaitableTimer_failed:__s
push str.usbi_create_timer
push 2
push 0
call fcn.00404600
push str.timer_not_available_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.00404600
add esp, 0x24
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.using_timer_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.00404600
mov edx, dword [edi + 0x10]
add esp, 0xc
mov ecx, edi
call fcn.00408940
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x406ed0
lea ecx, [edi + 0x10]
call fcn.00406410
mov edx, dword [edi + 0xc]
mov ecx, edi
call fcn.004089f0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406f3b
xor ecx, ecx
call fcn.00404900
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_event
push 2
push 0
call fcn.00404600
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x84]
push eax
call esi
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0xbc]
push eax
call esi
lea eax, [edi + 0xd8]
push eax
call esi
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4080c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
push edi
push dword [ebx + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4080ea
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 0xd8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [ebx + 0xf0], 1
je 0x40816d
push str.event_sources_modified__reallocating_event_data
push str.handle_events
push 4
push ebx
call fcn.00404600
add esp, 0x10
mov ecx, ebx
call fcn.00406f80
mov ecx, ebx
call fcn.004065a0
mov edi, eax
test edi, edi
je 0x408139
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and dword [ebx + 0xf0], 0xfffffffe
jne 0x40816d
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x40816d
xor ecx, ecx
call fcn.00404900
push eax
push str.ResetEvent_failed:__s
push str.usbi_clear_event
push 2
push 0
call fcn.00404600
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov esi, 0x3e8
push ebx
push dword [ebx + 0xb8]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx + 4]
cdq
idiv esi
imul esi, dword [ecx], 0x3e8
mov edi, edx
add esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
lea eax, [esi + 1]
lea edx, [ebp - 0x14]
mov ecx, ebx
cmove eax, esi
push eax
call fcn.00406690
mov edi, eax
add esp, 4
test edi, edi
je 0x4081e6
cmp edi, 0xfffffff9
jne 0x40825d
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebx + 0x84]
push esi
call eax
mov ecx, ebx
call fcn.00407cc0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call eax
xor edi, edi
jmp 0x40825d
mov eax, dword [ebp - 0x14]
test al, 1
je 0x4081fd
mov ecx, ebx
call fcn.00407e10
mov edi, eax
test edi, edi
jne 0x40825d
mov eax, dword [ebp - 0x14]
test al, 2
je 0x40822b
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebx + 0x84]
push esi
call eax
mov ecx, ebx
call fcn.00407cc0
mov ecx, ebx
call fcn.004071c0
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call eax
test edi, edi
jne 0x40825d
mov eax, dword [ebp - 8]
test eax, eax
je 0x40825d
push eax
push dword [ebp - 0xc]
xor eax, eax
push dword [ebp - 0x10]
push ebx
call eax
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40825d
push edi
push str.backend_handle_events_failed_with_error__d
push str.handle_events
push 1
push ebx
call fcn.00404600
add esp, 0x14
push 0
push dword [ebx + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447174
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446efb

Function at 0x449320
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00448b04

Function at 0x44932b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00448d3f

Function at 0x451e6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451a72

Function at 0x451e78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451bf3
Function at 0x407330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407352
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407359
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407348
mov eax, 1
add ebx, ebx
jne 0x40736b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407360
jne 0x40737c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407360
xor ecx, ecx
sub eax, 3
jb 0x407390
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407402
mov ebp, eax
add ebx, ebx
jne 0x40739b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4073a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4073cc
inc ecx
add ebx, ebx
jne 0x4073b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4073ad
jne 0x4073c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4073ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4073ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4073dd
jmp 0x40734e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4073ec
add edi, ecx
jmp 0x40734e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40740a
cmp byte [edi], 1
jne 0x40740a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40740f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407487
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x791c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40743c
mov ecx, edi
jns 0x40746b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7920]
or eax, eax
je 0x407481
mov dword [ebx], eax
add ebx, 4
jmp 0x407459
call dword [esi + 0x7930]
mov ebp, dword [esi + 0x7924]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4074bb
sub esp, 0xffffff80
jmp 0x4010e4
Function at 0x406a2b
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x414350
call fcn.00411100
sub esp, 0x1d0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
and byte [ebp - 0x8c], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x8b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x64], 0x20000020
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x60]
push eax
push 0x40
lea eax, [ebp - 0x54]
push eax
push esi
push dword [ebp + 8]
call dword [ebp + 0x18]
test eax, eax
je 0x406abf
cmp dword [ebp - 0x60], 0x40
jne 0x406abf
push 1
pop ebx
mov dword [ebp - 0x1bc], ebx
xor eax, eax
cmp word [ebp - 0x54], 0x5a4d
sete al
mov byte [ebp - 0x1c4], al
test al, al
jne 0x406ae3
call dword [0x4160d0]
mov dword [ebp - 0x1c0], eax
push 0x41ac18
lea eax, [ebp - 0x1c0]
push eax
call fcn.0041135e
and dword [ebp - 0x1bc], 0
call dword [0x4160d0]
mov dword [ebp - 0x1b8], eax
push 0x41ac18
lea eax, [ebp - 0x1b8]
push eax
call fcn.0041135e
lea eax, [ebp - 0x60]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
test eax, eax
je 0x406b39
cmp dword [ebp - 0x60], edi
jne 0x406b39
mov dword [ebp - 0x1cc], ebx
cmp dword [ebp - 0x184], 0x4550
jne 0x406b5d
cmp word [ebp - 0x180], 0x14c
jne 0x406b5d
cmp word [ebp - 0x16c], 0x10b
jne 0x406b5d
mov dword [ebp - 0x1d4], ebx
jmp 0x406b81
and dword [ebp - 0x1cc], 0
call dword [0x4160d0]
mov dword [ebp - 0x1c8], eax
push 0x41ac18
lea eax, [ebp - 0x1c8]
push eax
call fcn.0041135e
and dword [ebp - 0x1d4], 0
call dword [0x4160d0]
mov dword [ebp - 0x1d0], eax
push 0x41ac18
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041135e
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi + 0xf8]
mov dword [ebp - 0x58], eax
movzx edi, word [ebp - 0x17e]
mov dword [ebp - 0x5c], edi
and dword [ebp - 0x188], 0
push 0x28
pop ebx
cmp dword [ebp - 0x188], edi
jae 0x406c59
lea eax, [ebp - 0x60]
push eax
push ebx
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp - 0x58]
push dword [ebp + 8]
call dword [ebp + 0x18]
test eax, eax
je 0x406c24
cmp dword [ebp - 0x60], ebx
jne 0x406c24
mov dword [ebp - 0x1dc], 1
add dword [ebp - 0x58], ebx
push ebx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.00411358
add esp, 0xc
test eax, eax
je 0x406c59
mov ecx, dword [ebp - 0x18c]
mov eax, 0x20000020
and ecx, eax
cmp ecx, eax
jne 0x406c48
mov eax, dword [ebp - 0x1a4]
add eax, esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1a0]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 1
pop eax
jmp 0x406c5b
and dword [ebp - 0x1dc], 0
call dword [0x4160d0]
mov dword [ebp - 0x1d8], eax
push 0x41ac18
lea eax, [ebp - 0x1d8]
push eax
call fcn.0041135e
inc dword [ebp - 0x188]
jmp 0x406ba2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408bfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
call fcn.0041116a
cmp eax, 1
pop ecx
jle 0x408c21
mov cl, byte [eax + esi - 2]
lea edx, [eax + esi]
add cl, byte [edx - 1]
jmp 0x408c29
jne 0x408c27
mov cl, byte [esi]
jmp 0x408c29
xor cl, cl
xor cl, al
xor ebx, ebx
movzx esi, cl
mov al, byte [esi + edi + 0x9c]
movzx eax, al
test eax, eax
mov dword [ebp - 8], eax
jle 0x408c6f
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x28]
push dword [ebp + 8]
mov eax, dword [eax + ebx*4]
mov al, byte [eax + esi]
mov byte [ebp - 1], al
movzx eax, al
mov eax, dword [ecx + eax*4]
push eax
call dword [0x4164a8]
pop ecx
test eax, eax
pop ecx
je 0x408c79
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x408c41
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
movzx eax, byte [ebp - 1]
jmp 0x408c72

Function at 0x40954c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov eax, dword [eax - 8]
lea eax, [eax + ecx + 7]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 4], eax
call fcn.00410ecc
mov esi, eax
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov eax, dword [edi]
inc esi
mov ebx, dword [eax - 8]
movzx eax, bx
mov word [esi], bx
push eax
push dword [edi]
inc esi
inc esi
mov dword [ebp + 0x10], eax
push esi
call fcn.00411164
xor edi, edi
add esp, 0xc
xor bl, bh
xor eax, eax
cmp dword [ebp + 0x10], edi
jbe 0x4095ad
mov cl, byte [eax + esi]
not cl
xor cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x40959d
add esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
mov dword [esi], ebx
add esi, 4
push esi
call fcn.00411164
add esp, 0xc
cmp byte [ebp + 0xc], 7
je 0x4095d1
cmp byte [ebp + 0xc], 6
jne 0x4095e8
mov al, bl
xor al, bh
cmp ebx, edi
jbe 0x4095e8
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x4095d9
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00410ec6
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40ffa6
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0041115e
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret