joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db80
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ffb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov edi, dword [ecx]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dbd0
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push eax
lea esi, [ecx + 1]
mov ecx, eax
push esi
call fcn.0041dec0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
je 0x41dd2d
push edi
push esi
push ecx
call fcn.0046f954
add esp, 0xc
test eax, eax
je 0x41dc14
xor esi, esi
jmp 0x41dce6
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 1
add eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0x25
mov ecx, eax
call fcn.0041dec0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 1
je 0x41dd32
push 0x4b67b0
push 0x25
push ecx
call fcn.0046f954
add esp, 0xc
test eax, eax
je 0x41dc74
xor esi, esi
jmp 0x41dc9e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
push ebx
push 0
and eax, 0xfffffffe
mov dword [ebp - 0x14], ecx
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0
push eax
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov esi, eax
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x41dce6
mov ecx, dword [ebp - 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41dcc7
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dd37
push ecx
push edx
call fcn.0046801a
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x41dd19
mov ecx, dword [ebp - 0x30]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41dd0f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dd3c
push ecx
push edx
call fcn.0046801a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040eaa0
call fcn.0040eaa0
call fcn.0046f7ba
call fcn.0046f7ba
int3
Function at 0x41dd50
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ffd8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 0x25
mov ecx, eax
call fcn.0041dec0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
je 0x41de4f
push 0x4b67b0
push 0x25
push ecx
call fcn.0046f954
add esp, 0xc
test eax, eax
jne 0x41de08
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
and eax, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x41de08
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0041d170
mov esi, 1
jmp 0x41de0a
xor esi, esi
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x41de3d
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x41de33
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41de54
push ecx
push edx
call fcn.0046801a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040eaa0
call fcn.0046f7ba
int3
Function at 0x41fe50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0278
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], edi
mov ecx, 0x2000
mov dword [ebp - 0x14], 0x2000
call fcn.0041fdb0
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x41fec0
push eax
call fcn.00439c20
lea eax, [ebx + 8]
jmp 0x41ff81
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 0x2000
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
mov eax, ebx
push ecx
push esi
push eax
mov eax, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x20], ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x41ff28
mov eax, dword [ebp - 0x1c]
mov ecx, eax
push esi
mov byte [ebp - 4], 1
push dword [eax + 8]
call fcn.004440d5
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x20]
jmp 0x41fec0
xor eax, eax
cmp ebx, 0x103
cmove ebx, eax
push esi
call fcn.00439c20
add esp, 4
test edi, edi
jle 0x41ff77
mov esi, dword [ebp - 0x34]
mov eax, dword [esi]
test eax, eax
je 0x41ff58
push eax
call fcn.00439c20
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41ff6f
push eax
call fcn.00439c20
add esp, 4
mov dword [esi + 4], 0
add esi, 0xc
sub edi, 1
jne 0x41ff43
push dword [ebp - 0x34]
call fcn.00439c20
mov eax, ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a02f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 1
mov dword [ebp - 0x18], 0
xor esi, esi
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
jne 0x420455
lea eax, [ebp - 0x18]
push eax
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x420455
push 0x4000
mov dword [ebp - 4], eax
call fcn.00439c25
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x420455
push esi
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x420455
mov ecx, esi
mov dword [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4203f4
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0041d170
mov dword [ebp - 4], 0xffffffff
mov edi, 1
jmp 0x420457
xor edi, edi
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x420475
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x42046f
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
test esi, esi
je 0x420482
push esi
call fcn.00439c20
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4230a0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0680
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push 0x800
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], eax
mov dword [eax], 0
call fcn.00439c25
mov edi, eax
add esp, 4
test edi, edi
jne 0x423103
lea eax, [edi + 0x6c]
jmp 0x42324f
mov eax, dword [ebp - 0x28]
push dword [esi + eax*4 + 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.00423710
mov dword [ebp - 4], 0
push dword [ebp - 0x38]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x28]
add eax, 0x25
mov dword [ebp - 0x34], 1
push dword [esi + eax*4]
lea eax, [esi + eax*4]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x42316a
push eax
push dword [ebp - 0x28]
mov ecx, esi
call fcn.0041e950
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov dword [eax], 1
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x48], esi
push edi
mov byte [ebp - 4], 1
call fcn.00439c20
add esp, 4
cmp esi, 0xffffffff
jne 0x4231ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ecx, 0x4a
cmp eax, 2
cmovne edi, ecx
jmp 0x42321f
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
push 0x13
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0x13
push eax
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4231dd
lea edi, [eax + 0x6c]
jmp 0x42321f
cmp dword [ebp - 0x2c], 0x13
je 0x4231ea
mov edi, 0x6c
jmp 0x42321f
mov eax, dword [ebp - 0x3c]
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42321d
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call fcn.0041e950
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax], 1
mov eax, dword [ebp - 0x44]
mov dword [eax], ecx
xor edi, edi
cmp esi, 0xffffffff
je 0x42322b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42324d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 0x10
Function at 0x427c30
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
xorps xmm0, xmm0
mov ebx, ecx
push str.Shell_TrayWnd
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call fcn.0043df6d
push 0
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov edx, dword [ebp - 0x34]
mov esi, eax
mov ecx, dword [ebp - 0x30]
test edx, edx
jne 0x427cba
test ecx, ecx
jne 0x427cba
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], edi
cmp ecx, edi
jne 0x427cab
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
jmp 0x427cd9
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
jmp 0x427ce0
mov dword [ebp - 0x10], 0
cmp edx, ecx
jle 0x427cd0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
jmp 0x427cd9
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x20]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
call fcn.00402590
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
test edx, edx
jne 0x427d2f
test esi, esi
jne 0x427d2f
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp esi, edx
jle 0x427d23
test eax, eax
je 0x427d19
xor ecx, ecx
jmp 0x427d67
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x1c]
add ecx, esi
jmp 0x427d67
mov eax, dword [ebp - 0x20]
mov ecx, esi
sub eax, dword [ebp - 0x18]
add edx, eax
jmp 0x427d67
cmp edx, esi
jge 0x427d56
test eax, eax
je 0x427d43
mov edx, dword [ebp - 0x20]
xor ecx, ecx
sub edx, dword [ebp - 0x18]
add edx, esi
jmp 0x427d67
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
add edx, esi
jmp 0x427d67
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x1c]
add ecx, edx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x18]
add edx, dword [ebp - 8]
push 0x11
push 0
push 0
push edx
push ecx
push 0x4d5e70
mov ecx, ebx
call fcn.0043b0fa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468009
mov esp, ebp
pop ebp
ret
Function at 0x428240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0b10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x4283ec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x4b47d4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4282a1
movzx eax, ax
push eax
call fcn.0041cd60
jmp 0x4282ad
push 0
push 0x4b47d4
call fcn.0041d170
mov dword [ebp - 4], 1
mov ecx, 1
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4282db
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0041d010
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4282f2
xor ebx, ebx
jmp 0x4283b9
push dword [esi - 8]
push esi
call fcn.0046fadf
add esp, 8
test eax, eax
js 0x4283f6
cmp eax, dword [esi - 8]
jg 0x4283f6
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call fcn.0046a94a
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x42832e
or ecx, 0xffffffff
jmp 0x428332
sub ecx, esi
sar ecx, 1
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x14], edx
lea eax, [edx - 1]
cmp ecx, eax
je 0x428381
lea edi, [edx + 1]
test edi, edi
js 0x4283f6
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42836a
push edi
lea ecx, [ebp - 0x10]
call fcn.0041d010
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, 0x5c
mov word [esi + edx*2], ax
cmp edi, dword [esi - 8]
jg 0x4283f6
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
push 0xc
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00406460
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4283b9
push 0x6a
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4283d8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d300
push 0x80070057
call fcn.0041d300
int3

Function at 0x428410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0044c407
Function at 0x42c190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x42c1a5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c1b0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42c8f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4d0554]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0042c840
mov esi, eax
test esi, esi
jne 0x42c9e7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x42c9b9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0042c8f0
mov esi, eax
test esi, esi
jne 0x42c9e7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x42c980
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c9d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0042cac0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c9f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00468009
mov esp, ebp
pop ebp
ret 4
Function at 0x42d740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0f96
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x420], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x42c], esi
test esi, esi
jne 0x42d7ec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x42c], eax
test esi, esi
jne 0x42d7ec
call fcn.0042bb40
mov edi, eax
jmp 0x42d916
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42d80f
call fcn.0042bb40
jmp 0x42d909
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x42d82d
call fcn.0042bb40
jmp 0x42d909
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x42d84e
mov edi, 0x8007000e
jmp 0x42d90b
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x42d950
jb 0x42d86c
cmp eax, 0xffffffff
ja 0x42d950
cmp eax, 0x400
jbe 0x42d881
push eax
lea ecx, [ebp - 0x420]
call fcn.0042bb10
jmp 0x42d8b2
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x42d8b2
mov dword [ebp - 4], 1
cmp dword [ebp - 0x420], 0
jne 0x42d8c9
mov edi, 0x8007000e
jmp 0x42d90b
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x42d8e9
call fcn.0042bb40
jmp 0x42d909
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x434]
push dword [ebp - 0x420]
call fcn.0042d5e0
mov edi, eax
test esi, esi
je 0x42d916
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x42d930
lea ecx, [ebp - 0x420]
call fcn.0042baf0
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0041d300
int3
Function at 0x436540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x40c]
push esi
push edi
push 0x200
push eax
mov dword [ebp - 0x470], 0x34
call fcn.00402640
push 0x4d76d8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4365a0
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x4d76d8
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x40c]
push 0x4b47d8
push eax
call esi
push str.RecvErrorWindowDlg
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x46c], 0
push eax
push 0x20019
xor esi, esi
lea eax, [ebp - 0x40c]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x436734
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x474]
push eax
push esi
push str.SHOWPOS
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x46c]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x436734
push 1
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x468], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x45c]
test eax, eax
mov ecx, dword [ebp - 0x464]
mov edx, dword [ebp - 0x460]
cmovne ecx, eax
mov eax, dword [ebp - 0x458]
test eax, eax
cmovne edx, eax
cmp dword [ebp - 0x414], ecx
jne 0x436734
cmp dword [ebp - 0x410], edx
jne 0x436734
movups xmm0, xmmword [ebp - 0x440]
mov eax, dword [ebp - 0x418]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [ebp - 0x430]
movups xmmword [ebx + 0x10], xmm0
movq xmm0, qword [ebp - 0x420]
movq qword [ebx + 0x20], xmm0
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 8]
cmp eax, 3
je 0x43670b
cmp eax, 1
je 0x4366f1
cmp eax, 9
je 0x43670b
mov dword [ebx + 8], 1
mov dword [ebx + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 1
je 0x4366f1
cmp eax, 9
je 0x4366f1
cmp eax, 3
jne 0x436772
mov dword [ebx + 4], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call esi
mov edi, dword [ebp + 0x10]
push 1
sub eax, dword [edi]
sar eax, 1
mov dword [ebx + 0x1c], eax
call esi
sub eax, dword [edi + 4]
sar eax, 1
mov dword [ebx + 0x20], eax
mov ecx, dword [edi]
add ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x24], ecx
mov ecx, dword [edi + 4]
add ecx, eax
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468009
mov esp, ebp
pop ebp
ret 0xc