joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x24d1a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x24d1a6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x24d2473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x24ec2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x24ec2a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x24eb10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x24d247a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x42127a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x527c60]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041eac0
mov dword [ebp - 0x14], eax
cmp dword [0x529798], edi
jne 0x42136b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4212f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42144b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42144b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42144b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x529798], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x52979c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5297a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5297a8], eax
test eax, eax
je 0x421368
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5297a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421390
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421383
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4213a5
push 4
pop eax
jmp 0x42144d
cmp dword [ebp - 0x14], edi
je 0x4213a5
push dword [0x529798]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42138a
mov eax, dword [0x5297a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x421403
cmp dword [0x5297a8], esi
je 0x421403
push eax
call ebx
push dword [0x5297a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x421403
test eax, eax
je 0x421403
call ecx
test eax, eax
je 0x4213f8
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 0x4213f8
test byte [ebp - 8], 1
jne 0x421403
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x421433
mov eax, dword [0x52979c]
cmp eax, esi
je 0x421430
push eax
call ebx
test eax, eax
je 0x421430
call eax
mov edi, eax
test edi, edi
je 0x421430
mov eax, dword [0x5297a0]
cmp eax, esi
je 0x421430
push eax
call ebx
test eax, eax
je 0x421430
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x529798]
call ebx
test eax, eax
je 0x42144b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42144d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa70
leave
ret
Function at 0x4052ec
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c8
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c8]
call fcn.004039b6
xor edi, edi
push edi
lea eax, [ebp - 0x30c8]
push eax
push dword [ebp + 8]
push edi
call fcn.0040695b
test al, al
je 0x405491
cmp word [ebp - 0x2448], di
je 0x405491
lea eax, [ebp - 0x2448]
push eax
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004072cf
push eax
call fcn.0040eefb
test eax, eax
je 0x405491
lea eax, [ebp - 0x2448]
push eax
push dword [ebp + 8]
call fcn.004072cf
push eax
call fcn.0040eefb
test eax, eax
jne 0x405491
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4053e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040e5a3
push ebx
push 0x4143ac
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.004072cf
push eax
call fcn.0040aac4
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00406088
test al, al
je 0x4053ca
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40537b
cmp word [ebp - 0x800], di
je 0x405491
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e5a3
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004072cf
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004072cf
push eax
call fcn.0040a850
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405491
lea ecx, [ebp - 0x1c28]
call fcn.00405711
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00406088
test al, al
jne 0x405458
push 9
push dword [ebp + 8]
lea ecx, [ebp - 0x1c28]
push edi
call fcn.00405a95
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x405482
lea ecx, [ebp - 0x1c28]
call fcn.00405783
lea ecx, [ebp - 0x1c28]
call fcn.00405808
lea ecx, [ebp - 0x1c28]
call fcn.004058fd
mov al, 1
jmp 0x405493
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ad38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [0x41e0e8], esi
jne 0x40ad51
mov ecx, 0x41e0e0
call fcn.0040acf9
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
je 0x40ada7
cmp dword [0x41e0e8], esi
je 0x40add8
test bl, 0xf
jne 0x40add8
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040a4cd
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41e0e8]
test eax, eax
jne 0x40ae00
push 0x414528
mov esi, 0x418e8c
mov ecx, esi
call fcn.004036fa
mov ecx, esi
call fcn.0040359c
push 2
mov ecx, esi
call fcn.00403897
jmp 0x40ae00
cmp dword [0x41e0ec], esi
je 0x40add8
test bl, 0xf
jne 0x40add8
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040a4cd
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41e0ec]
test eax, eax
jne 0x40ae00
push 0x41450c
jmp 0x40ad89
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
cmp ebx, esi
jbe 0x40ae00
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub esi, ecx
push edi
lea edi, [eax + edx + 0x4b]
xor di, word [esi + ecx]
inc edx
mov word [ecx], di
inc ecx
inc ecx
cmp edx, ebx
jb 0x40aded
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40af55
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4160b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40afa0
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x42aa7c], ax
xor eax, eax
mov word [0x42aa7e], ax
mov dword [0x4160b0], 0x42aa7c
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e623
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4160a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40be0d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00413135
cmp byte [0x424925], 0
jne 0x40be9b
push 6
push dword [0x41609c]
lea eax, [ebp - 0x820]
push eax
call fcn.004072cf
push eax
call fcn.0040efb8
test eax, eax
jne 0x40be9b
push 0x4145e8
call fcn.00413122
lea eax, [ebp - 0x820]
push eax
call fcn.0040a826
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040a4a0
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40bf66
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x424911], 1
cmp dword [0x424920], ebx
je 0x40bf8e
push 0x7d
call fcn.00409b0b
push eax
push 2
push dword [0x424920]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x424920]
mov dword [0x424914], ebx
mov byte [0x424910], 1
cmp eax, ebx
je 0x40bfef
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x424934], ebx
jne 0x40bfbd
cmp byte [0x424924], bl
je 0x40bfc5
cmp dword [0x424918], ebx
jne 0x40bfe7
push ebx
push 1
push 0x111
push dword [0x424920]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bfe7
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040af16
cmp dword [0x424920], ebx
jne 0x40bfdb
cmp byte [0x424950], bl
pop ebx
je 0x40bffd
jmp fcn.0040be0d
ret

Function at 0x40c039
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x424958], bl
je 0x40c0b9
cmp word [0x41e0f8], bx
je 0x40c0b9
push esi
push 0x41e0f8
lea esi, [ebp - 0x808]
call fcn.0040bffe
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x4145f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c0b9
push dword [ebp + 8]
call fcn.0040a826
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40c0be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x424958], 0
je 0x40c165
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040bffe
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x4145f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c165
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c15c
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c140
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040e5a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c28d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x424906], 0
mov eax, dword [ebp + 0xc]
mov dword [0x424908], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42490c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x424900], eax
je 0x40c2bd
xor eax, eax
inc eax
jmp 0x40c2e6
cmp byte [0x424907], 0
je 0x40c2cb
push 2
pop eax
jmp 0x40c2e6
push dword [ebp + 8]
push 0x40b4ef
push dword [0x424920]
push 0x41457c
push dword [0x418e84]
call esi
dec eax
je 0x40c338
dec eax
je 0x40c34a
dec eax
je 0x40c331
dec eax
jne 0x40c315
push dword [ebp + 8]
push 0x40b83b
push dword [0x424920]
push 0x41459c
push dword [0x418e84]
call esi
test eax, eax
je 0x40c297
mov al, 0x52
jmp 0x40c345
dec eax
je 0x40c326
dec eax
mov al, 0x4e
jne 0x40c345
mov byte [0x424907], 1
jmp 0x40c345
mov byte [0x424912], 1
mov al, 0x43
jmp 0x40c345
mov byte [0x424906], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c345
Function at 0x40dd36
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040e96c
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42d4f0
call fcn.0040f0b5
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41f100
push edi
call fcn.0040a4a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40dde4
push eax
call fcn.0040bbd3
cmp byte [0x424959], bl
je 0x40ddd6
push 0x41482c
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ddcb
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ddc2
push esi
push eax
push edi
call fcn.0040a4cd
push edi
push 0x4148fc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dde4
push dword [ebp - 8]
push 0x4148fc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41e900
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x4148ec
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x418e84], edi
mov dword [0x418e88], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x418e88]
mov dword [0x41e8fc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41e8f8], eax
call fcn.004131a5
push esi
mov ecx, 0x418e98
call fcn.00409af4
lea ecx, [ebp - 0x5c]
call fcn.00412663
lea ecx, [ebp - 0x34]
call fcn.00412663
push 0x64
call fcn.0040b21f
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040b21f
push ebx
push 0x40d4de
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41e0f4], eax
push 0x4148d8
lea eax, [ebp - 0x34]
push edi
mov dword [0x41e0f0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41e0f0], ebx
mov dword [0x41e0f4], ebx
call fcn.00412685
lea ecx, [ebp - 0x5c]
call fcn.00412685
lea ecx, [ebp - 0xc]
call fcn.004131ff
cmp byte [0x424950], bl
je 0x40dec3
call fcn.0040be0d
mov ecx, 0x42a978
call fcn.0040aefe
cmp dword [0x424934], ebx
jbe 0x40dee0
push dword [0x424928]
call fcn.0040a41c
push dword [0x41e8fc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41e8f8]
cmp eax, ebx
je 0x40defa
push eax
call esi
cmp dword [0x418e8c], ebx
jne 0x40df19
cmp byte [0x424912], bl
je 0x40df19
push 0xff
mov ecx, 0x418e8c
call fcn.00403537
mov eax, dword [0x424944]
mov byte [0x424912], 1
cmp eax, ebx
je 0x40df2f
push eax
call fcn.0040bdce
mov eax, dword [0x424940]
cmp eax, ebx
je 0x40df3f
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x42493c]
cmp eax, ebx
ja 0x40df53
mov eax, dword [0x418e8c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x412f38
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00412ed1
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x412f9f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push 0x414bc8
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x413020
cmp dword [ebp + 0xc], edi
je 0x413043
cmp dword [esi + 0x14], edi
jne 0x413043
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x413043
push eax
mov ecx, esi
call fcn.00412bb1
mov esi, eax
cmp esi, edi
je 0x413043
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040a41c
jmp 0x413043
cmp eax, edi
je 0x413036
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x413043
mov ecx, esi
call fcn.004128c6
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x401000
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push 0
lea eax, [ebp - 0x200]
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x40106a
lea eax, [ebp - 0x200]
push str.PurityScan
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x200]
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea eax, [ebp - 0x200]
push str.PurityScan.lnk
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x429820
push eax
push dword [ebp + 8]
call fcn.00408eed
add esp, 0x14
leave
ret

Function at 0x40106c
Capabilities:
Create directory
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 8]
push str.C:Program_Files
push edi
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp + 8]
pop ecx
mov esi, 0x200
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010d7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push 0
push str.ProgramFilesDir
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push str.PurityScan
push edi
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
pop ecx
pop ecx
push edi
call esi
test eax, eax
jne 0x40111b
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x40111b
lea eax, [ebp - 0x208]
push eax
call esi
and byte [edi], 0
xor al, al
jmp 0x401126
lea eax, [ebp - 0x208]
push eax
call esi
mov al, 1
pop edi
pop esi
leave
ret