joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100355e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x124], bl
call fcn.10116880
add esp, 0xc
push esi
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esp + 0x118], bl
je 0x10035664
lea eax, [esp + 0x118]
lea ecx, [ecx]
inc eax
cmp byte [eax], bl
jne 0x10035640
lea edx, [esp + 0x118]
sub eax, edx
je 0x10035664
cmp byte [esp + eax + 0x117], 0x5c
je 0x10035664
push 0x10149ea8
mov eax, edx
push eax
call esi
push str.UAGChnge.ini
lea ecx, [esp + 0x11c]
push ecx
call esi
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x120]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10035819
push 0x103
lea edx, [esp + 0x15]
push ebx
push edx
mov byte [esp + 0x1c], bl
call fcn.10116880
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
lea eax, [esp + 0x118]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x1013f817
push str.EupdateIni
push str.General
mov dword [esp + 0x24], ebx
call edi
cmp byte [esp + 0x10], bl
je 0x10035704
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10035704
push str.Config
lea esi, [esp + 0x14]
mov ebx, str.UserAgent
call fcn.10042d90
add esp, 4
lea edx, [esp + 0x118]
push edx
push 0x104
lea eax, [esp + 0x18]
push eax
push 0x1013f817
push str.MailScanIni
push str.General
call edi
cmp byte [esp + 0x10], 0
je 0x1003575a
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1003575a
push str.Config
lea esi, [esp + 0x14]
mov ebx, str.UserAgent
call fcn.10042d90
add esp, 4
lea ecx, [esp + 0x118]
push ecx
push 0x104
lea edx, [esp + 0x18]
push edx
push 0x1013f817
push str.MailScanIniBDC
push str.General
call edi
cmp byte [esp + 0x10], 0
je 0x100357c3
push 1
push 0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x100357c3
push str.Config
lea esi, [esp + 0x14]
mov ebx, str.UserAgent
call fcn.10042d90
add esp, 4
cmp dword [esp + 0xc], 0x400
jae 0x100357c3
mov eax, esi
call fcn.10033960
lea eax, [esp + 0x118]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x1013f817
push str.IupdateIni
push str.General
call edi
cmp byte [esp + 0x10], 0
je 0x10035819
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x10035819
push str.Config
lea esi, [esp + 0x14]
mov ebx, str.UserAgent
call fcn.10042d90
add esp, 4
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x21c
ret
Function at 0x10037150
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push str.EnableDHCP
mov ecx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.10031670
test al, al
je 0x100371b6
cmp dword [esp + 0xc], ebx
je 0x100371b6
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push 9
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x100372c1
push 0x207
lea edx, [esp + 0x2d]
push ebx
push edx
call fcn.10116880
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor edi, edi
mov byte [esp + 0x48], bl
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100372c1
mov edi, edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 9
push ebx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1003728e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push str.EnableDHCP
push eax
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc], ebx
jne 0x100372c1
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
inc edi
push edi
push edx
mov byte [esp + 0x48], bl
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10037230
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100372d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
Function at 0x1003a330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x220], eax
xor eax, eax
push esi
push 0x207
push eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
lea eax, [esp + 0x21]
push eax
mov esi, ecx
mov byte [esp + 0x1c], 0
call fcn.10116880
add esp, 0xc
push esi
lea ecx, [esp + 0x1c]
push str.SYSTEMCurrentControlSetServices_s
push ecx
mov dword [esp + 0x10], 8
call fcn.1010d6a8
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1003a3ff
push 0x208
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x10], 0x208
call fcn.10116880
add esp, 0xc
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.DisplayName
push edx
call esi
test eax, eax
je 0x1003a417
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1010d699
add esp, 0x228
ret
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
mov dword [esp + 0x10], 0x208
call fcn.10116880
add esp, 0xc
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.ImagePath
push edx
call esi
test eax, eax
jne 0x1003a3f4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0
push str.DeleteFlag
push ecx
mov dword [esp + 0x1c], 8
call esi
cmp byte [esp + 0x10], 1
jne 0x1003a4ab
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1010d699
add esp, 0x228
ret
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.Start
push eax
mov dword [esp + 0x1c], 8
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x10]
cmp al, 4
jne 0x1003a508
mov eax, 1
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1010d699
add esp, 0x228
ret
cmp al, 3
jne 0x1003a527
mov eax, 3
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1010d699
add esp, 0x228
ret
mov ecx, dword [esp + 0x224]
xor edx, edx
cmp al, 2
setne dl
pop esi
xor ecx, esp
dec edx
and edx, 2
mov eax, edx
call fcn.1010d699
add esp, 0x228
ret
Function at 0x1003a730
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x314
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x310], eax
push ebp
push esi
mov esi, ecx
call fcn.1003a590
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x1003a814
push edi
push 0x30b
lea eax, [esp + 0x15]
push 0
push eax
or edi, 0xffffffff
mov byte [esp + 0x1c], 0
call fcn.10116880
add esp, 0xc
push 0xf01ff
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test ebx, ebx
jne 0x1003a79b
or edi, 0xffffffff
jmp 0x1003a7d0
test esi, esi
je 0x1003a80c
lea ecx, [esp + 0xc]
push ecx
push 0x30c
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1003a7d0
mov edi, dword [esp + 0x10]
cmp ebx, 1
jne 0x1003a7ca
and edi, 0xfffffeff
jmp 0x1003a7d0
or edi, 0x100
test esi, esi
je 0x1003a80c
mov eax, dword [esp + 0x324]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
test eax, eax
jne 0x1003a7f3
push 4
jmp 0x1003a7fd
cmp eax, 3
jne 0x1003a7fb
push eax
jmp 0x1003a7fd
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x318]
pop esi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x314
ret
Function at 0x1003bf60
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
push closesocket
push ebx
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x1003c06d
mov eax, dword [esp + 0x30]
push esi
push closesocket
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1003c065
push ebp
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x2c]
mov edi, eax
jne 0x1003c02b
cmp dword [esp + 0x3c], 0
je 0x1003c02b
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x1003bfe6
mov edx, 0x3e8
jmp 0x1003bff3
cmp edx, 0x2710
jbe 0x1003bff3
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1003c02b
cmp dword [esp + 0x2c], ebp
jbe 0x1003c01a
call ebx
mov ebp, dword [esp + 0x2c]
mov edi, eax
jmp 0x1003c024
call ebx
sub eax, edi
cmp eax, dword [esp + 0x30]
ja 0x1003c02b
cmp dword [esp + 0x1c], 2
je 0x1003bfc4
mov eax, dword [esp + 0x1c]
dec eax
pop ebp
cmp eax, 6
ja case.0x1003c03d.3
movzx eax, byte [eax + 0x1003c084]
jmp dword [eax*4 + 0x1003c078]
mov dword [esp + 0xc], 1
jmp case.0x1003c03d.3
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 0x24
ret
Function at 0x1003c8f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x52c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x115]
push ebx
push eax
mov byte [esp + 0x11c], bl
call fcn.10116880
add esp, 0xc
cmp esi, ebx
je 0x1003c92b
mov byte [esi], bl
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0x1013f817
mov edx, str.IsCloud
mov ecx, str.eScan
call fcn.100436c0
add esp, 0xc
cmp byte [esp + 0x110], 0x31
jne 0x1003cac6
push 0x103
lea edx, [esp + 0xd]
push ebx
push edx
mov byte [esp + 0x14], bl
call fcn.10116880
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push eax
push 0x1013f817
mov edx, str.CloudHost
mov ecx, str.eScan
call fcn.100436c0
add esp, 0xc
cmp byte [esp + 8], bl
je 0x1003cac6
lea ecx, [esp + 8]
push 0x2c
push ecx
call fcn.1010d780
add esp, 8
test eax, eax
jne 0x1003cac6
lea edx, [esp + 8]
push ebx
push edx
call fcn.1004dcf0
add esp, 8
test eax, eax
jne 0x1003cac6
cmp byte [0x1019df58], bl
jne 0x1003ca29
push 0x103
lea eax, [esp + 0x21d]
push ebx
push eax
mov byte [esp + 0x224], bl
call fcn.10116880
add esp, 0xc
lea edi, [esp + 0x218]
call fcn.10039e30
test eax, eax
je 0x1003ca29
mov ecx, edi
push ecx
push 0x1019df58
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x1019df58
call fcn.10049c40
push str.eupdate.ini
push 0x1019df58
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x207
lea edx, [esp + 0x325]
push ebx
push edx
mov byte [esp + 0x32c], bl
call fcn.10116880
add esp, 0xc
push 0x1019df58
push 0x208
lea eax, [esp + 0x328]
push eax
push 0x1013f817
push str.httphost
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x320], bl
je 0x1003cac6
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x324]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x1003cac6
cmp esi, ebx
je 0x1003caaa
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1003caa0
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.1010d699
add esp, 0x52c
ret
mov ecx, dword [esp + 0x52c]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0x52c
ret
Function at 0x10042150
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x103
lea eax, [esp + 0x125]
push 0
push eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x12c], 0
call fcn.10116880
add esp, 0xc
push 0x103
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.10116880
add esp, 0xc
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x100421be
mov byte [ebx], 0
lea edx, [esp + 0x10]
push edx
push str.XBDebug
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10031670
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100421ea
mov eax, dword [0x101936b4]
mov dword [esp + 0x10], eax
jmp 0x100421ef
mov dword [0x101936b4], eax
test eax, eax
je 0x10042203
push esi
push str._UPD__InstallBDUpdates_Begin___BDC:__s_
push 0
call fcn.10053700
add esp, 0xc
lea edi, [esp + 0x120]
call fcn.10039e30
cmp eax, 1
jne 0x100422c7
mov eax, edi
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x10042256
lea eax, [esp + 0x18]
inc eax
cmp byte [eax], 0
jne 0x10042237
lea edx, [esp + 0x18]
sub eax, edx
je 0x10042256
cmp byte [esp + eax + 0x17], 0x5c
je 0x10042256
push 0x10149ea8
mov eax, edx
push eax
call edi
push str.filelist.dat
lea ecx, [esp + 0x1c]
push ecx
call edi
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x20]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x100422c7
lea eax, [esp + 0x18]
call fcn.10044c10
cmp eax, 0xffffffff
je 0x1004229a
test al, 7
je 0x1004229a
push 0x80
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x18]
call fcn.10033960
cmp dword [0x101936b4], 0
je 0x100422e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push eax
push str._UPD__Deleting__s__LE:__u_
push 0
call fcn.10053700
add esp, 0x10
cmp dword [0x101936b4], 0
je 0x100422e0
push esi
push str._UPD__InstallBDUpdatesx__BDC___s_
push 0
call fcn.10053700
add esp, 0xc
push esi
mov ecx, ebx
call fcn.10041000
cmp dword [0x101936b4], 0
mov esi, eax
je 0x10042304
push ebx
push esi
push str._UPD__InstallBDUpdatesx__rval___d__Err___s_
push 0
call fcn.10053700
add esp, 0x10
cmp esi, 1
jne 0x1004235c
cmp dword [0x101936b4], 0
je 0x10042326
mov ecx, dword [esp + 0x14]
push ecx
push str._UPD__CheckPubAVX__BDC___s_
push 0
call fcn.10053700
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
mov dword [0x1019390c], 1
call sym.EncDec.dll_CheckPubAVX
cmp dword [0x101936b4], 0
mov dword [0x1019390c], 0
je 0x1004235c
push str._UPD__CheckPubAVX_Returns
push 0
call fcn.10053700
add esp, 8
mov ecx, dword [esp + 0x22c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 8
Function at 0x10042d60
Capabilities:
Set file attributes

Disassembly:
mov eax, esi
call fcn.10044c10
cmp eax, 0xffffffff
je 0x10042d83
test al, 7
je 0x10042d80
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x10042d83
xor eax, eax
ret
mov eax, 1
ret

Function at 0x10042f40
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10042f65
mov byte [esi], 0
push 0x94
lea eax, [esp + 0xc]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10042fd3
mov dword [esp + 0xc], 4
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test esi, esi
je 0x10042fb9
push 0x5c
push esi
call fcn.10111bda
add esp, 8
test eax, eax
je 0x10042fb9
mov byte [eax], 0
mov ecx, esi
call fcn.10042e70
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 5
jb 0x10042f98
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10042f98
mov edx, dword [ebp + 0xc]
push edx
push esi
call eax
call fcn.10049c80
jmp 0x10042fb9

Function at 0x10043010
Capabilities:
Get common file path

Disassembly:
push 0x104
push 0x101a0318
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
push 0x101a0318
call fcn.10111bda
add esp, 8
test eax, eax
je 0x10043046
push str.SYSTEM
push 0x101a0318
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
ret
Function at 0x10043490
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x1019e748], 0
jne 0x100434d1
mov dword [0x1019e748], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x100434d1
cmp al, 6
jb 0x100434d1
mov dword [0x1019e74c], 1
jmp 0x100434de
cmp dword [0x1019e74c], 0
je 0x10043599
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.10116880
add esp, 0xc
cmp byte [0x1019e398], 0
jne 0x10043510
push 0x1019e398
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov cl, byte [eax + 0x1019e398]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x10043512
cmp byte [esp], cl
je 0x1004354a
lea eax, [esp]
inc eax
cmp byte [eax], 0
jne 0x10043528
lea ecx, [esp]
sub eax, ecx
je 0x1004354a
cmp byte [esp + eax - 1], 0x5c
je 0x1004354a
push 0x10149ea8
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10043550
mov ecx, dword [str.LogWrite.LOG]
mov edx, dword [0x10152514]
mov dword [eax], ecx
mov ecx, dword [0x10152518]
mov dword [eax + 4], edx
mov dl, byte [0x1015251c]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp]
push 0x1014a614
push eax
call fcn.1010ebfe
add esp, 8
test eax, eax
je 0x10043599
push eax
call fcn.1010f263
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1010d699
add esp, 0x108
ret

Function at 0x100435b0
Capabilities:
Check os version
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x218]
push 0x207
lea ecx, [esp + 0xd]
push 0
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0
call fcn.10116880
add esp, 0xc
call fcn.10043490
mov edx, dword [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0x1019e748], 0
jne 0x10043632
mov dword [0x1019e748], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x10043632
cmp al, 6
jb 0x10043632
mov dword [0x1019e74c], 1
jmp 0x1004363b
cmp dword [0x1019e74c], 0
je 0x1004368e
push 0x10152440
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004367f
mov edx, dword [esp + 0x21c]
lea ecx, [esp + 8]
push ecx
push edx
push ebp
push ebx
push edi
push esi
call eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1010d699
add esp, 0x210
ret
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push ecx
jmp 0x1004369b
mov eax, dword [esp + 0x21c]
lea edx, [esp + 8]
push edx
push eax
push ebp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x210]
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x210
ret
Function at 0x10044c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x34
push edi
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10044cb9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 3
jne 0x10044cad
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x10044c41
cmp byte [edi + 1], cl
je 0x10044c56
mov eax, edi
test cl, cl
je 0x10044c4d
inc eax
cmp byte [eax], 0
jne 0x10044c47
sub eax, edi
cmp eax, 0x104
jbe 0x10044cad
push 0xa000000
push 3
push 3
push 0
call fcn.10033690
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x10044cad
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10044cad
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop edi
add esp, 0x34
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
pop edi
add esp, 0x34
ret

Function at 0x10045390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016b338
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x10045490
movzx eax, word [esi]
test ax, ax
je 0x10045490
xor ecx, ecx
movzx eax, ax
mov dword [ebp - 0x20], ecx
cmp ax, 0x20
je 0x10045486
cmp ax, 9
je 0x10045486
mov edx, 0xa0
cmp ax, dx
je 0x10045486
test ecx, ecx
je 0x10045421
lea ecx, [esi + ecx*2]
mov edx, esi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x10045410
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10045426
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp - 0x1c], ecx
lea ebx, [ebx]
test ecx, ecx
jl 0x10045472
sub ecx, 1
mov dword [ebp - 0x1c], ecx
js 0x10045472
movzx eax, word [esi + ecx*2]
cmp ax, 9
je 0x10045440
cmp ax, 0x20
je 0x10045440
mov edx, 0xa0
cmp ax, dx
je 0x10045440
cmp ax, 0xa
je 0x10045440
cmp ax, 0xd
je 0x10045440
cmp word [esi + ecx*2 + 2], 0
je 0x10045481
xor eax, eax
mov word [esi + ecx*2 + 2], ax
lea eax, [ecx + 1]
jmp 0x100454cf
inc ecx
movzx eax, word [esi + ecx*2]
jmp 0x100453e6
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret