joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe9b7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004f2238
mov dword [ebp - 0x14], eax
cmp dword [0x565aa4], esi
jne 0x4feaaa
push 0x800
push esi
push 0x518660
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4fea37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4feb8a
push esi
push esi
push 0x518660
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4feb8a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4feb8a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x565aa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x565aa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5186a8
push edi
mov dword [0x565aac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x565ab4], eax
test eax, eax
je 0x4feaa7
push 0x5186c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x565ab0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4feacf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4feac2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4feae4
push 4
pop eax
jmp 0x4feb8c
cmp dword [ebp - 0x14], esi
je 0x4feae4
push dword [0x565aa4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4feac9
mov eax, dword [0x565ab0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4feb42
cmp dword [0x565ab4], edi
je 0x4feb42
push eax
call ebx
push dword [0x565ab4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4feb42
test eax, eax
je 0x4feb42
call ecx
test eax, eax
je 0x4feb37
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4feb37
test byte [ebp - 8], 1
jne 0x4feb42
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4feb72
mov eax, dword [0x565aa8]
cmp eax, edi
je 0x4feb6f
push eax
call ebx
test eax, eax
je 0x4feb6f
call eax
mov esi, eax
test esi, esi
je 0x4feb6f
mov eax, dword [0x565aac]
cmp eax, edi
je 0x4feb6f
push eax
call ebx
test eax, eax
je 0x4feb6f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x565aa4]
call ebx
test eax, eax
je 0x4feb8a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4feb8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x615e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x569015
lea edi, [esi - 0x168015]
mov dword [edi + 0x186930], 0x34ea57a
push edi
or ebp, 0xffffffff
jmp 0x615e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x615e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x615e80
mov eax, 1
add ebx, ebx
jne 0x615ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x615eb4
jne 0x615ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x615ed3
dec eax
add ebx, ebx
jne 0x615ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x615e98
add ebx, ebx
jne 0x615ecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x615f25
xor ecx, ecx
sub eax, 3
jb 0x615eeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x615f5a
sar eax, 1
mov ebp, eax
jmp 0x615ef6
add ebx, ebx
jne 0x615ef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x615ec4
inc ecx
add ebx, ebx
jne 0x615f04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x615ec4
add ebx, ebx
jne 0x615f11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x615f06
jne 0x615f22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x615f06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x615f44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x615f36
jmp 0x615e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x615f44
add edi, ecx
jmp 0x615e86
pop esi
mov edi, esi
mov ecx, 0x9bde
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x615f62
cmp byte [edi], 0x36
jne 0x615f62
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 0x615f67
lea edi, [esi + 0x212000]
mov eax, dword [edi]
or eax, eax
je 0x615fd6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21b94c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21ba10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x615f94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21ba18]
or eax, eax
je 0x615fd0
mov dword [ebx], eax
add ebx, 4
jmp 0x615fb1
call dword [esi + 0x21ba14]
mov ebp, dword [esi + 0x21ba1c]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x216031]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x616022
sub esp, 0xffffff80
jmp 0x568430
Function at 0x401090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x210], edx
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4010b3
push 0x103
mov byte [ebp - 0x108], al
sub esi, ecx
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.004057a0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4011ad
inc eax
add eax, esi
cmp eax, 0x104
ja 0x4011ad
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401110
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
je 0x40113f
mov byte [ebp + ecx - 0x108], 0x5c
inc ecx
cmp ecx, 0x104
jae 0x40129b
mov byte [ebp + ecx - 0x108], al
lea esi, [ebp - 0x108]
mov ecx, esi
mov dword [ebp - 0x214], ecx
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x401150
mov edx, dword [ebp - 0x210]
sub esi, ecx
lea edi, [edx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401162
mov ecx, esi
mov dword [ebp - 0x210], esi
mov esi, dword [ebp - 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401190
sub ebx, esi
dec edx
lea ebx, [ebx]
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x4011a0
jmp 0x40127a
push 0x103
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.004057a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011e7
sub ecx, edx
test ecx, ecx
jle 0x40121a
cmp byte [ebp + ecx - 0x20c], 0x5c
je 0x401205
dec ecx
test ecx, ecx
jg 0x4011f4
jmp 0x40121a
inc ecx
cmp ecx, 0x104
jae 0x40129b
mov byte [ebp + ecx - 0x20c], 0
lea esi, [ebp - 0x20c]
mov ecx, esi
mov dword [ebp - 0x214], ecx
mov al, byte [esi]
inc esi
test al, al
jne 0x401228
mov edx, dword [ebp - 0x210]
sub esi, ecx
lea edi, [edx - 1]
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401240
mov ecx, esi
mov dword [ebp - 0x210], esi
mov esi, dword [ebp - 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401268
sub ebx, esi
dec edx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x401272
mov ecx, ebx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017ff
mov esp, ebp
pop ebp
ret
call fcn.00401bb2
int3
Function at 0x401340
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401396
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40139f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013c0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x412030
push 0x404450
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 0x420]
push eax
push esi
test ecx, ecx
je 0x40141d
push 0xf013f
jmp 0x401422
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40149d
mov byte [ebp - 0x41c], al
push 0x3ff
push eax
lea eax, [ebp - 0x41b]
push eax
call fcn.004057a0
push edi
push str.msiexec__i__s__quiet
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.004017e0
add esp, 0x1c
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401477
sub ecx, edx
push ecx
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
push str.InstallAc
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xfffffffe
call fcn.004014cb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret

Function at 0x4014f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.004057a0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40154e
test edi, edi
je 0x40154e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401560
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x412050
push 0x404450
mov eax, dword fs:[0]
push eax
sub esp, 0x724
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x730], 0
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea eax, [ebp - 0x11f]
push eax
call fcn.004057a0
mov byte [ebp - 0x224], 0
push 0x103
push 0
lea eax, [ebp - 0x223]
push eax
call fcn.004057a0
add esp, 0x18
mov dword [ebp - 4], 0
push str.25B93B8A_4C15_46EE_B27E_BA48D271C9FF
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [ebp - 0x730], esi
test esi, esi
je 0x401734
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401734
call fcn.00401000
mov ebx, eax
test ebx, ebx
je 0x401623
mov ecx, 0x12d
lea edi, [ecx + 2]
jmp 0x40162b
mov ecx, 0x12c
lea edi, [ecx + 2]
movzx ecx, cx
lea edx, [ebp - 0x72c]
call fcn.004012b0
mov dword [ebp - 0x734], eax
test eax, eax
je 0x401734
lea edx, [ebp - 0x224]
mov ecx, str.install_ac.msi
call fcn.00401090
lea eax, [ebp - 0x224]
push eax
mov edx, dword [ebp - 0x72c]
mov ecx, dword [ebp - 0x734]
call fcn.00401340
add esp, 4
test eax, eax
je 0x401734
movzx ecx, di
lea edx, [ebp - 0x72c]
call fcn.004012b0
mov edi, eax
test edi, edi
je 0x401734
lea edx, [ebp - 0x120]
mov ecx, str.uninstall_ac.exe
call fcn.00401090
lea eax, [ebp - 0x120]
push eax
mov edx, dword [ebp - 0x72c]
mov ecx, edi
call fcn.00401340
add esp, 4
test eax, eax
je 0x401734
mov byte [ebp - 0x728], 0
push 0x3ff
push 0
lea eax, [ebp - 0x727]
push eax
call fcn.004057a0
lea eax, [ebp - 0x120]
push eax
push 0x411ec4
lea eax, [ebp - 0x728]
push eax
call fcn.0040180e
mov edx, 1
lea ecx, [ebp - 0x728]
call fcn.004014f0
lea edx, [ebp - 0x224]
mov ecx, ebx
call fcn.004013c0
push 0x3c
push 0x411ec8
push str.cmd__c_shutdown__c___s___r__t__d
lea eax, [ebp - 0x728]
push eax
call fcn.0040180e
add esp, 0x28
xor edx, edx
lea ecx, [ebp - 0x728]
call fcn.004014f0
mov dword [ebp - 4], 0xfffffffe
call fcn.00401766
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401766
Capabilities:
Delete file
Move file

Disassembly:
test esi, esi
je 0x401771
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x414e5c]
test eax, eax
je 0x401783
push eax
call fcn.00401cfa
add esp, 4
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x328], 0
push 0x103
push 0
lea eax, [ebp - 0x327]
push eax
call fcn.004057a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x328]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
ret
Function at 0x407f48
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00403bc8
mov dword [ebp - 0x14], eax
cmp dword [0x414e24], esi
jne 0x40803b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x407fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40811b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40811b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40811b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x414e24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x414e28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x414e2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414e34], eax
test eax, eax
je 0x408038
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414e30], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408060
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408053
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x408075
push 4
pop eax
jmp 0x40811d
cmp dword [ebp - 0x14], esi
je 0x408075
push dword [0x414e24]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40805a
mov eax, dword [0x414e30]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4080d3
cmp dword [0x414e34], edi
je 0x4080d3
push eax
call ebx
push dword [0x414e34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4080d3
test eax, eax
je 0x4080d3
call ecx
test eax, eax
je 0x4080c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4080c8
test byte [ebp - 8], 1
jne 0x4080d3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x408103
mov eax, dword [0x414e28]
cmp eax, edi
je 0x408100
push eax
call ebx
test eax, eax
je 0x408100
call eax
mov esi, eax
test esi, esi
je 0x408100
mov eax, dword [0x414e2c]
cmp eax, edi
je 0x408100
push eax
call ebx
test eax, eax
je 0x408100
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x414e24]
call ebx
test eax, eax
je 0x40811b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40811d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017ff
mov esp, ebp
pop ebp
ret
Function at 0x401030
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00406cf0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00406cf0
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40109e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40108d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404e4f
mov esp, ebp
pop ebp
ret

Function at 0x401140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx], 0
je 0x4011d6
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareCanonDPSendInfoAgree
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011c0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push dword [eax]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
xor edx, edx
push dword [ebp - 0xc]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp - 8]
mov esi, dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareCanonDPSendInfoAgree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401233
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push dword [eax]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
xor edx, edx
push dword [ebp - 0xc]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x401320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.kernel32
mov edi, edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401363
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401363
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401378
cmp dword [ebp - 8], 0
je 0x401378
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20206
jmp 0x401385
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4013be
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4013d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.kernel32
mov ebx, edx
mov dword [ebp - 4], 0
mov esi, 0x20019
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401419
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401419
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x401425
cmp dword [ebp - 4], 0
mov eax, 0x20219
cmovne esi, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401469
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x41f740
push 0x400
lea eax, [ebp - 0x804]
mov esi, edx
push eax
push 0x41bb70
push ecx
push str.STRING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov cx, word [ebp - 0x804]
lea edx, [ebp - 0x804]
movzx eax, cx
test cx, cx
je 0x4016c6
nop dword [eax]
add edx, 2
cmp ax, 0x5c
jne 0x4016b8
movzx eax, word [edx]
add edx, 2
lea ecx, [eax - 0x4e]
cmp ecx, 0x24
ja case.0x40169e.79
movzx ecx, byte [ecx + 0x4016e8]
jmp dword [ecx*4 + 0x4016dc]
mov eax, 0xa
jmp 0x4016b8
mov eax, 0xd
jmp 0x4016b8
test ax, ax
je 0x4016c6
mov word [esi], ax
add esi, 2
movzx eax, word [edx]
test ax, ax
jne 0x401680
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi], ax
xor ecx, ebp
pop esi
call fcn.00404e4f
mov esp, ebp
pop ebp
ret