joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406990
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x4069bd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4069d3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x4069e3
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4069f0
Capabilities:
Create thread
Create udp socket
Terminate thread

Disassembly:
push esi
push 0
push 2
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x40d9dc], eax
cmp eax, 0xffffffff
jne 0x406a66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__WSASocket___failed_with_error:__d
push 1
call fcn.00406e00
mov eax, dword [0x40d9f0]
add esp, 0xc
test eax, eax
je 0x406a47
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x40d9f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40d9f0], 0
mov eax, dword [0x40d9dc]
cmp eax, 0xffffffff
je 0x406a62
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x40d9dc], 0xffffffff
xor al, al
pop esi
ret
mov ecx, 2
push 0
mov word [0x40d9e0], cx
call dword [sym.imp.WS2_32.dll_htonl]
push esi
mov dword [0x40d9e4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x40d9dc]
push 0x10
push 0x40d9e0
push edx
mov word [0x40d9e2], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406ab6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__bind___failed_with_error:__d
jmp 0x406a15
push 0
push 0
push 0x40d9d8
push 0x406b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40d9f0], eax
test eax, eax
jne 0x406afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketUDP__CreateThread___failed_with_error:__d
push 1
call fcn.00406e00
add esp, 0xc
mov esi, 0x40d9d8
call fcn.00406b30
xor al, al
pop esi
ret
push 0x1000
push 0
push 0x40d9f4
call sub.MSVCR100.dll_memset
movzx ecx, si
push ecx
push str._SocketUDP__Server_started_at_port___d_
push 3
mov dword [0x40e9f4], 0
call fcn.00406e00
add esp, 0x18
mov al, 1
pop esi
ret

Function at 0x406b30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x18]
test eax, eax
je 0x406b51
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x406b67
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
ret
Function at 0x406d70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40c018]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x406d95
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x406ded
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov esi, 0x40fe5c
test edi, edi
js 0x406f4c
xor eax, eax
cmp edi, 0x64
setl al
test eax, eax
je 0x406f4c
cmp dword [esi - 0x14], 0
je 0x406f4c
cmp dword [esi], 0xffffffff
je 0x406f4c
call ebx
sub eax, dword [esi + 0x10]
cmp eax, 0x3e8
jb 0x406f13
mov dword [esi + 0x14], 0
call ebx
mov dword [esi + 0x10], eax
call ebx
mov ecx, dword [0x40fd58]
sub eax, dword [esi + 0xc]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jb 0x406f4c
lea edx, [esi - 0x10]
push edx
push str.__s__Client_disconnected__timeout.
push 2
mov ecx, 0x40c1d8
call fcn.00403660
add esp, 0xc
mov eax, edi
mov ecx, 0x4112b8
call fcn.00406190
add esi, 0x34
inc edi
cmp esi, 0x4112ac
jl 0x406ee0
pop edi
pop esi
pop ebx
ret

Function at 0x40713e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c018]
jne 0x407148
repz ret
jmp fcn.00407678
Function at 0x403d5b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PySys_GetObject
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
cmp dword [0x40c2ac], esi
jne 0x403db5
xor eax, eax
jmp 0x403dff
cmp ebx, esi
je 0x403dfc
cmp dword [ebp - 4], esi
je 0x403dfc
cmp dword [ebp - 0xc], esi
je 0x403dfc
cmp dword [ebp - 8], esi
je 0x403dfc
cmp dword [ebp - 0x10], esi
je 0x403dfc
cmp eax, esi
je 0x403dfc
xor ecx, ecx
cmp dword [ebp + 8], esi
push 0x40c800
setne cl
mov dword [eax], ecx
call dword [ebp - 4]
call ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00403c3a
add esp, 0xc
mov esi, eax
call dword [ebp - 0xc]
mov eax, esi
jmp 0x403dff
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x10000
push 2
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [0x4042bc], eax
call edi
push 0x8040
push 2
mov dword [0x4042dc], eax
call esi
push eax
mov dword [0x4042c8], eax
call edi
push 0x400
push 2
mov dword [0x4042b8], eax
call esi
push eax
mov dword [0x4042d4], eax
call edi
mov dword [0x4042e0], eax
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop esi
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x40106c
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x40106e
shr ecx, 1
dec edx
jne 0x40105d
mov edx, dword [0x4042e0]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x401058
ret

Function at 0x401181
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40118e
or eax, 0xffffffff
jmp 0x4011bb
mov eax, dword [section..data]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4011ba
push edi
mov edi, dword [0x4042e0]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edi + edx*4]
inc ecx
dec esi
jne 0x40119d
pop edi
pop esi
mov dword [section..data], eax
not eax
ret 8
Function at 0x402098
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
mov eax, 0x443ea0
push ebx
call fcn.0042c210
lea edx, [ebp - 0x134]
push edx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042bda0
pop ecx
movsx eax, byte [ebp + eax - 0x135]
cmp eax, 0x5c
jne 0x4020ec
lea edx, [ebp - 0x134]
push edx
call fcn.0042bda0
pop ecx
mov byte [ebp + eax - 0x135], 0
push str.SCTmp
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042bd64
mov word [ebp - 0x20], 8
add esp, 8
lea edx, [ebp - 0x134]
lea eax, [ebp - 4]
call fcn.0043862c
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042245c
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004386a0
push 0x443a4d
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042bd64
add esp, 8
push 0x10
lea eax, [ebp - 0x158]
push eax
mov edx, dword [0x46b1c8]
push edx
call fcn.00431190
add esp, 0xc
lea ecx, [ebp - 0x158]
push ecx
lea eax, [ebp - 0x134]
push eax
call fcn.0042bd64
mov word [ebp - 0x20], 0x14
add esp, 8
lea edx, [ebp - 0x134]
lea eax, [ebp - 8]
call fcn.0043862c
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042245c
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004386a0
inc dword [0x46b1c8]
mov ecx, dword [ebp + 8]
sub ecx, 3
je 0x4021e7
dec ecx
je 0x40223e
sub ecx, 4
je 0x4021c2
sub ecx, 3
je 0x40220c
jmp 0x402261
mov byte [0x46a881], 1
lea eax, [ebp - 0x134]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00412c20
add esp, 8
mov ebx, eax
mov byte [0x46a881], 0
jmp 0x402261
mov byte [0x46a882], 1
lea eax, [ebp - 0x134]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004100e8
add esp, 8
mov ebx, eax
mov byte [0x46a882], 0
jmp 0x402261
mov byte [0x46a883], 1
cmp dword [0x43c190], 0
je 0x402233
lea eax, [ebp - 0x134]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00418d18
add esp, 8
mov ebx, eax
jmp 0x402235
xor ebx, ebx
mov byte [0x46a883], 0
jmp 0x402261
mov byte [0x46a884], 1
lea eax, [ebp - 0x134]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00416d58
add esp, 8
mov ebx, eax
mov byte [0x46a884], 0
mov word [ebp - 0x20], 0x20
dec dword [0x46b1c8]
lea edx, [ebp - 0x134]
lea eax, [ebp - 0xc]
call fcn.0043862c
inc dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00422478
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004386a0
mov eax, ebx
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404168
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [0x443fec]
cmp byte [0x46b0a0], 0xe9
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x443ff0]
mov dword [ebp - 8], eax
mov eax, dword [0x443ff4]
mov dword [ebp - 4], eax
je 0x40419f
xor eax, eax
jmp 0x40426f
xor ecx, ecx
xor edx, edx
mov cl, byte [0x46b0a2]
mov dl, byte [0x46b0a1]
shl ecx, 8
push 0
add edx, ecx
mov dword [0x46b1c4], edx
add dword [0x46b1c4], 3
mov eax, dword [0x46b1c4]
push eax
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
lea edi, [ebp - 0xc]
push esi
call fcn.00430138
pop ecx
cmp al, byte [edi]
je 0x4041e9
xor eax, eax
jmp 0x40426f
inc ebx
inc edi
cmp ebx, 0xb
jl 0x4041d7
push 1
push esi
push 0xa
call fcn.00401410
add esp, 0xc
dec eax
je 0x404204
xor eax, eax
jmp 0x40426f
push 0
mov edx, dword [0x46b1c4]
add edx, 0x66
push edx
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
mov edi, 0x46b0a0
push esi
call fcn.00430138
pop ecx
xor al, 0xff
mov byte [edi], al
inc ebx
inc edi
cmp ebx, 3
jl 0x404220
push 0
push 0
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
mov edi, 0x46b0a0
push esi
xor eax, eax
mov al, byte [edi]
push eax
call fcn.00430160
add esp, 8
inc ebx
inc edi
cmp ebx, 3
jl 0x404246
push esi
call fcn.00418690
pop ecx
inc eax
jne 0x40426a
or eax, 0xffffffff
jmp 0x40426f
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404508
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [0x444010]
mov dword [ebp - 0x10], eax
mov eax, dword [0x444014]
mov dword [ebp - 0xc], eax
mov eax, dword [0x444018]
mov dword [ebp - 8], eax
push 0
push 0x16
push esi
call fcn.0042e350
add esp, 0xc
push esi
call fcn.00418670
movzx edx, ax
mov dword [0x46b1c4], edx
pop ecx
mov ecx, dword [0x46b1c4]
push 0
shl ecx, 4
mov dword [0x46b1c4], ecx
mov eax, dword [0x46b1c4]
add eax, 3
push eax
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
lea edi, [ebp - 0x10]
cmp bx, 1
jne 0x404583
push esi
call fcn.00430138
pop ecx
jmp 0x404595
push esi
call fcn.00430138
pop ecx
cmp al, byte [edi]
je 0x404595
xor eax, eax
jmp 0x4046a4
inc ebx
inc edi
cmp bx, 0xc
jb 0x404574
push 1
push esi
push 0xc
call fcn.00401410
add esp, 0xc
dec eax
je 0x4045b4
xor eax, eax
jmp 0x4046a4
push 0
mov edx, dword [0x46b1c4]
add edx, 0x4f7
push edx
push esi
call fcn.0042e350
add esp, 0xc
push esi
call fcn.00418670
pop ecx
xor ebx, ebx
mov word [ebp - 4], ax
mov edi, 0x46b0a0
push esi
call fcn.00418670
pop ecx
inc ebx
mov word [ebp - 2], ax
mov word [edi], ax
mov dx, word [ebp - 4]
xor word [edi], dx
add edi, 2
mov cx, word [ebp - 2]
mov word [ebp - 4], cx
cmp bx, 0xd
jb 0x4045de
push 0
mov eax, dword [0x46b1c4]
add eax, 0x538
push eax
push esi
call fcn.0042e350
add esp, 0xc
push esi
call fcn.00418670
pop ecx
mov word [ebp - 4], ax
push esi
call fcn.00418670
pop ecx
mov word [ebp - 2], ax
movzx edx, word [ebp - 2]
movzx ecx, word [ebp - 4]
mov ax, word [ebp - 2]
xor edx, ecx
mov word [ebp - 4], ax
push esi
mov dword [0x46b1c4], edx
call fcn.00418670
xor ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
movzx edx, word [ebp - 2]
shl edx, 0x10
push 0
add dword [0x46b1c4], edx
push 0
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
mov edi, 0x46b0a0
push esi
mov ax, word [edi]
push eax
call fcn.00418654
add esp, 8
inc ebx
add edi, 2
cmp bx, 0xd
jb 0x404679
push esi
call fcn.00418690
pop ecx
inc eax
jne 0x40469f
or eax, 0xffffffff
jmp 0x4046a4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x44401c]
movsx edx, word [0x46b0a8]
movsx ecx, word [0x46b0b6]
push ebx
push esi
push edi
add edx, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x444020]
mov dword [ebp - 0xc], eax
mov eax, dword [0x444024]
mov dword [ebp - 8], eax
mov dword [0x46b1c4], edx
mov eax, dword [0x46b1c4]
push 0
shl eax, 4
mov dword [0x46b1c4], eax
movsx edx, word [0x46b0b4]
add dword [0x46b1c4], edx
mov ecx, dword [0x46b1c4]
push ecx
push ebx
call fcn.0042e350
add esp, 0xc
xor esi, esi
lea edi, [ebp - 0x10]
push ebx
call fcn.00430138
pop ecx
cmp al, byte [edi]
je 0x40472c
xor eax, eax
jmp 0x404839
inc esi
inc edi
cmp si, 0xc
jb 0x40471a
push 1
push ebx
push 0xc
call fcn.00401410
add esp, 0xc
dec eax
je 0x40474b
xor eax, eax
jmp 0x404839
sub dword [0x46b1c4], 3
push 0
mov edx, dword [0x46b1c4]
add edx, 0x4f9
push edx
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.00418670
pop ecx
mov edi, 0x46b0a2
mov word [ebp - 4], ax
mov si, 1
push ebx
call fcn.00418670
pop ecx
inc esi
mov word [ebp - 2], ax
mov word [edi], ax
mov dx, word [ebp - 4]
xor word [edi], dx
add edi, 2
mov cx, word [ebp - 2]
mov word [ebp - 4], cx
cmp si, 0xd
jb 0x40477e
push 0
mov eax, dword [0x46b1c4]
add eax, 0x538
push eax
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
call fcn.00418670
pop ecx
mov word [ebp - 4], ax
push ebx
call fcn.00418670
pop ecx
mov word [ebp - 2], ax
mov dx, word [ebp - 2]
xor dx, word [ebp - 4]
movzx ecx, dx
mov ax, word [ebp - 2]
mov dword [0x46b1c4], ecx
mov word [ebp - 4], ax
push ebx
call fcn.00418670
xor ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
movzx edx, word [ebp - 2]
shl edx, 0x10
push 0
add dword [0x46b1c4], edx
push 0
push ebx
call fcn.0042e350
add esp, 0xc
push ebx
push 2
push 0xd
push 0x46b0a0
call fcn.0042e540
add esp, 0x10
push ebx
call fcn.00418690
pop ecx
inc eax
jne 0x404834
or eax, 0xffffffff
jmp 0x404839
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0x444045]
movsx edx, word [0x46b0a8]
movsx ecx, word [0x46b0b6]
push ebx
push esi
push edi
add edx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x444049]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44404d]
mov dword [ebp - 8], eax
mov dword [0x46b1c4], edx
mov eax, dword [0x46b1c4]
push 0
shl eax, 4
mov dword [0x46b1c4], eax
movsx edx, word [0x46b0b4]
add dword [0x46b1c4], edx
mov ecx, dword [0x46b1c4]
push ecx
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
lea edi, [ebp - 0x10]
push esi
call fcn.00430138
pop ecx
cmp al, byte [edi]
je 0x405be0
xor eax, eax
jmp 0x405c7a
inc ebx
inc edi
cmp bx, 0xc
jb 0x405bce
push 1
push esi
push 0x13
call fcn.00401410
add esp, 0xc
dec eax
je 0x405bfc
xor eax, eax
jmp 0x405c7a
push 0
mov edx, dword [0x46b1c4]
add edx, 0x407
push edx
push esi
call fcn.0042e350
add esp, 0xc
push esi
call fcn.00418670
pop ecx
mov edi, 0x46b0a2
mov word [ebp - 2], ax
mov bx, 1
push esi
call fcn.00418670
mov dx, word [ebp - 2]
pop ecx
xor dx, ax
inc ebx
mov word [edi], dx
add edi, 2
cmp bx, 0xc
mov word [ebp - 2], ax
jb 0x405c28
push 0
push 0
push esi
call fcn.0042e350
add esp, 0xc
push esi
push 2
push 0xc
push 0x46b0a0
call fcn.0042e540
add esp, 0x10
push esi
call fcn.00418690
pop ecx
inc eax
jne 0x405c75
or eax, 0xffffffff
jmp 0x405c7a
mov eax, 0x13
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406aec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [0x444089]
movsx edx, word [0x46b0a8]
push ebx
push esi
push edi
movsx ecx, word [0x46b0b6]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x44408d]
add edx, ecx
mov dword [ebp - 0x10], eax
mov ax, word [0x444091]
mov dword [0x46b1c4], edx
mov word [ebp - 0xc], ax
mov eax, dword [0x46b1c4]
shl eax, 4
push 0
mov dword [0x46b1c4], eax
movsx edx, word [0x46b0b4]
add dword [0x46b1c4], edx
sub dword [0x46b1c4], 0x1e6a
mov ecx, dword [0x46b1c4]
push ecx
push edi
call fcn.0042e350
add esp, 0xc
push edi
call fcn.00430138
pop ecx
mov dl, 0xbe
sub dl, al
mov byte [ebp - 9], dl
push edi
call fcn.00418670
pop ecx
xor esi, esi
lea ebx, [ebp - 0x14]
mov al, byte [ebp - 9]
sub byte [ebx], al
push edi
call fcn.00430138
pop ecx
cmp al, byte [ebx]
je 0x406b92
xor eax, eax
jmp 0x406c8a
inc esi
inc ebx
cmp esi, 0xa
jl 0x406b7b
push 1
push edi
push 0x1a
call fcn.00401410
add esp, 0xc
dec eax
je 0x406bb0
xor eax, eax
jmp 0x406c8a
push 0
mov edx, dword [0x46b1c4]
add edx, 0x16b
push edx
push edi
call fcn.0042e350
add esp, 0xc
xor esi, esi
lea ebx, [ebp - 8]
push edi
call fcn.00418670
pop ecx
inc esi
mov word [ebx], ax
mov al, byte [ebx]
add al, byte [ebp - 9]
xor al, 0xff
mov byte [ebx], al
mov dl, byte [ebx + 1]
add dl, byte [ebp - 9]
xor dl, 0xff
mov byte [ebx + 1], dl
add ebx, 2
cmp esi, 4
jl 0x406bcd
mov cx, word [ebp - 8]
mov word [0x46b0b4], cx
mov ax, word [ebp - 6]
mov word [0x46b0b6], ax
mov dx, word [ebp - 4]
mov word [0x46b0b0], dx
mov cx, word [ebp - 2]
mov word [0x46b0ae], cx
mov eax, dword [0x46b1c4]
test eax, eax
jns 0x406c2e
add eax, 0x1ff
sar eax, 9
mov word [0x46b0a4], ax
shl eax, 9
mov dx, word [0x46b1c4]
sub dx, ax
mov word [0x46b0a2], dx
test dx, dx
je 0x406c57
inc word [0x46b0a4]
push 0
push 0
push edi
call fcn.0042e350
add esp, 0xc
push edi
push 2
push 0xc
push 0x46b0a0
call fcn.0042e540
add esp, 0x10
push edi
call fcn.00418690
pop ecx
inc eax
jne 0x406c85
or eax, 0xffffffff
jmp 0x406c8a
mov eax, 0x1a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
movsx edx, byte [ebp + 0xc]
cmp edx, 8
ja case.0x406f98.0
jmp dword [edx*4 + 0x406f9f]
add ecx, eax
mov eax, ecx
jmp case.0x406f98.0
sub al, cl
jmp case.0x406f98.0
xor al, cl
jmp case.0x406f98.0
xor edx, edx
jmp 0x406fef
mov ebx, eax
add eax, eax
and bl, 0x80
mov esi, ebx
mov bl, 1
and esi, 0xff
test si, si
jne 0x406fec
dec ebx
or al, bl
inc edx
movsx ebx, dx
mov esi, ecx
and esi, 0xff
cmp ebx, esi
jl 0x406fd5
jmp case.0x406f98.0
xor edx, edx
jmp 0x407020
mov ebx, eax
and bl, 1
mov esi, ebx
mov bl, 0x80
shr al, 1
and esi, 0xff
test si, si
jne 0x40701d
add ebx, 0xffffff80
or al, bl
inc edx
movsx ebx, dx
mov esi, ecx
and esi, 0xff
cmp ebx, esi
jl 0x407004
jmp case.0x406f98.0
add eax, 0xff
jmp case.0x406f98.0
inc eax
jmp case.0x406f98.0
xor edx, edx
mov dl, al
mov ecx, edx
neg ecx
mov eax, ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x407a48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [0x444137]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44413b]
mov dword [ebp - 8], eax
mov eax, dword [0x44413f]
mov dword [ebp - 4], eax
mov al, byte [0x46b0a0]
cmp al, 0xe9
jne 0x407ab2
xor ecx, ecx
xor edx, edx
mov cl, byte [0x46b0a2]
mov dl, byte [0x46b0a1]
shl ecx, 8
push 0
add edx, ecx
mov dword [0x46b1c4], edx
add dword [0x46b1c4], 3
mov eax, dword [0x46b1c4]
push eax
push esi
call fcn.0042e350
add esp, 0xc
push esi
call fcn.00430138
pop ecx
cmp al, 0xbe
je 0x407abd
xor eax, eax
jmp 0x407b86
push esi
call fcn.00418670
movzx edx, ax
mov dword [0x46b1c4], edx
pop ecx
sub dword [0x46b1c4], 0x100
push 0
mov ecx, dword [0x46b1c4]
push ecx
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
lea edi, [ebp - 0xc]
push esi
call fcn.00430138
pop ecx
cmp al, byte [edi]
je 0x407b00
xor eax, eax
jmp 0x407b86
inc ebx
inc edi
cmp ebx, 0xc
jl 0x407aee
push 1
push esi
push 0x22
call fcn.00401410
add esp, 0xc
dec eax
je 0x407b1b
xor eax, eax
jmp 0x407b86
push 0
mov edx, dword [0x46b1c4]
add edx, 0x524
push edx
push esi
call fcn.0042e350
add esp, 0xc
mov ebx, 5
push esi
call fcn.00430138
mov edx, 5
xor al, bl
sub edx, ebx
dec ebx
pop ecx
test ebx, ebx
mov byte [edx + 0x46b0a0], al
jg 0x407b38
push 0
push 0
push esi
call fcn.0042e350
add esp, 0xc
push esi
push 5
push 1
push 0x46b0a0
call fcn.0042e540
add esp, 0x10
push esi
call fcn.00418690
pop ecx
inc eax
jne 0x407b81
or eax, 0xffffffff
jmp 0x407b86
mov eax, 0x22
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [0x444143]
movsx edx, word [0x46b0a8]
movsx ecx, word [0x46b0b6]
push ebx
push esi
push edi
add edx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x444147]
mov dword [ebp - 0x14], eax
mov eax, dword [0x44414b]
mov dword [ebp - 0x10], eax
mov dword [0x46b1c4], edx
mov eax, dword [0x46b1c4]
push 0
shl eax, 4
mov dword [0x46b1c4], eax
movsx edx, word [0x46b0b4]
add dword [0x46b1c4], edx
sub dword [0x46b1c4], 0x2c
mov ecx, dword [0x46b1c4]
push ecx
push esi
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
lea edi, [ebp - 0x18]
push esi
call fcn.00430138
pop ecx
cmp al, byte [edi]
je 0x407c17
xor eax, eax
jmp 0x407ce6
inc ebx
inc edi
cmp ebx, 0xc
jl 0x407c05
push 1
push esi
push 0x22
call fcn.00401410
add esp, 0xc
dec eax
je 0x407c35
xor eax, eax
jmp 0x407ce6
push 0
mov edx, dword [0x46b1c4]
add edx, 0x524
push edx
push esi
call fcn.0042e350
add esp, 0xc
mov ebx, 0xa
push esi
call fcn.00430138
mov edx, 0xa
xor al, bl
sub edx, ebx
dec ebx
pop ecx
test ebx, ebx
mov byte [ebp + edx - 0xc], al
jg 0x407c52
mov eax, dword [0x46b1c4]
test eax, eax
jns 0x407c79
add eax, 0x1ff
sar eax, 9
mov word [0x46b0a4], ax
shl eax, 9
mov dx, word [0x46b1c4]
sub dx, ax
mov word [0x46b0a2], dx
test dx, dx
je 0x407ca2
inc word [0x46b0a4]
push 0
push 0
push esi
call fcn.0042e350
add esp, 0xc
push esi
push 2
push 7
push 0x46b0a0
call fcn.0042e540
add esp, 0x10
push esi
push 1
push 0xa
lea eax, [ebp - 0xc]
push eax
call fcn.0042e540
add esp, 0x10
push esi
call fcn.00418690
pop ecx
inc eax
jne 0x407ce1
or eax, 0xffffffff
jmp 0x407ce6
mov eax, 0x22
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret