joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a062d
Capabilities:
Write file on windows

Disassembly:
push 0
mov eax, 0x59229e
call fcn.004fed1d
test byte [ebp + 0xc], 1
mov ebx, dword [ebp + 8]
je 0x4a065e
lea esi, [ebx + 0x2c]
cmp dword [esi], 0
jne 0x4a065e
mov eax, dword [ebp + 0x18]
cmp dword [eax], 4
jne 0x4a065e
mov edi, dword [eax + 4]
cmp dword [esi], edi
je 0x4a065e
call fcn.004a0c7d
cmp dword [ebx + 0x2c], 0
je 0x4a06db
mov esi, dword [ebp + 0x10]
sub esi, dword [ebx + 0x30]
mov eax, 0x1000
cmp esi, eax
jl 0x4a067c
mov eax, 0xa00000
cmp esi, eax
jle 0x4a067e
mov esi, eax
push esi
call fcn.004f499a
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x2c]
and dword [ebp + 0xc], 0
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push esi
push edi
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp + 0xc]
add dword [ebx + 0x30], eax
test eax, eax
jbe 0x4a06bf
mov ecx, dword [ebx + 0x34]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
push edi
call fcn.004f6734
pop ecx
cmp esi, reloc.WS2_32.dll_ioctlsocket
je 0x4a06db
cmp esi, 1
je 0x4a06db
test esi, esi
jge 0x4a0664
xor eax, eax
call fcn.004fedbc
ret 0x14

Function at 0x4a075a
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x59878f
call fcn.004fed1d
push 2
pop esi
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a0781
mov ecx, dword [ebp + 0xc]
call fcn.0049c3b6
push 0
push 0x80
push esi
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a07c4
xor esi, esi
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
lea ecx, [ebp + 0x10]
call fcn.00406760
mov eax, esi
call fcn.004fedbc
ret
push 0x38
call fcn.004f78be
pop ecx
test eax, eax
je 0x4a07dc
push esi
mov esi, eax
call fcn.004a0602
mov ebx, eax
jmp 0x4a07de
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4a07eb
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [ebp + 0x18]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
xor ecx, ecx
push 0
push dword [ebp + 8]
call fcn.004a03ba
mov esi, eax
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4a07a4
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
jmp 0x4a07a4
Function at 0x4a0813
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x59878f
call fcn.004fed1d
push 2
pop esi
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a083a
mov ecx, dword [ebp + 0xc]
call fcn.0049c3b6
xor edi, edi
push edi
push 0x80
push esi
push edi
push edi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a087a
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
lea ecx, [ebp + 0x10]
call fcn.00406760
mov eax, edi
call fcn.004fedbc
ret
push 0x38
call fcn.004f78be
pop ecx
cmp eax, edi
je 0x4a0892
push esi
mov esi, eax
call fcn.004a0602
mov esi, eax
jmp 0x4a0894
xor esi, esi
mov dword [ebp - 0x10], esi
cmp esi, edi
je 0x4a08a1
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp + 0x14]
mov byte [ebp - 4], 3
push edi
push edi
push dword [ebp + 8]
push esi
call fcn.004a0497
mov ebx, eax
mov byte [ebp - 4], 2
cmp esi, edi
je 0x4a08c3
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edi, ebx
jmp 0x4a085a
Function at 0x4a55eb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x80c
mov eax, 0x5942ff
call fcn.004fed86
mov esi, ecx
mov edi, edx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x814], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004fe380
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x818], 0x400
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4a566c
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
xor eax, eax
jmp 0x4a5693
lea edx, [ebp - 0x810]
call fcn.00406780
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
xor eax, eax
test esi, esi
setne al
call fcn.004fedd0
ret 8

Function at 0x4a57da
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
sub esp, 0x2d0
lea ebp, [esp - 4]
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x2d0], eax
push 0x1c
mov eax, 0x59625d
call fcn.004fed1d
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
call fcn.00406670
xor ebx, ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
inc ebx
push eax
mov dword [ebp - 0x20], ebx
call fcn.0049d3a8
xor eax, eax
mov dword [ebp - 4], ebx
push 0xc6
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.004fe380
add esp, 0x10
push 0x64
lea eax, [ebp + 0x208]
push eax
call fcn.0051b4b0
push 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push str.userid
push str.Software360Safe
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x10], edi
jne 0x4a58f8
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.004fe380
add esp, 0xc
lea esi, [ebp - 0x18]
call fcn.00406670
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004a5945
test eax, eax
je 0x4a58cd
push str.360oemoeminfo.ini
push dword [ebp - 0x18]
lea eax, [ebp]
push 0x5d7fec
push 0x104
push eax
call fcn.00407c70
add esp, 0x14
lea eax, [ebp]
push eax
push ebx
push 0x5d8094
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.00406760
cmp dword [ebp - 0x10], edi
jne 0x4a58f8
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp - 0x24]
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x14]
push str.srvver_sappver_suid_dm_s
call fcn.00407710
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00406760
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2d0]
xor ecx, ebp
call fcn.004f673f
add ebp, 0x2d4
leave
ret
Function at 0x4a5945
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2194]
mov eax, 0x2214
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x2190], eax
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1f88]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
mov edi, ecx
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4a59d3
lea eax, [ebp + 0x1f88]
push 0x5c
push eax
call fcn.004f7f30
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
push 0x1000
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1f88]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4a59d3
lea edx, [ebp + 0x1f88]
call fcn.00406780
xor eax, eax
inc eax
jmp 0x4a59d5
xor eax, eax
mov ecx, dword [ebp + 0x2190]
xor ecx, ebp
pop edi
call fcn.004f673f
add ebp, 0x2194
leave
ret

