joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410810
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [ebp - 0x520], eax
mov edi, 0xd
mov byte [ebp - 0x114], 0
call fcn.00420a30
add esp, 0xc
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.00420100
add esp, 8
test eax, eax
je 0x410a70
lea ecx, [ebp - 0x114]
push 0x5c
push ecx
mov byte [eax], 0
call fcn.00420100
add esp, 8
test eax, eax
je 0x410a70
push str.ExtraInfo.ini
lea edx, [ebp - 0x114]
push 0x104
push edx
mov byte [eax], 0
call fcn.00420166
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call esi
test eax, eax
jne 0x41094f
lea ecx, [ebp - 0x518]
push ecx
lea edx, [ebp - 0x114]
push edx
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x51c]
push eax
push str.Install
push str.SoftwareTencentQQ2009
push 0x80000002
mov dword [ebp - 0x51c], 1
mov dword [ebp - 0x518], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp byte [ebp - 0x114], 0
je 0x410a70
push str.ExtraInfo.ini
lea ecx, [ebp - 0x114]
push 0x104
push ecx
call fcn.00420166
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
call esi
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, edi
jne 0x410a72
push 0x3ff
lea eax, [ebp - 0x513]
push 0
push eax
mov byte [ebp - 0x514], 0
call fcn.00420a30
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x400
lea edx, [ebp - 0x514]
push edx
push 0x438f3c
push str.Item2
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
test ebx, ebx
je 0x410a5a
test bl, 1
jne 0x410a5a
mov edi, ebx
shr edi, 1
push ebx
mov dword [ebp - 0x518], edi
call fcn.0041e543
push edi
push 0
push eax
mov dword [ebp - 0x51c], eax
call fcn.00420a30
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x410a04
mov edi, dword [ebp - 0x51c]
jmp 0x4109e0
push edi
lea eax, [ebp + esi - 0x514]
push str._02x
push eax
call fcn.0041fe45
add esi, 2
add esp, 0xc
inc edi
cmp esi, ebx
jb 0x4109e0
mov edi, dword [ebp - 0x518]
mov esi, dword [ebp - 0x51c]
lea ecx, [ebp - 0x518]
push ecx
mov ebx, edi
mov dword [ebp - 0x518], 0
call fcn.0040fb60
push esi
mov edi, eax
call fcn.0041f3ee
mov edx, dword [ebp - 0x518]
mov eax, dword [ebp - 0x520]
push edx
push edi
push eax
call fcn.004217f0
push edi
call fcn.0041e95a
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret
Function at 0x410a90
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00410810
add esp, 4
test eax, eax
je 0x410ba2
lea eax, [ebp - 0x114]
push eax
push 0x201
push 0
push str.SoftwareSogouExplorer
push 0x80000002
mov dword [ebp - 0x114], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x114]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x410b1f
lea ecx, [ebp - 0x118]
push ecx
push edi
push 0x438f3c
push eax
mov dword [ebp - 0x118], 0x104
call ebx
mov edx, dword [ebp - 0x114]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x410ba2
lea eax, [ebp - 0x114]
push eax
push 0x201
push 0
push str.SoftwareSogouExplorer
push 0x80000001
mov dword [ebp - 0x114], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x410b7e
lea ecx, [ebp - 0x118]
push ecx
push edi
push 0x438f3c
push eax
mov dword [ebp - 0x118], 0x104
call ebx
mov edx, dword [ebp - 0x114]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x410ba2
push edi
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push edi
push str._sSogouExplorer
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00420a30
add esp, 0xc
lea esi, [ebp - 0x110]
mov ecx, edi
call fcn.00410d40
test al, al
jne 0x410be5
mov eax, 0xc
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
push edi
push str._sSogouExplorer.exe
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410bd0
xor eax, eax
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x110]
call fcn.00410c70
mov ecx, dword [ebp - 4]
add esp, 0x10
cmp dword [ebp - 0x114], 5
pop esi
sbb eax, eax
xor ecx, ebp
and eax, 0xc
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret
Function at 0x410c70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x410c9e
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0041e974
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410cf5
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x410cf5
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
xor eax, eax
push 0x438680
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410cf5
mov esi, dword [ebp - 8]
mov ecx, 0xd
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x44], 0xfeef04bd
sete byte [ebp - 1]
push ebx
call fcn.0041ea08
add esp, 4
cmp byte [ebp - 1], 0
pop ebx
je 0x410c96
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov ecx, eax
shr ecx, 0x10
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
movzx eax, ax
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x10]
mov edx, eax
shr edx, 0x10
mov dword [ecx], edx
movzx edx, ax
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410d40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x43e0b0]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x185]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x18c], bl
call fcn.00420a30
push edi
push str._s
lea ecx, [esp + 0x194]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push 0x13c
lea edx, [esp + 0x64]
push ebx
push edx
mov dword [esp + 0x68], ebx
call fcn.00420a30
add esp, 0x28
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x410de0
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0041e965
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp byte [esp + 0x6c], 0x2e
je 0x410e7f
test byte [esp + 0x40], 0x10
je 0x410e7f
lea edx, [esp + 0x24]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
push edx
lea ebx, [esp + 0x70]
call fcn.004114a0
mov eax, ebx
push eax
push edi
push str._s_sSogouExplorer.dll
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410e7d
xor eax, eax
mov ecx, dword [esp + eax + 0x24]
mov edx, dword [esp + eax + 0x14]
cmp ecx, edx
ja 0x410e5d
jb 0x410e7d
add eax, 4
cmp eax, 0x10
jl 0x410e45
jmp 0x410e7d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
xor ebx, ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410df0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x28]
call fcn.004105e0
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x410ebc
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x14]
push eax
push str._s_sSogouExplorer.dll
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
cmp dword [esp + 0x38], edi
jb 0x410ee9
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041e95a
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esp + 0x28c]
neg eax
pop edi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.0041e965
mov esp, ebp
pop ebp
ret
Function at 0x411680
Capabilities:
Create pipe
Create process on windows
Get process image filename
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x500000
mov esi, ecx
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x214]
mov dword [ebp - 0x220], eax
xor edi, edi
push edx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x22c], 0xc
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x411701
mov ecx, dword [ebp - 0x214]
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x411719
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret 8
push 0x44
lea edx, [ebp - 0x288]
push edi
push edx
call fcn.00420a30
mov eax, dword [ebp - 0x218]
push 0x206
lea edx, [ebp - 0x20e]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x288], 0x44
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x25c], 0x100
mov word [ebp - 0x210], cx
call fcn.00420a30
add esp, 0x18
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x288]
push ecx
push edi
push edi
push edi
push 1
push edi
push edi
push edi
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4117ba
mov edx, dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x214]
push eax
call esi
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x23c]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push edx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov eax, dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x23c]
push ecx
call esi
mov ecx, dword [ebp - 0x214]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea edx, [ebp - 0x21c]
push edx
push 4
lea eax, [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x21c], edi
call ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x220]
push edi
lea edx, [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x214]
push eax
push ecx
push edx
mov dword [ebp - 0x21c], edi
call ebx
mov ebx, eax
mov eax, dword [ebp - 0x214]
push eax
call esi
mov ecx, dword [ebp - 0x218]
push ecx
call esi
cmp ebx, edi
je 0x4118ad
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp + 0xc]
jne 0x4118ad
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0041ec30
add esp, 8
cmp eax, edi
je 0x411898
lea esi, [eax + 2]
push esi
call fcn.0041effc
add esp, 4
call fcn.0041aa30
cmp eax, 0xe63b8692
jne 0x411898
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e965
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 9
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret 8
Function at 0x411900
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0
mov dword [0x4414cc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0x4414cc
push 0x4118d0
push 0
push 0
mov dword [0x4414d0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [0x4414d0]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x4414d0]
push ecx
call esi
mov eax, dword [0x4414cc]
mov dword [0x4414d0], 0
pop esi
ret

Function at 0x411980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov ebx, eax
call fcn.00410a90
test eax, eax
jne 0x411ab3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x411ab3
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4119b0
sub eax, edx
sar eax, 1
mov dword [esi + 4], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f761
mov ecx, dword [esi + 4]
add esp, 4
push ebx
push 0x438aac
inc ecx
push ecx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, dword [esi + 4]
lea ebx, [ebx + ebx + 0xc]
push ebx
call fcn.0041f761
mov edx, dword [esi]
mov edi, eax
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add esp, 0x14
add edx, edx
push edx
push eax
lea ecx, [edi + 0xc]
push ecx
call fcn.004217f0
add esp, 0xc
push 0x40
push str.wujian_fjh0fsafdf190u_rsali_fsi_sdil_saf_fas3__fwad_19840718_fs
lea edx, [ebp - 4]
push edx
push ebx
push edi
mov dword [ebp - 4], 0
call fcn.0040fa40
add esp, 0x14
push edi
mov ebx, eax
call fcn.0041e95a
add esp, 4
test ebx, ebx
je 0x411aa7
mov edi, dword [ebp - 4]
test edi, edi
je 0x411aa7
call fcn.00411900
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
push ebx
test eax, eax
je 0x411a8c
mov ecx, dword [ebp - 4]
call fcn.00411550
push ebx
mov esi, eax
call fcn.0041e95a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00411680
push ebx
mov esi, eax
call fcn.0041e95a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413300
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x10
je 0x413334
cmp edi, 0xc
je 0x413334
cmp edi, 8
je 0x413334
mov dword [ebp + 0x10], 0x10
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor edx, edx
lea esi, [ecx - 8]
mov dword [ebx], edi
mov dword [ebp - 0x108], edx
test esi, esi
js 0x4133ba
add esi, 8
shr esi, 3
lea ecx, [esi*8]
mov dword [ebp - 0x108], ecx
jmp 0x413360
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + edx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
mov dword [ebp + edx*4 - 0x100], ecx
add eax, 8
add edx, 2
dec esi
jne 0x413360
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, ecx
sub esi, dword [ebp - 0x108]
je 0x413433
and ecx, 7
add eax, ecx
dec ecx
xor edi, edi
xor esi, esi
cmp ecx, 7
ja case.default.0x4133d3
jmp dword [ecx*4 + 0x413514]
movzx edi, byte [eax - 1]
dec eax
shl edi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
or edi, ecx
movzx esi, byte [eax - 1]
dec eax
shl esi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or esi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or esi, ecx
movzx eax, byte [eax - 1]
or esi, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x100], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + edx*4 - 0x104], esi
lea eax, [ecx + 3]
cdq
and edx, 3
add eax, edx
lea edx, [edi + edi + 2]
sar eax, 2
mov ecx, 1
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], edx
mov dword [ebx + 4], 0xb7e15163
cmp edx, ecx
jle 0x413472
nop
mov esi, dword [ebx + ecx*4]
sub esi, 0x61c88647
mov dword [ebx + ecx*4 + 4], esi
inc ecx
cmp ecx, edx
jl 0x413460
cmp edx, eax
jg 0x413478
mov edx, eax
lea ecx, [edx + edx*2]
xor edi, edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x413504
mov dword [ebp - 0x10c], ecx
jmp 0x4134a0
mov edx, dword [ebp - 0x108]
mov edx, dword [ebp + edx*4 - 0x104]
lea ecx, [eax + edi]
add ecx, dword [ebx + esi*4 + 4]
add edx, eax
rol ecx, 3
mov edi, ecx
mov dword [ebx + esi*4 + 4], ecx
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
mov ecx, dword [ebp - 0x108]
inc esi
mov dword [ebp + ecx*4 - 0x104], edx
mov eax, edx
cmp esi, dword [ebp - 0x110]
jl 0x4134e3
xor esi, esi
inc ecx
mov dword [ebp - 0x108], ecx
cmp ecx, dword [ebp - 0x114]
jl 0x4134fc
mov dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x4134a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e965
mov esp, ebp
pop ebp
ret
Function at 0x415840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4319e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
test esi, esi
je 0x41595f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4158a0
sub eax, edx
sar eax, 1
test al, 1
jne 0x41595f
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], 0
call fcn.00414cc0
mov esi, eax
add esp, 8
test esi, esi
je 0x41595f
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [0x441524], 0x120
test ecx, ecx
je 0x4158f1
xor byte [eax + esi], 0x2a
inc eax
cmp eax, ecx
jb 0x4158e8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4158f6
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x14]
push ecx
mov ebx, eax
call fcn.00405280
push esi
call fcn.0041ea08
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
add esp, 4
mov eax, esi
call fcn.00405330
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41598a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx - 0x10]
mov eax, esi
call fcn.00405330
or edx, 0xffffffff
add eax, 0x10
mov dword [ebp - 4], edx
lea ecx, [esi + 0xc]
mov dword [edi], eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41598a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416460
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov ecx, dword [esi]
push edi
push ecx
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 4]
push edx
mov edi, eax
call ebx
mov esi, eax
xor ebx, ebx
mov eax, dword [ebx + str.37k_IF__y_d]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + ebx - 0x14], eax
add ebx, 4
cmp ebx, 0x10
jl 0x416492
mov eax, 0xe3779b90
mov dword [ebp - 0x18], 0x10
mov ecx, edi
shr ecx, 5
add ecx, dword [ebp - 8]
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0xc]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shr ecx, 5
add ecx, dword [ebp - 0x10]
mov edx, esi
shl edx, 4
add edx, dword [ebp - 0x14]
xor ecx, edx
lea edx, [eax + esi]
xor ecx, edx
sub edi, ecx
add eax, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4164b7
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [ebp - 0x1c]
push esi
mov dword [ebx], eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret

Function at 0x417d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431103
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x20], 0x441530
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x34]
mov dword [ebx], vtable.QBXmlSpace::TiXmlDocument.0
mov dword [edi], 0x441530
mov byte [ebp - 4], 1
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x438f3c
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.004169c0
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4