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

Disassembly:
pushal
mov esi, section.Nyaaa2
lea edi, [esi - 0x22b000]
push edi
jmp 0x6e2b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e2b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2b80
mov eax, 1
add ebx, ebx
jne 0x6e2ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e2bb4
jne 0x6e2bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2bd3
dec eax
add ebx, ebx
jne 0x6e2bc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e2b98
add ebx, ebx
jne 0x6e2bcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e2c25
xor ecx, ecx
sub eax, 3
jb 0x6e2beb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e2c5a
sar eax, 1
mov ebp, eax
jmp 0x6e2bf6
add ebx, ebx
jne 0x6e2bf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2bc4
inc ecx
add ebx, ebx
jne 0x6e2c04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2bc4
add ebx, ebx
jne 0x6e2c11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e2c06
jne 0x6e2c22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e2c06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e2c44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e2c36
jmp 0x6e2b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e2c44
add edi, ecx
jmp 0x6e2b86
pop esi
mov edi, esi
mov ecx, 0x99d4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e2c62
cmp byte [edi], 0x23
jne 0x6e2c62
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 0x6e2c67
lea edi, [esi + 0x2d1000]
mov eax, dword [edi]
or eax, eax
je 0x6e2cdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32287c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3229dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e2c94
mov ecx, edi
jns 0x6e2cc3
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 + 0x3229e4]
or eax, eax
je 0x6e2cd9
mov dword [ebx], eax
add ebx, 4
jmp 0x6e2cb1
call dword [esi + 0x3229e0]
mov ebp, dword [esi + 0x3229e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x6e2d13
sub esp, 0xffffff80
jmp 0x4017d4
Function at 0x45abe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
jmp 0x45abfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45ac01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45abf0
mov eax, 1
add ebx, ebx
jne 0x45ac13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45ac24
jne 0x45ac43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ac43
dec eax
add ebx, ebx
jne 0x45ac30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45ac08
add ebx, ebx
jne 0x45ac3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45ac95
xor ecx, ecx
sub eax, 3
jb 0x45ac5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45acca
sar eax, 1
mov ebp, eax
jmp 0x45ac66
add ebx, ebx
jne 0x45ac66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ac34
inc ecx
add ebx, ebx
jne 0x45ac74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45ac34
add ebx, ebx
jne 0x45ac81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45ac76
jne 0x45ac92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ac76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45acb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45aca6
jmp 0x45abf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45acb4
add edi, ecx
jmp 0x45abf6
pop esi
mov edi, esi
mov ecx, 0x2a6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45acd2
cmp byte [edi], 4
jne 0x45acd2
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 0x45acd7
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x45ad4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5ab70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5abac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45ad04
mov ecx, edi
jns 0x45ad33
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 + 0x5abb4]
or eax, eax
je 0x45ad49
mov dword [ebx], eax
add ebx, 4
jmp 0x45ad21
call dword [esi + 0x5abb0]
mov ebp, dword [esi + 0x5abb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x45ad83
sub esp, 0xffffff80
jmp 0x4016b0
Function at 0x4178f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x413015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x417912
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417908
mov eax, 1
add ebx, ebx
jne 0x41792b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417920
jne 0x41793c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417920
xor ecx, ecx
sub eax, 3
jb 0x417950
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4179c2
mov ebp, eax
add ebx, ebx
jne 0x41795b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417968
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41798c
inc ecx
add ebx, ebx
jne 0x417978
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41796d
jne 0x417989
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41796d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4179ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41799d
jmp 0x41790e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4179ac
add edi, ecx
jmp 0x41790e
pop esi
mov edi, esi
mov ecx, 0x59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4179ca
cmp byte [edi], 2
jne 0x4179ca
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 0x4179cf
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417a47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1791c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4179fc
mov ecx, edi
jns 0x417a2b
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 + 0x17960]
or eax, eax
je 0x417a41
mov dword [ebx], eax
add ebx, 4
jmp 0x417a19
call dword [esi + 0x1795c]
mov ebp, dword [esi + 0x17964]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x417a7b
sub esp, 0xffffff80
jmp 0x401a90
Function at 0x406010
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80ca1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042e4
call fcn.00406c71
push 4
mov dword [esp + 0x18], 0
call fcn.004079a7
mov edi, eax
add esp, 4
test edi, edi
je 0x406084
push ebx
call fcn.00406b49
mov dword [edi], eax
call fcn.00406908
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406c32
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406078
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406c5a
pop ebx
jmp 0x406086
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408421
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x810510]
jne 0x40842b
repz ret
jmp fcn.0040c62c
Function at 0x410743
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x810510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a7e6
and dword [ebp - 0x14], 0
cmp dword [0x815650], 0
mov dword [ebp - 0x18], eax
jne 0x4107f6
push 0x4037ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41089e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037a0
push ebx
call edi
test eax, eax
je 0x41089e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403790
push ebx
mov dword [0x815650], eax
call edi
push eax
call esi
push 0x40377c
push ebx
mov dword [0x815654], eax
call edi
push eax
call esi
push 0x403760
push ebx
mov dword [0x815658], eax
call edi
push eax
call esi
mov dword [0x815660], eax
test eax, eax
je 0x4107f6
push 0x403748
push ebx
call edi
push eax
call esi
mov dword [0x81565c], eax
mov eax, dword [0x81565c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41084f
cmp dword [0x815660], ecx
je 0x41084f
push eax
call esi
push dword [0x815660]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41084f
test ebx, ebx
je 0x41084f
call edi
test eax, eax
je 0x410846
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x410846
test byte [ebp - 8], 1
jne 0x41084f
or dword [ebp + 0x10], 0x200000
jmp 0x410882
mov eax, dword [0x815654]
cmp eax, dword [ebp - 0x18]
je 0x410882
push eax
call esi
test eax, eax
je 0x410882
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410882
mov eax, dword [0x815658]
cmp eax, dword [ebp - 0x18]
je 0x410882
push eax
call esi
test eax, eax
je 0x410882
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x815650]
call esi
test eax, eax
je 0x41089e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4108a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408421
leave
ret
Function at 0x80aad0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004112b0
cmp dword [0xb993ec], 0x37
jne 0x80ab6a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9a3e0]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81a43c]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x80ae00
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb993ec]
sub esp, 0x97c
push ebx
push ebp
push esi
mov esi, dword [0x81a43c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80b016
mov dword [esp + 0x30], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x80ae46
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0xb993ec], 0x1c
jne 0x80ae5d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x8112c0]
mov ebx, dword [0x8112c8]
mov ebp, dword [0x8112cc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8112c4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x80aea6
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb9935c], edi
mov eax, dword [esp + 0x20]
add dword [0xb9935c], eax
mov eax, dword [0xb9935c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], eax
cmp dword [0xb993ec], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80af3d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0xb993ec], 0x979
mov dword [0xb99360], 0xff6b3619
mov dword [0xb99364], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x80af87
push 0
lea ecx, [esp + 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x80aea0
cmp dword [0xb993ec], 0x8d4
jne 0x80afcb
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0xb993ec], 0x17
jne 0x80b005
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x48]
push edx
push 0x403f50
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x80ae40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x401590
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push 0x104
push eax
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40160c
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.00406d30
add esp, 8
push 0x42e3a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 4]
push str.MessageDebug_SetupExe.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x218]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x218]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
push 0x42e3a0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov esi, dword [esp + 0x214]
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call fcn.00415575
mov eax, esi
pop esi
add esp, 0x20c
ret 0xc

Function at 0x401e10
Capabilities:
Get hostname

Disassembly:
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov eax, dword [esi + 8]
test eax, eax
jne 0x401ec8
push str.netapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 8], eax
jne 0x401e46
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x19c
ret
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401ec8
mov eax, dword [esp + 0x20]
sub eax, 2
jne 0x401e77
mov byte [esi + 4], 1
mov cl, byte [0x42e3a0]
xor eax, eax
mov byte [esp + 0xa4], cl
mov ecx, 0x40
lea edi, [esp + 0xa5]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xa4]
push edx
push eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x401ec8
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esi + 0xc]
call fcn.00415644
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x19c
ret

Function at 0x402ed0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x10]
jmp dword [eax*4 + 0x41f5fc]
Function at 0x404870
Capabilities:
Persist via run registry key
Set registry value
Shutdown system

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41def8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
test edi, edi
je 0x4048e5
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4048e5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x2c]
inc eax
push eax
push edi
push 1
push 0
push str.Canon_Setup
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x404906
mov ecx, dword [esi + 0xd4]
push 0
call fcn.004195ae
mov al, byte [esi + 0xec]
test al, al
jne 0x404987
mov ecx, dword [0x42ad0c]
mov dword [esp + 0x2c], ecx
mov edx, dword [esi + 0xd8]
mov dword [esp + 0x20], 0
mov eax, dword [edx + 0x10]
push eax
lea eax, [esp + 0x30]
push 0x98
push eax
call fcn.004148af
add esp, 0xc
call fcn.00418566
test eax, eax
je 0x404950
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x404952
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push ecx
push edx
mov ecx, eax
call fcn.004174de
lea ecx, [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.00415507
cmp edi, 1
je 0x404987
mov al, byte [esi + 0xec]
test al, al
je 0x404a02
mov eax, dword [esi + 0xdc]
mov ecx, dword [eax + 8]
shr ecx, 1
test cl, 1
je 0x4049f8
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 0xc]
mov dword [esp + 8], 1
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 0x28]
push 0
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4051d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41df9b
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor bl, bl
lea ecx, [esp + 0x14]
call fcn.00419bc8
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + 8]
mov ecx, eax
shr ecx, 7
test cl, 1
jne 0x405218
shr eax, 8
test al, 1
je 0x4052a7
lea edx, [esp + 8]
push edi
xor eax, eax
push edx
push 0x20019
mov ecx, 0x41
lea edi, [esp + 0x28]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x4052a7
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40529c
lea edx, [esp + 0x1c]
push str.WinNT
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40529c
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00419c06
mov ecx, dword [esp + 0x124]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret

Function at 0x405740
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1008
call fcn.00407080
mov eax, dword [esp + 0x1018]
xor edx, edx
cmp eax, edx
mov dword [esp + 4], edx
mov byte [esp + 3], dl
jne 0x405763
lea eax, [esp + 3]
mov ecx, dword [ecx + 8]
push esi
push ecx
mov ecx, dword [esp + 0x1018]
lea edx, [esp + 0x10]
push 0x1000
push edx
push eax
mov eax, dword [esp + 0x1028]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x1010]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00415575
mov eax, esi
pop esi
add esp, 0x1008
ret 0x10

Function at 0x4057b0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc