joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b970
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 8], eax
jbe 0x40b9a5
call fcn.00440a4f
push ebx
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40b9b3
call fcn.00440a4f
cmp ebx, edi
je 0x40b9d9
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 1
test eax, eax
lea ecx, [eax + eax]
push ebp
lea ebp, [ecx + ebx]
jle 0x40b9d5
push ecx
push edi
push ecx
push ebx
call fcn.00440b0d
add esp, 0x10
mov dword [esi + 8], ebp
pop ebp
cmp dword [0x477a54], 0
pop ebx
jne 0x40ba53
mov ecx, dword [esp + 8]
push ecx
push 0x100
lea edx, [esp + 0x14]
push edx
push 0
push str.ExcludeLocale_9X
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40ba53
lea eax, [esp + 0xc]
push 0x462c84
push eax
call fcn.00441f82
add esp, 8
test eax, eax
je 0x40ba53
mov edi, edi
push 0x10
push 0
push eax
call fcn.0044226b
movzx ecx, ax
add esp, 0xc
lea edx, [esp + 8]
mov dword [esp + 8], ecx
push edx
mov ecx, esi
call fcn.0040b220
push 0x462c84
push 0
call fcn.00441f82
add esp, 8
test eax, eax
jne 0x40ba20
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.004404d4
add esp, 0x108
ret 8

Function at 0x40c080
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x118
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
push ebx
push esi
push edi
mov esi, ecx
jae 0x40c0ac
mov eax, 0x477aa8
push str.SETUP.INI
push eax
push str._s_s
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00408330
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
push 0x100
lea edi, [esi + 0x308]
push edi
push 0x462a70
push str.Setup
push str.General
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
jne 0x40c118
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004404d4
add esp, 0x118
ret
lea edx, [esi + 0x8c0]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00407d80
test al, al
je 0x40c0fe
lea ecx, [esp + 0x1c]
push ecx
push 0x10
lea edx, [esp + 0x14]
push edx
push str.0x0809
push str.DefaultLocale
push str.General
call ebx
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x40c16f
push 0x10
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044226b
add esp, 0xc
mov word [esi + 0x718], ax
lea edx, [esi + 0x8f4]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040b970
lea ecx, [esi + 0x904]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0040b7e0
lea eax, [esp + 0x1c]
push eax
push 0
push str.PrivilegeCheckMode
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x1c]
push ecx
push 0x104
mov dword [esi + 0x71c], eax
add esi, 0x614
push esi
push str.EPSON_Scanner
push str.UninstRegKey
push str.General
call ebx
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004404d4
add esp, 0x118
ret
Function at 0x40c1f0
Capabilities:
Identify system language via api

Disassembly:
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ebp, ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push esi
mov ecx, ebp
movzx ebx, ax
call fcn.0040b640
test al, al
jne 0x40c224
pop esi
pop ebp
pop ebx
ret 4
mov ax, word [0x477a6a]
test ax, ax
je 0x40c23a
mov word [esi], ax
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
push edi
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + 0x908]
test ecx, ecx
je 0x40c2a7
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40c2a7
test ecx, ecx
je 0x40c26c
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40c271
call fcn.00440a4f
mov eax, dword [ebp + 0x908]
cmp bx, word [eax + edi*4]
je 0x40c282
add edi, 1
jmp 0x40c240
mov ecx, eax
test ecx, ecx
je 0x40c297
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40c29c
call fcn.00440a4f
mov ecx, dword [ebp + 0x908]
movzx ebx, word [ecx + edi*4 + 2]
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c30d
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x40c30d
test ecx, ecx
je 0x40c2d1
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c2d6
call fcn.00440a4f
mov edx, dword [esi + 8]
cmp word [edx + edi*2], bx
je 0x40c2e4
add edi, 1
jmp 0x40c2b0
mov ecx, edx
test ecx, ecx
je 0x40c2f5
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c2fa
call fcn.00440a4f
mov eax, dword [esi + 8]
mov cx, word [eax + edi*2]
pop edi
mov word [esi], cx
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
cmp word [esi], 0
jne 0x40c371
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c371
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x40c371
test ecx, ecx
je 0x40c336
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c33b
call fcn.00440a4f
mov edx, dword [esi + 8]
cmp byte [edx + edi*2], bl
je 0x40c348
add edi, 1
jmp 0x40c315
mov ecx, edx
test ecx, ecx
je 0x40c359
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40c35e
call fcn.00440a4f
mov eax, dword [esi + 8]
mov cx, word [eax + edi*2]
pop edi
mov word [esi], cx
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov dx, word [ebp + 0x718]
pop edi
mov word [esi], dx
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x40d690
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45cc38
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x174]
mov dword fs:[0], eax
mov edi, dword [esp + 0x18c]
xor ebx, ebx
mov dword [esp + 0x17c], ebx
lea ebp, [edi + 0x28]
test edi, edi
mov dword [esp + 0x14], ebx
je 0x40d86c
mov eax, dword [esp + 0x190]
mov esi, eax
sub esi, edi
sar esi, 6
cmp ebx, esi
jae 0x40d84b
mov eax, dword [esp + 0x184]
cmp eax, dword [ebp - 0x28]
jne 0x40d811
cmp ebx, esi
jb 0x40d719
call fcn.00440a4f
cmp dword [ebp - 8], 0x10
lea edi, [ebp - 0x1c]
jb 0x40d726
mov eax, dword [edi]
jmp 0x40d728
mov eax, edi
push eax
call fcn.0042d5f0
add esp, 4
test al, al
je 0x40d80a
push 0x40
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00440b70
xor eax, eax
add esp, 0xc
cmp ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
jb 0x40d76d
call fcn.00440a4f
cmp dword [ebp + 0x14], 0x10
jb 0x40d778
mov ebx, dword [ebp]
jmp 0x40d77a
mov ebx, ebp
cmp dword [esp + 0x14], esi
jb 0x40d785
call fcn.00440a4f
cmp dword [ebp - 8], 0x10
jb 0x40d78f
mov eax, dword [edi]
jmp 0x40d791
mov eax, edi
push ebx
push eax
push str._s__s
lea edx, [esp + 0x78]
push 0x104
push edx
call fcn.00408330
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d81c
cmp dword [esp + 0x14], esi
jb 0x40d7df
call fcn.00440a4f
cmp byte [ebp - 0x24], 0
je 0x40d806
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18c]
add ebx, 1
add ebp, 0x40
jmp 0x40d6de
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x190]
mov esi, dword [esp + 0x18c]
push eax
lea ecx, [esp + 0x18c]
push ecx
push edx
push esi
call fcn.0040ac70
push esi
call fcn.0042f877
add esp, 0x14
xor al, al
jmp 0x40d86e
test edi, edi
je 0x40d86c
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push edi
call fcn.0040ac70
push edi
call fcn.0042f877
add esp, 0x14
mov al, 1
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.004404d4
add esp, 0x16c
ret 0x14
Function at 0x40d8a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45cc78
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x18c]
xor edi, edi
mov dword [esp + 0x180], edi
mov dword [esp + 0x14], edi
lea ebp, [ebx + 0x28]
test ebx, ebx
mov dword [esp + 0x18], edi
je 0x40da95
mov eax, dword [esp + 0x190]
mov esi, eax
sub esi, ebx
sar esi, 6
cmp edi, esi
jae 0x40da74
cmp dword [ebp - 8], 0x10
lea ebx, [ebp - 0x1c]
jb 0x40d921
mov eax, dword [ebx]
jmp 0x40d923
mov eax, ebx
push eax
call fcn.0042d5f0
add esp, 4
test al, al
je 0x40da20
cmp edi, esi
jb 0x40d93d
call fcn.00440a4f
cmp dword [ebp + 0x10], 0
je 0x40da20
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00440b70
xor eax, eax
add esp, 0xc
cmp edi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x44
jb 0x40d97b
call fcn.00440a4f
cmp dword [ebp + 0x14], 0x10
jb 0x40d986
mov edi, dword [ebp]
jmp 0x40d988
mov edi, ebp
cmp dword [esp + 0x18], esi
jb 0x40d993
call fcn.00440a4f
cmp dword [ebp - 8], 0x10
jb 0x40d99d
mov eax, dword [ebx]
jmp 0x40d99f
mov eax, ebx
push edi
push eax
push str._s__s
lea ecx, [esp + 0x7c]
push 0x104
push ecx
call fcn.00408330
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40da45
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x14]
sub eax, 1
jne 0x40da32
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x18c]
add edi, 1
add ebp, 0x40
jmp 0x40d8f2
lea ecx, [esp + 0x188]
sub eax, 1
call fcn.0040bc10
xor al, al
jmp 0x40da97
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x190]
mov esi, dword [esp + 0x18c]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push esi
call fcn.0040ac70
push esi
call fcn.0042f877
add esp, 0x14
xor al, al
jmp 0x40da97
test ebx, ebx
je 0x40da95
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push ebx
call fcn.0040ac70
push ebx
call fcn.0042f877
add esp, 0x14
mov al, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.004404d4
add esp, 0x170
ret 0x14
Function at 0x4102f0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410350
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 8]
add eax, 1
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x410345
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x410360
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4103b5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4103aa
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4103c0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
push 2
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41040c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4103fa
cmp eax, 2
jne 0x4103fc
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
cmp eax, 2
mov al, 1
je 0x410415
mov al, bl
pop ebx
pop ecx
ret

Function at 0x410420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x128]
lea edx, [esp + 0xc]
push edx
push 0x20019
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4104b7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push ebx
push edx
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4104ac
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
call section..text
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004404d4
add esp, 0x10c
ret
Function at 0x4104e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x3a0], eax
mov eax, dword [esp + 0x3ac]
push ebx
mov ebx, dword [esp + 0x3ac]
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
xor esi, esi
push esi
push eax
push ebx
mov dword [esp + 0x30], eax
mov byte [esp + 0x27], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41060e
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c4]
push eax
push esi
mov ebp, 0x100
push ecx
mov dword [esp + 0x34], ebp
call edi
cmp eax, 0x103
je 0x4105ad
mov edx, dword [esp + 0x14]
add edx, 1
push edx
call fcn.0042f872
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x1b0]
push ecx
add edx, 1
push edx
push eax
mov dword [esp + esi*4 + 0x2c], eax
call section..text
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c4]
push ecx
add esi, 1
push esi
push edx
mov dword [esp + 0x34], ebp
call edi
cmp eax, 0x103
jne 0x410558
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
test esi, esi
jbe 0x410616
mov edi, edi
mov edi, dword [esp + ebp*4 + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push str._s_s
lea edx, [esp + 0x2bc]
push 0x100
push edx
call fcn.00408330
push 1
lea eax, [esp + 0x2c8]
push eax
push ebx
call fcn.004104e0
add esp, 0x20
test al, al
jne 0x4105fc
mov byte [esp + 0x13], al
push edi
call fcn.0042f877
add ebp, 1
add esp, 4
cmp ebp, esi
jb 0x4105c0
jmp 0x410616
cmp eax, 2
sete byte [esp + 0x13]
cmp byte [esp + 0x3c0], 0
je 0x41063d
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x410639
cmp eax, 2
je 0x410639
xor al, al
jmp 0x410641
mov al, 1
jmp 0x410641
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004404d4
add esp, 0x3a4
ret
Function at 0x421670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45ee28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x38]
cmp esi, dword [ecx + 0x3c]
lea edi, [ecx + 0x34]
jbe 0x4216a7
call fcn.00440a4f
mov ebp, 0xf
xor ebx, ebx
mov edi, edi
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0x14], eax
jbe 0x4216c1
call fcn.00440a4f
cmp edi, edi
je 0x4216ca
call fcn.00440a4f
cmp esi, dword [esp + 0x14]
je 0x421846
mov eax, dword [esp + 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
add eax, 8
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402c60
cmp esi, dword [edi + 8]
mov dword [esp + 0x40], ebx
jb 0x421704
call fcn.00440a4f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
lea eax, [esi + 8]
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402c60
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042ef20
add esp, 0x38
cmp eax, ebx
jne 0x421834
mov eax, dword [esp + 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add eax, 0x5c
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402c60
cmp esi, dword [edi + 8]
mov dword [esp + 0x40], 1
jb 0x42176e
call fcn.00440a4f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
lea eax, [esi + 0x5c]
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402c60
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042ef20
add esp, 0x38
cmp eax, ebx
jne 0x421834
mov eax, dword [esp + 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add eax, 0x24
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402c60
cmp esi, dword [edi + 8]
mov dword [esp + 0x40], 2
jb 0x4217d8
call fcn.00440a4f
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
lea eax, [esi + 0x24]
push ebx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402c60
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042ef20
add esp, 0x38
cmp eax, ebx
jne 0x421834
cmp esi, dword [edi + 8]
jb 0x421814
call fcn.00440a4f
mov al, byte [esi + 4]
mov ecx, dword [esp + 0x2c]
cmp al, byte [ecx + 4]
jne 0x421834
cmp esi, dword [edi + 8]
jb 0x42182a
call fcn.00440a4f
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
cmp edx, dword [eax]
je 0x421852
cmp esi, dword [edi + 8]
jb 0x42183e
call fcn.00440a4f
add esi, 0x78
jmp 0x4216b0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0041a260
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x423030
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45f20a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [eax], vtable.CSifFile.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x88], ecx
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x98], ecx
mov dword [eax + 0x9c], ecx
mov dword [eax + 0xa0], ecx
mov dword [eax + 0xa8], ecx
mov dword [eax + 0xac], ecx
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov dword [eax + 0xc0], ecx
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd8], ecx
mov dword [eax + 0xdc], ecx
mov dword [eax + 0xe0], ecx
mov dword [eax + 0xe8], ecx
mov dword [eax + 0xec], ecx
mov dword [eax + 0xf0], ecx
mov dword [eax + 0xf8], ecx
mov dword [eax + 0xfc], ecx
mov dword [eax + 0x100], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x424cd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
push ebx
push esi
push edi
mov edi, ecx
jae 0x424cfc
mov eax, 0x477aa8
push str.SETUP.INI
push eax
push str._s_s
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00408330
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
push 0x100
lea esi, [edi + 0x100]
push esi
push 0x462a70
push str.Setup
push str.General
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x424d66
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004404d4
add esp, 0x108
ret
lea edx, [esp + 0xc]
push edx
push 0x104
add edi, 0x204
push edi
push str.EPSON_Scanner
push str.UninstRegKey
push str.General
call ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004404d4
add esp, 0x108
ret