Function at 0x4a59eb
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x5a30be
call fcn.004fed1d
mov esi, ecx
call fcn.0041a070
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.004066b0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov edx, str.loader
call fcn.00409e60
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x14]
push eax
mov ecx, str.promote_background.png
call fcn.004066b0
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004a5afe
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
mov byte [ebp - 4], 0
call fcn.00406760
test bl, bl
je 0x4a5a74
lea ecx, [ebp - 0x10]
call fcn.00406760
xor eax, eax
call fcn.004fedbc
ret 4
lea eax, [ebp - 0x14]
push eax
mov ecx, str.default_button.png
call fcn.004066b0
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.004a5afe
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
mov byte [ebp - 4], 0
call fcn.00406760
test bl, bl
jne 0x4a5a62
lea eax, [ebp - 0x14]
push eax
mov ecx, str.finished_button.png
call fcn.004066b0
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.004a5afe
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.00406760
xor esi, esi
test bl, bl
je 0x4a5afb
lea ecx, [ebp - 0x10]
call fcn.00406760
mov eax, esi
jmp 0x4a5a6c
inc esi
jmp 0x4a5aec
Function at 0x4a5afe
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x5a3083
call fcn.004fed1d
mov esi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edx, 0x5d7f4c
call fcn.00409e60
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409a20
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a5b58
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
push ecx
mov eax, esp
and dword [eax], 0
mov dword [ebp + 0xc], esp
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp + 0xc], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x18], 8
jb 0x4a5b84
mov ecx, dword [esi + 4]
jmp 0x4a5b87
lea ecx, [esi + 4]
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004066b0
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.0049fc4f
add esp, 0x10
test eax, eax
jne 0x4a5bba
xor esi, esi
lea ecx, [ebp + 8]
call fcn.00406760
mov eax, esi
call fcn.004fedbc
ret 0xc
push esi
mov edx, ebx
call fcn.0042cc10
xor esi, esi
inc esi
jmp 0x4a5ba8
Function at 0x4a6756
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x596049
call fcn.004fed1d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [ebp - 0x14]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
call fcn.00406670
and dword [ebp - 4], 0
push str.360sicheck.txt
push str._sdcard_
push 0x5d7fec
mov edi, esi
call fcn.00407710
mov eax, dword [ebx + 0x20]
add esp, 0xc
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040a6c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
call fcn.0040a6e0
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [eax + 4]
test eax, eax
je 0x4a6900
push dword [ebx + 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a6900
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push eax
mov ecx, 0x5f8820
call fcn.004066b0
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x18], esp
mov esi, str.main
push eax
mov ecx, esi
call fcn.004066b0
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0x20]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.004a6a9d
push ecx
mov dword [ebx + 8], eax
mov eax, esp
mov dword [ebp + 8], esp
push eax
mov ecx, 0x5f8828
mov dword [ebx + 0xc], edx
call fcn.004066b0
push ecx
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
mov ecx, esi
call fcn.004066b0
mov byte [ebp - 4], 6
mov eax, dword [ebx + 0x20]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.004a6a9d
push ecx
mov dword [ebx + 0x10], eax
mov eax, esp
mov dword [ebp + 8], esp
push eax
mov ecx, 0x5f8830
mov dword [ebx + 0x14], edx
call fcn.004066b0
push ecx
mov byte [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
mov ecx, esi
call fcn.004066b0
mov byte [ebp - 4], 8
mov eax, dword [ebx + 0x20]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.004a6a9d
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
lea ecx, [ebp - 0x10]
call fcn.00406760
lea ecx, [ebp - 0x14]
call fcn.00406760
xor eax, eax
inc eax
call fcn.004fedbc
ret 4
Function at 0x4a6a01
Capabilities:
Check if file exists
Delete file

Disassembly:
push 4
mov eax, 0x595f9d
call fcn.004fed1d
call fcn.0041a070
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.004066b0
and dword [ebp - 4], 0
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call ebx
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x4a6a3d
push dword [ebp - 0x10]
push 0
call esi
mov edx, 0x5da430
lea edi, [ebp - 0x10]
call fcn.00409860
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x4a6a59
push dword [ebp - 0x10]
push eax
call esi
push str.360sicheck.txt
push dword [ebp - 0x10]
mov edi, 0x660ee0
push 0x5d7fec
call fcn.00407710
add esp, 0xc
push dword [0x660ee0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a6a8f
push dword [0x660ee0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.00406760
call fcn.004fedbc
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x4a6b4a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a6b4a
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push edi
push eax
call fcn.004fe380
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x208
push eax
push 0x5d74e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4a6b4a
lea eax, [ebp - 0x214]
push eax
call fcn.004f7d4a
pop ecx
mov esi, eax
mov edi, edx
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
lea ecx, [ebp + 0x10]
call fcn.00406760
mov ecx, dword [ebp - 8]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f673f
leave
ret 0xc
xor esi, esi
jmp 0x4a6b1e
Function at 0x4a840c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], ebx
cmp dword [edi], ebx
jne 0x4a845a
push 0x5f884c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi], eax
mov eax, ecx
cmp eax, ebx
jne 0x4a845a
xor eax, eax
jmp 0x4a85ab
call fcn.004a85bc
test eax, eax
je 0x4a8453
lea eax, [ebp - 0x19c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a8453
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], ebx
cmp dword [0x65e138], ebx
je 0x4a84a9
push 2
push 2
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 1
lea eax, [ebp - 0x1a0]
push eax
call dword [0x65e138]
jmp 0x4a850d
mov eax, dword [0x65e13c]
cmp eax, ebx
je 0x4a859f
push ebx
push 5
push 2
push 1
lea ecx, [ebp - 0x1a4]
push ecx
push ebx
mov dword [ebp - 0x1a4], ebx
call eax
cmp eax, 0x7a
jne 0x4a8586
push dword [ebp - 0x1a4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1a0], eax
cmp eax, ebx
je 0x4a859f
push ebx
push 5
push 2
push 1
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [0x65e13c]
test eax, eax
jne 0x4a8586
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax]
mov dword [ebp - 0x1a8], ebx
cmp ecx, ebx
jbe 0x4a858c
xor edi, edi
cmp ecx, ebx
jbe 0x4a8574
xor esi, esi
movzx eax, word [esi + eax + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 0x1a0]
jne 0x4a8551
cmp dword [ebp + 0x10], ebx
je 0x4a855b
cmp dword [esi + eax + 4], 2
je 0x4a855b
inc edi
add esi, 0x18
cmp edi, dword [eax]
jb 0x4a852b
jmp 0x4a8574
mov edx, dword [ebp - 0x1b0]
inc edi
imul edi, edi, 0x18
mov ecx, dword [edi + eax]
mov dword [edx], ecx
mov dword [ebp - 0x1ac], 1
inc dword [ebp - 0x1a8]
mov ecx, dword [eax]
cmp dword [ebp - 0x1a8], ecx
jb 0x4a8523
jmp 0x4a858c
mov eax, dword [ebp - 0x1a0]
cmp eax, ebx
je 0x4a859f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f673f
leave
ret 0xc
Function at 0x4a9b33
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 4
mov eax, 0x598274
call fcn.004fed1d
mov esi, 0x5d79d4
lea edi, [ebp - 0x10]
call fcn.00407de0
and dword [ebp - 4], 0
push str....._sites.dll
mov ecx, 0x104
mov esi, edi
call fcn.00406b40
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call ebx
or eax, 0xffffffff
call fcn.0040a6e0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a9c0d
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call fcn.004fe380
push 5
pop ecx
mov esi, str.9.0.0.1001
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
push 0x1f2
lea eax, [ebp + 0x16]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004fe380
add esp, 0x18
lea eax, [ebp + 0x208]
push eax
lea esi, [ebp - 0x10]
call fcn.0040a6c0
mov edi, eax
call fcn.0040ee60
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.0040ecc0
add esp, 0xc
test eax, eax
jl 0x4a9c0d
mov ecx, esi
call fcn.00406760
xor eax, eax
inc eax
jmp 0x4a9c44
push str...mobilemgr_sites.dll
mov ecx, 0x104
lea esi, [ebp - 0x10]
call fcn.00406b40
push eax
call ebx
or eax, 0xffffffff
call fcn.0040a6e0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
je 0x4a9c3a
inc esi
lea ecx, [ebp - 0x10]
call fcn.00406760
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004f673f
add ebp, 0x414
leave
ret

Function at 0x4a9da4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, eax
call fcn.004a9f60
xor edi, edi
inc edi
cmp dword [esi + 4], 0
jne 0x4a9dc9
push 0
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [esi + 4]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 4
lea eax, [ebp - 8]
push eax
push edi
push 6
push dword [esi + 4]
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
leave
ret
Function at 0x4a9df7
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, esi
call fcn.004a9da4
push 2
pop eax
push 0x13ad
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4a9e96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4a9e50
or eax, 0xffffffff
jmp 0x4a9e9e
push 0x2710
push 0x12
mov ecx, esi
call fcn.004a9cc5
test eax, eax
jne 0x4a9e67
push 0xfffffffffffffffe
pop eax
jmp 0x4a9e9e
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1007
push 0xffff
push dword [esi + 4]
mov dword [ebp - 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4a9e4b
cmp dword [ebp - 0x1c], eax
jne 0x4a9e4b
mov dword [esi], 1
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004f673f
leave
ret 4

Function at 0x4aa69b
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x4ab70f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test eax, eax
jle 0x4ab792
push esi
lea edx, [eax + ebx - 1]
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov al, byte [edi]
test al, al
je 0x4ab780
movzx eax, al
mov al, byte [eax + 0x6230d0]
xor ecx, ecx
test ebx, ebx
jle 0x4ab774
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [ebx*4 + 0x623690]
movzx eax, byte [eax + ecx]
add eax, dword [ebp - 8]
mov esi, 0xff
cdq
idiv esi
add edi, ecx
movzx eax, dl
mov al, byte [eax + 0x622fd0]
xor al, byte [edi + 1]
inc ecx
cmp ecx, ebx
mov byte [edi], al
mov edi, dword [ebp + 8]
jl 0x4ab743
mov edx, dword [ebp - 0xc]
cmp ebx, edx
jge 0x4ab78b
mov ecx, edx
add edi, ebx
sub ecx, ebx
jmp 0x4ab786
test edx, edx
jle 0x4ab78b
mov ecx, edx
lea esi, [edi + 1]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 4]
jne 0x4ab725
pop edi
pop esi
leave
ret 4