joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42098b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov dword [esi + 4], eax
cmp eax, edi
jne 0x4209e8
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.00455160
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
je 0x4209e8
lea eax, [esp + 0x18]
push eax
mov ecx, str.thread.entry_event
call fcn.004173b7
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [esi + 8], eax
cmp dword [ecx + 8], edi
jne 0x420a32
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.00455160
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
je 0x420a32
lea eax, [esp + 0x18]
push eax
mov ecx, str.thread.exit_event
jmp 0x4209e3
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x420ac9
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
push edi
call fcn.00441e99
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx + 4], eax
cmp eax, edi
jne 0x420aa5
call ebx
mov ebx, eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [esp + 0xc], edi
je 0x420a74
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x420a85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
call fcn.00455160
mov dword [esp + 0x1c], eax
cmp ebx, edi
je 0x420aa5
lea eax, [esp + 0x18]
push eax
mov ecx, str.thread
jmp 0x4209e3
cmp dword [esp + 0xc], edi
je 0x420ac1
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4257ae
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4b8ed4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x4257f6
call dword [sym.imp.KERNEL32.dll_TerminateThread]
leave
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret

Function at 0x428263
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
mov esi, eax
je 0x428335
cmp byte [ebp + 0x10], 0
je 0x4282b9
mov edi, dword [ebp + 0xc]
test byte [edi], 8
je 0x4282b9
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 6], ax
call fcn.00455160
push 4
lea eax, [ebp - 8]
push eax
push 0xffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edx, 0x80
mov eax, edi
call fcn.004284f3
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
push eax
call fcn.0042c822
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x428335
call fcn.00455160
cmp dword [esi + 4], eax
jne 0x4282ee
cmp dword [esi], 0x2733
je 0x428300
call fcn.00455160
cmp dword [esi + 4], eax
jne 0x42832f
cmp dword [esi], 0x4d5
jne 0x42832f
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
and byte [eax], 0xfc
push 0
call edi
push dword [ebp + 8]
call ebx
push eax
call fcn.0042c822
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x428341
xor edi, edi
call fcn.00455160
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x428349
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
mov esi, eax
mov edi, ecx
jne 0x42836c
mov edi, 0x2719
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], edi
xor al, al
jmp 0x4283ae
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.0042c822
pop ecx
test eax, eax
js 0x4283ab
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], ebx
or byte [edi], 2
mov al, 1
jmp 0x4283ad
xor al, al
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4283b2
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
mov esi, eax
jne 0x4283d3
mov edi, 0x2719
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x428406
push ebx
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.0042c822
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x428403
call fcn.00455160
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x42840a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
push eax
call fcn.0042c822
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
pop ecx
cmp eax, 0x40
jne 0x428454
mov ebx, 0x2746
jmp 0x428460
cmp eax, 0x4d2
jne 0x42846a
mov ebx, 0x274d
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], ebx
cmp dword [ebp - 0xc], edi
je 0x428474
or eax, 0xffffffff
jmp 0x428481
call fcn.00455160
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4284f3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
or ebx, 0xffffffff
push edi
mov esi, ecx
mov edi, edx
cmp dword [ebp + 8], ebx
jne 0x42850c
mov edi, 0x2719
jmp 0x428589
cmp dword [ebp + 0xc], 0xa5100000
jne 0x42854b
cmp edi, 2
jne 0x428521
mov edi, 0x2726
jmp 0x428589
cmp edi, 1
jne 0x42855f
cmp dword [ebp + 0x14], 4
jne 0x42851a
mov ecx, dword [ebp + 0x10]
xor edi, edi
cmp dword [ecx], edi
je 0x42853a
or byte [eax], 4
jmp 0x42853d
and byte [eax], 0xfb
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x428595
cmp dword [ebp + 0xc], 0xffff
jne 0x42855f
cmp edi, 0x80
jne 0x42855f
or byte [eax], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.0042c822
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x428593
xor edi, edi
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x428601
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, eax
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp + 0xc], ebx
jne 0x428655
cmp dword [ebp + 0x10], ebx
jne 0x428655
cmp dword [ebp + 0x14], ebx
jne 0x428655
cmp edi, ebx
je 0x428670
mov eax, dword [edi + 4]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
add eax, ecx
jne 0x42863f
inc eax
push eax
call sub.KERNEL32.dll_Sleep
xor edi, edi
call fcn.00455160
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x42869e
cmp edi, ebx
je 0x428670
cmp dword [edi], ebx
jne 0x428670
mov eax, dword [edi + 4]
cmp eax, ebx
jle 0x428670
mov ecx, 0x3e8
cmp eax, ecx
jge 0x428670
mov dword [edi + 4], ecx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042c822
mov ebx, eax
pop ecx
test ebx, ebx
js 0x42869c
xor edi, edi
call fcn.00455160
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x428d8a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 5]
xor ebx, ebx
push esi
mov byte [ebp - 5], bl
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
call fcn.00455160
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.00455160
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x428de6
cmp eax, 0x4d2
jne 0x428deb
call fcn.00455160
cmp esi, ebx
jne 0x428df4
call fcn.00455160
pop esi
pop ebx
leave
ret 4

