joyce8/EMBER2024-capa huggingface dataset:
Function at 0x130ee30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xeb9000]
push edi
jmp 0x130ee4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x130ee51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x130ee40
mov eax, 1
add ebx, ebx
jne 0x130ee63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x130ee74
jne 0x130ee93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x130ee93
dec eax
add ebx, ebx
jne 0x130ee80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x130ee58
add ebx, ebx
jne 0x130ee8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x130eee5
xor ecx, ecx
sub eax, 3
jb 0x130eeab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x130ef1a
sar eax, 1
mov ebp, eax
jmp 0x130eeb6
add ebx, ebx
jne 0x130eeb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x130ee84
inc ecx
add ebx, ebx
jne 0x130eec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x130ee84
add ebx, ebx
jne 0x130eed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x130eec6
jne 0x130eee2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x130eec6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x130ef04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x130eef6
jmp 0x130ee46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x130ef04
add edi, ecx
jmp 0x130ee46
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x130ef22
cmp byte [edi], 0x11
jne 0x130ef22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x130ef27
lea edi, [esi + 0xf07000]
mov eax, dword [edi]
or eax, eax
je 0x130ef9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d47220]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d4739c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x130ef54
mov ecx, edi
jns 0x130ef83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d473a0]
or eax, eax
je 0x130ef99
mov dword [ebx], eax
add ebx, 4
jmp 0x130ef71
call dword [esi + 0x1d473b0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x130efd0
cmp al, 0xef
ja 0x130efc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x130efa5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x130efb2
mov ebp, dword [esi + 0x1d473a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x130f004
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
sub esp, 8
push ebx
push esi
push edi
mov edi, 8
cmp dword [ebp + 0x38], edi
jae 0x401049
lea eax, [ebp + 0x24]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4010f0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 8], ebx
mov word [ebp - 4], 0xfeff
call edi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ebx
jae 0x401099
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
lea edx, [ebp - 8]
push edx
lea edx, [ecx + ecx]
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x4010c9
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x4010e7
mov edx, dword [ebp + 0x24]
push edx
call edi
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x1c], edi
jb 0x401104
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x401122
mov edx, dword [ebp + 0x24]
push edx
call esi
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431008
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x442018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
jae 0x402135
lea eax, [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4021f0
lea ecx, [ebp - 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x10], esi
jg 0x4021e9
mov eax, dword [ebp - 0x14]
jl 0x402177
cmp eax, 0x80000
jae 0x4021e9
add eax, 2
push eax
call fcn.0042ee75
mov edx, dword [ebp - 0x14]
add edx, 2
push edx
mov edi, eax
push esi
push edi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push esi
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
push ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [edi], 0xff
jne 0x4021c0
cmp byte [edi + 1], 0xfe
jne 0x4021c0
mov edx, dword [ebp - 0x18]
lea eax, [edi + 2]
push edx
call fcn.00401830
jmp 0x4021df
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4021c5
mov esi, dword [ebp - 0x18]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00401890
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 8
jb 0x402203
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
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 0x20
Function at 0x40a3f0
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [ebx + 0x10]
mov eax, 0xcccccccd
mul edi
shr edx, 3
xor ecx, ecx
inc edx
mov esi, 0x811c9dc5
test edi, edi
je 0x40a42e
jmp 0x40a410
cmp dword [ebx + 0x14], 8
jb 0x40a41a
mov eax, dword [ebx]
jmp 0x40a41c
mov eax, ebx
movzx eax, word [eax + ecx*2]
imul esi, esi, 0x1000193
add ecx, edx
xor esi, eax
cmp ecx, edi
jb 0x40a410
pop edi
mov eax, esi
pop esi
ret
Function at 0x40d740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x442018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x21c], 0xffffffff
je 0x40d7eb
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x40d782
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x404]
push 0x200
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov ecx, dword [esi + 0x21c]
add esp, 0x10
push 0
lea edx, [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push ecx
mov dword [ebp - 0x408], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x1c], 8
jb 0x40d7d9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef46
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], 8
jb 0x40d7fe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0042ef46
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40e3c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x442018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
add esi, 0x1bc
cmp dword [esi + 0x14], 8
jb 0x40e3e4
mov eax, dword [esi]
jmp 0x40e3e6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], 0
jb 0x40e3fe
mov eax, dword [esi]
jmp 0x40e400
mov eax, esi
push 0x436154
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
test eax, eax
je 0x40e43c
push eax
push 2
lea ecx, [ebp - 0x48]
push 1
push ecx
mov word [ebp - 0x48], 0xfeff
call dword [sym.imp.MSVCR100.dll_fwrite]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
push 0x43615c
lea edx, [ebp - 0x44]
call fcn.0040fac0
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40e458
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
push ecx
push str.ReturnCode
push str.ScanResult
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042ef46
mov esp, ebp
pop ebp
ret 8

Function at 0x416030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x442018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x436768
mov ebx, 1
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 0x104
mov dword [ebp - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41609a
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef46
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push str.BaseModulePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4160cb
xor bl, bl
jmp 0x416104
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4160d4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00401890
mov ecx, esi
call fcn.0042df10
push 5
mov eax, str.Core_
mov ecx, esi
call fcn.00404b10
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042ef46
mov esp, ebp
pop ebp
ret
Function at 0x416630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431781
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x442018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov eax, 1
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], esi
mov word [ecx], dx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x28], eax
jmp 0x4166a2
xor esi, esi
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x24]
lea ecx, [ebp - 0x20]
add edi, 0x400
call edx
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x4c]
push edi
lea ecx, [ebp - 0x20]
call edx
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x4166cc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov ecx, 8
cmp dword [ebp + 0x1c], ecx
jae 0x4166dc
lea esi, [ebp + 8]
mov edx, dword [ebp + 0x40]
cmp dword [ebp + 0x54], ecx
jae 0x4166e7
lea edx, [ebp + 0x40]
cmp dword [ebp + 0x38], ecx
mov ecx, dword [ebp + 0x24]
jae 0x4166f2
lea ecx, [ebp + 0x24]
push esi
push edi
push eax
push 0x435070
push edx
push ecx
call ebx
lea ecx, [edi - 1]
lea edx, [ecx - 1]
cmp eax, edx
je 0x4166a0
cmp eax, ecx
je 0x4166a0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x416714
sub ecx, esi
mov esi, dword [ebp - 0x24]
sar ecx, 1
push ecx
call fcn.00401890
mov dword [ebp - 0x20], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
je 0x416753
push eax
lea ecx, [ebp - 0x20]
call dword [0x4384e4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov ebx, 8
mov dword [ebp - 0x20], vtable.ES_CMN_FUNCS::BUFFER::IESBuffer.0
cmp dword [ebp + 0x1c], ebx
jb 0x416771
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0x416793
mov edx, dword [ebp + 0x24]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], 7
mov dword [ebp + 0x34], edi
mov word [ebp + 0x24], ax
cmp dword [ebp + 0x54], ebx
jb 0x4167b5
mov ecx, dword [ebp + 0x40]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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
Function at 0x4171c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431721
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x442018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov eax, 1
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
jae 0x41721b
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x4172b1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.0042ee75
add esp, 4
cmp dword [ebp + 0x1c], 8
mov ebx, eax
mov eax, dword [ebp + 8]
jae 0x417258
lea eax, [ebp + 8]
push ebx
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41729c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
push str.StringFileInfo000004b0FileVersion
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41729c
mov eax, dword [ebp - 0x14]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x417287
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00401890
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4172b1
cmp dword [ebp + 0x1c], 8
jb 0x4172c4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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 0x1c
Function at 0x417e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4316d9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x442018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call dword [0x4384b8]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x4c]
push 0x20a
lea ecx, [ebp - 0x28]
call eax
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x417fb8
push 1
push 0x23
mov eax, 0x20a
push edi
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [ebp - 0x24]
cmp eax, 1
jne 0x417f6f
cmp edi, ebx
je 0x417f3e
lea esi, [ebp - 0x10]
mov edx, edi
call fcn.004162f0
mov esi, dword [ebp + 8]
cmp eax, ebx
jge 0x417f47
xor ecx, ecx
jmp 0x417f4a
mov eax, 0x80070057
xor ecx, ecx
jmp 0x417f4a
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x417f52
cmp ecx, ebx
jne 0x417f6f
cmp edi, ebx
je 0x417fb8
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
push edi
lea ecx, [ebp - 0x28]
call eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x417fb8
cmp edi, ebx
je 0x417fb8
mov eax, edi
lea edx, [eax + 2]
jmp 0x417f80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417f80
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00401890
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x417fb5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
push edi
lea ecx, [ebp - 0x28]
call eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], ebx
je 0x417fce
push 0x11
mov eax, str.EPSONEPSONSCAN2
mov ecx, esi
call fcn.00404b10
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov dword [ebp - 4], 2
cmp edi, ebx
je 0x417fea
push edi
lea ecx, [ebp - 0x28]
call dword [0x4384e4]
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 4
Function at 0x41d880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fdb3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x442018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor edi, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x400
mov byte [ebp - 4], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x18], edi
jne 0x41d912
push 0x14
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x41d90a
mov dword [eax], edi
mov dword [eax + 4], 0x10000
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x41d90c
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42ef46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442018]
jne 0x42ef50
repz ret
jmp fcn.0042f475
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x15765f46
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3dda5f2f
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x404b80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fe26
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push esi
xor ebx, ebx
cmp dword [0x2c5e4ec], 0xc
push edi
jne 0x404c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 7
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
xor ecx, ecx
mov dword [esp + 0x168], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov word [esp + 0xc], cx
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x178], 1
call fcn.004058fd
call fcn.00404cc2
push ebx
call fcn.00405793
fstp st(0)
push ebx
call fcn.00405640
push ebx
call fcn.00405656
push ebx
call fcn.00405640
push ebx
call fcn.00405631
push ebx
call fcn.0040561a
mov edi, 8
add esp, 0x28
cmp dword [esp + 0x20], edi
jb 0x404c34
mov edx, dword [esp + 0xc]
push edx
call fcn.004054ec
add esp, 4
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov word [esp + 0xc], ax
mov dword [esp + 0x168], 0xffffffff
cmp dword [esp + 0x3c], edi
jb 0x404c61
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004054ec
add esp, 4
mov edx, dword [0x442c04]
mov esi, dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
mov dword [0x2c5e4ec], edx
mov edi, 0x1d0e
jmp 0x404c80
cmp dword [0x2c5e4ec], 0x15
jne 0x404c92
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
call esi
dec edi
jne 0x404c80
call fcn.00403820
mov eax, dword [0x2c5ce5c]
mov dword [0x2c5dc3c], eax
call eax
mov ecx, dword [esp + 0x160]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 0x10

Function at 0x409037
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4439cc]
jne 0x409041
repz ret
jmp fcn.0040db74