joyce8/EMBER2024-capa huggingface dataset:
Function at 0x954680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [0xb196ec]
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.00a7ffb0
add esp, 0xc
push esi
lea ecx, [esp + 0x1c]
push str.SYSTEMCurrentControlSetServices_s
push ecx
mov dword [esp + 0x10], 8
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x95474f
push 0x208
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x10], 0x208
call fcn.00a7ffb0
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 0x954767
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.00a78f21
add esp, 0x228
ret
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
mov dword [esp + 0x10], 0x208
call fcn.00a7ffb0
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 0x954744
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 0x9547fb
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.00a78f21
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 0x954858
mov eax, 1
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00a78f21
add esp, 0x228
ret
cmp al, 3
jne 0x954877
mov eax, 3
pop esi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00a78f21
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.00a78f21
add esp, 0x228
ret
Function at 0x954a80
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x314
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x310], eax
push ebp
push esi
mov esi, ecx
call fcn.009548e0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x954b64
push edi
push 0x30b
lea eax, [esp + 0x15]
push 0
push eax
or edi, 0xffffffff
mov byte [esp + 0x1c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0xf01ff
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test ebx, ebx
jne 0x954aeb
or edi, 0xffffffff
jmp 0x954b20
test esi, esi
je 0x954b5c
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 0x954b20
mov edi, dword [esp + 0x10]
cmp ebx, 1
jne 0x954b1a
and edi, 0xfffffeff
jmp 0x954b20
or edi, 0x100
test esi, esi
je 0x954b5c
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 0x954b43
push 4
jmp 0x954b4d
cmp eax, 3
jne 0x954b4b
push eax
jmp 0x954b4d
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.00a78f21
add esp, 0x314
ret
Function at 0x956740
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
push 0x80000000
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 0x95684d
mov eax, dword [esp + 0x30]
push esi
push 0x80000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x956845
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 0x95680b
cmp dword [esp + 0x3c], 0
je 0x95680b
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x9567c6
mov edx, 0x3e8
jmp 0x9567d3
cmp edx, 0x2710
jbe 0x9567d3
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 0x95680b
cmp dword [esp + 0x2c], ebp
jbe 0x9567fa
call ebx
mov ebp, dword [esp + 0x2c]
mov edi, eax
jmp 0x956804
call ebx
sub eax, edi
cmp eax, dword [esp + 0x30]
ja 0x95680b
cmp dword [esp + 0x1c], 2
je 0x9567a4
mov eax, dword [esp + 0x1c]
dec eax
pop ebp
cmp eax, 6
ja case.0x95681d.3
movzx eax, byte [eax + 0x956864]
jmp dword [eax*4 + 0x956858]
mov dword [esp + 0xc], 1
jmp case.0x95681d.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 0x956890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x207
lea eax, [esp + 0x23d]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x244], bl
call fcn.00a7ffb0
push 0x207
lea ecx, [esp + 0x451]
push ebx
push ecx
mov byte [esp + 0x458], bl
call fcn.00a7ffb0
push 0x207
lea edx, [esp + 0x4d]
push ebx
push edx
mov byte [esp + 0x54], bl
call fcn.00a7ffb0
push 0x207
lea eax, [esp + 0x671]
push ebx
push eax
mov byte [esp + 0x678], bl
call fcn.00a7ffb0
add esp, 0x30
mov ecx, esi
call fcn.0096a300
test eax, eax
jne 0x95693e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
push 0x208
lea ecx, [esp + 0x23c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x208
lea ecx, [esp + 0x64c]
lea edx, [esp + 0x23c]
call fcn.009580e0
add esp, 4
test eax, eax
je 0x956987
lea edx, [esp + 0x648]
push edx
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x440]
lea edx, [esp + 0x238]
call fcn.009597a0
xor ecx, ecx
lea edi, [esp + 0x440]
call fcn.0095a6d0
mov ecx, edi
push ecx
lea edx, [esp + 0x34]
push str._sUNREGX.EXE
push edx
call fcn.00a78f30
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x44]
call fcn.0095a0f0
add esp, 0x14
test eax, eax
jne 0x956a1a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xaaad80
lea eax, [esp + 0x34]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
call esi
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push 1
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.0095db20
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0x20
jbe 0x956adc
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x956acc
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
push 0x956870
mov edi, 0x1e
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
call fcn.00a791b2
add esp, 0xc
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x956a89
call esi
jmp 0x956abc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x20], ebx
jne 0x956aa0
push 1
call esi
cmp dword [esp + 0x20], ebx
je 0x956a95
nop
cmp dword [esp + 0x1c], ebx
jne 0x956ab8
push 0x3e8
call esi
sub edi, 1
jne 0x956aa0
cmp dword [esp + 0x1c], ebx
je 0x956ac8
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jl 0x956ac8
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
call fcn.0096fd00
mov ecx, dword [esp + 0x854]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x956c70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x530
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x115]
push ebx
push eax
mov byte [esp + 0x11c], bl
call fcn.00a7ffb0
add esp, 0xc
cmp esi, ebx
je 0x956caa
mov byte [esi], bl
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0xaa1543
mov edx, str.IsCloud
mov ecx, 0xaa154c
call fcn.00958d30
add esp, 0xc
cmp byte [esp + 0x110], 0x31
jne 0x956e45
push 0x103
lea edx, [esp + 0xd]
push ebx
push edx
mov byte [esp + 0x14], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push eax
push 0xaa1543
mov edx, str.CloudHost
mov ecx, 0xaa154c
call fcn.00958d30
add esp, 0xc
cmp byte [esp + 8], bl
je 0x956e45
lea ecx, [esp + 8]
push 0x2c
push ecx
call fcn.00a7a2c0
add esp, 8
test eax, eax
jne 0x956e45
lea edx, [esp + 8]
push ebx
push edx
call fcn.00965e80
add esp, 8
test eax, eax
jne 0x956e45
cmp byte [0xbfc3f0], bl
jne 0x956daa
push 0x103
lea eax, [esp + 0x21d]
push ebx
push eax
mov byte [esp + 0x224], bl
call fcn.00a7ffb0
add esp, 0xc
lea ebx, [esp + 0x218]
call fcn.009541a0
test eax, eax
je 0x956da8
mov ecx, ebx
push ecx
push 0xbfc3f0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0xbfc3f0
call fcn.00960910
push str.eupdate.ini
push 0xbfc3f0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
push 0x207
lea edx, [esp + 0x325]
push ebx
push edx
mov byte [esp + 0x32c], bl
call fcn.00a7ffb0
add esp, 0xc
push 0xbfc3f0
push 0x208
lea eax, [esp + 0x328]
push eax
push 0xaa1543
push str.httphost
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x320], bl
je 0x956e45
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x328]
push edx
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x956e45
cmp esi, ebx
je 0x956e2a
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x956e20
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.00a78f21
add esp, 0x530
ret
mov ecx, dword [esp + 0x52c]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x530
ret
Function at 0x958480
Capabilities:
Set file attributes

Disassembly:
mov eax, esi
call fcn.0095a560
cmp eax, 0xffffffff
je 0x9584a3
test al, 7
je 0x9584a0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x9584a3
xor eax, eax
ret
mov eax, 1
ret

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

Disassembly:
sub esp, 0xa0
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
mov esi, ecx
test esi, esi
je 0x95864e
mov byte [esi], 0
push 0x94
lea eax, [esp + 8]
push 0
push eax
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x9586bc
mov dword [esp + 8], 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test esi, esi
je 0x95869f
push 0x5c
push esi
call fcn.00a7bbc7
add esp, 8
test eax, eax
je 0x95869f
mov byte [eax], 0
mov ecx, esi
call fcn.00958560
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
call fcn.00a78f21
add esp, 0xa0
ret
cmp dword [esp + 8], 5
jb 0x958681
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 0x958681
push edi
push esi
call eax
call fcn.00960950
jmp 0x95869f

Function at 0x9586f0
Capabilities:
Get common file path

Disassembly:
push 0x104
push str.C:WINDOWSSYSTEM
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
push str.C:WINDOWSSYSTEM
call fcn.00a7bbc7
add esp, 8
test eax, eax
je 0x958726
push 0xaea408
push str.C:WINDOWSSYSTEM
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
ret
Function at 0x958b00
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0xbfc9d0], 0
jne 0x958b41
mov dword [0xbfc9d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x958b41
cmp al, 6
jb 0x958b41
mov dword [0xbfc9d4], 1
jmp 0x958b4e
cmp dword [0xbfc9d4], 0
je 0x958c09
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00a7ffb0
add esp, 0xc
cmp byte [0xbfc610], 0
jne 0x958b80
push 0xbfc610
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov cl, byte [eax + 0xbfc610]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x958b82
cmp byte [esp], cl
je 0x958bba
lea eax, [esp]
inc eax
cmp byte [eax], 0
jne 0x958b98
lea ecx, [esp]
sub eax, ecx
je 0x958bba
cmp byte [esp + eax - 1], 0x5c
je 0x958bba
push 0xaa1564
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 0x958bc0
mov ecx, dword [str.LogWrite.LOG]
mov edx, dword [0xaea4c4]
mov dword [eax], ecx
mov ecx, dword [0xaea4c8]
mov dword [eax + 4], edx
mov dl, byte [0xaea4cc]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp]
push 0xaa1578
push eax
call fcn.00a7932f
add esp, 8
test eax, eax
je 0x958c09
push eax
call fcn.00a79e9e
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00a78f21
add esp, 0x108
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0xb196ec]
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.00a7ffb0
add esp, 0xc
call fcn.00958b00
mov edx, dword [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0xbfc9d0], 0
jne 0x958ca2
mov dword [0xbfc9d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x958ca2
cmp al, 6
jb 0x958ca2
mov dword [0xbfc9d4], 1
jmp 0x958cab
cmp dword [0xbfc9d4], 0
je 0x958cfe
push 0xaea410
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x958cef
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.00a78f21
add esp, 0x210
ret
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push ecx
jmp 0x958d0b
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.00a78f21
add esp, 0x210
ret
Function at 0x9595e0
Capabilities:
Check os version
Read .ini file

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 1
push 0x410
mov edi, 0x400
call fcn.00a7b9f8
mov esi, eax
add esp, 8
test esi, esi
je 0x9596a2
cmp dword [0xbfc9d0], 0
jne 0x959632
mov dword [0xbfc9d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x959632
cmp al, 6
jb 0x959632
mov dword [0xbfc9d4], 1
jmp 0x95963b
cmp dword [0xbfc9d4], 0
je 0x95966f
push 0xaea410
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push edi
push esi
push 0xaa1543
push ebp
test eax, eax
je 0x959668
mov ecx, dword [esp + 0x24]
push ecx
call eax
jmp 0x959683
mov edx, dword [esp + 0x24]
push edx
jmp 0x95967d
mov eax, dword [esp + 0x10]
push ebx
push edi
push esi
push 0xaa1543
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [edi - 2]
cmp eax, ecx
jb 0x9596a0
add edi, edi
push edi
push esi
call fcn.00a7b398
mov esi, eax
add esp, 8
test esi, esi
jne 0x959605
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x9596b0
Capabilities:
Check os version

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
push esi
mov ebx, eax
push edi
call fcn.009595e0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x9596d7
cmp byte [eax], 0
jne 0x95977d
cmp dword [0xbfc9d0], 0
jne 0x959704
mov dword [0xbfc9d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x959704
cmp al, 6
jb 0x959704
mov dword [0xbfc9d4], 1
jmp 0x95970d
cmp dword [0xbfc9d4], 0
je 0x959764
push 0xaea42c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x959730
call eax
jmp 0x959736
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0xaea42c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0
push 0
push 0
test eax, eax
je 0x95975c
call eax
jmp 0x959779
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x959779
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
call esi
push ebx
push 0
push 0
push 0
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
test eax, eax
je 0x959790
add esp, 4
mov dword [esp + 4], eax
jmp fcn.00a78fec
pop ecx
ret
Function at 0x95a560
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 0x95a609
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 3
jne 0x95a5fd
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x95a591
cmp byte [edi + 1], cl
je 0x95a5a6
mov eax, edi
test cl, cl
je 0x95a59d
inc eax
cmp byte [eax], 0
jne 0x95a597
sub eax, edi
cmp eax, 0x104
jbe 0x95a5fd
push 0xa000000
push 3
push 3
push 0
call fcn.0094db00
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x95a5fd
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.00a7ffb0
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 0x95a5fd
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 0x95a610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x34
push ebx
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x95a6cb
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 3
jne 0x95a6bf
cmp word [ebx], 0x5c
jne 0x95a646
cmp word [ebx + 2], 0x5c
je 0x95a666
mov eax, ebx
lea edx, [eax + 2]
jmp 0x95a650
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x95a650
sub eax, edx
sar eax, 1
cmp eax, 0x104
jbe 0x95a6bf
push 0xa000000
push 3
push 3
push 0
call fcn.0094dc00
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x95a6bf
push edi
push 0x30
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x10]
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
pop edi
je 0x95a6bf
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x95ac10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb0de98
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
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 0x95ad10
movzx eax, word [esi]
test ax, ax
je 0x95ad10
xor ecx, ecx
movzx eax, ax
mov dword [ebp - 0x20], ecx
cmp ax, 0x20
je 0x95ad06
cmp ax, 9
je 0x95ad06
mov edx, 0xa0
cmp ax, dx
je 0x95ad06
test ecx, ecx
je 0x95aca1
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 0x95ac90
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x95aca6
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp - 0x1c], ecx
lea ebx, [ebx]
test ecx, ecx
jl 0x95acf2
sub ecx, 1
mov dword [ebp - 0x1c], ecx
js 0x95acf2
movzx eax, word [esi + ecx*2]
cmp ax, 9
je 0x95acc0
cmp ax, 0x20
je 0x95acc0
mov edx, 0xa0
cmp ax, dx
je 0x95acc0
cmp ax, 0xa
je 0x95acc0
cmp ax, 0xd
je 0x95acc0
cmp word [esi + ecx*2 + 2], 0
je 0x95ad01
xor eax, eax
mov word [esi + ecx*2 + 2], ax
lea eax, [ecx + 1]
jmp 0x95ad4f
inc ecx
movzx eax, word [esi + ecx*2]
jmp 0x95ac66
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