joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40d089
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40d098
pop dword [ebp - 0x1c]
mov eax, 0xfc15b792
add eax, 0x42b1906
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3a307
push 0
mov eax, 0x59d2c466
add eax, 0xa66e1cba
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x68f5dd18
add ecx, 0x970a6e5c
xor esi, esi
add esi, eax
mov edx, 0x780783ac
add edx, 0x8839f454
add edx, dword [ebp - 0x1c]
mov ebx, 0x63bb7b31
add ebx, 0xb20c247c
add dword [ebp - 0x18], 0x7c195a98
mov edi, dword [edx]
sub dword [ebp - 8], 0x926c9781
xor edi, ebx
mov dword [esi], edi
sub dword [ebp - 4], 0xe9fbb9a8
add esi, 0xadf45ef6
add esi, 0x520ba10e
add edx, 4
loop 0x40d0f9
add eax, 0xe5a6f413
sub eax, 0xe5a5d370
xor ebx, ebx
add ebx, eax
add eax, 0xd83e3887
sub eax, 0xd83e3882
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4022cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f018
cmp edx, dword [eax]
je 0x4022ef
add eax, 8
inc ecx
cmp eax, 0x40f0a8
jl 0x4022e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f018]
jne 0x40241d
mov eax, dword [0x40f3dc]
cmp eax, 1
je 0x4023f7
test eax, eax
jne 0x402320
cmp dword [0x40ef6c], 1
je 0x4023f7
cmp edx, 0xfc
je 0x40241d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402357
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40239a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405ba0
push edi
call fcn.00403910
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403720
lea eax, [ebp - 0xa0]
push 0x405b80
push eax
call fcn.00403720
push dword [esi + 0x40f01c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403720
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040387b
add esp, 0x2c
pop edi
jmp 0x40241d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f01c]
push 0
push eax
push dword [esi]
call fcn.00403800
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]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407d00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x41e154
mov ebx, 0x4015d0
lea eax, [ebp - 0x20]
mov edi, ecx
call fcn.00408f70
mov eax, dword [ebp - 0x20]
add esp, 4
cmp dword [ebp - 0xc], 8
jae 0x407d35
lea eax, [ebp - 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xe
mov eax, 0x4015ec
lea ecx, [ebp - 0x20]
call fcn.00408790
push 0
push 0x41e18c
lea ecx, [ebp - 0x20]
call fcn.00408010
push 0x41e154
mov ebx, 0x40160c
lea eax, [ebp - 0x58]
call fcn.00408f70
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d76
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x58]
call fcn.00408790
lea eax, [ebp - 0x58]
push eax
mov ebx, 0x40161c
lea eax, [ebp - 0x3c]
call fcn.00408f70
add esp, 4
push 0xe
mov eax, 0x4015ec
lea ecx, [ebp - 0x58]
call fcn.00408790
lea ecx, [ebp - 0x58]
push 0
push ecx
mov ecx, 0x41e18c
call fcn.00408010
add esp, 8
test al, al
je 0x407ecf
lea edx, [ebp - 0x20]
push 1
push edx
mov edi, 0x40137c
call fcn.00407f40
lea eax, [ebp - 0x20]
push 1
push eax
mov edi, 0x40163c
call fcn.00407f40
lea ecx, [ebp - 0x20]
push 1
push ecx
mov edi, 0x401658
call fcn.00407f40
lea edx, [ebp - 0x20]
push 1
push edx
mov edi, 0x40166c
call fcn.00407f40
lea eax, [ebp - 0x20]
push 1
push eax
mov edi, 0x40167c
call fcn.00407f40
lea ecx, [ebp - 0x20]
push 1
push ecx
mov edi, 0x4016a4
call fcn.00407f40
lea edx, [ebp - 0x20]
push 1
push edx
mov edi, 0x4016b8
call fcn.00407f40
lea eax, [ebp - 0x20]
push 0
push eax
mov edi, 0x4016dc
call fcn.00407f40
add esp, 0x40
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edi, 0x4016f8
call fcn.00407f40
lea edx, [ebp - 0x20]
push 0
push edx
mov edi, 0x401714
call fcn.00407f40
lea eax, [ebp - 0x20]
push 0
push eax
mov edi, 0x401730
call fcn.00407f40
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edi, 0x40174c
call fcn.00407f40
mov eax, dword [ebp - 0x3c]
mov edi, 8
add esp, 0x20
cmp dword [ebp - 0x28], edi
jae 0x407ea4
lea eax, [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x407ed4
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x28], edi
jae 0x407ec0
lea eax, [ebp - 0x3c]
push 1
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
jmp 0x407ed4
mov edi, 8
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x28], edi
jb 0x407ee8
mov edx, dword [ebp - 0x3c]
push edx
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x44], 8
mov edi, 7
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x407f0c
mov ecx, dword [ebp - 0x58]
push ecx
call ebx
add esp, 4
xor edx, edx
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], dx
jb 0x407f2b
mov eax, dword [ebp - 0x20]
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
Function at 0x407f40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x2000
call fcn.0041b20b
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 4
cmp byte [ebp + 0xc], 0
mov esi, eax
jne 0x407f88
cmp dword [0x41e1a0], 8
mov eax, dword [0x41e18c]
jae 0x407f73
mov eax, 0x41e18c
push eax
push 4
push esi
push 0x40135c
push edi
push 0x401390
call ebx
test eax, eax
jne 0x407fcc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x407f93
mov eax, dword [eax]
push eax
push 0x1000
push esi
push 0x40135c
push edi
push 0x401390
call ebx
test eax, eax
je 0x407fcc
cmp dword [0x41e1a0], 8
mov eax, dword [0x41e18c]
jae 0x407fbe
mov eax, 0x41e18c
push eax
push esi
push edi
push 0x401390
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop esi
pop ebx
pop ebp
ret

Function at 0x407fe0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408005
mov dword [edi], 0
mov al, 1
pop esi
ret
mov dword [edi], esi
xor al, al
pop esi
ret

Function at 0x408120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4081b6
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x408182
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4081a3
xor eax, eax
cmp dword [ebp - 0x118], eax
setne al
add eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
Function at 0x4092d0
Capabilities:
Create thread
Hide graphical window

Disassembly:
call fcn.00407c80
test al, al
jne 0x4092f3
mov eax, dword [esi + 4]
push 0x40010
push 0x401464
push 0x401834
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
ret
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ff
push ecx
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x14]
push 0x3fc
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov eax, dword [esi + 0x14]
push 0x3fd
push eax
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 0x14]
push 0x401
push eax
call edi
push 1
push eax
call ebx
mov eax, dword [esi + 0x14]
push 0x3fe
push eax
call edi
mov edi, eax
push 1
push edi
call ebx
push 0
push 1
push 0x40a
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push esi
push 0x409a60
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
pop edi
mov dword [esi + 0x38], eax
pop ebx
test eax, eax
jne 0x4093ac
mov edx, dword [esi + 4]
push 0x40010
push 0x401464
push 0x40186c
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
ret
Function at 0x409b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push edi
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00409af0
mov ecx, ebx
mov ebx, dword [esi + 0x3c]
add esp, 4
lea eax, [ebp - 0x28]
call fcn.00418570
mov ebx, eax
test ebx, ebx
je 0x409be4
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
push 0x401a0c
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x409c61
lea ebx, [ebx]
push eax
mov eax, dword [esi + 0x40]
push 0x4000
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, 0x4000
jae 0x409c30
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x409c4f
test edi, edi
je 0x409c52
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
push edx
mov eax, edi
call fcn.004185e0
mov ebx, eax
test ebx, ebx
js 0x409c4f
jne 0x409c52
mov eax, dword [ebp - 0x2c]
jmp 0x409c00
or ebx, 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
jmp 0x409c64
or ebx, 0xffffffff
mov eax, dword [esi + 0x3c]
call fcn.00418bb0
test eax, eax
jne 0x409bd2
mov ecx, dword [ebp - 4]
test ebx, ebx
sete al
pop edi
xor ecx, ebp
pop ebx
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
Function at 0x40c420
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3fe
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 0x3fd
push edi
call ebx
push eax
call esi
push 0
push 0x3f9
push edi
call ebx
push eax
call esi
push 0
push 0x3fa
push edi
call ebx
push eax
call esi
push 0
push 0
push 0xf0
push 0x3fa
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call esi
cmp eax, 1
jne 0x40c4b6
mov byte [0x41e575], al
call fcn.004117c0
test eax, eax
je 0x40c4f7
mov dword [0x41e568], 3
push 0
push 0
push 0x41e568
push 0x410ca0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
push 0
push 0xfa
mov dword [0x41e56c], eax
push 1
jmp 0x40c5ca
cmp dword [0x41e668], 0
jne 0x40c534
cmp dword [0x41e684], 0
jne 0x40c534
cmp dword [0x41e6d8], 0
jne 0x40c534
cmp dword [0x41e6a0], 0
jne 0x40c528
cmp dword [0x41e6bc], 0
je 0x40c5d1
mov dword [0x41e568], 2
jmp 0x40c4c9
push edi
call fcn.004108d0
add esp, 4
mov dword [0x41e56c], eax
test eax, eax
jne 0x40c5c1
mov dword [ebp - 0x10], eax
mov word [ebp - 0x20], ax
push 0x22
mov eax, 0x401fa8
lea esi, [ebp - 0x20]
mov dword [ebp - 0xc], 7
call fcn.004088c0
mov eax, dword [ebp - 0x20]
mov esi, 8
cmp dword [ebp - 0xc], esi
jae 0x40c573
lea eax, [ebp - 0x20]
push 0x40010
push 0x401968
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [0x41e528]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [0x41e52c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [ebp - 0xc], esi
jb 0x40c5bb
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xfa
push 2
push edi
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push 0x3fc
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00411750
neg eax
sbb eax, eax
and eax, 0xffffffce
add eax, 0x32
push eax
push 1
push 0x40a
push 0x3fc
push edi
call ebx
push eax
call esi
push 0
push 0
push 0x160c
push 0x3fd
push edi
call ebx
push eax
call esi
push 0x401ff0
push 0x3fd
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0
push 0xf0
push 0x3f9
push edi
call ebx
push eax
call esi
pop esi
pop ebx
cmp eax, 1
je 0x40c666
cmp dword [0x41e6f8], 8
mov eax, dword [0x41e6e4]
mov dword [0x41e6f4], 0
jae 0x40c661
mov eax, 0x41e6e4
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
Function at 0x4113e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 0x14], 8
mov esi, ecx
jb 0x411404
mov eax, dword [edi]
jmp 0x411406
mov eax, edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b20b
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x8c], ecx
add esp, 4
mov word [esi], dx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x88], eax
jb 0x41144f
mov edi, dword [edi]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [ebp - 0x88]
test eax, eax
je 0x4114ea
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0x402fb0
push ebx
call edi
mov eax, dword [ebp - 0x88]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [ebp - 0x84]
push 0x402fe8
push ecx
or edx, 0xffffffff
call fcn.00412600
add esp, 0x10
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push ebx
call edi
cmp dword [ebp - 0x90], 0
je 0x4114ea
mov eax, dword [ebp - 0x8c]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4114d5
sub ecx, edi
sar ecx, 1
push ecx
call fcn.004088c0
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret

Function at 0x411510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x403038
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 2
mov eax, 0x403090
mov word [esi], cx
call fcn.004088c0
test edi, edi
jne 0x4115c0
jmp 0x411570
mov eax, dword [ebp - 0x208]
push 0xff
lea edx, [ebp - 0x204]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp word [ebp - 0x204], 0x76
mov edi, eax
jne 0x4115bb
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4115a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x204]
call fcn.004088c0
inc ebx
test edi, edi
je 0x411570
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
xor ecx, ecx
call fcn.004089b0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
Function at 0x4116a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4116f7
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x14]
push edx
push 0x12
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4116ed
cmp dword [ebp - 0x14], 1
je 0x4116ed
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 8]
push edx
push 1
push 0
push 0x4030b0
push 0x80000002
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x403124
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
mov esp, ebp
pop ebp
ret

Function at 0x411750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41e0f0]
cmp eax, 0xffffffff
jne 0x4117a9
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
mov dword [0x41e0f0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
Function at 0x4117c0
Capabilities:
Compare security identifiers
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41e0f4]
cmp eax, 0xffffffff
jne 0x411928
push edi
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 8
mov dword [0x41e0f4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411922
lea ecx, [ebp - 0x18]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], edi
mov word [ebp - 8], 0x500
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4118de
mov eax, dword [ebp - 0x18]
push 0x41e0f4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4118d4
mov edx, dword [ebp - 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x10]
push ecx
push edi
push edi
push 2
push edx
mov dword [0x41e0f4], edi
call ebx
test eax, eax
jne 0x4118d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4118d3
mov eax, dword [ebp - 0x10]
push esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x4118d2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push edx
push esi
push 2
push eax
call ebx
test eax, eax
je 0x4118cb
cmp dword [esi], edi
jbe 0x4118cb
lea ebx, [esi + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4118bf
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4118a4
jmp 0x4118c9
mov dword [0x41e0f4], 1
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [0x41e0f4], edi
je 0x411918
call fcn.00411750
test eax, eax
je 0x411918
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x12
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x411918
cmp dword [ebp - 0x1c], 3
jne 0x411918
mov dword [0x41e0f4], edi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41e0f4]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret