joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x406370], esi
push edi
jne 0x401907
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40636c], esi
mov byte [0x406368], al
jne 0x40196d
mov ecx, dword [0x406748]
test ecx, ecx
je 0x40194e
mov eax, dword [0x406744]
sub eax, 4
cmp eax, ecx
jmp 0x401947
mov eax, dword [eax]
test eax, eax
je 0x401939
call eax
mov eax, dword [0x406744]
sub eax, 4
cmp eax, dword [0x406748]
mov dword [0x406744], eax
jae 0x401931
mov eax, 0x406018
mov esi, 0x40601c
cmp eax, esi
mov edi, eax
jae 0x40196d
mov eax, dword [edi]
test eax, eax
je 0x401966
call eax
add edi, 4
cmp edi, esi
jb 0x40195e
mov eax, 0x406020
mov esi, 0x406024
cmp eax, esi
mov edi, eax
jae 0x40198c
mov eax, dword [edi]
test eax, eax
je 0x401985
call eax
add edi, 4
cmp edi, esi
jb 0x40197d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4019a6
push dword [ebp + 8]
mov dword [0x406370], 1
call fcn.0040184d
pop ebp
ret

Function at 0x4019e8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x406030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x406040]
je 0x401a1d
inc eax
cmp eax, 0x13
jb 0x401a0e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x406040]
jne 0x401b43
mov eax, dword [0x40631c]
cmp eax, 1
je 0x401b1b
cmp eax, edx
jne 0x401a4d
cmp dword [0x406038], 1
je 0x401b1b
cmp ecx, 0xfc
je 0x401b43
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401a83
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402600
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402830
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401ab7
mov eax, edi
push eax
call fcn.00402830
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405174
push edi
call fcn.00402700
add esp, 0x10
push edi
call fcn.00402830
push dword [esi + 0x406044]
mov ebx, eax
call fcn.00402830
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004024c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402600
push edi
push ebx
call fcn.00402610
push 0x405170
push ebx
call fcn.00402610
push dword [esi + 0x406044]
push ebx
call fcn.00402610
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004024fd
add esp, 0x2c
jmp 0x401b43
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x406044]
push dword [esi]
call fcn.00402830
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040133a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402018
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x40658c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x402061
call ebp
mov esi, eax
cmp esi, ebx
je 0x402047
mov dword [0x40658c], 1
jmp 0x402066
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40205c
push 2
pop eax
mov dword [0x40658c], eax
jmp 0x402061
mov eax, dword [0x40658c]
cmp eax, 1
jne 0x4020be
cmp esi, ebx
jne 0x402079
call ebp
mov esi, eax
cmp esi, ebx
jne 0x402079
xor eax, eax
jmp 0x402165
cmp word [esi], bx
mov eax, esi
je 0x40208e
inc eax
inc eax
cmp word [eax], bx
jne 0x402080
inc eax
inc eax
cmp word [eax], bx
jne 0x402080
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00402d55
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4020b1
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x402165
push ebp
push esi
push edi
call fcn.00402d80
add esp, 0xc
jmp 0x4020a3
cmp eax, 2
je 0x4020c7
cmp eax, ebx
jne 0x402072
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x402072
cmp byte [ebp], bl
mov esi, ebp
je 0x4020fd
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x402072
push esi
add edi, eax
call fcn.00402830
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4020da
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00402d55
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x402176
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x402157
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40216c
push edi
call fcn.00402830
push esi
lea edi, [edi + eax + 1]
call fcn.00402d67
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40211d
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00402c8f
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x402072
Function at 0x402182
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x406590]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4021c2
call esi
test eax, eax
je 0x4021a7
mov dword [0x406590], 1
jmp 0x4021c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4021be
mov dword [0x406590], 2
jmp 0x4021d0
xor eax, eax
jmp 0x40221e
cmp eax, 1
jne 0x4021cb
call esi
jmp 0x40221e
cmp eax, 2
jne 0x4021be
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x402216
lea eax, [esi + esi]
push eax
call fcn.00402d55
mov ebp, eax
test ebp, ebp
pop ecx
je 0x402216
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40221a
push ebp
call fcn.00402c8f
pop ecx
xor eax, eax
jmp 0x40221c
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4024fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x406594], ebx
push esi
push edi
jne 0x40257d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4025b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x406594], eax
je 0x4025b8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x406598], eax
call esi
cmp dword [0x406330], 2
mov dword [0x40659c], eax
jne 0x40257d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4065a4], eax
je 0x40257d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4065a0], eax
mov eax, dword [0x4065a0]
test eax, eax
je 0x4025c2
call eax
test eax, eax
je 0x4025a9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4065a4]
test eax, eax
je 0x4025a9
test byte [ebp - 8], 1
jne 0x4025c2
cmp dword [0x40633c], 4
jb 0x4025bc
or byte [ebp + 0x12], 0x20
jmp 0x4025e1
xor eax, eax
jmp 0x4025f1
or byte [ebp + 0x12], 4
jmp 0x4025e1
mov eax, dword [0x406598]
test eax, eax
je 0x4025e1
call eax
mov ebx, eax
test ebx, ebx
je 0x4025e1
mov eax, dword [0x40659c]
test eax, eax
je 0x4025e1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x406594]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029aa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4029d8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4029df
cmp ebx, dword [eax + 4]
jae 0x4029df
xor eax, eax
jmp 0x402bcf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4029f0
xor eax, eax
inc eax
jmp 0x402bce
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402a06
cmp ecx, edx
jae 0x402b4b
cmp dword [eax + 4], 0
je 0x402a0f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4029f7
cmp dword [ebp + 8], 0
je 0x402a31
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402b4b
cmp eax, esi
jae 0x402b4b
mov eax, dword [0x4065a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402a56
cmp dword [esi*4 + 0x4065b0], edi
je 0x402b4f
inc esi
cmp esi, eax
jl 0x402a44
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402bcb
cmp dword [ebp - 8], 0x1000000
jne 0x402bcb
test byte [ebp - 0xc], 0xcc
je 0x402ad4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402bcb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402bcb
cmp word [eax + 0x18], 0x10b
jne 0x402bcb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402bcb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402ad4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402ad4
test byte [ecx + 0x27], 0x80
jne 0x402b4b
push 1
push 0x4065f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4029e8
mov ecx, dword [0x4065a8]
test ecx, ecx
mov edx, ecx
jle 0x402b08
lea eax, [ecx*4 + 0x4065ac]
cmp dword [eax], edi
je 0x402b08
dec edx
sub eax, 4
test edx, edx
jg 0x402afc
test edx, edx
jne 0x402b39
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402b15
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402b2d
lea eax, [edx*4 + 0x4065b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402b1b
cmp ecx, 0x10
jge 0x402b39
inc ecx
mov dword [0x4065a8], ecx
push 0
push 0x4065f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4029e8
xor eax, eax
jmp 0x402bce
test esi, esi
jle 0x4029e8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4065f0
call ebx
test eax, eax
jne 0x4029e8
cmp dword [esi*4 + 0x4065b0], edi
je 0x402ba5
mov eax, dword [0x4065a8]
lea esi, [eax - 1]
test esi, esi
jl 0x402b93
cmp dword [esi*4 + 0x4065b0], edi
je 0x402b8f
dec esi
jns 0x402b83
test esi, esi
jge 0x402ba3
cmp eax, 0x10
jge 0x402b9e
inc eax
mov dword [0x4065a8], eax
lea esi, [eax - 1]
jmp 0x402ba5
je 0x402bbd
xor ecx, ecx
test esi, esi
jl 0x402bbd
lea eax, [ecx*4 + 0x4065b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402bab
push 0
push 0x4065f0
call ebx
jmp 0x4029e8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b980
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x4184e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x402288
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
mov ecx, esi
call fcn.0040da8d
push eax
push 0x4022c8
call dword [sym.imp.msvcrt.dll_wprintf]
mov esi, dword [edi]
lea eax, [ebp - 0x518]
pop ecx
pop ecx
push eax
mov ecx, dword [esi + 0x44]
push 0x40b47c
push edi
call dword [0x419350]
call dword [esi + 0x44]
xor edi, edi
test eax, eax
js 0x40baa8
push dword [ebp - 0x518]
push 0x402328
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x51c], 0x104
push eax
lea eax, [ebp - 0x30c]
push eax
push edi
push 2
push edi
push dword [ebp - 0x518]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, 0x80070000
test eax, eax
jle 0x40ba37
movzx eax, ax
or eax, esi
test eax, eax
js 0x40ba9c
lea eax, [ebp - 0x30c]
push eax
push 0x402380
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
lea eax, [ebp - 0x520]
mov dword [ebp - 0x520], 0x104
push eax
lea eax, [ebp - 0x514]
push eax
push edi
push 2
push edi
lea eax, [ebp - 0x30c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x40ba86
movzx eax, ax
or eax, esi
test eax, eax
js 0x40ba9c
lea eax, [ebp - 0x514]
push eax
push 0x4023b4
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
push dword [ebp - 0x518]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
push 0x4023f0
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
push 0x40
lea eax, [ebp - 0x104]
push eax
push 0x402438
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x40
mov esi, eax
lea eax, [ebp - 0x84]
push eax
push 0x402458
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
pop edi
test esi, esi
pop esi
pop ebx
je 0x40bb19
test eax, eax
je 0x40bb19
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x402468
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0xc
push 0x4024a4
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416580
leave
ret 0xc
Function at 0x40d029
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4184e8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x24]
call fcn.0041542f
push 0x402bf4
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00415326
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40d0ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40d0e3
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0040cd73
mov edi, eax
jmp 0x40d0e3
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040cf14
mov ebx, eax
test ebx, ebx
jns 0x40d0d5
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.0040cd54
mov edi, ebx
jmp 0x40d0e3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x40d0ed
push esi
call fcn.0040cdcb
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416580
mov esp, ebp
pop ebp
ret 8

Function at 0x40d6af
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 1
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
mov ebx, 0x80070000
test eax, eax
jne 0x40d6f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d6ef
movzx eax, ax
or eax, ebx
test eax, eax
js 0x40d73e
mov ecx, esi
call fcn.0040d761
test eax, eax
js 0x40d73e
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40d750
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x40d72f
push 0xea60
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
and eax, 0x80004005
jmp 0x40d73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40d73e
movzx eax, ax
or eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40fbcd
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4184e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x8c]
cmp dword [ebx], 0
je 0x40fbfc
push dword [ebx]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x214]
push esi
push ecx
push 0x40b1e8
mov esi, dword [eax]
push 0x401610
push 0
push eax
mov ecx, dword [esi + 0xc]
call dword [0x419350]
call dword [esi + 0xc]
test eax, eax
js 0x40fca2
push 0x405228
push 1
push dword [edi + 0x10]
call fcn.0040bc18
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push ebx
mov esi, dword [ecx]
push 0x100
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x419350]
call dword [esi + 0xc]
mov ebx, eax
test ebx, ebx
js 0x40fc97
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x10]
sub eax, dword [ebp - 0x210]
push 0x405288
mov dword [edi + 0x7c], eax
and dword [ecx + 0x7104], 0
push 0
push dword [edi + 0x10]
call fcn.0040bc18
add esp, 0xc
mov eax, dword [ebp - 0x214]
jmp 0x40fdc9
push 0x4052d0
push 1
push dword [edi + 0x10]
call fcn.0040bc18
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x210]
add esp, 0xc
mov esi, dword [eax]
push ecx
push 0x40b1d8
push 0x401610
mov ecx, dword [esi + 0xc]
push 0
push eax
call dword [0x419350]
call dword [esi + 0xc]
mov ebx, eax
test ebx, ebx
js 0x40fddb
mov eax, 0x100
mov dword [ebp - 0x21c], 4
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], eax
push ecx
push 0x20
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x224]
mov eax, dword [ebp - 0x210]
push ecx
push 0
push 0x104
mov esi, dword [eax]
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov ecx, dword [esi + 0xc]
call dword [0x419350]
call dword [esi + 0xc]
mov ebx, eax
test ebx, ebx
js 0x40fdc3
push 0x405348
push 1
push dword [edi + 0x10]
call fcn.0040bc18
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x210]
lea esi, [edi + 0x8c]
push esi
push ecx
mov dword [ebp - 0x218], eax
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov ecx, esi
call dword [0x419350]
call esi
mov ebx, eax
test ebx, ebx
js 0x40fd9c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x218]
mov dword [edi + 0x7c], eax
mov eax, dword [edi + 0x10]
push 0x405288
and dword [eax + 0x7104], 0
jmp 0x40fdb6
cmp ebx, 0x80004001
jne 0x40fdc3
mov eax, dword [edi + 0x10]
push 0x405390
mov dword [eax + 0x7104], 1
push 0
push dword [edi + 0x10]
call fcn.0040bc18
add esp, 0xc
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x419350]
call esi
jmp 0x40fdf7
mov eax, dword [edi + 0x10]
push 0x405070
push ebx
push ecx
mov dword [eax + 0x7104], 1
mov ecx, dword [edi + 0x10]
call fcn.0040bb93
mov eax, dword [edi + 0x10]
pop esi
cmp dword [eax + 0x7104], 1
jne 0x40fe08
or dword [edi + 0x7c], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.00416580
leave
ret
Function at 0x41179f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x4117dc
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4117e8
cmp word [esi], bx
jne 0x4117e8
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
shr ecx, 1
dec ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x412284
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4184e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push 0x409178
push 1
push dword [esi + 0x10]
call fcn.0040bc18
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
xor edi, edi
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push ebx
call fcn.0041179f
test eax, eax
js 0x412327
mov ecx, 0x4091c4
lea eax, [ebp - 0x414]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41230a
test dx, dx
je 0x412306
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41230a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4122e4
mov eax, edi
jmp 0x41230f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412327
mov eax, dword [esi + 0x10]
push 0x4091c8
push edi
mov dword [eax + 0x7104], edi
jmp 0x4123a8
xor ecx, ecx
lea eax, [ebp - 0x418]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
jmp 0x41236d
lea eax, [ebp - 0x20c]
push eax
push 0x4092a0
push 1
push dword [esi + 0x10]
call fcn.0040bc18
add esp, 0x10
inc edi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
mov dword [ebp - 0x418], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x41233e
mov eax, dword [esi + 0x10]
test edi, edi
je 0x412397
and dword [eax + 0x7104], 0
push 0x4092e8
jmp 0x4123a6
mov dword [eax + 0x7104], 2
push 0x4093d0
push 0
push dword [esi + 0x10]
call fcn.0040bc18
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00416580
leave
ret 4
Function at 0x413cbd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4184e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x418], ecx
mov esi, 0x104
jne 0x413d09
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x413d1b
push ecx
push dword [ebp + 8]
mov edx, esi
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0041542f
test eax, eax
js 0x413d91
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
test edi, edi
je 0x413d4f
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x40afbc
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00415374
add esp, 0x14
jmp 0x413d7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x40afd8
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00415374
add esp, 0x18
test eax, eax
js 0x413d91
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416580
leave
ret 8