joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458440
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0xffffffff
jne 0x458455
call fcn.00458230
mov esi, eax
mov edi, 0x47a434
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx ebx, ax
xor eax, eax
mov ecx, 0x47a430
lea ebx, [ebx]
mov edx, dword [ecx]
cmp edx, ebx
jne 0x458479
lea edi, [ecx + 0x2c]
cmp edx, esi
je 0x458492
add ecx, 0x54
inc eax
cmp ecx, 0x47e870
jl 0x458470
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
imul eax, eax, 0x54
pop edi
pop esi
add eax, 0x47a45c
pop ebx
pop ebp
ret 4

Function at 0x458930
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468b76
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x497060]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov eax, dword [0x497060]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458a91
push 0x4827f0
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x458a91
push 0x103
lea eax, [esp + 0x49]
push 0
push eax
mov byte [esp + 0x50], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push esi
push 0x104
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
push dword [esp + 0x20]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x14
test esi, esi
je 0x458a91
lea ecx, [esp + 0x44]
call fcn.004601d0
mov esi, eax
test esi, esi
je 0x458a91
push esi
lea ecx, [esp + 0x30]
call fcn.0041d3e0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x160], 0
call fcn.004584b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 2
call fcn.0041d420
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call fcn.00408270
push eax
lea ecx, [esp + 0x10]
call fcn.00458780
lea ecx, [esp + 0x14]
test al, al
je 0x458a81
call fcn.00408270
push eax
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
call fcn.00408890
lea ecx, [esp + 0x14]
call fcn.004082c0
mov al, 1
jmp 0x458aa4
mov dword [esp + 0x160], 0xffffffff
call fcn.004082c0
mov eax, dword [ebp + 0x10]
push str.0.0.0
add eax, eax
push eax
push edi
call fcn.00408890
xor al, al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x458ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x497060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
call fcn.00416440
lea ecx, [eax + 0x208]
push ecx
push eax
push str._s_s.exe
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.004088f0
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458b4c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 8
call fcn.00416540
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push esi
call fcn.00457c20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00460da6
mov esp, ebp
pop ebp
ret 8

Function at 0x458b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1278
call fcn.00461770
mov eax, dword [0x497060]
xor eax, esp
mov dword [esp + 0x1274], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x458cc6
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp + 0x14], 0xa
mov dword [esp + 0x28], 0x44
je 0x458bdf
mov eax, 0xa
mov dword [esp + 0x54], 1
mov word [esp + 0x58], ax
xor eax, eax
push 0xffe
push eax
mov word [esp + 0x280], ax
lea eax, [esp + 0x282]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x1c], xmm0
call sub.MSVCR110.dll_memset
add esp, 0xc
test edi, edi
je 0x458c28
push edi
push esi
push str.__s___s
lea eax, [esp + 0x284]
push 0x1000
push eax
call fcn.004088f0
add esp, 0x14
xor eax, eax
push 0x206
push eax
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x70]
push esi
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x458cde
mov eax, dword [0x49c9ec]
test al, 1
jne 0x458cab
or eax, 1
push 0x46a6f0
mov dword [0x49c9ec], eax
call fcn.00460eed
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Failed_to_launcher_application:__s__cmd_line__s__error_code_:__d
push 0x49c9e8
call fcn.0045f9e0
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x1274]
xor ecx, esp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x458cf0
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x458d01
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x458d0c
push eax
call esi
mov ecx, dword [esp + 0x127c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x458d30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x497060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x49c9f0]
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x40
test al, 1
jne 0x458d90
or eax, 1
push 0x46a700
mov dword [0x49c9f0], eax
call fcn.00460eed
add esp, 4
call fcn.00460040
cmp eax, 3
jle 0x458db4
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ecx, str.runas
test eax, eax
cmovne ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x23c], ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], edi
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x208
push eax
call fcn.00408890
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x458e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
je 0x458e52
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x458f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push 0x208
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
push dword [ebp + 8]
push 0x104
push edi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
cmp byte [ebp + 0xc], 0
je 0x458f5a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458f5a
push eax
push eax
push 1
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x458f5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x458fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x497060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458fed
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
xor eax, eax
xorps xmm0, xmm0
push 0x4836a0
mov word [ebp - 0x2c], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x2c]
push 0x28
push eax
movq qword [ebp - 0x2a], xmm0
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
call fcn.004088f0
add esp, 0x10
lea eax, [ebp - 0x2c]
push esi
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x459080
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x497060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ecx + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4590bf
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x54]
push esi
push 0x50
push eax
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xffffffff
je 0x459121
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4590f0
sub ecx, edx
sar ecx, 1
je 0x459121
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi64]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460da6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x459180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4591db
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4591db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4591f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x459234
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x459234
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x459580
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4595b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.004626b0
mov dword [esp + 0xc], eax
test esi, esi
jne 0x4595b9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x483798
lea ecx, [esp + 8]
call fcn.00459460
int3

Function at 0x45f920
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469818
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x497060]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x497060]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x483854
lea ecx, [esp + 0x14]
call fcn.00410860
mov dword [esp + 0x38], 0
call fcn.004164c0
mov ecx, eax
call fcn.00438ae0
push eax
lea ecx, [esp + 0x14]
call fcn.004160b0
lea ecx, [esp + 0x10]
call fcn.00408270
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [esp + 0x10]
setne bl
mov dword [esp + 0x38], 0xffffffff
call fcn.004082c0
push esi
test bl, bl
je 0x45f9b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x45f9be
push ecx
call fcn.0045fd70
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00460da6
mov esp, ebp
pop ebp
ret 4

Function at 0x45fa80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [0x49b808], 0x40000000
je 0x45fa9f
push dword [ebp + 8]
call fcn.0045fa40
add esp, 4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x45fac0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x49b80c]
test ecx, ecx
je 0x45fc32
cmp eax, ecx
jbe 0x45fc32
mov edx, dword [0x49b810]
push ebx
push esi
test edx, edx
je 0x45fbdb
cmp edx, ecx
jae 0x45fbdb
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
sub eax, edx
push eax
push edi
call esi
push dword [0x49b810]
call fcn.00460c1c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45fb32
push 2
push eax
push eax
push edi
call esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x49b810]
xor esi, esi
test eax, eax
je 0x45fb64
lea ecx, [ecx]
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45fbb4
add esi, dword [ebp - 4]
mov eax, dword [0x49b810]
cmp esi, eax
jb 0x45fb40
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call eax
push 2
lea edx, [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], 0xfeff
call fcn.0045fa80
add esp, 4
lea eax, [ebp - 4]
push 0
push eax
push dword [0x49b810]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, dword [0x49b810]
jae 0x45fb64
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
push 2
push 0
push 0
push edi
call eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test dword [0x49b808], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x45fc0f
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x45fc0f
cmp al, 0x5a
je 0x45fc0f
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x45fc40
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x49b800], 0
push edi
mov edi, edx
je 0x45fd63
push esi
push 0x80
push 0x49b83c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x49b83c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45fd62
mov ecx, dword [0x49b808]
and ecx, 4
test cl, 7
je 0x45fca4
mov ecx, esi
call fcn.0045fac0
push ebx
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45fd02
test dword [0x49b808], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x45fcec
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x45fcec
cmp al, 0x5a
je 0x45fcec
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 8], 0
call ebx
test edi, edi
jne 0x45fd0a
xor ecx, ecx
jmp 0x45fd21
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fd10
sub ecx, edx
sar ecx, 1
add ecx, ecx
test dword [0x49b808], 0x40000000
je 0x45fd48
push ecx
mov edx, edi
mov ecx, esi
call fcn.0045fa40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edi
push esi
mov dword [ebp - 8], 0
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x460040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x497060]
xor eax, ebp
mov dword [ebp - 4], eax
push str.RtlGetVersion
push str.ntdll
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x460095
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x4600aa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4601bf
cmp dword [ebp - 0x110], 2
jne 0x4601bf
mov eax, dword [ebp - 0x11c]
cmp eax, 4
ja 0x4600d5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x46012b
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4600f7
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x46010f
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4601bf
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4601ba
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x460156
cmp byte [ebp - 6], 1
setne al
add eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x460175
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x46018d
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4601a5
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
jbe 0x4601bf
mov eax, 0x64
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret
cmp eax, 7
jae 0x4601a7
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00460da6
mov esp, ebp
pop ebp
ret
Function at 0x4602a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
test eax, eax
je 0x460379
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x460379
push edi
push 0x100
call fcn.00460c1c
mov edx, dword [ebp + 0xc]
mov edi, eax
push edi
call fcn.00460380
add esp, 8
test eax, eax
jne 0x4602e5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push ebx
xor ebx, ebx
xor ecx, ecx
test eax, eax
jle 0x46035d
sub dword [ebp - 4], esi
mov dword [ebp - 8], eax
inc ebx
and ebx, 0x800000ff
jns 0x460308
dec ebx
or ebx, 0xffffff00
inc ebx
mov dl, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x460320
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov byte [ebx + edi], al
mov dword [ebp - 0x10], ecx
mov byte [ecx + edi], dl
movzx ecx, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x460346
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 4]
inc esi
xor al, byte [ecx + esi - 1]
dec dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov byte [esi - 1], al
jne 0x4602f7
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
push edi
mov dword [eax], edx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x460380
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov ecx, edx
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x4603f4
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x460395
push ebx
push edi
mov dword [ebp - 4], 0
xor edi, edi
jmp 0x4603b0
mov eax, edi
cdq
idiv ecx
mov bl, byte [edi + esi]
movzx ecx, bl
movzx eax, byte [edx + str._______UDPARC4KEYFORHARDKORE1.0.0PACKET1234567890Talkwithfriends_family_orteammatesoverafastandclearconnectionAbilitytousetextchatforanyonewithoutamicrophoneNativeclientandserversupportforall3majorplatformsAutomaticmicrophonevolumenormalizationAd]
add eax, dword [ebp - 4]
add ecx, eax
and ecx, 0x800000ff
jns 0x4603d7
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov dword [ebp - 4], ecx
mov byte [ecx + esi], bl
mov ecx, dword [ebp - 8]
cmp edi, 0x100
jl 0x4603b0
pop edi
or eax, 0xffffffff
pop ebx
pop esi
mov esp, ebp
pop ebp
ret