joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48dc59
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x4d6670
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00496ba0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00496da9
add esp, 8
push 0x40
push 0x1000
mov edx, dword [ebp - 8]
add edx, 0xa
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48dcad
xor eax, eax
jmp 0x48dce2
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.00465d6b
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x496030
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x496197
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 0x496188
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 0x49616f
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x4ddc44
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
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
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 0x496165
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x120], 0x104
jmp 0x49607c
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49619e
mov eax, 0xffffff01
jmp 0x4961a0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x496511
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 [0x4e3700], 0
jne 0x496640
call sub.MSVCRT.dll__getpid
push eax
push str.IPHelperMutex
push str._s__d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
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 0x49659c
xor eax, eax
jmp 0x496646
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4965b8
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x4e3700], 0
jne 0x496626
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4e3704], eax
cmp dword [0x4e3704], 0
jne 0x4965e6
mov dword [ebp - 0x108], 0xfffffffe
jmp 0x49661c
push str.GetNetworkParams
mov eax, dword [0x4e3704]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e36f8], eax
cmp dword [0x4e36f8], 0
je 0x49661c
push str.GetAdaptersInfo
mov ecx, dword [0x4e3704]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e36fc], eax
mov dword [0x4e3700], 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 0x496f3c
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ddd10]
mov dword [ebp - 8], eax
mov ecx, dword [0x4ddd14]
mov dword [ebp - 4], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x497006
push 0xf01ff
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x496fb1
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x496fa4
mov eax, 1
jmp 0x497008
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor eax, eax
jmp 0x497008
push 0
push 0
push 0
push 0
push str.Extended_Base
push str.SYSTEM32driversDS1410D.SYS
push 1
push 2
push 1
push 0xf01ff
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x497006
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x497002
mov eax, 1
jmp 0x497008
xor eax, eax
jmp 0x497008
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x497ee9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 4], 1
cmp dword [0x4e374c], 0
je 0x497f0a
mov al, byte [ebp + 8]
push eax
push 2
call fcn.00497f7d
add esp, 8
jmp 0x497f79
cmp dword [0x4e3748], 0
je 0x497f77
cmp dword [0x4e3730], 0
je 0x497f72
mov byte [0x4e3770], 1
mov cl, byte [ebp + 8]
mov byte [0x4e3771], cl
push 0
push 0x4e377c
push 2
push 0x4e3770
mov edx, dword [0x4e3788]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x497f72
push 0
push 0x4e377c
push 1
push 0x4e3770
mov eax, dword [0x4e3788]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497f72
mov cl, byte [0x4e3770]
mov byte [ebp - 4], cl
mov al, byte [ebp - 4]
jmp 0x497f79
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
mov byte [ebp - 4], al
cmp dword [0x4e374c], 0
je 0x498011
mov cl, byte [ebp + 8]
push ecx
push 3
call fcn.00497f7d
add esp, 8
jmp 0x498080
cmp dword [0x4e3748], 0
je 0x49807e
cmp dword [0x4e3730], 0
je 0x498079
mov byte [0x4e3770], 2
mov dl, byte [ebp + 8]
mov byte [0x4e3771], dl
push 0
push 0x4e377c
push 2
push 0x4e3770
mov eax, dword [0x4e3788]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x498079
push 0
push 0x4e377c
push 1
push 0x4e3770
mov ecx, dword [0x4e3788]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498079
mov dl, byte [0x4e3770]
mov byte [ebp - 4], dl
mov al, byte [ebp - 4]
jmp 0x498080
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 4], 0
cmp dword [0x4e374c], 0
je 0x4980a3
push 0
push 1
call fcn.00497f7d
add esp, 8
jmp 0x49811b
cmp dword [0x4e3748], 0
je 0x498119
cmp dword [0x4e3730], 0
je 0x498114
mov byte [0x4e3770], 0
mov al, byte [0x4ddcfc]
mov byte [0x4e3771], al
push 0
push 0x4e377c
push 2
push 0x4e3770
mov ecx, dword [0x4e3788]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49810c
push 0
push 0x4e377c
push 1
push 0x4e3770
mov edx, dword [0x4e3788]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49810c
mov al, byte [0x4e3770]
mov byte [ebp - 4], al
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 4]
jmp 0x49811b
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x49811f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 4], 0
cmp dword [0x4e374c], 0
je 0x49813e
push 0
push 4
call fcn.00497f7d
add esp, 8
jmp 0x4981a4
cmp dword [0x4e3748], 0
je 0x4981a2
cmp dword [0x4e3730], 0
je 0x49819d
mov byte [0x4e3770], 3
push 0
push 0x4e377c
push 2
push 0x4e3770
mov eax, dword [0x4e3788]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49819d
push 0
push 0x4e377c
push 1
push 0x4e3770
mov ecx, dword [0x4e3788]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49819d
mov dl, byte [0x4e3770]
mov byte [ebp - 4], dl
mov al, byte [ebp - 4]
jmp 0x4981a4
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 4], 0
cmp dword [0x4e374c], 0
je 0x4981c7
push 0
push 0x22
call fcn.00497f7d
add esp, 8
jmp 0x49822d
cmp dword [0x4e3748], 0
je 0x49822b
cmp dword [0x4e3730], 0
je 0x498226
mov byte [0x4e3770], 0x22
push 0
push 0x4e377c
push 2
push 0x4e3770
mov eax, dword [0x4e3788]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x498226
push 0
push 0x4e377c
push 1
push 0x4e3770
mov ecx, dword [0x4e3788]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498226
mov dl, byte [0x4e3770]
mov byte [ebp - 4], dl
mov al, byte [ebp - 4]
jmp 0x49822d
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 4], 0
cmp dword [0x4e374c], 0
je 0x498250
push 0
push 5
call fcn.00497f7d
add esp, 8
jmp 0x4982b6
cmp dword [0x4e3748], 0
je 0x4982b4
cmp dword [0x4e3730], 0
je 0x4982af
mov byte [0x4e3770], 5
push 0
push 0x4e377c
push 2
push 0x4e3770
mov eax, dword [0x4e3788]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4982af
push 0
push 0x4e377c
push 1
push 0x4e3770
mov ecx, dword [0x4e3788]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4982af
mov dl, byte [0x4e3770]
mov byte [ebp - 4], dl
mov al, byte [ebp - 4]
jmp 0x4982b6
xor al, al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 4], 0
cmp dword [0x4e3730], 0
je 0x49859d
mov byte [0x4e3770], 6
mov al, byte [0x4ddcfc]
mov byte [0x4e3771], al
push 0
push 0x4e377c
push 2
push 0x4e3770
mov ecx, dword [0x4e3788]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x4e377c
push 1
push 0x4e3770
mov edx, dword [0x4e3788]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esp, ebp
pop ebp
ret
Function at 0x4985a1
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x498633
cmp dword [ebp - 0x10], 0
jne 0x498633
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edx, dword [ebp + 8]
and edx, 0xffff
imul eax, edx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x498633
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.0049864e
add esp, 8
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004986ae
add esp, 8
test eax, eax
jne 0x498604
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x49864a
push 0
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov esp, ebp
pop ebp
ret

Function at 0x499220
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 0x499243
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.00498e80
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00498ee0
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.00498fa0
lea eax, [esp + 0x18]
push eax
call fcn.00498880
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 0x499210
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4992f4
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004991f0
or ax, ax
je 0x4992bc
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4992e0
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4992e0
lea eax, [esp + 0xa]
push esi
push eax
call fcn.00498990
or al, al
jne 0x4992f4
jmp 0x4992ef
lea eax, [esp + 8]
push esi
push eax
call fcn.004988e0
or al, al
jne 0x4992f4
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x49930c
cmp ax, 0xffff
je 0x49930c
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 0x499330
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 0x499353
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.00498e80
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00498ee0
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.00498fa0
lea eax, [esp + 0x18]
push eax
call fcn.00498880
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 0x499320
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x499404
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004991f0
or ax, ax
je 0x499404
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x499404
cmp byte [esp + eax + 0xa], 0x3a
jne 0x499404
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.004988e0
or al, al
jne 0x4993f0
jmp 0x4993ff
mov ax, word [esi]
cmp ax, 1
jl 0x4993ff
cmp ax, 6
jle 0x499404
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x499430
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00498e80
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00498ee0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.00499090
lea eax, [esp + 4]
push 0x10
push eax
call fcn.00499040
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x499420
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x49949f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00498710
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 0x4994b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.00498e80
lea eax, [esp]
push 0x10
push eax
call fcn.00498ee0
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.00498ff0
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 0x499520
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.004988a0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00498e80
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00498ee0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.00498f40
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004990f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004991a0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00499150
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x499510
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4995f3
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.00498710
or al, al
je 0x4995c1
mov word [esi], 2
jmp 0x4995f3
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.00498710
or al, al
je 0x4995db
mov word [esi], 3
jmp 0x4995f3
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00498710
or al, al
je 0x4995f3
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x4997e0
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.004996e0
or al, al
jne 0x49996a
test byte [edi + 0x1c], 4
je 0x499843
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 0x4998d0
mov dword [ebx + 0xa8], 0
jmp 0x4998dc
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x4998f0
mov dword [ebx + 0xac], 0
jmp 0x4998f9
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x499910
cmp word [ebp + 0xe], 0xffff
jne 0x499910
or dword [ebx + 0x2c], 8
jmp 0x499916
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x499850
push esi
call fcn.00499750
push esi
call fcn.00499690
push esi
call fcn.00499650
mov eax, dword [esi + 0x10]
push eax
call fcn.0049ab10
mov word [esi + 0xc], ax
or ax, ax
je 0x499960
lea eax, [esi + 4]
push eax
call fcn.0049a960
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.00499620
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x49ba60
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.00499980
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0049b590
or al, al
jne 0x49baea
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0049c380
or al, al
jne 0x49baea
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.0049c240
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0049c3d0
or di, di
je 0x49baea
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x49bb90
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.00499980
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.00499980
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0049b590
or al, al
jne 0x49bc73
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0049c380
mov bx, ax
or bl, bl
jne 0x49bc42
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.0049c290
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0049c3d0
push esi
call fcn.00499a90
cmp ax, 0xd
jne 0x49bc52
mov bx, 0xd
cmp bl, 0xd
je 0x49bc5d
cmp bx, 3
jne 0x49bc70
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x49bbe2
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x49da20
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 0x49dab6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x49da93
cmp eax, 3
jbe 0x49daab
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49daa0
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 0x49dad0
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.0049d9c0
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 0x49db20
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.0049d980
or ebx, ebx
je 0x49db32
cmp word [esi + 6], 0xffff
jne 0x49db38
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8