joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cad0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0
push 8
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40cb3e
call esi
cmp eax, 0x3f0
jne 0x40cbd7
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40cb3e
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 2
push eax
call ebx
test eax, eax
je 0x40cb64
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
cmp eax, 0x7a
je 0x40cb77
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041e480
mov esi, esp
test esi, esi
jne 0x40cb98
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push 2
push edx
call ebx
test eax, eax
jne 0x40cbb4
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea ecx, [ebp - 0x18]
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40cbe3
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [ebp - 0x10], edi
cmp eax, edi
jbe 0x40cc13
lea ebx, [esi + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40cc0c
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x40cbef
jmp 0x40cc13
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc30
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.GetNativeSystemInfo
push 0x44a6f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x40cc87
lea ecx, [esp]
push ecx
call eax
jmp 0x40cc92
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x34]
dec eax
je 0x40cda9
dec eax
je 0x40ccc2
push 0
push 0
push str.IDS_ERR_SYSTEM
mov ecx, 0x4501e8
call fcn.004054a0
push eax
call fcn.0043720f
xor eax, eax
add esp, 0xc0
ret
mov eax, dword [esp + 0x28]
cmp eax, 4
jne 0x40cce3
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40cdad
mov eax, 1
add esp, 0xc0
ret
cmp eax, 5
jne 0x40cd40
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40ccfc
mov eax, 2
add esp, 0xc0
ret
cmp eax, 1
jne 0x40cd0d
mov eax, 3
add esp, 0xc0
ret
cmp eax, 2
jne 0x40cdad
cmp byte [esp + 0xbe], 1
jne 0x40cd34
cmp word [esp], 9
jne 0x40cd34
mov eax, 3
add esp, 0xc0
ret
mov eax, 4
add esp, 0xc0
ret
mov ecx, dword [esp + 0x2c]
cmp eax, 6
jne 0x40cd93
test ecx, ecx
jne 0x40cd66
mov dl, byte [esp + 0xbe]
xor eax, eax
cmp dl, 1
setne al
add eax, 5
add esp, 0xc0
ret
cmp ecx, 1
jne 0x40cd82
mov al, byte [esp + 0xbe]
dec al
neg al
sbb eax, eax
add eax, 7
add esp, 0xc0
ret
cmp ecx, 2
jne 0x40cd9b
mov eax, 7
add esp, 0xc0
ret
cmp eax, 6
jb 0x40cdad
cmp ecx, 2
jbe 0x40cdad
mov eax, 7
add esp, 0xc0
ret
mov eax, dword [esp + 0x2c]
xor eax, eax
add esp, 0xc0
ret
Function at 0x40dc90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43c52b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x124]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x124]
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x23]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.windows_system32_spoolprinters
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00411470
mov dword [esp + 0x230], 0
lea eax, [esp + 0x124]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.00411520
test eax, eax
je 0x40ddbb
lea ecx, [esp + 0x20]
push 0
push ecx
push str.SpoolDirectory
lea ecx, [esp + 0x1c]
call fcn.00411690
lea ecx, [esp + 0x10]
call fcn.004115a0
mov ecx, ebx
call fcn.0040ae70
lea ecx, [esp + 0x10]
mov dword [esp + 0x230], 0xffffffff
call fcn.004114d0
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 4
Function at 0x40f2f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x34
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 7
lea edi, [esp + 0x24]
push str.COMMON_MONITOR
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push 0x44b540
push eax
call fcn.0041dbc4
mov eax, dword [esp + 0x58]
add esp, 0xc
cmp eax, 7
ja case.default.0x40f32c
jmp dword [eax*4 + 0x40f4a8]
lea edx, [esp + 0x24]
mov edi, 0x44b818
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, 0x44b814
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, 0x44b810
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, 0x44b80c
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, str..2003
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, str..Vista
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, str..2008
jmp 0x40f389
lea edx, [esp + 0x24]
mov edi, str..Win7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebx + 0x3848]
lea ebp, [ebx + 0x2714]
push esi
push 0x32
push ebp
push 0x44a6dc
lea eax, [esp + 0x34]
push str.USBLMONitorName
push eax
call edi
add ebx, 0x27dc
push esi
push 0xc8
push ebx
push 0x44a6dc
lea ecx, [esp + 0x34]
push str.USBLMONitorDLLName
push ecx
mov dword [esp + 0x28], eax
call edi
push esi
lea edx, [esp + 0x1c]
push 0xa
mov dword [esp + 0x1c], eax
push edx
push 0x44a6dc
lea eax, [esp + 0x34]
push str.USBLMONitorVersion
push eax
call edi
mov edx, dword [esp + 0x10]
mov ecx, 1
cmp edx, ecx
jne 0x40f467
cmp dword [esp + 0x14], ecx
jne 0x40f467
cmp eax, ecx
jne 0x40f467
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
xor edx, edx
cmp ecx, edx
mov dword [eax], 0x450418
mov dword [eax + 8], 0x450418
mov dword [eax + 0xc], edx
jne 0x40f45a
pop edi
pop esi
pop ebp
mov dword [eax + 4], 0x44a3ec
pop ebx
add esp, 0x34
ret 0x10
pop edi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x34
ret 0x10
lea ecx, [esp + 0x18]
push ecx
call fcn.0041e46c
mov ecx, dword [esp + 0x54]
xor edx, edx
add esp, 4
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x4c]
cmp eax, edx
mov dword [ecx], ebp
mov dword [ecx + 8], ebx
jne 0x40f49b
pop edi
pop esi
pop ebp
mov dword [ecx + 4], 0x44a3ec
pop ebx
add esp, 0x34
ret 0x10
pop edi
pop esi
pop ebp
mov dword [ecx + 4], edx
pop ebx
add esp, 0x34
ret 0x10
Function at 0x40f4d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2c
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 7
lea edi, [esp + 0x1c]
push str.COMMON_MONITOR
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push 0x44b540
push eax
call fcn.0041dbc4
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp eax, 7
ja case.default.0x40f50c
jmp dword [eax*4 + 0x40f6dc]
lea edx, [esp + 0x1c]
mov edi, 0x44b818
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, 0x44b814
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, 0x44b810
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, 0x44b80c
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, str..2003
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, str..Vista
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, str..2008
jmp 0x40f569
lea edx, [esp + 0x1c]
mov edi, str..Win7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebp + 0x3848]
lea eax, [ebp + 0x2264]
push esi
push 0x32
push eax
push 0x44a6dc
lea eax, [esp + 0x2c]
push str.USBMONitorPName
push eax
call ebx
lea eax, [ebp + 0x232c]
push esi
push 0xc8
push eax
push 0x44a6dc
lea ecx, [esp + 0x2c]
push str.USBMONitorPDLLName
push ecx
call ebx
mov edi, dword [esp + 0x44]
push esi
push 0x32
lea eax, [esp + 0x24]
lea edx, [edi + 0xe0]
push edx
push 0x44a6dc
push str.USBMONitorPUIDLLName
push eax
call ebx
push esi
lea ecx, [esp + 0x14]
push 0xa
push ecx
push 0x44a6dc
lea edx, [esp + 0x2c]
push str.USBMONitorVersion
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call fcn.0041e46c
mov dword [edi + 0x1ac], eax
lea eax, [ebp + 0x2264]
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [ebp + 0x232c]
lea ecx, [esp + 0x1c]
mov dword [edi + 0x14], eax
lea eax, [ebp + 0x24bc]
push esi
push 0x32
push eax
push 0x44a6dc
push str.COMMONitorPName
push ecx
mov dword [esp + 0x5c], eax
call ebx
add ebp, 0x2584
push esi
push 0xc8
push ebp
push 0x44a6dc
lea edx, [esp + 0x2c]
push str.COMMONitorPDLLName
push edx
call ebx
push esi
lea eax, [edi + 0x18]
push 0x32
push eax
push 0x44a6dc
lea ecx, [esp + 0x2c]
push str.COMMONitorPUIDLLName
push ecx
call ebx
push esi
lea edx, [esp + 0x14]
push 0xa
push edx
push 0x44a6dc
lea eax, [esp + 0x2c]
push str.COMMONitorVersion
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call fcn.0041e46c
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [edi + 0x1a8], eax
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [edi], edx
mov dword [edi + 8], ebp
jne 0x40f6c9
mov eax, 0x44a3ec
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x410090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
mov edx, ecx
mov ecx, 7
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
add edx, 0x3848
stosw word es:[edi], ax
push edx
lea eax, [esp + 8]
push 0x32
push eax
push 0x44a6dc
push str.DEVICENUMBER
push 0x44a900
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 4]
push ecx
call fcn.0041e46c
add esp, 4
pop edi
add esp, 0x20
ret

Function at 0x4100e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xd4
push esi
mov edx, dword [0x44a904]
mov esi, ecx
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x14]
push 0xa
rep stosd dword es:[edi], eax
mov ecx, dword [0x44a900]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xe4]
lea ecx, [esp + 0xc]
mov word [esp + 0x14], ax
mov ax, word [0x44a908]
push ecx
push edx
mov word [esp + 0x28], ax
call fcn.0041e6e8
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dx, word [esp + 0x10]
add esi, 0x3848
mov dword [esp + 0x1e], eax
push esi
mov esi, dword [esp + 0xe8]
push 0xc8
push esi
lea eax, [esp + 0x20]
push 0x44a6dc
push eax
push 0x44a900
mov dword [esp + 0x3a], ecx
mov word [esp + 0x3e], dx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str._ReceiptPrinter
push esi
call fcn.0041da10
add esp, 8
test eax, eax
je 0x4101a2
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
add esp, 0xd4
ret 8
push str._TicketPrinter
push esi
call fcn.0041da10
add esp, 8
test eax, eax
je 0x4101cc
xor ecx, ecx
pop edi
mov dword [eax], ecx
pop esi
mov word [eax + 4], cx
mov eax, 1
add esp, 0xd4
ret 8
push str._LabelPrinter
push esi
call fcn.0041da10
add esp, 8
test eax, eax
je 0x4101f4
mov dword [eax], 0
pop edi
mov eax, 2
pop esi
add esp, 0xd4
ret 8
push str._EmbeddedPrinter
push esi
call fcn.0041da10
add esp, 8
test eax, eax
je 0x410221
xor edx, edx
pop edi
mov dword [eax], edx
pop esi
mov dword [eax + 4], edx
mov word [eax + 8], dx
mov eax, 3
add esp, 0xd4
ret 8
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xd4
ret 8
Function at 0x410270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x32
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x3460]
mov ecx, 0x32
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe0]
cmp eax, 7
ja case.default.0x4102a7
jmp dword [eax*4 + 0x410440]
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x10]
push eax
push str._s.98
push ecx
jmp 0x410345
mov edx, dword [esp + 0xdc]
push edx
push str._s.NT
jmp 0x410340
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x10]
push ecx
push str._s.2K
push edx
jmp 0x410345
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x10]
push eax
push str._s.XP
push ecx
jmp 0x410345
mov edx, dword [esp + 0xdc]
push edx
push str._s.2003
jmp 0x410340
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x10]
push ecx
push str._s.Vista
push edx
jmp 0x410345
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x10]
push eax
push str._s.2008
push ecx
jmp 0x410345
mov edx, dword [esp + 0xdc]
push edx
push str._s.Win7
lea eax, [esp + 0x18]
push eax
call fcn.0041dbc4
add esp, 0xc
mov eax, dword [esi + 0x345c]
cmp eax, 3
ja case.default.0x41035c
jmp dword [eax*4 + 0x410460]
lea edi, [esi + 0x3528]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
jmp 0x4103ab
lea edi, [esi + 0x35f0]
jmp 0x410392
lea edi, [esi + 0x36b8]
jmp 0x410392
lea edi, [esi + 0x3780]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x450b1c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xe4]
sub eax, 0
je 0x410409
dec eax
jne 0x410426
push ebx
lea eax, [esp + 0x13]
push 5
push eax
push 0x44a6dc
lea ecx, [esp + 0x20]
push str.GDI2KDDKDEV
push ecx
jmp 0x410420
push ebx
lea edx, [esp + 0x13]
push 5
push edx
push 0x44a6dc
lea eax, [esp + 0x20]
push str.STD2KDDKDEV
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov cl, byte [esp + 0xf]
xor eax, eax
cmp cl, 0x31
pop edi
pop esi
pop ebx
sete al
add esp, 0xcc
ret 0xc

Function at 0x410470
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esi + 0x3848]
push eax
push 0x104
push edi
push 0x44a6dc
push str.DEFAULTNAME
push 0x44a900
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call fcn.0041e46c
add esp, 4
mov ecx, esi
push edi
push eax
call fcn.004100e0
pop edi
pop esi
ret 4
Function at 0x4115c0
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x4115cd
pop edi
ret 0xc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
push esi
push edx
mov edx, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov eax, esi
pop esi
pop edi
ret 0xc

Function at 0x4116e0
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x4116ed
pop edi
ret 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov eax, esi
pop esi
pop edi
ret 0x10
Function at 0x414420
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43c8d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
push str.0.0.0.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
call fcn.0042fc4a
mov ebp, dword [esp + 0x140]
lea eax, [esp + 0x28]
mov ebx, 1
push eax
push ebp
mov dword [esp + 0x13c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x414568
push edi
call fcn.00432b91
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4144d4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4144d4
push esi
call fcn.00432bba
mov esi, dword [esp + 0x140]
add esp, 4
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0042f995
mov dword [esp + 0x14], ebx
jmp 0x41457f
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x34]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x414521
push esi
call fcn.00432bba
add esp, 4
lea ecx, [esp + 0x10]
push ecx
jmp 0x41456d
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41455f
push edx
lea ecx, [esp + 0x20]
call fcn.0042fc4a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 2
call fcn.0042fd15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], bl
call fcn.0042fc20
push esi
call fcn.00432bba
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, dword [esp + 0x140]
mov ecx, esi
call fcn.0042f995
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.0042fc20
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x42ddf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041e480
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42debb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42debb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42de6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42de79
or bh, 8
and edi, 0x8000000
je 0x42de94
mov eax, dword [0x45455c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42debb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret