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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401ad0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, 0x1000
cmp esi, eax
jge 0x401886
test esi, esi
jl 0x401886
push eax
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.00402110
push esi
add edi, 4
lea eax, [ebp - 0x1000]
push edi
push eax
call fcn.00401dd0
lea eax, [esi - 2]
add esp, 0x18
test eax, eax
jl 0x401863
mov cl, byte [ebp + eax - 0xfff]
xor byte [ebp + eax - 0x1000], cl
dec eax
jns 0x401852
lea eax, [esi + 1]
cmp eax, dword [ebp + 0x10]
jle 0x40186e
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00401dd0
mov eax, dword [ebp + 0xc]
add esp, 0xc
jmp 0x401888
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x401967
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4094a8
call fcn.00402588
push 8
call fcn.004023db
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40ef1c], esi
jne 0x40199b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40ef18], esi
mov al, byte [ebp + 0x10]
mov byte [0x40ef14], al
cmp dword [ebp + 0xc], edi
jne 0x4019e5
cmp dword [0x41072c], edi
je 0x4019d5
mov eax, dword [0x410728]
sub eax, 4
mov dword [0x410728], eax
cmp eax, dword [0x41072c]
jb 0x4019d5
mov eax, dword [eax]
cmp eax, edi
je 0x4019b6
call eax
jmp 0x4019b6
push 0x40b028
mov eax, 0x40b020
call fcn.004018e5
pop ecx
push 0x40b030
mov eax, 0x40b02c
call fcn.004018e5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x401a16
cmp dword [ebp + 0x10], edi
jne 0x401a24
mov dword [0x40ef1c], esi
push dword [ebp + 8]
call fcn.004018a3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x401a23
push 8
call fcn.00402326
pop ecx
ret
call fcn.004025c3
ret
Function at 0x403040
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40d870]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d308]
je 0x403077
inc eax
cmp eax, 0x13
jb 0x403068
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d308]
jne 0x40319a
mov eax, dword [0x40ef28]
cmp eax, 1
je 0x403175
cmp eax, edx
jne 0x4030a7
cmp dword [0x40d1d4], 1
je 0x403175
cmp ecx, 0xfc
je 0x40319a
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4030dd
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00402190
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00405230
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403111
mov eax, edi
push eax
call fcn.00405230
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x409968
push edi
call fcn.00405520
add esp, 0x10
push edi
call fcn.00405230
push dword [esi + 0x40d30c]
mov ebx, eax
call fcn.00405230
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401ad0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402190
push edi
push ebx
call fcn.004021a0
push 0x409948
push ebx
call fcn.004021a0
push dword [esi + 0x40d30c]
push ebx
call fcn.004021a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405425
add esp, 0x2c
jmp 0x40319a
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40d30c]
push dword [esi]
call fcn.00405230
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00405373
add ebp, 0x90
leave
ret
Function at 0x404ab2
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 0x404ae0
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 0x404ae7
cmp ebx, dword [eax + 4]
jae 0x404ae7
xor eax, eax
jmp 0x404cd7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404af8
xor eax, eax
inc eax
jmp 0x404cd6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404b0e
cmp ecx, edx
jae 0x404c53
cmp dword [eax + 4], 0
je 0x404b17
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404aff
cmp dword [ebp + 8], 0
je 0x404b39
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404c53
cmp eax, esi
jae 0x404c53
mov eax, dword [0x40f1a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404b5e
cmp dword [esi*4 + 0x40f1b0], edi
je 0x404c57
inc esi
cmp esi, eax
jl 0x404b4c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404cd3
cmp dword [ebp - 8], 0x1000000
jne 0x404cd3
test byte [ebp - 0xc], 0xcc
je 0x404bdc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404cd3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404cd3
cmp word [eax + 0x18], 0x10b
jne 0x404cd3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404cd3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404bdc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404bdc
test byte [ecx + 0x27], 0x80
jne 0x404c53
push 1
push 0x40f1f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404af0
mov ecx, dword [0x40f1a8]
test ecx, ecx
mov edx, ecx
jle 0x404c10
lea eax, [ecx*4 + 0x40f1ac]
cmp dword [eax], edi
je 0x404c10
dec edx
sub eax, 4
test edx, edx
jg 0x404c04
test edx, edx
jne 0x404c41
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404c1d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404c35
lea eax, [edx*4 + 0x40f1b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404c23
cmp ecx, 0x10
jge 0x404c41
inc ecx
mov dword [0x40f1a8], ecx
push 0
push 0x40f1f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404af0
xor eax, eax
jmp 0x404cd6
test esi, esi
jle 0x404af0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40f1f0
call ebx
test eax, eax
jne 0x404af0
cmp dword [esi*4 + 0x40f1b0], edi
je 0x404cad
mov eax, dword [0x40f1a8]
lea esi, [eax - 1]
test esi, esi
jl 0x404c9b
cmp dword [esi*4 + 0x40f1b0], edi
je 0x404c97
dec esi
jns 0x404c8b
test esi, esi
jge 0x404cab
cmp eax, 0x10
jge 0x404ca6
inc eax
mov dword [0x40f1a8], eax
lea esi, [eax - 1]
jmp 0x404cad
je 0x404cc5
xor ecx, ecx
test esi, esi
jl 0x404cc5
lea eax, [ecx*4 + 0x40f1b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404cb3
push 0
push 0x40f1f0
call ebx
jmp 0x404af0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404dfa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40d870]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x404e36
xor eax, eax
jmp 0x404fa0
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x410620]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x404e74
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00406ca5
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404f0e
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x404f71
jmp 0x404e98
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x404ed3
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404ec4
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x404ea4
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f32
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x404f3b
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x404e96
jmp 0x404f3b
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f32
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x404f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x404f9b
cmp dword [ebp - 0x68], eax
je 0x404f6e
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x404f63
call fcn.0040465e
mov dword [eax], 9
call fcn.00404667
mov dword [eax], esi
jmp 0x404f96
push dword [ebp - 0x68]
call fcn.00404670
pop ecx
jmp 0x404f96
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404f83
cmp byte [edi], 0x1a
jne 0x404f83
xor eax, eax
jmp 0x404f9e
call fcn.0040465e
mov dword [eax], 0x1c
call fcn.00404667
and dword [eax], 0
or eax, 0xffffffff
jmp 0x404f9e
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00405373
add ebp, 0x3a4
leave
ret
Function at 0x405425
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f1f8], ebx
push esi
push edi
jne 0x4054a5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4054e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409fe4
push edi
call esi
test eax, eax
mov dword [0x40f1f8], eax
je 0x4054e0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f1fc], eax
call esi
cmp dword [0x40eedc], 2
mov dword [0x40f200], eax
jne 0x4054a5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f208], eax
je 0x4054a5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f204], eax
mov eax, dword [0x40f204]
test eax, eax
je 0x4054ea
call eax
test eax, eax
je 0x4054d1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f208]
test eax, eax
je 0x4054d1
test byte [ebp - 8], 1
jne 0x4054ea
cmp dword [0x40eee8], 4
jb 0x4054e4
or byte [ebp + 0x12], 0x20
jmp 0x405509
xor eax, eax
jmp 0x405519
or byte [ebp + 0x12], 4
jmp 0x405509
mov eax, dword [0x40f1fc]
test eax, eax
je 0x405509
call eax
mov ebx, eax
test ebx, ebx
je 0x405509
mov eax, dword [0x40f200]
test eax, eax
je 0x405509
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f1f8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40833f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401ad0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4083da
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40eedc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4083da
cmp eax, 1
je 0x4083fb
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4083da
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4083a7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4083d6
xor eax, eax
inc eax
jmp 0x40841a
cmp edi, eax
jae 0x4083de
xor eax, eax
jmp 0x40841a
cmp eax, esi
jae 0x4083e5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40eedc]
jmp 0x4083fe
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c06
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4094b8
call fcn.00402588
mov edi, 0x94
mov eax, edi
call fcn.00401ad0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40eedc], ecx
mov eax, dword [esi + 4]
mov dword [0x40eee8], eax
mov edx, dword [esi + 8]
mov dword [0x40eeec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40eee0], esi
cmp ecx, 2
je 0x401bb6
or esi, 0x8000
mov dword [0x40eee0], esi
shl eax, 8
add eax, edx
mov dword [0x40eee4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401bf1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bf1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401c09
cmp eax, 0x20b
je 0x401bf6
mov dword [ebp - 0x1c], esi
jmp 0x401c1d
cmp dword [ecx + 0x84], 0xe
jbe 0x401bf1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401c17
cmp dword [ecx + 0x74], 0xe
jbe 0x401bf1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00403c8e
pop ecx
test eax, eax
jne 0x401c31
push 0x1c
call fcn.00401b32
pop ecx
call fcn.00403b85
test eax, eax
jne 0x401c42
push 0x10
call fcn.00401b32
pop ecx
call fcn.004024fe
mov dword [ebp - 4], esi
call fcn.004037a9
test eax, eax
jge 0x401c5b
push 0x1b
call fcn.00401b0d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410720], eax
call fcn.00403687
mov dword [0x40ef20], eax
call fcn.004035e5
test eax, eax
jge 0x401c81
push 8
call fcn.00401b0d
pop ecx
call fcn.004033b2
test eax, eax
jge 0x401c92
push 9
call fcn.00401b0d
pop ecx
push 1
call fcn.004018fd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401ca8
push eax
call fcn.00401b0d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403355
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401cc9
movzx eax, word [ebp - 0x40]
jmp 0x401ccc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040108d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401cea
push edi
call fcn.00401a2a
call fcn.00401a4c
jmp 0x401d1c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004025c3
ret
push 0x408bf6
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x408bff
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
jmp 0x401b56
Function at 0x407c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
and esp, 0xfffffff8
sub esp, 0x60
lea eax, [fcn.00407c60]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x14fc6a4c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0xf637689
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, edx
xor esi, 0x488ea3f
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], esi
mov word [esp + 0x26], 0x3084
mov dword [esp + 0x4c], 0x236cc83e
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
jmp 0x407d38
mov eax, dword [esp + 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov al, 1
mov ecx, dword [esp + 0x10]
and ecx, 0x71217c14
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
test al, 1
jne 0x407d38
jmp 0x407db6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
or edx, 0x7c601662
mov esi, dword [esp + 0xc]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 0x3c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], edx
sub eax, 0x2e0d8bd9
sbb ecx, 0
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jb 0x407d7a
jmp 0x407dcf
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
mov cx, word [esp + 0x26]
mov dword [esp + 0x38], eax
cmp cx, 0xda2b
jae 0x407cd3
cmp dword [esp + 0x38], 0x5a4d
je 0x407cf4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
sub ecx, 0x1000
and ecx, 0xfffff000
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
jmp 0x407cd3
mov eax, dword [esp + 0x10]
and eax, 0x57eabe1c
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
imul dx, word [esp + 0x48], 0x8527
mov eax, dword [esp + 0x18]
mov word [esp + 0x48], dx
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x4c], esi
cmp dword [eax + ecx], 0x4550
je 0x407dcf
jmp 0x407e2f
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], 0
jmp 0x407cc7
mov eax, dword [esp + 0x10]
and eax, 0x6de03603
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x14a81990
mov edx, dword [esp + 0x10]
sub ecx, edx
mov esi, dword [esp + 0xc]
sbb eax, esi
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
xor edi, 0x725cd1b
or edi, ebx
mov dword [esp], edi
je 0x407d59
jmp 0x407e22
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jmp 0x407cc7
jmp 0x407d59
Function at 0x401140
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x44f0cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401244
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.0041ebeb
add esp, 4
mov edi, eax
lea eax, [ebp - 0x108]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0x43f330
push edi
call fcn.00401520
push 0x43f340
push edi
mov esi, eax
call fcn.00401520
push 0x43f34c
push edi
mov ebx, eax
call fcn.00401520
push 0x43f35c
push edi
mov dword [ebp - 0x110], eax
call fcn.00401520
push 0x43f36c
push edi
mov dword [ebp - 0x10c], eax
call fcn.00401520
add esp, 0x28
mov edi, eax
call fcn.00401c70
push edi
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ebx
push esi
push str._n_s_v_s____s_n_s_n_s_n_n
test eax, eax
je 0x401221
push 1
call fcn.0040ca0b
add esp, 4
push eax
call fcn.00401390
push 1
jmp 0x401233
push 2
call fcn.0040ca0b
add esp, 4
push eax
call fcn.00401390
push 2
call fcn.0040ca0b
push eax
call fcn.0041e31c
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040294b
mov esp, ebp
pop ebp
ret

Function at 0x401260
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44f0cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401364
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.0041ebeb
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x43f278
push edi
call fcn.00401570
push 0x43f294
push edi
mov esi, eax
call fcn.00401570
push 0x43f2ac
push edi
mov ebx, eax
call fcn.00401570
push 0x43f2cc
push edi
mov dword [ebp - 0x214], eax
call fcn.00401570
push 0x43f2ec
push edi
mov dword [ebp - 0x210], eax
call fcn.00401570
add esp, 0x28
mov edi, eax
call fcn.00401c70
push edi
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push ebx
push esi
push 0x43f304
test eax, eax
je 0x401341
push 1
call fcn.0040ca0b
add esp, 4
push eax
call fcn.004013f0
push 1
jmp 0x401353
push 2
call fcn.0040ca0b
add esp, 4
push eax
call fcn.004013f0
push 2
call fcn.0040ca0b
push eax
call fcn.0041e31c
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040294b
mov esp, ebp
pop ebp
ret
Function at 0x401620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x44f0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x90
lea eax, [ebp - 0x94]
xor bl, bl
push 0
push eax
call fcn.004038b0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40168c
cmp dword [ebp - 0x94], 6
ja 0x40167b
jne 0x40168c
cmp dword [ebp - 0x90], 0
jbe 0x40168c
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040294b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040294b
mov esp, ebp
pop ebp
ret

Function at 0x4019a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a10
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401a10
cmp dword [ebp - 8], 0
je 0x401a10
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44f0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push str.SoftwareMicrosoftwindows_ntcurrentversion
xor esi, esi
mov dword [ebp - 0x214], 0x208
push 0x80000002
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401bd0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x4455ec
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401bc4
lea eax, [ebp - 0x20c]
push eax
push str.iotuap
call fcn.0041edac
add esp, 8
mov ecx, 1
test eax, eax
cmove esi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040294b
mov esp, ebp
pop ebp
ret