joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45df86
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x510468], 0
je 0x45df9f
mov eax, 1
jmp 0x45dfdd
mov word [ebp - 0x194], 0x101
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x194]
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x45dfce
call sub.WSOCK32.dll_WSAGetLastError
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x45dfdd
mov dword [0x510468], 1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x467ed0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x5002bc
lea eax, [ebp - 0x14]
push eax
call fcn.00496980
add esp, 8
mov dword [ebp - 0x24], 0
jmp 0x467ef9
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 3
jge 0x467f1a
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x467f10
jmp 0x467f1a
mov al, byte [ebp - 0x14]
add al, 1
mov byte [ebp - 0x14], al
jmp 0x467ef0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x4689b9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x51a19c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00481970
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00481b79
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 0x468a0d
xor eax, eax
jmp 0x468a42
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00496a80
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004976c0
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call fcn.004289be
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x469538
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov byte [ebp - 0x3c], 0x71
mov byte [ebp - 0x3b], 0xd5
mov byte [ebp - 0x3a], 0xac
mov byte [ebp - 0x39], 0xe3
mov byte [ebp - 0x38], 0xb3
mov byte [ebp - 0x37], 0x2b
mov byte [ebp - 0x36], 0x77
mov byte [ebp - 0x35], 0x6f
mov byte [ebp - 0x34], 0xcc
mov byte [ebp - 0x33], 0x37
mov byte [ebp - 0x32], 0x9f
mov byte [ebp - 0x31], 0x94
mov byte [ebp - 0x30], 0x8f
mov byte [ebp - 0x2f], 0x7f
mov byte [ebp - 0x2e], 0xa9
mov byte [ebp - 0x2d], 0xd6
mov byte [ebp - 0x2c], 0xec
mov byte [ebp - 0x2b], 0x9a
mov byte [ebp - 0x2a], 0x82
mov byte [ebp - 0x29], 0xcc
mov byte [ebp - 0x28], 0xa6
mov byte [ebp - 0x27], 0xef
mov byte [ebp - 0x26], 0x6e
mov byte [ebp - 0x25], 0x61
mov byte [ebp - 0x24], 0x77
mov byte [ebp - 0x23], 0xb8
mov byte [ebp - 0x22], 0x41
mov byte [ebp - 0x21], 0x25
mov byte [ebp - 0x20], 0x94
mov byte [ebp - 0x1f], 0xd7
mov byte [ebp - 0x1e], 0xe2
mov byte [ebp - 0x1d], 0xca
mov byte [ebp - 0x1c], 0x48
mov byte [ebp - 0x1b], 0x2a
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x35
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0x1e
mov byte [ebp - 0x16], 0x6a
mov byte [ebp - 0x15], 0xb8
mov byte [ebp - 0x14], 0x2d
mov byte [ebp - 0x13], 0x67
mov byte [ebp - 0x12], 0xb5
mov byte [ebp - 0x11], 0x8f
mov byte [ebp - 0x10], 0xce
mov byte [ebp - 0xf], 0x43
mov byte [ebp - 0xe], 0xff
mov byte [ebp - 0xd], 0x2b
mov byte [ebp - 0xc], 0xf9
mov byte [ebp - 0xb], 0x97
mov byte [ebp - 0xa], 6
mov byte [ebp - 9], 0xfe
mov byte [ebp - 8], 0xd2
mov byte [ebp - 7], 0x11
mov byte [ebp - 6], 0xec
mov byte [ebp - 5], 0x47
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x469670
cmp dword [ebp + 0xc], 0
je 0x469670
cmp dword [ebp + 0x10], 0
je 0x469670
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x38
jbe 0x469648
mov dword [ebp - 0x40], 0x38
jmp 0x469650
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00496a80
add esp, 0xc
jmp 0x469686
cmp dword [ebp + 0x10], 0
je 0x46967f
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffd6
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x469c2f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x469ce9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x198], 0
je 0x469ce9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x198]
cmp dword [edx + 0x1d04], 0
je 0x469ce9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x198]
mov edx, dword [ecx + 0x1d04]
cmp dword [edx + 4], 0
je 0x469ce9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x198]
mov edx, dword [ecx + 0x1d04]
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7d0
mov dword [ebp - 4], eax
push 0
mov ax, word [ebp + 0x10]
push eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
call dword [edx + 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x469cd0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x469cd8
cmp dword [ebp - 0xc], 0
jge 0x469cd8
jmp 0x469ce9
cmp dword [ebp - 0xc], 0
jne 0x469ce9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 4]
jb 0x469cab
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x47eb62
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x47eb83
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47fea5
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 0x47ffbc
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.00496a80
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x480c60
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.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x480dc9
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 0x480dba
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 0x480da1
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x120]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x5016b8
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.004978fc
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 0x480d95
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496980
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call fcn.00497557
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x120], 0x104
jmp 0x480cac
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x480dd0
mov eax, 0xffffff01
jmp 0x480dd2
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x481165
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 [0x511d1c], 0
jne 0x481293
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.IPHelperMutex
push str._s__d
lea eax, [ebp - 0x104]
push eax
call fcn.004970c0
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 0x4811ef
xor eax, eax
jmp 0x481299
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48120b
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x511d1c], 0
jne 0x481279
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x511d20], eax
cmp dword [0x511d20], 0
jne 0x481239
mov dword [ebp - 0x108], 0xfffffffe
jmp 0x48126f
push str.GetNetworkParams
mov eax, dword [0x511d20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x511d14], eax
cmp dword [0x511d14], 0
je 0x48126f
push str.GetAdaptersInfo
mov ecx, dword [0x511d20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x511d18], eax
mov dword [0x511d1c], 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 0x482740
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 0x482763
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004823a0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00482400
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004824c0
lea eax, [esp + 0x18]
push eax
call fcn.00481da0
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 0x482730
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x482814
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.00482710
or ax, ax
je 0x4827dc
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x482800
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x482800
lea eax, [esp + 0xa]
push esi
push eax
call fcn.00481eb0
or al, al
jne 0x482814
jmp 0x48280f
lea eax, [esp + 8]
push esi
push eax
call fcn.00481e00
or al, al
jne 0x482814
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x48282c
cmp ax, 0xffff
je 0x48282c
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 0x482850
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 0x482873
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004823a0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00482400
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004824c0
lea eax, [esp + 0x18]
push eax
call fcn.00481da0
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 0x482840
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x482924
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.00482710
or ax, ax
je 0x482924
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x482924
cmp byte [esp + eax + 0xa], 0x3a
jne 0x482924
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.00481e00
or al, al
jne 0x482910
jmp 0x48291f
mov ax, word [esi]
cmp ax, 1
jl 0x48291f
cmp ax, 6
jle 0x482924
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x482950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004823a0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00482400
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004825b0
lea eax, [esp + 4]
push 0x10
push eax
call fcn.00482560
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x482940
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x4829bf
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00481c30
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 0x4829d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004823a0
lea eax, [esp]
push 0x10
push eax
call fcn.00482400
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.00482510
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 0x482a40
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.00481dc0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004823a0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00482400
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.00482460
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.00482610
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004826c0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00482670
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x482a30
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x482b13
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.00481c30
or al, al
je 0x482ae1
mov word [esi], 2
jmp 0x482b13
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.00481c30
or al, al
je 0x482afb
mov word [esi], 3
jmp 0x482b13
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00481c30
or al, al
je 0x482b13
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x482d00
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.00482c00
or al, al
jne 0x482e8a
test byte [edi + 0x1c], 4
je 0x482d63
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 0x482df0
mov dword [ebx + 0xa8], 0
jmp 0x482dfc
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x482e10
mov dword [ebx + 0xac], 0
jmp 0x482e19
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x482e30
cmp word [ebp + 0xe], 0xffff
jne 0x482e30
or dword [ebx + 0x2c], 8
jmp 0x482e36
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x482d70
push esi
call fcn.00482c70
push esi
call fcn.00482bb0
push esi
call fcn.00482b70
mov eax, dword [esi + 0x10]
push eax
call fcn.00484030
mov word [esi + 0xc], ax
or ax, ax
je 0x482e80
lea eax, [esi + 4]
push eax
call fcn.00483e80
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.00482b40
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x484f80
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.00482ea0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.00484ab0
or al, al
jne 0x48500a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004858a0
or al, al
jne 0x48500a
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.00485760
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004858f0
or di, di
je 0x48500a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4850b0
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.00482ea0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.00482ea0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.00484ab0
or al, al
jne 0x485193
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004858a0
mov bx, ax
or bl, bl
jne 0x485162
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.004857b0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004858f0
push esi
call fcn.00482fb0
cmp ax, 0xd
jne 0x485172
mov bx, 0xd
cmp bl, 0xd
je 0x48517d
cmp bx, 3
jne 0x485190
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x485102
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x486f40
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 0x486fd6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x486fb3
cmp eax, 3
jbe 0x486fcb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x486fc0
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 0x486ff0
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.00486ee0
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 0x487040
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.00486ea0
or ebx, ebx
je 0x487052
cmp word [esi + 6], 0xffff
jne 0x487058
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8