joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024dc1
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0xbb8]
sub esp, 0xc38
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0xbb4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x59e]
push edi
push eax
mov dword [ebp - 0x80], ecx
mov word [ebp + 0x59c], di
call fcn.10076580
push esi
lea eax, [ebp + 0x396]
push edi
push eax
mov word [ebp + 0x394], di
call fcn.10076580
push esi
lea eax, [ebp + 0x18e]
push edi
push eax
mov word [ebp + 0x18c], di
call fcn.10076580
push esi
lea eax, [ebp - 0x7a]
push edi
push eax
mov word [ebp - 0x7c], di
call fcn.10076580
push esi
lea eax, [ebp + 0x7a6]
push edi
push eax
mov word [ebp + 0x7a4], di
call fcn.10076580
push esi
lea eax, [ebp + 0x9ae]
push edi
push eax
mov word [ebp + 0x9ac], di
call fcn.10076580
add esp, 0x48
push edi
push 0x2b
lea eax, [ebp + 0x7a4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x7a4]
push str._shiqiang_
push eax
call fcn.10076a63
pop ecx
pop ecx
lea eax, [ebp + 0x7a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10024ea7
push edi
lea eax, [ebp + 0x7a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x7a4]
push eax
lea eax, [ebp + 0x9ac]
push eax
call fcn.10076a8d
lea eax, [ebp + 0x9ac]
push str.wnsoft.ini
push eax
call fcn.10076a63
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp + 0x59c]
push eax
mov ebx, 0x101d87ec
push ebx
push str.OnlyIdentifier1
mov edi, str.Globals
push edi
call esi
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp + 0x394]
push eax
push ebx
push str.OnlyIdentifier2
push edi
call esi
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp + 0x18c]
push eax
push ebx
push str.OnlyIdentifier3
push edi
call esi
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.OnlyIdentifier4
push edi
call esi
lea eax, [ebp + 0x59c]
push eax
call fcn.10076514
mov esi, eax
lea eax, [ebp + 0x394]
push eax
call fcn.10076514
mov edi, eax
lea eax, [ebp + 0x18c]
push eax
call fcn.10076514
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
call fcn.10076514
add esp, 0x10
test esi, esi
je 0x10024fe3
test edi, edi
je 0x10024fe3
test ebx, ebx
je 0x10024fe3
test eax, eax
je 0x10024fe3
mov esi, dword [ebp - 0x80]
lea eax, [ebp + 0x59c]
push eax
push dword [esi]
call fcn.10076a8d
lea eax, [ebp + 0x394]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call fcn.10076a8d
lea eax, [ebp + 0x18c]
push eax
mov eax, dword [esi]
add eax, 0x410
push eax
call fcn.10076a8d
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
add eax, 0x618
push eax
call fcn.10076a8d
xor eax, eax
add esp, 0x20
inc eax
jmp 0x10024fe5
xor eax, eax
mov ecx, dword [ebp + 0xbb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0xbb8
leave
ret
Function at 0x10024ffd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9b8]
sub esp, 0xa38
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x9b4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov dword [ebp - 0x80], ecx
mov word [ebp + 0x5a4], di
call fcn.10076580
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.10076580
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov word [ebp - 0x74], di
call fcn.10076580
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.10076580
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.10076580
lea eax, [ebp + 0x7ac]
push str.SOFTWARE_
push eax
call fcn.10076a8d
add esp, 0x44
lea eax, [ebp + 0x7ac]
push str.SmartCloudInput
push eax
call fcn.10076a63
lea eax, [ebp + 0x7ac]
push 0x101d87cc
push eax
call fcn.10076a63
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push edi
lea eax, [ebp + 0x7ac]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10025147
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x5a4]
push eax
push edi
push edi
push str.OnlyIdentifier1
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x104
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x39c]
push eax
push edi
push edi
push str.OnlyIdentifier2
push dword [ebp - 0x7c]
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push str.OnlyIdentifier3
push dword [ebp - 0x7c]
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x194]
push eax
push edi
push edi
push str.OnlyIdentifier4
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x5a4]
push eax
call fcn.10076514
mov esi, eax
lea eax, [ebp + 0x39c]
push eax
call fcn.10076514
mov ebx, eax
lea eax, [ebp - 0x74]
push eax
call fcn.10076514
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x194]
push eax
call fcn.10076514
add esp, 0x10
cmp esi, edi
je 0x100251ea
cmp ebx, edi
je 0x100251ea
cmp dword [ebp - 0x78], edi
je 0x100251ea
cmp eax, edi
je 0x100251ea
mov esi, dword [ebp - 0x80]
lea eax, [ebp + 0x5a4]
push eax
push dword [esi]
call fcn.10076a8d
lea eax, [ebp + 0x39c]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call fcn.10076a8d
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi]
add eax, 0x410
push eax
call fcn.10076a8d
lea eax, [ebp + 0x194]
push eax
mov eax, dword [esi]
add eax, 0x618
push eax
call fcn.10076a8d
xor eax, eax
add esp, 0x20
inc eax
jmp 0x100251ec
xor eax, eax
mov ecx, dword [ebp + 0x9b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x9b8
leave
ret
Function at 0x10025204
Capabilities:
Set registry value

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov edi, 0xf003f
push edi
xor ebp, ebp
push ebp
push str.software
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100252c4
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push ebp
push ebp
push ebp
push str.ShiQiang
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100252c4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov ebx, 0x104
push ebx
push dword [esi]
push 1
push ebp
push str.OnlyIdentifier1
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x208
push eax
push 1
push ebp
push str.OnlyIdentifier2
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x410
push eax
push 1
push ebp
push str.OnlyIdentifier3
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x618
push eax
push 1
push ebp
push str.OnlyIdentifier4
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x14]
call esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x100252fa
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x5c0]
sub esp, 0x640
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x5bc], eax
mov eax, dword [ebp + 0x5c8]
push ebx
mov dword [ebp - 0x78], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp + 0x5a8], bx
lea edi, [ebp + 0x5aa]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x206
push edi
lea eax, [ebp + 0x3a2]
push ebx
push eax
mov word [ebp + 0x3a0], bx
call fcn.10076580
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x101d87d0
call fcn.10076514
push eax
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x5a8]
push eax
call fcn.10076f3b
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.10076580
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.10076580
add esp, 0x28
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x5a8]
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x100253f8
push dword [ebp - 0x74]
push str._08X
push dword [ebp - 0x78]
call fcn.100048d5
add esp, 0xc
jmp 0x10025407
push 0x101d87ec
push dword [ebp - 0x78]
call fcn.10076a8d
pop ecx
pop ecx
mov ecx, dword [ebp + 0x5bc]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x5c0
leave
ret 4
Function at 0x10025554
Capabilities:
Get mac address on windows

Disassembly:
push 0x58
mov eax, 0x1016c4e7
call fcn.10075e8b
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 4
call fcn.10076514
push eax
xor ebx, ebx
push ebx
push esi
call fcn.10076580
push 0x288
call fcn.10079d08
mov esi, eax
add esp, 0x14
cmp esi, ebx
mov dword [ebp - 0x30], esi
je 0x100256d3
lea eax, [ebp - 0x34]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100255c1
push esi
call fcn.10079c2b
push dword [ebp - 0x34]
call fcn.10079d08
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
je 0x100256d3
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x100256ca
push 6
pop ecx
lea edi, [ebp - 0x2a]
mov word [ebp - 0x2c], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x1002568f
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x2c]
push 0x1017ce64
push eax
call fcn.100048d5
lea eax, [esi + 0x10c]
push eax
call fcn.1007c969
push 0x1017ce60
push eax
call fcn.1007c4f0
add esp, 0x2c
test eax, eax
ja 0x100256af
cmp dword [esi + 0x1a0], 0x47
je 0x100256af
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.100015f0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.10012b23
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.100017f0
mov esi, dword [esi]
cmp esi, ebx
jne 0x100255f6
lea ecx, [ebp - 0x48]
call fcn.10012456
test eax, eax
jbe 0x100256c2
push ebx
lea ecx, [ebp - 0x48]
call fcn.100125ee
cmp dword [eax + 0x18], 8
jb 0x100256b4
mov eax, dword [eax + 4]
jmp 0x100256b7
lea eax, [ebp - 0x2c]
jmp 0x100256b7
add eax, 4
push eax
push dword [ebp - 0x38]
call fcn.10076a8d
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
call fcn.100127fb
push dword [ebp - 0x30]
call fcn.10079c2b
pop ecx
call fcn.10075f0e
ret 4
Function at 0x10025daa
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x390], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x18a]
push edi
push eax
mov ebx, ecx
mov word [ebp + 0x188], di
call fcn.10076580
push esi
lea eax, [ebp - 0x7e]
push edi
push eax
mov word [ebp - 0x80], di
call fcn.10076580
add esp, 0x18
push edi
push 0x2b
lea eax, [ebp + 0x188]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x188]
push str._shiqiang_
push eax
call fcn.10076a63
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
jne 0x10025e3d
push edi
lea eax, [ebp + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x188]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10076a8d
lea eax, [ebp - 0x80]
push str.wnsoft.ini
push eax
call fcn.10076a63
add esp, 0x10
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
je 0x10025ec0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x80]
push eax
push dword [ebx]
mov edi, str.Globals
push str.OnlyIdentifier1
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x208
push eax
push str.OnlyIdentifier2
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x410
push eax
push str.OnlyIdentifier3
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x618
push eax
push str.OnlyIdentifier4
push edi
call esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x394
leave
ret

Function at 0x1002bd21
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x1002bc6c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x1002bd50
cmp eax, 0xffffffff
je 0x1002bd50
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x1002bd51
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x1002bc7b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x1002bd80
cmp eax, 0xffffffff
je 0x1002bd80
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x1002c1ee
Capabilities:
Read .ini file

Disassembly:
push 0xd5c
mov eax, 0x1016cbf2
call fcn.10075e8b
mov edi, 0x104
push edi
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [ebp - 0xd68], ecx
call fcn.10076580
mov esi, 0x206
push esi
lea eax, [ebp - 0x72a]
push ebx
push eax
mov word [ebp - 0x72c], bx
call fcn.10076580
add esp, 0x18
lea ecx, [ebp - 0xd64]
call fcn.10024d7d
lea eax, [ebp - 0x72c]
push eax
lea ecx, [ebp - 0xd64]
mov dword [ebp - 4], ebx
call fcn.10026ade
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x72c]
push eax
call fcn.1001db30
mov ebx, dword [ebp - 0xd68]
pop ecx
pop ecx
lea eax, [ebp - 0x114]
add ebx, 4
push eax
mov ecx, ebx
call fcn.1001d2e0
and word [ebp - 0x31c], 0
push esi
lea eax, [ebp - 0x31a]
push 0
push eax
call fcn.10076580
and word [ebp - 0x524], 0
push esi
lea eax, [ebp - 0x522]
push 0
push eax
call fcn.10076580
add esp, 0x18
push str.SmartCloudInfo.ini
call fcn.10004cf1
mov ecx, eax
call fcn.1001b43a
push eax
lea eax, [ebp - 0x31c]
push 0x1017578c
push eax
call fcn.100048d5
add esp, 0x10
lea eax, [ebp - 0x31c]
push eax
push edi
lea eax, [ebp - 0x524]
push eax
push 0x101d87ec
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x1017d434
push edi
mov ecx, ebx
call fcn.1001d2e0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.1001db30
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov ecx, ebx
call fcn.1001d2e0
push str._tShuRuFa
mov ecx, ebx
call fcn.1001d2e0
push 0x1017d4e4
mov ecx, ebx
call fcn.1001d2e0
and word [ebp - 0xb3c], 0
push esi
lea eax, [ebp - 0xb3a]
push 0
push eax
call fcn.10076580
push 0x1017d4dc
push 0x1017d4d4
lea eax, [ebp - 0xb3c]
push str._s._s
push eax
call fcn.100048d5
add esp, 0x1c
push edi
mov ecx, ebx
call fcn.1001d2e0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xb3c]
push eax
call fcn.1001db30
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov ecx, ebx
call fcn.1001d2e0
and word [ebp - 0x934], 0
push esi
lea eax, [ebp - 0x932]
push 0
push eax
call fcn.10076580
add esp, 0xc
call fcn.10004cf1
mov ecx, eax
call fcn.1001b45c
push eax
push 0x104
lea eax, [ebp - 0x934]
push eax
push 0x101d87ec
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov ecx, ebx
call fcn.1001d2e0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x934]
push eax
call fcn.1001db30
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov ecx, ebx
call fcn.1001d2e0
push edi
mov ecx, ebx
call fcn.1001d2e0
lea eax, [ebp - 0xb58]
push 0
push eax
call fcn.10020654
pop ecx
pop ecx
cmp dword [ebp - 0xb40], 8
mov eax, dword [ebp - 0xb54]
mov byte [ebp - 4], 1
jae 0x1002c448
lea eax, [ebp - 0xb54]
lea ecx, [ebp - 0x114]
push ecx
push eax
call fcn.1001db30
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
mov ecx, ebx
call fcn.1001d2e0
push 0
push 1
lea ecx, [ebp - 0xb58]
call fcn.100017f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd64]
call sym.Plugin.dll_CleanUpPluginSystemManager
call fcn.10075f0e
ret
Function at 0x1002d274
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x101fe338], edi
mov esi, ecx
je 0x1002d3ba
cmp dword [esi + 0x20], 8
jb 0x1002d297
mov eax, dword [esi + 0xc]
jmp 0x1002d29a
lea eax, [esi + 0xc]
push ebx
push 0x10176e78
push eax
push dword [0x101efde8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x1002d3b9
push ebx
push dword [0x101efde8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x101efde8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.10078b70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 0xc]
call fcn.100133b3
cmp eax, edi
pop ecx
pop ecx
je 0x1002d3b9
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x101fe33c
call fcn.1002d034
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x101efde8]
push edi
push ebx
push edi
push edi
push edi
push SysReAllocStringLen
push 0x80c80000
push edi
push dword [0x101efde4]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x24], eax
call edi
test eax, 0x10000000
jne 0x1002d37f
mov byte [esi + 0x2c], 1
jmp 0x1002d3a3
test eax, 0x21000000
je 0x1002d38c
mov byte [esi + 0x2c], 5
jmp 0x1002d3a3
push 8
push dword [esi + 0x24]
mov byte [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ecx, esi
call fcn.1002cbca
push 0xfffffffffffffffc
push ebx
call edi
push 0x1002d0a9
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x1002d4a1
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
jne 0x1002d4b1
xor eax, eax
jmp 0x1002d4da
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx]
push edi
push 1
push dword [esp + 0x20]
call fcn.1007d18c
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x1002d4d1
xor eax, eax
jmp 0x1002d4d9
push dword [ebx]
call fcn.1007cec1
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x1002d4dd
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
jne 0x1002d4ed
xor eax, eax
jmp 0x1002d516
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx]
push edi
push 1
push dword [esp + 0x20]
call fcn.10076908
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x1002d50d
xor eax, eax
jmp 0x1002d515
push dword [ebx]
call fcn.1007cec1
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x1002da47
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x1002da60
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x1002da83
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x1002da88
inc esi
cmp esi, dword [ebp - 4]
jb 0x1002da7a
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x1002db7d
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x1002dadc
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x1002dab3
cmp cl, 0xff
jne 0x1002db07
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x1002db15
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x1002db1c
dec ecx
shl edx, cl
and edx, 7
je 0x1002daa4
movzx ecx, byte [edx + 0x1017d5dc]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x1017d5d4], 0
mov cl, byte [ebx + 4]
je 0x1002db04
test cl, cl
je 0x1002db04
cmp cl, 0xff
jne 0x1002daa4
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x1002da75
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x1002db50
movzx edi, byte [edx + 0x1017d5dc]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x1002db3b
cmp al, 0xff
jne 0x1002db4d
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x1002dace
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x1002da75
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x10031164
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x1003116c
mov dword [ecx*4 + 0x101fe380], eax
inc ecx
cmp ecx, 0x100
jb 0x10031167
mov edx, 0x800
jmp 0x100311b9
mov eax, dword [ecx*4 + 0x101fdf80]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x101fe380]
inc ecx
mov dword [ecx*4 + 0x101fe37c], eax
cmp ecx, edx
jb 0x10031198
mov dword [0x10200380], 0x1002dd2a
call fcn.1002dc97
test eax, eax
pop esi
jne 0x100311db
mov dword [0x10200380], 0x1002ddc0
ret
Function at 0x1003272c
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x6c], ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor esi, esi
push 0x206
lea eax, [ebp - 0x62]
push esi
push eax
mov word [ebp - 0x64], si
call fcn.10076580
movzx eax, word [ebp - 0x7a]
push eax
movzx eax, word [ebp - 0x7e]
push eax
movzx eax, word [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push str._.4d_.2d_.2d
push eax
call fcn.100048d5
add esp, 0x20
call fcn.10004cf1
mov ecx, eax
call fcn.1001b47e
push eax
push esi
mov ebx, str.CheckServiceFialNum
push ebx
mov esi, str.Setting
push esi
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x64]
push eax
push str.RunServiceDate
push esi
call edi
cmp dword [ebp - 0x70], 0
je 0x100327d9
push dword [ebp - 0x68]
push 0x10174114
push ebx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x124f80
mov esi, 0x493e0
push esi
mov ebx, eax
call fcn.1001db8f
mov edi, dword [ebp - 0x6c]
add eax, ebx
push 0xdbba0
push esi
mov dword [edi + 0x87c], eax
call fcn.1001db8f
mov ecx, dword [ebp + 0x1a4]
add esp, 0x10
add eax, ebx
mov dword [edi + 0x880], eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x1a8
leave
ret