joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020a0
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4d0554]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, ecx
mov ebx, edx
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x18], ebx
call edi
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439c25
mov esi, eax
add esp, 4
test esi, esi
je 0x402202
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp ebx, 2
jne 0x40217a
push esi
call edi
cmp eax, 3
jne 0x40217a
push 0x4b472c
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40217a
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov cx, word [esi]
mov ebx, eax
xor eax, eax
mov word [esp + 0x10], cx
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [esp + 0x10]
add ecx, 0xffffffbf
shr ebx, cl
test bl, 1
je 0x402176
push esi
call fcn.00439c20
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00468009
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
push esi
call edi
cmp word [esi + eax*2 - 2], 0x5c
jne 0x402191
push 0x4b4738
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
mov edi, eax
call fcn.00439c20
add esp, 4
cmp edi, 0xffffffff
je 0x402202
xor esi, esi
lea eax, [esi + 1]
cmp ebx, 2
jne 0x4021c3
test byte [esp + 0x18], 0x10
je 0x4021cb
lea esi, [ebx - 1]
jmp 0x4021cb
test byte [esp + 0x18], 0x10
cmove esi, eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4021e4
mov eax, 1
test esi, esi
je 0x4021b2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00468009
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x26c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00468009
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push 1
mov edi, edx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
je 0x40236b
pop edi
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], 0
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4023aa
mov eax, dword [ebp - 0x808]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [ebp - 0x808]
mov esi, eax
push dword [ebp - 0x80c]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x808]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x402395
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x400
jle 0x40240b
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00468009
mov esp, ebp
pop ebp
ret

Function at 0x4024f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, ecx
push edi
mov dword [ebp - 4], eax
call fcn.00402290
push 0x800
mov edi, eax
call fcn.00439c25
mov esi, eax
add esp, 4
test esi, esi
je 0x402530
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x402530
push esi
call fcn.00439c20
add esp, 4
xor esi, esi
test edi, edi
je 0x402562
mov edx, 2
mov ecx, edi
call fcn.004020a0
test eax, eax
je 0x402559
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402559
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call fcn.00439c20
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test esi, esi
je 0x402581
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.00439c20
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x4d76d8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4025c9
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4d76d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.RTLLayout
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x402621
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x402640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00468ac0
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push 0x4d76d8
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x100c], 0
call esi
test eax, eax
jne 0x40269b
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
push 0x20019
push 0
push 0x4d76d8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1010], 1
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x1014], 0x400
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push str.InstallPath
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
push dword [ebp - 0x100c]
test eax, eax
je 0x402818
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea edx, [ebp - 0x808]
mov ecx, 0x2a
call fcn.00402320
add esp, 4
test eax, eax
jne 0x40286d
lea edx, [eax + 2]
lea ecx, [ebp - 0x808]
call fcn.004020a0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
jne 0x40275f
push 0x4b473c
lea eax, [ebp - 0x808]
push eax
call edi
push 0x400
lea eax, [ebp - 0x808]
push eax
call ebx
lea eax, [ebp - 0x808]
push eax
call esi
push 0x4b3cac
mov ebx, eax
call esi
cmp word [ebp + ebx*2 - 0x80a], 0x5c
mov dword [ebp - 0x1010], eax
je 0x402783
inc ebx
push 0x4b47d8
lea ecx, [ebp + ebx*2 - 0x80a]
push ecx
call edi
push 0x4b3cac
call esi
sub eax, dword [ebp - 0x1010]
lea eax, [eax*2 + 0x4b3cac]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, 0x4b3ccc
lea ecx, [ebp - 0x808]
call fcn.00402030
test eax, eax
je 0x40286d
lea eax, [ebp - 0x808]
push eax
call esi
inc eax
cmp eax, 0x400
jg 0x40286d
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x1008]
push eax
call edi
lea eax, [ebp - 0x1008]
push eax
call esi
inc eax
cmp dword [ebp + 0xc], eax
jge 0x402849
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea eax, [ebp - 0x808]
push eax
call ebx
lea eax, [ebp - 0x808]
push eax
call esi
inc eax
cmp eax, 0x400
jg 0x40270f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4027e1
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1018]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468009
mov esp, ebp
pop ebp
ret 8
Function at 0x4033d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x4033f6
push esi
call ebx
test eax, eax
jne 0x4033fb
mov esi, str.Settings
push 0x4d76d8
call ebx
test eax, eax
jne 0x403423
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x40343a
lea esi, [eax + 8]
jmp 0x4034a3
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40347a
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4034a3
mov esi, dword [ebp + 8]
test esi, esi
je 0x40348d
push esi
call ebx
lea eax, [eax*2 + 2]
jmp 0x40348f
xor eax, eax
push eax
push esi
push 1
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4034b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4034be
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4034d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov ebx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4034f3
push esi
call edi
test eax, eax
jne 0x4034f8
mov esi, str.Settings
push 0x4d76d8
call edi
test eax, eax
jne 0x403520
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x403537
lea esi, [eax + 8]
jmp 0x40358d
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403577
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40358d
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40359b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4035a8
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4035c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov ebx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4035e3
push esi
call edi
test eax, eax
jne 0x4035e8
mov esi, str.Settings
push 0x4d76d8
call edi
test eax, eax
jne 0x403610
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x403627
lea esi, [eax + 8]
jmp 0x40367d
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403667
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40367d
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40368b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x403698
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4036b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ebx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4036dc
push esi
call edi
test eax, eax
jne 0x4036e1
mov esi, str.Settings
push 0x4d76d8
call edi
test eax, eax
jne 0x403709
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x403720
lea esi, [eax + 8]
jmp 0x403773
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x403773
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x4000
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x403773
cmp dword [ebp - 0xc], 1
mov eax, 0xd
cmovne esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x403781
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40378e
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4037a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4037cc
push esi
call edi
test eax, eax
jne 0x4037d1
mov esi, str.Settings
push 0x4d76d8
call edi
test eax, eax
jne 0x4037f9
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x403810
lea esi, [eax + 8]
jmp 0x403868
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x403868
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 4
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x403868
cmp dword [ebp - 0xc], 4
jne 0x403863
cmp dword [ebp - 4], 4
je 0x403868
mov esi, 0xd
mov eax, dword [ebp - 8]
test eax, eax
je 0x403876
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x403883
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push esi
mov esi, ecx
test ebx, ebx
jne 0x4038bd
pop esi
lea eax, [ebx + 0x57]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4038cf
push esi
call edi
test eax, eax
jne 0x4038d4
mov esi, str.Settings
push 0x4d76d8
call edi
test eax, eax
jne 0x4038fc
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x403916
lea esi, [eax + 8]
jmp 0x4039a7
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4039a7
lea eax, [ebp - 4]
mov dword [ebp + 8], 3
push eax
push esi
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4039a7
push dword [ebp - 4]
call fcn.00439c25
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x40396c
lea esi, [eax + 8]
jmp 0x4039a7
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40399b
push dword [ebx]
call fcn.00439c20
add esp, 4
mov dword [ebx], 0
jmp 0x4039a7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4039a7
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4039b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4039c2
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4039d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov ebx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x4039f3
push esi
call edi
test eax, eax
jne 0x4039f8
mov esi, str.Settings
push 0x4d76d8
call edi
test eax, eax
jne 0x403a20
push 0x4b3ccc
push str.Epson
push str.SOFTWARE_s_s
push 0x4d76d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, esi
mov ecx, 0x4d76d8
call fcn.00401f70
mov edi, eax
test edi, edi
jne 0x403a37
lea esi, [eax + 8]
jmp 0x403a5d
lea eax, [ebp - 4]
push eax
push 2
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x403a5d
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x403a6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x403a78
push edi
call fcn.00439c20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4043f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, 0x361
mov dword [ebp - 0x9c], 0x3610300
mov dword [ebp - 0x98], 0x4860483
lea eax, [ebp - 0x9a]
mov dword [ebp - 0x94], 0x9030903
mov dword [ebp - 0x90], 0x940093e
mov dword [ebp - 0x8c], 0x94c0949
mov dword [ebp - 0x88], 0x9830982
mov dword [ebp - 0x84], 0x9c009be
mov dword [ebp - 0x80], 0x9cc09c7
mov dword [ebp - 0x7c], 0x9d709d7
mov dword [ebp - 0x78], 0xa400a3e
mov dword [ebp - 0x74], 0xa830a83
mov dword [ebp - 0x70], 0xac00abe
mov dword [ebp - 0x6c], 0xacc0ac9
mov dword [ebp - 0x68], 0xb030b02
mov dword [ebp - 0x64], 0xb3e0b3e
mov dword [ebp - 0x60], 0xb400b40
mov dword [ebp - 0x5c], 0xb4c0b47
mov dword [ebp - 0x58], 0xb570b57
mov dword [ebp - 0x54], 0xb830b83
mov dword [ebp - 0x50], 0xbbf0bbe
mov dword [ebp - 0x4c], 0xbcc0bc1
mov dword [ebp - 0x48], 0xbd70bd7
mov dword [ebp - 0x44], 0xc030c01
mov dword [ebp - 0x40], 0xc440c41
mov dword [ebp - 0x3c], 0xc830c82
mov dword [ebp - 0x38], 0xcbe0cbe
mov dword [ebp - 0x34], 0xcc40cc0
mov dword [ebp - 0x30], 0xccb0cc7
mov dword [ebp - 0x2c], 0xcd60cd5
mov dword [ebp - 0x28], 0xd030d02
mov dword [ebp - 0x24], 0xd400d3e
mov dword [ebp - 0x20], 0xd4c0d46
mov dword [ebp - 0x1c], 0xd570d57
mov dword [ebp - 0x18], 0xf7f0f7f
mov dword [ebp - 0x14], 0x20e120d0
mov dword [ebp - 0x10], 0x309a3099
mov dword [ebp - 0xc], 0xfe23fe20
mov dword [ebp - 8], 0xffffffff
cmp dx, cx
jae 0x40453a
add eax, 4
cmp word [eax], cx
jb 0x404532
cmp cx, word [eax - 2]
jb 0x404555
cmp cx, word [eax]
ja 0x404555
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret
Function at 0x4051b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov esi, 1
push edi
mov dword [ebp - 0x10], ebx
call fcn.00402590
push 0
push 0
push 0
test eax, eax
mov dword [ebp - 4], eax
mov ecx, 0x21
cmovne esi, ecx
push ebx
push esi
push 0x400
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x405313
push 0
push 0
push 0
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, eax
test esi, esi
je 0x405313
lea ecx, [esi + edi]
add ecx, dword [ebp - 4]
cmp ecx, 0x21
jg 0x405313
cmp edi, esi
mov edx, 2
cmovg eax, edi
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439c25
mov edi, eax
add esp, 4
test edi, edi
je 0x405313
cmp dword [ebp - 4], 0
je 0x4052b3
mov eax, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
push edi
push 0
push ebx
push 0
push 0x400
call eax
mov ebx, dword [ebp + 0xc]
push 0x4b5638
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push ebx
call esi
push dword [ebp - 8]
push edi
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
mov ecx, dword [ebp - 0xc]
and ecx, 0xffffffdf
cmp ax, 0xd
mov eax, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
cmovne ecx, dword [ebp - 0xc]
push ecx
push 0x400
call eax
jmp 0x4052f0
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push 0
push ebx
push edx
push 0x400
call eax
mov ebx, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
push edi
push 0
push dword [ebp - 0x10]
push 0
push 0x400
call eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4b563c
push ebx
call esi
push edi
push ebx
call esi
push edi
call fcn.00439c20
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
sub eax, edi
xor ecx, ecx
inc eax
xor esi, esi
shr eax, 1
xor ebx, ebx
cmp edi, edx
cmova eax, ecx
test eax, eax
je 0x412ab2
mov edx, eax
mov ecx, esi
lea edi, [edi + 2]
mov eax, esi
shl ecx, 6
shr eax, 2
inc ebx
add ecx, eax
movzx eax, word [edi - 2]
add eax, 0x9e3779b9
add eax, ecx
xor esi, eax
cmp ebx, edx
jne 0x412a91
mov eax, 3
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
pop edi
sub esi, eax
or esi, 0x40000000
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cb90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41cbb9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41cbcf
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41cbc6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x41cc02
nop
cmp esi, ecx
jae 0x41cbc6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x41cbf0
cmp esi, ecx
jae 0x41cbc6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret