joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100142e5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
push edx
push ecx
call fcn.1001cef6
mov dword [esp + 0x20], 0x5792
lea edi, [esi + 4]
shr dword [esp + 0x20], 0xd
xor edx, edx
xor dword [esp + 0x20], 0xaa8b2b18
shl dword [esp + 0x20], 0xe
xor dword [esp + 0x20], 0xcac68017
mov dword [esp + 0x24], 0xd56a
mov eax, dword [esp + 0x24]
push 0x2d
pop ecx
div ecx
mov dword [esp + 0x24], eax
xor dword [esp + 0x24], 0x218d5d9d
xor dword [esp + 0x24], 0x218d0aec
mov dword [esp + 0x34], 0x5eda
imul eax, dword [esp + 0x34], 0x53
mov dword [esp + 0x34], eax
xor dword [esp + 0x34], 0x38758cee
shl dword [esp + 0x34], 7
xor dword [esp + 0x34], 0x35a61a7e
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, esi
call fcn.10011b46
mov ebx, eax
mov dword [esp + 0x28], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x1001440d
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x10014404
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x100143db
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x10015f59
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push dword [esp + 0x38]
mov ebx, ecx
push dword [esp + 0x38]
push edx
push ebx
call fcn.1001cef6
mov dword [esp + 0x38], 0x6000cc
xor esi, esi
mov dword [esp + 0x3c], esi
add esp, 0x10
mov dword [esp + 0x14], 0x2be5
mov ebp, esi
shr dword [esp + 0x14], 5
xor dword [esp + 0x14], 0xc58ca4d4
xor dword [esp + 0x14], 0xc58cffb1
mov dword [esp + 0x10], 0x1f84
add dword [esp + 0x10], 0xffffe899
or dword [esp + 0x10], 0xe6f7fef7
xor dword [esp + 0x10], 0xe6f7cad7
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x24], eax
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [esp + 0x20], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x18], esi
jbe 0x1001603d
mov eax, dword [ecx + ebp*4]
push dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add eax, ebx
mov ecx, dword [esp + 0x38]
push eax
call fcn.1000cc4e
pop ecx
pop ecx
test eax, eax
je 0x10016017
mov ecx, dword [esp + 0x18]
inc ebp
cmp ebp, dword [edi + 0x18]
jb 0x10015fee
jmp 0x1001603d
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
movzx eax, word [eax + ebp*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x1001603d
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ecx, dword [ecx + ebx + 0x7c]
add ecx, edi
cmp esi, ecx
cmovb esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10017b09
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x38]
mov ebx, ecx
push dword [esp + 0x38]
push dword [esp + 0x38]
push edx
push ebx
call fcn.1001cef6
mov dword [esp + 0x30], 0xc870
add esp, 0x14
shl dword [esp + 0x1c], 0xf
or dword [esp + 0x1c], 0x67639293
xor dword [esp + 0x1c], 0x677b9292
mov dword [esp + 0x10], 0x4455
imul eax, dword [esp + 0x10], 0x69
mov dword [esp + 0x10], eax
shl dword [esp + 0x10], 8
shr dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x38024
mov dword [esp + 0x20], 0xb90
imul eax, dword [esp + 0x20], 0x13
mov dword [esp + 0x20], eax
xor dword [esp + 0x20], 0xbb82
mov dword [esp + 0x18], 0xc7ed
shl dword [esp + 0x18], 6
shl dword [esp + 0x18], 0xf
shr dword [esp + 0x18], 6
xor dword [esp + 0x18], 0x3f6a619
mov dword [esp + 0x14], 0x7f0d
xor dword [esp + 0x14], 0x2e02fdf6
add dword [esp + 0x14], 0x758
or dword [esp + 0x14], 0xbef9e2d1
xor dword [esp + 0x14], 0xbefbbfb2
mov dword [esp + 0x28], 0x6772
shr dword [esp + 0x28], 1
xor dword [esp + 0x28], 0x1866
mov dword [esp + 0x24], 0xd829
shr dword [esp + 0x24], 0xe
xor dword [esp + 0x24], 0x69e2
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov edx, dword [eax + ecx*8 + 0x78]
test edx, edx
je 0x10017c7c
cmp dword [eax + ecx*8 + 0x7c], 0
je 0x10017c7c
lea esi, [edx + ebx]
jmp 0x10017c75
push dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
call fcn.1000b5e8
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10017c87
mov edi, dword [esi]
mov ebp, dword [esi + 0x10]
add edi, ebx
add ebp, ebx
jmp 0x10017c6c
jns 0x10017c3b
movzx eax, ax
jmp 0x10017c40
add eax, 2
add eax, ebx
push dword [esp + 0x24]
mov edx, ecx
push dword [esp + 0x2c]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
call fcn.10006fce
add esp, 0x10
test eax, eax
je 0x10017c87
mov ecx, dword [esp + 0x1c]
add edi, 4
mov dword [ebp], eax
add ebp, 4
mov eax, dword [edi]
test eax, eax
jne 0x10017c34
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10017c0e
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
jmp 0x10017c7f
Function at 0x10017d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push edx
push ecx
call fcn.1001cef6
mov dword [ebp - 4], 0xc14d
add esp, 0x14
shl dword [ebp - 4], 1
xor dword [ebp - 4], 0x1829a
mov dword [ebp + 8], 0x8a46
add dword [ebp + 8], 0x4309
shr dword [ebp + 8], 7
add dword [ebp + 8], 0xffffae47
xor dword [ebp + 8], 0xffffafe7
mov dword [ebp + 8], 0x56cf
imul eax, dword [ebp + 8], 0x5e
mov dword [ebp + 8], eax
add dword [ebp + 8], 0xffffbc5d
shl dword [ebp + 8], 3
xor dword [ebp + 8], 0xfce2e8
cmp byte [ebx], 0
je 0x10017ddb
push esi
push edi
mov edi, dword [ebp - 4]
mov dword [ebp + 8], 0x8a46
add dword [ebp + 8], 0x4309
shr dword [ebp + 8], 7
add dword [ebp + 8], 0xffffae47
xor dword [ebp + 8], 0xffffafe7
mov cl, byte [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [ebp + 8], 0x56cf
imul eax, dword [ebp + 8], 0x5e
shl esi, cl
mov dword [ebp + 8], eax
add dword [ebp + 8], 0xffffbc5d
shl dword [ebp + 8], 3
xor dword [ebp + 8], 0xfce2e8
mov cl, byte [ebp + 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0x10017d71
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b358
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push dword [esp + 0x28]
push edx
push ecx
call fcn.1001cef6
and dword [esp + 0x2c], 0
add esp, 0x18
mov dword [esp + 0x10], 0x6729ff
mov dword [esp + 8], 0xf6f1
xor dword [esp + 8], 0xbbf6caa
xor dword [esp + 8], 0xbbf9a5e
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 8]
add ecx, ebx
sub edx, dword [ecx + 0x34]
mov ebp, dword [ecx + eax*8 + 0x7c]
mov dword [esp + 8], edx
mov edx, dword [ecx + eax*8 + 0x78]
add edx, ebx
add ebp, edx
mov dword [esp + 0x10], ebp
cmp edx, ebp
jae 0x1001b40c
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0x1001b403
mov ebp, dword [esp + 0x10]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x14], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x14]
jne 0x1001b3f8
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0x1001b3d3
mov ebp, dword [esp + 0x18]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0x1001b3c3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0xef80a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef80ae
pushal
call 0xef80b4
pop ebp
sub ebp, 0x10
sub ebp, 0xaf80a4
jmp 0xef80ca
mov eax, 0xaf80a4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0xe3a063d3
xor byte [eax], dl
inc eax
dec ecx
jne 0xef80e1
jmp 0xef80f4
pop eax
push ds
pop eax
pop edx
out dx, eax
rcl ebx, cl
rcl dword [edx + 0x12], cl
sub edx, ebx
rcl ebx, cl
rcr byte [esi], 1
imul edx, ebp, 0xffffffd3
rcl ebx, cl
imul edi, ebx, 0x24d3d3d3
xor eax, edx
sbb ebx, dword [eax + 0x52]
invalid
Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x41fe62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe58
mov eax, 1
add ebx, ebx
jne 0x41fe7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe70
jne 0x41fe8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe70
xor ecx, ecx
sub eax, 3
jb 0x41fea0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff12
mov ebp, eax
add ebx, ebx
jne 0x41feab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fedc
inc ecx
add ebx, ebx
jne 0x41fec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41febd
jne 0x41fed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41febd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fefc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41feed
jmp 0x41fe5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fefc
add edi, ecx
jmp 0x41fe5e
pop esi
mov edi, esi
mov ecx, 0x783
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff1a
cmp byte [edi], 5
jne 0x41ff1a
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 eax, ebx
loop 0x41ff1f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x208f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20998]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff4c
mov ecx, edi
jns 0x41ff7b
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 + 0x2099c]
or eax, eax
je 0x41ff91
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff69
call dword [esi + 0x209a0]
popal
jmp section.UPX0
Function at 0x40ced5
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x412054]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.00409190
push 0x406744
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.0040bcac
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40cf57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40cf8d
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0040cbe3
mov edi, eax
jmp 0x40cf8d
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040cdc0
mov ebx, eax
test ebx, ebx
jns 0x40cf7f
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.0040cbc4
mov edi, ebx
jmp 0x40cf8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x40cf97
push esi
call fcn.0040cc79
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410620
mov esp, ebp
pop ebp
ret 8
Function at 0x41016c
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x408b98
push 0x408ba8
push 0x408bb8
push 0x408bc8
push 0x408bdc
push 0x408bf0
push 0x408c04
push 0x408c18
push 0x408c2c
mov ebx, ecx
push 0x408c48
push ebx
call dword [sym.imp.msvcrt.dll_fwprintf]
and dword [ebp - 4], 0
add esp, 0x2c
mov esi, 0x10000
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x4101e0
push 0x408c98
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
jmp 0x41024b
push 0
push esi
push edi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jne 0x41022f
mov eax, dword [ebp - 4]
lea esi, [edi + eax]
push dword [esi + 4]
add eax, dword [esi]
push dword [esi + 0x4c]
mov dword [ebp - 4], eax
push dword [esi + 0x84]
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x70]
push dword [esi + 0x68]
push dword [esi + 0x3c]
push dword [esi + 0x44]
push 0x408cc8
push ebx
call dword [sym.imp.msvcrt.dll_fwprintf]
add esp, 0x2c
cmp dword [esi], 0
jne 0x4101f0
jmp 0x41023d
push 0x408d28
push ebx
call dword [sym.imp.msvcrt.dll_fwprintf]
pop ecx
pop ecx
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4105e0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x411288
call fcn.00410c58
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41251c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x410408
cmp eax, esi
jne 0x4103fb
xor esi, esi
inc esi
mov edi, esi
jmp 0x41040b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4103df
xor esi, esi
inc esi
cmp dword [0x412520], esi
jne 0x41041d
push 0x1f
call fcn.004a2000
pop ecx
jmp 0x410457
cmp dword [0x412520], ebx
jne 0x410451
mov dword [0x412520], esi
push 0x4011ac
push 0x4011a0
call fcn.0041053c
pop ecx
pop ecx
test eax, eax
je 0x410457
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41052c
mov dword [0x412074], esi
cmp dword [0x412520], esi
jne 0x41047a
push 0x40119c
push 0x40117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x412520], 2
test edi, edi
jne 0x410487
xor eax, eax
mov ecx, 0x41251c
xchg dword [ecx], eax
cmp dword [0x41252c], 0
je 0x4104b3
push 0x41252c
call fcn.00410ab0
pop ecx
test eax, eax
je 0x4104b3
push ebx
push 2
push ebx
mov esi, dword [0x41252c]
mov ecx, esi
call dword [0x4131c0]
call esi
push dword [0x412080]
push dword [0x41207c]
push dword [0x412078]
call fcn.0040db8d
add esp, 0xc
mov dword [0x412070], eax
cmp dword [0x412088], 0
jne 0x410511
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x412074], 0
jne 0x410525
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x412070]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00410ba5
jmp 0x4103c3

Function at 0x410994
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4112c8
call fcn.00410c58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4109f4
cmp eax, 0xffffffff
je 0x4109f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4109ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4109ed
cmp edx, 0x10000000
jae 0x4109ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4109ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410a60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x410a9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x410a96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x410aa0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x410a86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410b70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x410ba1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410ba1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x410ba1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017e0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x40f20a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x414050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov edi, str.ParseCmdLineInfo
call fcn.00401460
xor esi, esi
push 0x210
push esi
push 0x415d68
mov dword [esp + 0x28], esi
call fcn.00403210
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [0x415d68], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
jne 0x401871
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], 0xffffffff
call fcn.004013c0
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
cmp dword [esp + 0xc], esi
jle 0x40194f
jmp 0x401880
mov eax, dword [edi + esi*4]
push 6
push str._INST:
push eax
call fcn.00402902
add esp, 0xc
test eax, eax
jne 0x4018b8
push str._INFO_Mode:Driver_Install_n
push 0x415f78
mov dword [0x415d68], 1
call fcn.00401ab0
mov eax, dword [edi + esi*4]
add eax, 0xc
jmp 0x4018ee
mov ecx, dword [edi + esi*4]
push 8
push str._UNINST:
push ecx
call fcn.00402902
add esp, 0xc
test eax, eax
jne 0x401912
push str._INFO_Mode:Driver_Uninstall_n
push 0x415f78
mov dword [0x415d68], 2
call fcn.00401ab0
mov eax, dword [edi + esi*4]
add eax, 0x10
add esp, 8
mov ecx, 0x415d70
call fcn.00401360
push 0x415d70
push str._INFO_Driver_INF_Path:__s_n
push 0x415f78
call fcn.00401ab0
add esp, 0xc
mov edx, dword [edi + esi*4]
push 6
push str._FORCE
push edx
call fcn.00402902
add esp, 0xc
test eax, eax
jne 0x401942
push str._INFO_Option:Force_Install_Uninstall_n
push 0x415f78
call fcn.00401ab0
add esp, 8
or dword [0x415d6c], 4
add esi, 1
cmp esi, dword [esp + 0xc]
jl 0x401880
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], 0xffffffff
call fcn.004013c0
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x401db0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40f079
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push edi
mov eax, dword [0x414050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0
mov eax, dword [0x41510c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41510c
call edx
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0xc], 0
movzx eax, word [esp + 0x18]
movzx ecx, word [esp + 0x16]
je 0x401e5b
movzx edx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x18]
push eax
push ecx
push edx
push 0x412668
call fcn.00402150
add esp, 0x14
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret 8
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
push str._02d:_02d:_02d
call fcn.00402150
add esp, 0x10
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret 8

Function at 0x401f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x414050]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401fa9
push str.epsonessetup
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401fa9
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f70
sub eax, edx
sar eax, 1
push ebx
lea ecx, [esp + 4]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00401520
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004026b3
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.004026b3
add esp, 0x20c
ret

Function at 0x401fc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x414050]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push edi
lea ecx, [esp + 4]
call fcn.00401360
push str.logsetting.ini
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
push ecx
push 0
push str.LogLevel
push str.Setting
call edi
lea edx, [esp + 4]
push edx
push 0
push str.DebugOut
push str.Setting
mov dword [esi], eax
call edi
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
mov dword [esi + 4], eax
call fcn.004026b3
add esp, 0x20c
ret 4
Function at 0x4025b7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x414050]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040254c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00403210
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x402606
cmp dword [ebp - 0x1c], 5
jb 0x40261e
jmp 0x40261a
cmp dword [ebp - 0x10], 1
jne 0x40261e
cmp dword [ebp - 0x1c], 4
ja 0x40261a
jne 0x40261e
cmp dword [ebp - 0x18], 0
jbe 0x40261e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x410228
call fcn.00402420
test eax, eax
jge 0x40263f
mov byte [0x415f98], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004026b3
add ebp, 0x78
leave
ret

Function at 0x4026b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414050]
jne 0x4026bd
repz ret
jmp fcn.00404428