joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403300
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov dword [esp + 0x10], 0x7530
jne 0x4033f0
mov eax, dword [esi + 0x30]
test eax, eax
push 0
je 0x403341
push str._local_
push str.proxy
push 3
jmp 0x403349
mov eax, dword [esi + 0x54]
push 0
push 0
push eax
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98__Rising_
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x40336d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov byte [esp + 0x20], cl
xor eax, eax
mov dword [esp + 0x1c], ecx
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4033d9
movzx edx, word [esi + 0x2c]
mov eax, dword [esi + 0x28]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s:_d
push ecx
mov dword [esp + 0x24], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 4]
add esp, 0x10
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x26
lea edx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], edx
call ebx
test eax, eax
je 0x4034a4
mov eax, dword [esi + 4]
push 4
lea edx, [esp + 0x14]
push edx
push 2
push eax
call ebx
test eax, eax
je 0x4034a4
mov eax, dword [esi + 8]
test eax, eax
jne 0x4034bd
mov eax, dword [esi + 0x18]
test eax, eax
push 0
push 0
push 3
jne 0x40341d
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
xor ecx, ecx
mov cx, word [esi + 0x14]
push 0
push 0
push ecx
push eax
push edx
jmp 0x403434
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
push eax
xor eax, eax
mov ax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 8], eax
je 0x4034a4
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x4034a4
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x14]
push edx
push 5
push eax
call ebx
test eax, eax
je 0x4034a4
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 6
push edx
call ebx
test eax, eax
je 0x4034a4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4034bd
mov eax, dword [esi + 0x38]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esi + 8]
push 0x2b
push eax
call ebx
test eax, eax
je 0x4034a4
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esi + 8]
push eax
push 0x2c
push ecx
call ebx
test eax, eax
jne 0x4034bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00402050
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405450
Capabilities:
Get file attributes

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x405469
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
push edi
je 0x4054b7
push ebx
push ebp
call fcn.0042a3e2
lea ebx, [eax + eax + 2]
push ebx
call fcn.00429bd8
add esp, 8
push 0
push 0
push ebx
mov esi, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
push esi
xor eax, eax
push 0xffffffffffffffff
mov edi, esi
rep stosd dword es:[edi], eax
push ebp
mov ecx, edx
push 0x200
and ecx, 3
push 0
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test esi, esi
mov edi, eax
je 0x4054cd
push esi
call fcn.00429695
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4054e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x405516
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetDriveTypeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405516
mov ecx, dword [esp + 0x18]
push ecx
call eax
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 1], edx
mov dword [esp + 5], edx
mov dword [esp + 9], edx
mov dword [esp + 0xd], edx
mov word [esp + 0x11], dx
lea eax, [esp]
mov byte [esp], 0
mov byte [esp + 0x13], dl
push edx
push edx
push 0x14
push eax
push 0xffffffffffffffff
push ecx
push 0x200
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0x14
ret
Function at 0x405a40
Capabilities:
Get disk information

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x405a5e
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
ret
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
lea edi, [ebx + 2]
push edi
call fcn.00429bd8
mov ecx, edi
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push edi
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
je 0x405ab0
push esi
call fcn.00429695
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x406720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push edi
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40676d
mov eax, dword [esp + 0xc]
cmp eax, 5
jae 0x406766
cmp eax, 4
jne 0x40676d
cmp dword [esp + 0x10], 0x5a
jb 0x40676d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x406820
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4068ba
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
mov edi, 0x14
mov dword [esp + 0x10], 0
jmp 0x406850
mov eax, dword [esi + 0x40]
dec edi
cmp eax, 3
je 0x40687d
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
je 0x40687d
cmp dword [esp + 0x10], 0x103
jne 0x40687d
push 0xc8
call ebx
test edi, edi
jge 0x406850
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4068b0
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
je 0x4068a9
cmp dword [esp + 0x10], 0x103
jne 0x4068a9
mov eax, dword [esi + 0x3c]
push 0x1122
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x3c], 0
pop edi
pop ebp
mov dword [esi + 0x40], 0
pop ebx
mov eax, 1
pop esi
pop ecx
ret
Function at 0x406920
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x406988
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x406988
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
test eax, eax
jne 0x406993
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0xffffffffffffffff
mov esi, eax
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov cl, byte [esi]
pop edi
xor eax, eax
test cl, cl
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407380
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, ecx
test ebp, ebp
push esi
push edi
je 0x40738f
lea edi, [ebp - 0x28]
jmp 0x407391
xor edi, edi
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [edi + 4]
push 0xfffffffffffffff0
push ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
shr esi, 0x1e
not esi
and esi, 1
test ebx, ebx
je 0x4073d3
test esi, esi
je 0x4073c7
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x4073d3
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
mov edx, dword [ebp + 0x3c]
lea ecx, [ebp + 0x3c]
push eax
call dword [edx + 0x10]
test ebx, ebx
je 0x407418
test esi, esi
je 0x40740c
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov ecx, dword [edi + 4]
push 0x480
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edx, dword [edi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x40ac80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x447fe8]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40acf7
mov eax, dword [esi + 4]
call fcn.00406dc0
mov eax, dword [esi + 0x2f4]
test eax, eax
jne 0x40acc9
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 4]
push ecx
push 1
push 0x43d888
push 0x1203
push edx
mov ecx, str.ravuimsg.dll
call fcn.0040a090
add esp, 0x14
test eax, eax
jne 0x40acf3
mov eax, dword [esi + 0x78]
push 0
lea ecx, [esi + 0x78]
mov dword [esi + 0x2f8], 1
add esi, 0x44
push esi
push str.Engine
push 0xffffffffffffffff
push str.Stop
push 0x25a
call dword [eax + 0x24]
pop esi
ret 4
push ebx
push edi
lea ecx, [esi + 0xac]
call fcn.00407580
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ebx, [esi + 0x28]
test ebx, ebx
je 0x40ad1c
lea eax, [ebx - 0x28]
jmp 0x40ad1e
xor eax, eax
mov eax, dword [eax + 4]
mov edx, dword [ebx + 0x60]
lea edi, [ebx + 0x60]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov eax, dword [ebx + 0x3c]
lea ecx, [ebx + 0x3c]
call dword [eax + 8]
mov edx, dword [ebx + 0x50]
lea ecx, [ebx + 0x50]
call dword [edx + 8]
lea ecx, [esi + 0xec]
call fcn.004074c0
mov eax, dword [0x447fe8]
pop edi
xor eax, 0xffccddaa
pop ebx
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.USER32.dll_PostQuitMessage]
Function at 0x40ad70
Capabilities:
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x3c
test byte [0x447ebc], 1
push esi
push edi
mov edi, dword [esp + 0x54]
mov esi, ecx
mov dword [esp + 8], esi
mov dword [edi], 1
jne 0x40ad95
or dword [0x447ebc], 1
mov eax, dword [esp + 0x48]
cmp eax, 0x121
jne 0x40adcd
cmp dword [esp + 0x4c], 2
jne 0x40adbd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x447eb4
mov dword [0x447eb0], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret 0x10
cmp eax, 0x112
jne 0x40af53
cmp dword [esp + 0x4c], 0xf060
jne 0x40adbd
mov eax, dword [esp + 0x50]
movzx edi, ax
push ebx
shr eax, 0x10
mov ebx, eax
push ebp
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
lea ebp, [edx - 0x1e]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
add eax, 0x1e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
lea ebp, [ecx + 0x1e]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
add ecx, 0x1e
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov esi, dword [sym.imp.USER32.dll_PtInRect]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x44], ebp
call esi
test eax, eax
je 0x40ae7e
push ebx
push edi
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x40ae9b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
je 0x40aecc
test edi, edi
jne 0x40aecc
test ebx, ebx
jne 0x40aecc
mov ecx, dword [0x447fe8]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
xor ecx, 0xffccddaa
push ecx
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret 0x10
mov eax, dword [0x447eb4]
test eax, eax
jle 0x40af44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x447eb0]
cmp eax, 0x1f4
jae 0x40af44
mov eax, dword [0x447eb4]
lea ecx, [eax - 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x447eb8]
lea edx, [ecx - 0x14]
add eax, 0x14
add ecx, 0x14
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x40af44
mov eax, dword [0x447fe8]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
xor eax, 0xffccddaa
push eax
push 2
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret 0x10
cmp eax, 0x530
jne 0x40adbd
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40adbd
push 0
mov ecx, esi
call fcn.0040ac80
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret 0x10
Function at 0x40b550
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x40b56f
lea esi, [ebp - 0x28]
jmp 0x40b571
xor esi, esi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
mov edi, eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
shr ebx, 0x1e
not ebx
and ebx, 1
test edi, edi
je 0x40b5b7
test ebx, ebx
je 0x40b5ab
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x40b5b7
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add ebp, 0x1c
xor eax, eax
test ebp, ebp
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
je 0x40b606
push 0x2e
push ebp
call fcn.0042abe0
add esp, 8
test eax, eax
je 0x40b5f6
sub eax, ebp
cmp eax, 0x7fffffff
ja 0x40b606
push eax
push ebp
push 0x104
lea ecx, [esp + 0x24]
push ecx
call fcn.00408130
jmp 0x40b606
push ebp
push 0x104
lea edx, [esp + 0x20]
push edx
call fcn.00401710
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x60]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 4]
add ecx, 0x60
push edx
call dword [eax + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b63e
test ebx, ebx
je 0x40b632
push 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x40b63e
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0
push 5
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
xor eax, eax
cmp edx, eax
push edi
je 0x40c121
cmp esi, eax
je 0x40c121
mov byte [esp + 0x18], al
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str.SOFTWARERising_s
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x104
push eax
mov dword [esp + 0x20], 1
call fcn.00401a90
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c10e
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.datapath
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c0e0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40c103
cmp ebx, 0x7fffffff
ja 0x40c103
push 0x43d854
push ebx
push esi
call fcn.00401ac0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c113
sub eax, edx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40c1a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
or esi, 0xffffffff
test edi, edi
je 0x40c279
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1d7
sub eax, edx
cmp eax, 2
jb 0x40c279
cmp byte [edi + 1], 0x3a
jne 0x40c21d
lea eax, [esp + 0x10]
mov edx, edi
mov ecx, eax
mov esi, 0x104
sub edx, ecx
mov edi, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x40c213
mov byte [eax], cl
inc eax
dec esi
jne 0x40c200
dec eax
mov byte [eax], 0
jmp 0x40c25b
test esi, esi
jne 0x40c218
dec eax
mov byte [eax], 0
jmp 0x40c25b
mov edx, dword [ebp + 0x18]
mov ebx, 0x104
lea esi, [esp + 0x10]
call fcn.0040c040
mov ecx, ebx
mov eax, esi
cmp byte [eax], 0
je 0x40c23d
inc eax
dec ecx
jne 0x40c232
jmp 0x40c25b
test ecx, ecx
je 0x40c25b
mov eax, 0x104
sub eax, ecx
push edi
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax + 0x18]
push eax
call fcn.00401710
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [esp + 0xc], 0xffffffff
je 0x40c420
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c2d0
sub eax, edx
cmp eax, 2
jb 0x40c420
cmp byte [edi + 1], 0x3a
jne 0x40c314
lea eax, [esp + 0x18]
mov edx, edi
mov ecx, eax
mov esi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x40c30a
mov byte [eax], cl
inc eax
dec esi
jne 0x40c2f7
dec eax
mov byte [eax], 0
jmp 0x40c359
test esi, esi
jne 0x40c30f
dec eax
mov byte [eax], 0
jmp 0x40c359
mov edx, dword [ebp + 0x18]
mov ebx, 0x104
lea esi, [esp + 0x18]
call fcn.0040c040
mov ecx, ebx
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
je 0x40c33b
inc eax
dec ecx
jne 0x40c330
jmp 0x40c359
test ecx, ecx
je 0x40c359
mov eax, 0x104
sub eax, ecx
push edi
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax + 0x20]
push eax
call fcn.00401710
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x120], bl
mov ecx, 0x41
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
push 0x104
lea edx, [esp + 0x128]
push edx
push 0x43d994
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x120], bl
je 0x40c420
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x124]
push 0x43e5a4
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.0042aeb9
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
ja 0x40c423
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x124]
push str.0X_X
push eax
call fcn.0042aeb9
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
ja 0x40c423
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x124]
push 0x43e598
push edx
call fcn.0042aeb9
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
ja 0x40c423
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c430
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x1c]
or edx, 0xffffffff
test edi, edi
je 0x40c511
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c467
sub eax, esi
cmp eax, 2
jb 0x40c511
cmp byte [edi + 1], 0x3a
jne 0x40c4ad
lea eax, [esp + 0x10]
mov edx, edi
mov ecx, eax
mov esi, 0x104
sub edx, ecx
mov edi, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x40c4a3
mov byte [eax], cl
inc eax
dec esi
jne 0x40c490
dec eax
mov byte [eax], 0
jmp 0x40c4eb
test esi, esi
jne 0x40c4a8
dec eax
mov byte [eax], 0
jmp 0x40c4eb
mov edx, dword [ebp + 0x20]
mov ebx, 0x104
lea esi, [esp + 0x10]
call fcn.0040c040
mov ecx, ebx
mov eax, esi
cmp byte [eax], 0
je 0x40c4cd
inc eax
dec ecx
jne 0x40c4c2
jmp 0x40c4eb
test ecx, ecx
je 0x40c4eb
mov eax, 0x104
sub eax, ecx
push edi
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax + 0x18]
push eax
call fcn.00401710
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret