joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460688
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f30a
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x460790
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x460790
cmp dword [ebp + 0x14], 0
je 0x460790
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00412d80
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x460790
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x460790
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045f3b3
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x460777
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jle 0x460758
mov ecx, dword [ebp + 0x14]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004fdb10
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
jmp 0x460790
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004fb620
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x4607a9
mov edx, dword [ebp - 8]
push edx
call fcn.00412fae
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4607c2
mov eax, dword [ebp - 4]
push eax
call fcn.00412fae
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x4607db
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412fae
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x468b50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x468cb9
mov dword [ebp - 0x120], 0x104
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x468caa
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x468c91
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x554f30
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
call fcn.004fc4cc
add esp, 4
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.ServiceName
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x468c85
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fd710
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call fcn.004fb6d6
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x120], 0x104
jmp 0x468b9c
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468cc0
mov eax, 0xffffff01
jmp 0x468cc2
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x469055
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
cmp dword [0x56b40c], 0
jne 0x469183
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push str.IPHelperMutex
push str._s__d
lea eax, [ebp - 0x104]
push eax
call fcn.004faaa4
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x4690df
xor eax, eax
jmp 0x469189
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4690fb
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x56b40c], 0
jne 0x469169
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x56b410], eax
cmp dword [0x56b410], 0
jne 0x469129
mov dword [ebp - 0x108], 0xfffffffe
jmp 0x46915f
push str.GetNetworkParams
mov eax, dword [0x56b410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x56b404], eax
cmp dword [0x56b404], 0
je 0x46915f
push str.GetAdaptersInfo
mov ecx, dword [0x56b410]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x56b408], eax
mov dword [0x56b40c], 1
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x108]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x46a805
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov byte [ebp - 0x40], 0xc
mov byte [ebp - 0x3f], 0x52
mov byte [ebp - 0x3e], 0xe3
mov byte [ebp - 0x3d], 0xa8
mov byte [ebp - 0x3c], 0xf6
mov byte [ebp - 0x3b], 0xd4
mov byte [ebp - 0x3a], 0xc7
mov byte [ebp - 0x39], 0x68
mov byte [ebp - 0x38], 0xf2
mov byte [ebp - 0x37], 0x36
mov byte [ebp - 0x36], 0x1c
mov byte [ebp - 0x35], 0x88
mov byte [ebp - 0x34], 0x15
mov byte [ebp - 0x33], 0x36
mov byte [ebp - 0x32], 0x97
mov byte [ebp - 0x31], 0xde
mov byte [ebp - 0x30], 0x55
mov byte [ebp - 0x2f], 0x9a
mov byte [ebp - 0x2e], 0x9e
mov byte [ebp - 0x2d], 0xdf
mov byte [ebp - 0x2c], 5
mov byte [ebp - 0x2b], 0xd5
mov byte [ebp - 0x2a], 0xf3
mov byte [ebp - 0x29], 0x52
mov byte [ebp - 0x28], 0xe1
mov byte [ebp - 0x27], 0xe1
mov byte [ebp - 0x26], 0xcb
mov byte [ebp - 0x25], 0xfb
mov byte [ebp - 0x24], 0xb4
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0xca
mov byte [ebp - 0x20], 0x29
mov byte [ebp - 0x1f], 0xed
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x62
mov byte [ebp - 0x1c], 0x6a
mov byte [ebp - 0x1b], 0xba
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0xa1
mov byte [ebp - 0x18], 0xb0
mov byte [ebp - 0x17], 0x2b
mov byte [ebp - 0x16], 0x27
mov byte [ebp - 0x15], 0x60
mov byte [ebp - 0x14], 0x87
mov byte [ebp - 0x13], 0x81
mov byte [ebp - 0x12], 0xd1
mov byte [ebp - 0x11], 0xa4
mov byte [ebp - 0x10], 0x10
mov byte [ebp - 0xf], 0xf7
mov byte [ebp - 0xe], 0xd2
mov byte [ebp - 0xd], 0x6b
mov byte [ebp - 0xc], 0xce
mov byte [ebp - 0xb], 0xb5
mov byte [ebp - 0xa], 0x12
mov byte [ebp - 9], 0xc5
mov dword [ebp - 8], 0x38
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
ja 0x46a91c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
lea eax, [ebp + edx - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fb090
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46b440
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 0x46b463
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0046b0a0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0046b100
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0046b1c0
lea eax, [esp + 0x18]
push eax
call fcn.0046aaa0
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 0x46b430
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
or eax, eax
je 0x46b514
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0046b410
or ax, ax
je 0x46b4dc
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x46b500
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x46b500
lea eax, [esp + 0xa]
push esi
push eax
call fcn.0046abb0
or al, al
jne 0x46b514
jmp 0x46b50f
lea eax, [esp + 8]
push esi
push eax
call fcn.0046ab00
or al, al
jne 0x46b514
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x46b52c
cmp ax, 0xffff
je 0x46b52c
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 0x46b550
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 0x46b573
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0046b0a0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0046b100
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0046b1c0
lea eax, [esp + 0x18]
push eax
call fcn.0046aaa0
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 0x46b540
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
or eax, eax
je 0x46b624
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0046b410
or ax, ax
je 0x46b624
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x46b624
cmp byte [esp + eax + 0xa], 0x3a
jne 0x46b624
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.0046ab00
or al, al
jne 0x46b610
jmp 0x46b61f
mov ax, word [esi]
cmp ax, 1
jl 0x46b61f
cmp ax, 6
jle 0x46b624
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x46b650
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0046b0a0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0046b100
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0046b2b0
lea eax, [esp + 4]
push 0x10
push eax
call fcn.0046b260
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x46b640
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x46b6bf
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0046a930
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 0x46b6d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0046b0a0
lea eax, [esp]
push 0x10
push eax
call fcn.0046b100
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.0046b210
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 0x46b740
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.0046aac0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0046b0a0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0046b100
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.0046b160
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0046b310
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0046b3c0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0046b370
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x46b730
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
or eax, eax
je 0x46b813
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.0046a930
or al, al
je 0x46b7e1
mov word [esi], 2
jmp 0x46b813
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.0046a930
or al, al
je 0x46b7fb
mov word [esi], 3
jmp 0x46b813
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.0046a930
or al, al
je 0x46b813
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x46ba00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.0046b900
or al, al
jne 0x46bb8a
test byte [edi + 0x1c], 4
je 0x46ba63
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x46baf0
mov dword [ebx + 0xa8], 0
jmp 0x46bafc
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x46bb10
mov dword [ebx + 0xac], 0
jmp 0x46bb19
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x46bb30
cmp word [ebp + 0xe], 0xffff
jne 0x46bb30
or dword [ebx + 0x2c], 8
jmp 0x46bb36
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x46ba70
push esi
call fcn.0046b970
push esi
call fcn.0046b8b0
push esi
call fcn.0046b870
mov eax, dword [esi + 0x10]
push eax
call fcn.0046cd30
mov word [esi + 0xc], ax
or ax, ax
je 0x46bb80
lea eax, [esi + 4]
push eax
call fcn.0046cb80
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.0046b840
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x46dc80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.0046bba0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0046d7b0
or al, al
jne 0x46dd0a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0046e5a0
or al, al
jne 0x46dd0a
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0046e460
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0046e5f0
or di, di
je 0x46dd0a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x46ddb0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.0046bba0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.0046bba0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0046d7b0
or al, al
jne 0x46de93
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0046e5a0
mov bx, ax
or bl, bl
jne 0x46de62
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0046e4b0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0046e5f0
push esi
call fcn.0046bcb0
cmp ax, 0xd
jne 0x46de72
mov bx, 0xd
cmp bl, 0xd
je 0x46de7d
cmp bx, 3
jne 0x46de90
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x46de02
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x46fc40
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
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 0x46fcd6
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jb 0x46fcb3
cmp eax, 3
jbe 0x46fccb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46fcc0
push eax
call sub.KERNEL32.DLL_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x46fcf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.0046fbe0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.DLL_WriteFile
mov ebx, eax
or ebx, ebx
je 0x46fd40
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.DLL_ReadFile
mov ebx, eax
push esi
call fcn.0046fba0
or ebx, ebx
je 0x46fd52
cmp word [esi + 6], 0xffff
jne 0x46fd58
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x46fe80
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.0046fe40
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x46fef0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jb 0x46fec9
cmp eax, 3
jbe 0x46fee1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46fed6
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 0x46ff00
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], 0x53
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x6c
mov byte [esp + 0xd], 0x55
mov byte [esp + 0xe], 0x73
mov byte [esp + 0xf], 0x62
mov byte [esp + 0x10], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x46ffa0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jb 0x46ff7b
cmp eax, 3
jbe 0x46ff93
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46ff88
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 0x46ffc0
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.0046fbe0
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.0046fba0
cmp edi, 1
jne 0x470005
cmp word [esi + 6], 0xffff
jne 0x47000b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8
Function at 0x4701c0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileIntA
add esp, 0x24
ret