joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4168ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x100]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 0xc], esi
je 0x41692f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x100]
push 0x42e940
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call edi
lea eax, [ebp + 8]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
lea eax, [ebp - 0x100]
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 0x10], esi
je 0x416983
cmp eax, esi
jne 0x416983
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
jne 0x41697a
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x41773c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0x42fd28
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x417793
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x14]
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x417793
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
Function at 0x417795
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0xc]
push edi
xor ebx, ebx
push eax
push 0xf003f
push ebx
mov dword [esi], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4177e5
cmp eax, 2
jne 0x41786d
mov eax, dword [ebp + 0x14]
push eax
mov dword [eax], ebx
call fcn.0041751e
cmp eax, ebx
pop ecx
jne 0x41786d
mov dword [esi], 1
jmp 0x41786b
lea eax, [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
cmp eax, ebx
je 0x41781e
cmp eax, 0x7a
je 0x41781e
mov eax, dword [ebp + 0x14]
push eax
mov dword [eax], ebx
call fcn.0041751e
cmp eax, ebx
pop ecx
jne 0x41786d
mov dword [esi], 1
jmp 0x417862
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, dword [ebp + 0x14]
pop ecx
lea ecx, [ebp + 8]
push ecx
mov dword [esi], eax
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
cmp eax, ebx
je 0x417862
push dword [esi]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [esi], ebx
push esi
call fcn.0041751e
cmp eax, ebx
pop ecx
jne 0x41786d
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417a31
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00417b6e
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
jne 0x417ac9
mov ebx, dword [ebp + 8]
push 2
lea eax, [ebp - 0x10]
push 0xc
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
cmp dword [ebp - 0x10], edi
jbe 0x417abd
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea eax, [ebp - 4]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x417aa3
mov eax, dword [ebp - 4]
mov cl, byte [eax]
test cl, cl
je 0x417a8e
cmp cl, 1
je 0x417a8e
cmp cl, 2
jne 0x417a9b
add eax, 8
push eax
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x417ab5
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x417a6b
jmp 0x417abd
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417ac9
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417b6e
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp + 0xc]
push edi
push eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push dword [edi]
and dword [ebp - 4], 0
mov dword [ebp - 8], 0xff
push dword [ebp + 8]
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x417bf0
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [edi], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 8], 0xff
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push 0
call esi
test eax, eax
jne 0x417bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x417bf0
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x418109
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ecx + 0x6c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
mov esi, 0x43022c
push eax
mov ecx, esi
call fcn.00423906
mov ecx, esi
call sub.MFC42.DLL_CString::MakeUpper
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x418208
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov esi, eax
push esi
push edi
lea eax, [ebp - 0x110]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.StringFileInfo040904b0ProductName
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], ebx
je 0x418200
push dword [ebp - 4]
mov ecx, 0x430230
call fcn.00423906
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], ebx
je 0x418200
push dword [ebp - 4]
mov ecx, 0x430224
call fcn.00423906
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.StringFileInfo040904b0FileDescription
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], ebx
je 0x418200
push dword [ebp - 4]
mov ecx, 0x430228
call fcn.00423906
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.StringFileInfo040904b0InternalName
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], ebx
jne 0x41820c
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x418224
push dword [ebp - 4]
mov ecx, 0x430220
call fcn.00423906
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418229
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x425a74
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
push str.Driver
lea eax, [ebp - 0x10]
push 0x430220
mov esi, ecx
push eax
call sub.MFC42.DLL_operator_3
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x418272
test eax, eax
je 0x418283
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x418291
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41afe8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
push 1
pop ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], ecx
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 4]
push 4
push eax
push 0xc
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41b0a5
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
call fcn.0041adba
add esp, 0xc
mov eax, dword [0x42fd2c]
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x2c]
push edx
sub esp, 0x10
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 8]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x90]
test eax, eax
je 0x41b098
push eax
lea esi, [ebp - 0x2c]
sub esp, 0x10
mov ecx, dword [ebp - 8]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x1c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041c1a7
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x41d539
Capabilities:
Create thread

