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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 0x10], eax
jbe 0x40b454
call fcn.004402b5
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40b461
call fcn.004402b5
push edi
push esi
push ebx
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00409730
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x100
lea eax, [esp + 0x28]
push eax
push 0
push 0
push str.LanguageMapping
call ebx
test eax, eax
je 0x40b55b
xor edi, edi
cmp byte [esp + 0x20], 0
je 0x40b55b
lea eax, [esp + 0x20]
lea ebx, [ebx]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x10]
push edx
push 0x100
lea eax, [esp + 0x128]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push str.LanguageMapping
call ebx
test eax, eax
je 0x40b53d
lea edx, [esp + 0x120]
push 0x462c74
push edx
call fcn.00441745
add esp, 8
test eax, eax
je 0x40b53d
push 0x10
push 0
push eax
call fcn.004419ac
push 0x10
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004419ac
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov word [esp + 0x1a], ax
call fcn.0040aed0
push 0x462c74
push 0
call fcn.00441745
add esp, 8
test eax, eax
jne 0x40b4f9
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [esp + edi + 0x20], 0
lea eax, [esp + edi + 0x20]
jne 0x40b4b0
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044017c
mov esp, ebp
pop ebp
ret 8

Function at 0x40b580
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4772c4]
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 0x40b5b5
call fcn.004402b5
push ebx
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40b5c3
call fcn.004402b5
cmp ebx, edi
je 0x40b5e9
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 0x40b5e5
push ecx
push edi
push ecx
push ebx
call fcn.004404cd
add esp, 0x10
mov dword [esi + 8], ebp
pop ebp
cmp dword [0x478a54], 0
pop ebx
jne 0x40b663
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 0x40b663
lea eax, [esp + 0xc]
push 0x462c74
push eax
call fcn.00441745
add esp, 8
test eax, eax
je 0x40b663
mov edi, edi
push 0x10
push 0
push eax
call fcn.004419ac
movzx ecx, ax
add esp, 0xc
lea edx, [esp + 8]
mov dword [esp + 8], ecx
push edx
mov ecx, esi
call fcn.0040ae60
push 0x462c74
push 0
call fcn.00441745
add esp, 8
test eax, eax
jne 0x40b630
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0044017c
add esp, 0x108
ret 8
Function at 0x40bbc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x118
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x478ab8], 0x10
mov eax, dword [0x478aa4]
push ebx
push esi
push edi
mov esi, ecx
jae 0x40bbec
mov eax, 0x478aa4
push str.SETUP.INI
push eax
lea eax, [esp + 0x24]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0x100
lea edi, [esi + 0x308]
push edi
push 0x462917
push str.Setup
push str.General
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
jne 0x40bc54
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044017c
add esp, 0x118
ret
lea edx, [esi + 0x8c0]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00407bb0
test al, al
je 0x40bc3a
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 0x40bcab
push 0x10
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004419ac
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.0040b580
lea ecx, [esi + 0x904]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0040b420
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.0044017c
add esp, 0x118
ret
Function at 0x40bd30
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.0040b280
test al, al
jne 0x40bd64
pop esi
pop ebp
pop ebx
ret 4
mov ax, word [0x478a68]
test ax, ax
je 0x40bd7a
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 0x40bde7
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40bde7
test ecx, ecx
je 0x40bdac
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40bdb1
call fcn.004402b5
mov eax, dword [ebp + 0x908]
cmp bx, word [eax + edi*4]
je 0x40bdc2
add edi, 1
jmp 0x40bd80
mov ecx, eax
test ecx, ecx
je 0x40bdd7
mov eax, dword [ebp + 0x90c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40bddc
call fcn.004402b5
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 0x40be4d
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x40be4d
test ecx, ecx
je 0x40be11
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40be16
call fcn.004402b5
mov edx, dword [esi + 8]
cmp word [edx + edi*2], bx
je 0x40be24
add edi, 1
jmp 0x40bdf0
mov ecx, edx
test ecx, ecx
je 0x40be35
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40be3a
call fcn.004402b5
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 0x40beb1
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40beb1
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jae 0x40beb1
test ecx, ecx
je 0x40be76
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40be7b
call fcn.004402b5
mov edx, dword [esi + 8]
cmp byte [edx + edi*2], bl
je 0x40be88
add edi, 1
jmp 0x40be55
mov ecx, edx
test ecx, ecx
je 0x40be99
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 1
cmp edi, eax
jb 0x40be9e
call fcn.004402b5
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 0x40d1f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c398
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
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 0x40d3c8
mov eax, dword [esp + 0x190]
mov esi, eax
sub esi, edi
sar esi, 6
cmp ebx, esi
jae 0x40d3a7
mov eax, dword [esp + 0x184]
cmp eax, dword [ebp - 0x28]
jne 0x40d36d
cmp ebx, esi
jb 0x40d279
call fcn.004402b5
cmp dword [ebp - 8], 0x10
lea edi, [ebp - 0x1c]
jb 0x40d286
mov eax, dword [edi]
jmp 0x40d288
mov eax, edi
push eax
call fcn.0042d0c0
add esp, 4
test al, al
je 0x40d366
push 0x40
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00440530
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 0x40d2cd
call fcn.004402b5
cmp dword [ebp + 0x14], 0x10
jb 0x40d2d8
mov ebx, dword [ebp]
jmp 0x40d2da
mov ebx, ebp
cmp dword [esp + 0x14], esi
jb 0x40d2e5
call fcn.004402b5
cmp dword [ebp - 8], 0x10
jb 0x40d2ef
mov eax, dword [edi]
jmp 0x40d2f1
mov eax, edi
push ebx
push eax
lea edx, [esp + 0x74]
push str._s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
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 0x40d378
cmp dword [esp + 0x14], esi
jb 0x40d33b
call fcn.004402b5
cmp byte [ebp - 0x24], 0
je 0x40d362
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 0x40d23e
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.0040a8b0
push esi
call fcn.0042f233
add esp, 0x14
xor al, al
jmp 0x40d3ca
test edi, edi
je 0x40d3c8
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push edi
call fcn.0040a8b0
push edi
call fcn.0042f233
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.0044017c
add esp, 0x16c
ret 0x14
Function at 0x40d400
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
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 0x40d5f1
mov eax, dword [esp + 0x190]
mov esi, eax
sub esi, ebx
sar esi, 6
cmp edi, esi
jae 0x40d5d0
cmp dword [ebp - 8], 0x10
lea ebx, [ebp - 0x1c]
jb 0x40d481
mov eax, dword [ebx]
jmp 0x40d483
mov eax, ebx
push eax
call fcn.0042d0c0
add esp, 4
test al, al
je 0x40d57c
cmp edi, esi
jb 0x40d49d
call fcn.004402b5
cmp dword [ebp + 0x10], 0
je 0x40d57c
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00440530
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 0x40d4db
call fcn.004402b5
cmp dword [ebp + 0x14], 0x10
jb 0x40d4e6
mov edi, dword [ebp]
jmp 0x40d4e8
mov edi, ebp
cmp dword [esp + 0x18], esi
jb 0x40d4f3
call fcn.004402b5
cmp dword [ebp - 8], 0x10
jb 0x40d4fd
mov eax, dword [ebx]
jmp 0x40d4ff
mov eax, ebx
push edi
push eax
lea ecx, [esp + 0x78]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
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 0x40d5a1
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 0x40d58e
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x18c]
add edi, 1
add ebp, 0x40
jmp 0x40d452
lea ecx, [esp + 0x188]
sub eax, 1
call fcn.0040b820
xor al, al
jmp 0x40d5f3
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.0040a8b0
push esi
call fcn.0042f233
add esp, 0x14
xor al, al
jmp 0x40d5f3
test ebx, ebx
je 0x40d5f1
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18c]
push edx
push eax
push ebx
call fcn.0040a8b0
push ebx
call fcn.0042f233
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.0044017c
add esp, 0x170
ret 0x14
Function at 0x40fd20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, dword [esp + 0x130]
push esi
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push ebp
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fdd2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fdc7
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044017c
add esp, 0x110
ret

Function at 0x40fdf0
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 0x40fe50
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 0x40fe45
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 0x40fe60
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 0x40feb5
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 0x40feaa
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 0x40fec0
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 0x40ff0c
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 0x40fefa
cmp eax, 2
jne 0x40fefc
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 0x40ff15
mov al, bl
pop ebx
pop ecx
ret

Function at 0x40ff20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x4772c4]
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 0x41004a
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
push ecx
mov dword [esp + 0x34], 0x100
call edi
cmp eax, 0x103
je 0x40ffee
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
add edx, 1
push edx
call fcn.0042f22e
add esp, 4
lea ecx, [esp + 0x1b0]
push ecx
push eax
mov dword [esp + esi*4 + 0x28], eax
call ebp
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c4]
push eax
add esi, 1
push esi
push ecx
mov dword [esp + 0x34], 0x100
call edi
cmp eax, 0x103
jne 0x40ffa0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
test esi, esi
jbe 0x410052
nop
mov edi, dword [esp + ebp*4 + 0x20]
mov eax, dword [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x2b8]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
lea edx, [esp + 0x2c4]
push edx
push ebx
call fcn.0040ff20
add esp, 0x1c
test al, al
jne 0x410038
mov byte [esp + 0x13], al
push edi
call fcn.0042f233
add ebp, 1
add esp, 4
cmp ebp, esi
jb 0x410000
jmp 0x410052
cmp eax, 2
sete byte [esp + 0x13]
cmp byte [esp + 0x3c0], 0
je 0x410079
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x410075
cmp eax, 2
je 0x410075
xor al, al
jmp 0x41007d
mov al, 1
jmp 0x41007d
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044017c
add esp, 0x3a4
ret
Function at 0x421130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45e588
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4772c4]
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 0x421167
call fcn.004402b5
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 0x421181
call fcn.004402b5
cmp edi, edi
je 0x42118a
call fcn.004402b5
cmp esi, dword [esp + 0x14]
je 0x421306
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.00402ad0
cmp esi, dword [edi + 8]
mov dword [esp + 0x40], ebx
jb 0x4211c4
call fcn.004402b5
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.00402ad0
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042e8e0
add esp, 0x38
cmp eax, ebx
jne 0x4212f4
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.00402ad0
cmp esi, dword [edi + 8]
mov dword [esp + 0x40], 1
jb 0x42122e
call fcn.004402b5
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.00402ad0
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042e8e0
add esp, 0x38
cmp eax, ebx
jne 0x4212f4
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.00402ad0
cmp esi, dword [edi + 8]
mov dword [esp + 0x40], 2
jb 0x421298
call fcn.004402b5
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.00402ad0
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042e8e0
add esp, 0x38
cmp eax, ebx
jne 0x4212f4
cmp esi, dword [edi + 8]
jb 0x4212d4
call fcn.004402b5
mov al, byte [esi + 4]
mov ecx, dword [esp + 0x2c]
cmp al, byte [ecx + 4]
jne 0x4212f4
cmp esi, dword [edi + 8]
jb 0x4212ea
call fcn.004402b5
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
cmp edx, dword [eax]
je 0x421312
cmp esi, dword [edi + 8]
jb 0x4212fe
call fcn.004402b5
add esi, 0x78
jmp 0x421170
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00419d20
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 0x422af0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45e96a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4772c4]
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 0x4247e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4772c4]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x478ab8], 0x10
mov eax, dword [0x478aa4]
push ebx
push esi
push edi
mov edi, ecx
jae 0x42480c
mov eax, 0x478aa4
push str.SETUP.INI
push eax
lea eax, [esp + 0x14]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push 0x100
lea esi, [edi + 0x100]
push esi
push 0x462917
push str.Setup
push str.General
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x424872
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044017c
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.0044017c
add esp, 0x108
ret