joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, 0x5e7310
push esi
lea ecx, [ebp - 0xc]
call fcn.00401c3d
push esi
lea ecx, [ebp - 4]
call fcn.00401c3d
push esi
lea ecx, [ebp - 8]
call fcn.00401c3d
call fcn.0041e8f4
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
test eax, eax
mov edi, 0x58b168
je 0x41e9f2
lea eax, [ebp - 0x10]
push eax
call fcn.0041e3ec
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00403cc2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x41e9f2
push str.binTimwp.exe
lea ecx, [ebp - 4]
call fcn.00403b27
push ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x41e9f2
push dword [ebp + 8]
lea eax, [ebp - 8]
push str.tencent:__message__uin_sSiteijinshan.comMenuyes
push eax
call fcn.004020ff
add esp, 0xc
push 1
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push ebx
call esi
xor ecx, ecx
cmp eax, 0x20
setg cl
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
jne 0x41ea1c
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push str.http:__wpa.qq.com_msgrd_v3uin_ssiteijinshan.commenuyes
push eax
call fcn.004020ff
add esp, 0xc
push 1
push ebx
push ebx
push dword [ebp - 0xc]
push edi
push ebx
call esi
xor ecx, ecx
cmp eax, 0x20
setg cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4204c3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
xor edi, edi
mov dword [ebp - 0x230], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x420567
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x420560
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x420545
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x420527
jmp 0x420560
lea eax, [ebp - 0x20c]
push 0x58c07c
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x420560
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
leave
ret
Function at 0x420758
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
and dword [ebp - 4], ebx
and dword [ebp - 8], ebx
lea eax, [ebp - 4]
push eax
push 0x5bbc2c
push 1
push ebx
push 0x5bbf0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4207f7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
mov esi, dword [ebp + 8]
push dword [esi + 8]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [esi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [esi + 0x18]
mov eax, dword [ebp - 4]
push dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x5bcecc
push eax
call dword [ecx]
test eax, eax
pop esi
jl 0x4207f7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x18]
test eax, eax
jl 0x4207f7
inc ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
test eax, eax
je 0x42080a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x420817
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop ebx
leave
ret
Function at 0x42081c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x7c]
push eax
mov al, byte [ebp + 0x1a4]
neg al
mov dword [ebp - 0x7c], edi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x19
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x72]
push edi
push eax
mov word [ebp - 0x74], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
mov eax, dword [ebp - 0x78]
jge 0x4208ac
cmp eax, edi
je 0x4208a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x420905
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 0x5e7310
lea ecx, [ebp - 0x80]
call fcn.00401c3d
push dword [esi]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push str._s_s.lnk
push eax
call fcn.004020ff
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00420758
add esp, 0x18
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x420903
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0x198
leave
ret
Function at 0x420a0d
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x7c]
push eax
push 0x19
push edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x72]
push edi
push eax
mov word [ebp - 0x74], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
mov eax, dword [ebp - 0x78]
jge 0x420a8e
cmp eax, edi
je 0x420a8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x420ae5
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x7c]
push eax
call dword [ecx + 0x14]
push 0x5e7310
lea ecx, [ebp - 0x80]
call fcn.00401c3d
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push str._s_s.lnk
push eax
call fcn.004020ff
add esp, 0x10
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp - 0x80]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.00401405
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x420ae2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0x198
leave
ret

Function at 0x4215be
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x4215d1
mov al, 1
jmp 0x421645
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
push ebx
mov bl, 1
jne 0x4215e0
xor al, al
jmp 0x421644
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x42163e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x421639
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42163c
push 0x2c
lea eax, [ebp - 0x2c]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x42163e
mov dword [esi + 0x48], eax
xor bl, bl
mov byte [esi + 0x44], bl
mov al, bl
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x42164a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, ecx
push dword [esi + 0x4c]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x421674
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x42171b
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x421692
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x42171a
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4216da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42170c
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x42170f
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x421706
mov bl, 1
jmp 0x42170f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x421744
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, ecx
push dword [esi + 0x4c]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x42176e
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x421835
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call edi
cmp eax, 0x80
jne 0x42178c
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x421834
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call sub.MSVCR80.dll_memset
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x4217f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x421826
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x421829
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x421820
mov bl, 1
jmp 0x421829
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x42263b
Capabilities:
Initialize winsock library