Disassembly:
push ecx
push str.S2G_Server
push 0x430260
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [esp + 4]
pop ecx
push eax
push 0
push 0
push 0x41d573
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x430368], eax
test eax, eax
setne cl
mov eax, ecx
pop ecx
ret

Function at 0x41d7b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push ebx
mov ebx, ecx
push eax
push 0
push 0
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 8]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, eax
test edx, edx
jne 0x41d825
push edi
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
pop esi
inc eax
pop edi
mov dword [ebx + 0xc], eax
mov eax, edx
pop ebx
add esp, 0x20c
ret 4
mov ecx, dword [esp + 0x214]
mov eax, edx
mov byte [ecx], 0
mov dword [ebx + 0xc], 0
pop ebx
add esp, 0x20c
ret 4

Function at 0x41d890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x400
call sub.MFC42.DLL_operatornew
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ebx, eax
xor eax, eax
mov ecx, dword [ebp]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 8]
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x41d95c
mov eax, dword [esp + 0x10]
cmp eax, 8
ja case.0x41d8ec.2
jmp dword [eax*4 + 0x41d974]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x2c]
mov edx, ecx
mov esi, ebx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov byte [ecx + eax], 0
jmp 0x41d95c
mov edx, dword [ebp]
push ebx
lea eax, [esp + 0x18]
push 0x42fa9c
push eax
mov byte [edx + ebx], 0
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41d95c
mov dword [esp + 0x30], 0x57
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x41d9a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
lea edx, [esp + 4]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d9f5
mov ecx, dword [esp + 0xc]
sub ecx, 4
je 0x41d9eb
sub ecx, 2
je 0x41d9e0
sub ecx, 2
mov eax, 0x57
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x41da00
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [edx + 8]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x41dc70
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x10624dd3
sub esp, 0x110
mul dword [esp + 0x114]
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push 0xa
push eax
mov esi, edx
push 0x1e
push 0x800
shr esi, 6
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp esi, 0x3b
ja 0x41dcaa
mov ebx, 1
jmp 0x41dcc7
cmp esi, 0xe0f
ja 0x41dcb9
mov ebx, 2
jmp 0x41dcc7
mov ecx, 0x1517f
cmp ecx, esi
sbb ebx, ebx
neg ebx
add ebx, 3
mov eax, 0xc22e4507
mul esi
mov ecx, edx
shr ecx, 0x10
mov eax, ecx
shl eax, 4
sub eax, ecx
neg eax
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
mov eax, 0x91a2b3c5
shl edx, 7
add esi, edx
mul esi
mov edi, edx
shr edi, 0xb
mov eax, edi
imul eax, eax, 0xfffff1f0
add esi, eax
mov eax, 0x88888889
mul esi
shr edx, 5
mov eax, edx
imul eax, eax, 0x3c
sub esi, eax
dec ebx
je 0x41dd73
dec ebx
je 0x41dd58
lea eax, [esp + 0xc]
push esi
dec ebx
push eax
push edx
je 0x41dd3e
lea edx, [esp + 0x18]
lea eax, [esp + 0x18]
push edx
push edi
push eax
push ecx
lea ecx, [esp + 0x34]
push str._1u_s_02u_s_02u_s_02u
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0x24
jmp 0x41dd86
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edi
push str._02u_s_02u_s_02u
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0x1c
jmp 0x41dd86
lea eax, [esp + 0xc]
push esi
push eax
push edx
lea ecx, [esp + 0x24]
push str._02u_s_02u
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0x14
jmp 0x41dd86
push esi
lea edx, [esp + 0x1c]
push str._02u
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x110
ret 8
Function at 0x41e4c0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x190
xor ecx, ecx
lea edx, [esp + 0x1a8]
push esi
push edi
xor esi, esi
mov eax, dword [edx]
add edx, 4
test eax, eax
je 0x41e4f3
mov edi, ecx
and edi, 0xffff
inc ecx
test eax, eax
mov dword [esp + edi*4 + 8], eax
je 0x41e4f3
cmp cx, 0x64
jb 0x41e4d3
mov eax, dword [esp + 0x19c]
mov eax, dword [eax]
test eax, eax
je 0x41e53d
mov edx, dword [esp + 0x1ac]
push edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x1b0]
push edx
mov edx, dword [esp + 0x1b0]
push ecx
mov ecx, dword [esp + 0x1b0]
push 0
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x41e53d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x41e950
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor ecx, ecx
movsx eax, byte [0x42fcc0]
test edx, edx
jle 0x41e982
push edi
push esi
mov esi, dword [esp + 0xc]
movsx edi, byte [ecx + esi]
xor eax, edi
mov edi, eax
and eax, 0x1f
sar edi, 5
and edi, 7
inc ecx
cmp ecx, edx
lea eax, [edi + eax*8]
jl 0x41e967
pop esi
pop edi
ret

Function at 0x41e990
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edi, edi
mov bl, 0x63
jle 0x41e9ce
push esi
mov esi, dword [esp + 0x10]
push ebp
mov eax, ecx
xor edx, edx
mov ebp, 0xd
div ebp
mov al, byte [edx + 0x42fcc8]
mov dl, byte [esp + 0x1c]
xor al, bl
add bl, 0xf5
xor al, dl
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
inc ecx
cmp ecx, edi
jl 0x41e9a4
pop ebp
pop esi
pop edi
pop ebx
ret

Function at 0x41f5d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x41f5f3
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0041f230
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0041f290
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0041f350
lea eax, [esp + 0x18]
push eax
call fcn.0041ebc0
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x41f5c0
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x41f6a4
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0041f5a0
or ax, ax
je 0x41f66c
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x41f690
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x41f690
lea eax, [esp + 0xa]
push esi
push eax
call fcn.0041ecd0
or al, al
jne 0x41f6a4
jmp 0x41f69f
lea eax, [esp + 8]
push esi
push eax
call fcn.0041ec20
or al, al
jne 0x41f6a4
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x41f6bc
cmp ax, 0xffff
je 0x41f6bc
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x41f6e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x41f703
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0041f230
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0041f290
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0041f350
lea eax, [esp + 0x18]
push eax
call fcn.0041ebc0
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x41f6d0
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x41f7b4
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0041f5a0
or ax, ax
je 0x41f7b4
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x41f7b4
cmp byte [esp + eax + 0xa], 0x3a
jne 0x41f7b4
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.0041ec20
or al, al
jne 0x41f7a0
jmp 0x41f7af
mov ax, word [esi]
cmp ax, 1
jl 0x41f7af
cmp ax, 4
jle 0x41f7b4
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x41f7e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0041f230
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0041f290
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0041f440
lea eax, [esp + 4]
push 0x10
push eax
call fcn.0041f3f0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x41f7d0
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x41f84f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0041ea50
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x41f860
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0041f230
lea eax, [esp]
push 0x10
push eax
call fcn.0041f290
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.0041f3a0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4
Function at 0x41f8d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.0041ebe0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0041f230
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0041f290
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.0041f2f0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0041f4a0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0041f550
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0041f500
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x41f8c0
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x41f9a3
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.0041ea50
or al, al
je 0x41f971
mov word [esi], 2
jmp 0x41f9a3
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.0041ea50
or al, al
je 0x41f98b
mov word [esi], 3
jmp 0x41f9a3
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0041ea50
or al, al
je 0x41f9a3
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4

Function at 0x41fc60
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push esi
mov byte [esp + 4], 0x5c
mov byte [esp + 5], 0x5c
mov byte [esp + 6], 0x2e
mov byte [esp + 7], 0x5c
mov byte [esp + 8], 0x52
mov byte [esp + 9], 0x4e
mov byte [esp + 0xa], 0x42
mov byte [esp + 0xb], 0x4f
mov byte [esp + 0xc], 0x44
mov byte [esp + 0xd], 0x52
mov byte [esp + 0xe], 0x56
mov ax, word [esp + 0x1c]
add al, 0x30
mov byte [esp + 0xf], al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x10], 0
mov dword [esi], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41fd0b
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x41fce7
cmp eax, 3
jbe 0x41fd00
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41fcf4
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x41fd30
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.00420180
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.00420150
cmp edi, 1
jne 0x41fd75
cmp word [esi + 6], 0xffff
jne 0x41fd7b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8