Function at 0x42973c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [ebx + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x42975b
push 0
push 0
jmp 0x42976c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x429776
push 0
push 0x2719
mov eax, dword [ebx + 4]
call fcn.004281f7
jmp 0x4297ca
and dword [ebp + 0x18], 0
push edi
push 0
push esi
push dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x4297a6
mov eax, 0x274d
test edi, edi
je 0x4297bf
cmp eax, 0x3e5
je 0x4297bf
push dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 4]
call fcn.004281f7
jmp 0x4297c9
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.00428198
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x4297cf
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [ebx + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x4297ee
push 0
push 0
jmp 0x4297ff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x429809
push 0
push 0x2719
mov eax, dword [ebx + 4]
call fcn.004281f7
jmp 0x429870
mov ecx, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push esi
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x429840
mov eax, 0x2746
jmp 0x42984c
cmp eax, 0x4d2
jne 0x42984c
mov eax, 0x274d
test edi, edi
je 0x429865
cmp eax, 0x3e5
je 0x429865
push dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 4]
call fcn.004281f7
jmp 0x42986f
mov eax, dword [ebx + 4]
mov edi, esi
call fcn.00428198
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x434ce3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x420], eax
xor eax, eax
mov esi, 0x208
xor edi, edi
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x434], edi
call fcn.00442320
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00442320
add esp, 0x18
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x430], edi
cmp ebx, edi
je 0x434eab
xor eax, eax
cmp ax, word [ebx]
je 0x434eab
cmp dword [ebp - 0x420], edi
je 0x434eab
push esi
push edi
push dword [ebp - 0x420]
call fcn.00442320
add esp, 0xc
push edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x434ea3
push esi
call fcn.0044121c
pop ecx
mov dword [ebp - 0x428], eax
cmp eax, edi
je 0x434ea3
push eax
push esi
push edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x434e97
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x497178
push dword [ebp - 0x428]
call esi
test eax, eax
je 0x434e97
xor ebx, ebx
test dword [ebp - 0x424], 0xfffffffc
jbe 0x434e75
mov eax, dword [ebp - 0x430]
lea eax, [eax + ebx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00461aba
add esp, 0x18
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x42c], edi
call esi
test eax, eax
jne 0x434e5d
mov eax, dword [ebp - 0x424]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x434df9
jmp 0x434e75
push 0x104
push dword [ebp - 0x42c]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x434], 1
push dword [ebp - 0x428]
call fcn.00441227
pop ecx
mov eax, dword [ebp - 0x434]
jmp 0x434ead
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret
Function at 0x434ef1
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00442320
push 0x4971fc
push edi
call fcn.00456c81
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x210]
jne 0x434f71
push ebx
push esi
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
sub esi, ebx
push esi
push edi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00456ae9
add esp, 0x10
pop esi
pop ebx
jmp 0x434f85
push 0x104
push edi
push 0x105
push eax
call fcn.0044a95d
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434f9a
xor eax, eax
jmp 0x434fab
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440747
leave
ret

Function at 0x43508f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, 0xfffffc18
mov dword [ebp - 0x118], 0x114
call fcn.00442320
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43520d
cmp dword [ebp - 0x108], 2
jne 0x43520d
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
mov dword [edi], eax
mov dword [ebx], ecx
cmp eax, 5
jne 0x435188
test ecx, ecx
jne 0x43510f
xor esi, esi
inc esi
jmp 0x43520d
cmp ecx, 1
jne 0x435177
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.00441558
add esp, 0xc
test eax, eax
jne 0x435132
push 3
jmp 0x435182
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.00441558
add esp, 0xc
test eax, eax
jne 0x435150
push 4
jmp 0x435182
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.00441558
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 5
jmp 0x43520d
cmp ecx, 2
jne 0x43520d
push 6
pop esi
jmp 0x43520d
cmp eax, 6
jne 0x435206
test ecx, ecx
jne 0x4351d3
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.00441558
add esp, 0xc
test eax, eax
jne 0x4351af
push 8
jmp 0x435182
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.00441558
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 9
jmp 0x43520d
cmp ecx, 1
jne 0x4351dc
push 0xa
jmp 0x435182
call fcn.00435060
movzx eax, ax
cmp eax, 2
jne 0x4351ed
push 0xb
jmp 0x435182
xor ecx, ecx
cmp eax, 3
setne cl
lea esi, [ecx - 1]
and esi, 0xfffffc24
add esi, 0x3e8
jmp 0x43520d
jbe 0x43520d
mov esi, 0x3e8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00440747
leave
ret
Function at 0x435378
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
push edi
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
xor edi, edi
sub esi, eax
lea eax, [esi + edi*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + edi*4 - 0x14], eax
inc edi
cmp edi, 4
jl 0x4353c5
push 0x10
xor eax, eax
pop esi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
add edx, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add ecx, edi
dec esi
jne 0x4353ee
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret
Function at 0x435465
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
push edi
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
xor edi, edi
sub esi, eax
lea eax, [esi + edi*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + edi*4 - 0x14], eax
inc edi
cmp edi, 4
jl 0x4354b2
push 0x10
mov eax, 0xe3779b90
pop esi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
mov ebx, edx
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
sub ecx, edi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x10]
mov ebx, ecx
shl ebx, 4
add ebx, dword [ebp - 0x14]
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
sub edx, edi
add eax, 0x61c88647
dec esi
jne 0x4354de
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret
Function at 0x435bfa
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push esi
push edi
mov esi, edx
xor edi, edi
mov dword [ebp - 0x208], eax
cmp esi, edi
jne 0x435c2b
or eax, 0xffffffff
jmp 0x435d6d
cmp dword [ebp + 8], edi
jg 0x435c38
push 0xfffffffffffffffe
pop eax
jmp 0x435d6d
cmp dword [ebp + 0x14], edi
jne 0x435c41
push 0xfffffffffffffffd
jmp 0x435c32
cmp dword [ebp + 0x10], edi
jg 0x435c4a
push 0xfffffffffffffffc
jmp 0x435c32
cmp eax, edi
jne 0x435c52
push 0xfffffffffffffffb
jmp 0x435c32
cmp ecx, edi
jg 0x435c5a
push 0xfffffffffffffffa
jmp 0x435c32
cmp dword [ebp + 0x10], ecx
jge 0x435c63
push 0xfffffffffffffff9
jmp 0x435c32
xor edx, edx
xor ecx, ecx
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 8]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x100
jl 0x435c67
xor esi, esi
push ebx
movzx ecx, byte [ebp + edi - 0x204]
lea eax, [ebp + edi - 0x104]
mov dl, byte [eax]
movzx ebx, dl
add esi, ecx
add esi, ebx
and esi, 0x800000ff
jns 0x435cb3
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi - 0x104]
mov bl, byte [ecx]
inc edi
mov byte [ecx], dl
mov byte [eax], bl
cmp edi, 0x100
jl 0x435c8b
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x20c], edi
cmp eax, edi
jle 0x435d6a
mov esi, dword [ebp - 0x208]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], eax
inc edi
and edi, 0x800000ff
jns 0x435d04
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi - 0x104]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x20c]
and ecx, 0x800000ff
jns 0x435d24
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax]
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp + ecx - 0x104]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
movzx ecx, byte [ecx]
movzx eax, dl
add eax, ecx
and eax, 0x800000ff
jns 0x435d4f
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov ecx, dword [ebp - 0x210]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x208]
jne 0x435cf3
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00440747
leave
ret