Disassembly:
push esi
lea esi, [ecx + 0x190]
cmp dword [esi], 0
je 0x422652
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi], eax
xor eax, eax
cmp dword [esi], eax
pop esi
sete al
ret
Function at 0x422e18
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edi, [ecx + 4]
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x18], edi
je 0x422e42
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
push 0x20
lea eax, [ebp - 0x38]
push esi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ebp - 0x2c], eax
call dword [0x5e56f0]
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
mov ebx, 0x400
je 0x422ea1
push dword [ebp + 8]
call esi
inc eax
push 2
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00420afc
add esp, 0xc
test eax, eax
jge 0x422ea7
and dword [ebp - 0x10], 0
jmp 0x422ee0
mov edi, dword [ebp - 8]
cmp edi, ebx
jg 0x422ec4
push edi
call fcn.00422491
test al, al
pop ecx
je 0x422ec4
mov eax, edi
call fcn.0056f690
mov eax, esp
jmp 0x422ecd
push edi
lea ecx, [ebp - 0xc]
call fcn.00422dc9
push dword [ebp - 0x14]
push edi
push dword [ebp + 8]
push eax
call fcn.004177d9
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x422f3a
push dword [ebp + 0xc]
call esi
inc eax
push 2
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00420afc
add esp, 0xc
test eax, eax
jge 0x422f07
xor eax, eax
jmp 0x422f3a
mov esi, dword [ebp - 8]
cmp esi, ebx
jg 0x422f24
push esi
call fcn.00422491
test al, al
pop ecx
je 0x422f24
mov eax, esi
call fcn.0056f690
mov eax, esp
jmp 0x422f2d
push esi
lea ecx, [ebp - 0xc]
call fcn.00422dc9
push dword [ebp - 0x14]
push esi
push dword [ebp + 0xc]
push eax
call fcn.004177d9
cmp dword [ebp - 0x10], 0
je 0x422f61
test eax, eax
je 0x422f61
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004220f7
mov eax, esi
jmp 0x422f74
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0xc]
call fcn.004220f7
or eax, 0xffffffff
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056f17c
leave
ret 0x18
Function at 0x42602f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4260c0
push ebx
call fcn.0056eafa
pop ecx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4260b1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x588588
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4260b1
cmp dword [ebp + 0xc], ebx
je 0x4260b1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x10], 0
je 0x4260c0
push dword [ebp + 0x10]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426457
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5e7310
mov ecx, esi
call fcn.00401c3d
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004020d9
push esi
call fcn.004262a0
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056f17c
leave
ret
Function at 0x426581
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4265e4
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x42669a
mov eax, dword [ebp - 0x98]
dec eax
je 0x426686
dec eax
jne 0x42669a
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x426633
cmp dword [ebp - 0xa0], edx
jne 0x42661d
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
add eax, 8
jmp 0x426682
cmp dword [ebp - 0xa0], edi
jne 0x42666b
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x426682
cmp eax, 5
jne 0x42665d
cmp dword [ebp - 0xa0], 2
jne 0x426644
push eax
jmp 0x426664
cmp dword [ebp - 0xa0], 1
jne 0x426651
mov edi, ecx
jmp 0x42669a
cmp dword [ebp - 0xa0], edi
jne 0x42669a
push 3
jmp 0x426664
cmp eax, 4
ja 0x426667
push 4
pop edi
jmp 0x42669a
cmp eax, ecx
jb 0x42669a
cmp dword [ebp - 0xa0], 2
jae 0x426678
cmp eax, ecx
jbe 0x42669a
cmp byte [ebp + 0x72], dl
jne 0x42669a
call fcn.004264ce
mov edi, eax
jmp 0x42669a
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0x78
leave
ret

Function at 0x427841
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.004014f3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4278e1
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x200000
ja 0x4278e0
mov ecx, dword [ebp + 0xc]
push edi
lea eax, [esi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], esi
call fcn.00401e51
mov edi, eax
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4278df
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4278df
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x4278a1
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [edi + esi], bl
call fcn.004273ea
mov dword [ebp - 0x10], 1
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x4278f0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x4282e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4282fb
test al, 0x10
jne 0x4282fb
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x428374
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x19c]
push esi
mov esi, dword [ebp + 0x194]
test esi, esi
push edi
mov edi, dword [ebp + 0x198]
mov dword [ebp - 0x80], eax
je 0x42840a
test edi, edi
je 0x42840a
push esi
call fcn.004282e4
test al, al
pop ecx
je 0x42840a
and word [ebp - 0x78], 0
push 0x1fe
lea eax, [ebp - 0x76]
push 0
push eax
mov dword [ebp - 0x7c], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x100
lea eax, [ebp - 0x78]
push eax
push 0
push edi
push str.SPCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x428405
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [0x586418]
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
jmp 0x42840f
mov eax, 0x80004005
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0x18c
leave
ret

Function at 0x4286bf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4286e5
mov eax, 0x80004005
jmp 0x42875b
push esi
call fcn.004282e4
test al, al
pop ecx
je 0x4286de
and word [ebp - 0x804], 0
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov dword [ebp - 0x808], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x428755
lea eax, [ebp - 0x804]
push eax
mov ecx, ebx
call dword [0x586418]
push ebx
call fcn.00428698
and dword [ebp - 0x808], 0
pop ecx
mov eax, dword [ebp - 0x808]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret

Function at 0x4287e9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80c], eax
je 0x428889
test edi, edi
je 0x428889
push esi
call fcn.004282e4
test al, al
pop ecx
je 0x428889
and word [ebp - 0x804], 0
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov dword [ebp - 0x808], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push edi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x428881
mov ecx, dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push eax
call dword [0x586418]
and dword [ebp - 0x808], 0
mov eax, dword [ebp - 0x808]
jmp 0x42888e
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
leave
ret

Function at 0x428a9e
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x428ab9
mov eax, dword [esp + 4]
mov dl, byte [esp + 0xc]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jb 0x428aa6
ret