joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414a74
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x41d048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x41d554]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x41d4dc]
cmp eax, dword [ecx + 4]
jg 0x406f64
mov eax, dword [0x41d4d8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret
push 0x41d4dc
call fcn.00412d9a
add esp, 4
cmp dword [0x41d4dc], 0xffffffff
jne 0x406f45
xor ebx, ebx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call fcn.004065b0
test eax, eax
je 0x406fbf
mov eax, str.SOFTWAREPoliciesAdobeAcrobat_Reader_
lea ecx, [ebx + 0x27]
jmp 0x406fcb
mov eax, str.SOFTWAREPoliciesAdobeAdobe_Acrobat_
mov ecx, 0x26
jmp 0x406fcb
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00408510
push 2
push 0x41702c
lea ecx, [ebp - 0x28]
call fcn.00408390
push 0x1c
push str.FeatureLockDowncSharePoint
lea ecx, [ebp - 0x28]
call fcn.00408390
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
push 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40704b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.bDisableSharePointFeatures
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407040
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
setne bl
jmp 0x407040
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40704b
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x407095
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x407085
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407085
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00412a01
add esp, 8
mov byte [ebp - 4], 0
jmp 0x407095
test ebx, ebx
jne 0x4070b0
push ebx
push str.bEnableSharePointInChromeExtn
call fcn.00406920
add esp, 8
test eax, eax
je 0x4070b0
lea eax, [ebx + 1]
jmp 0x4070b4
xor eax, eax
jmp 0x4070b4
push 0x41d4dc
mov dword [0x41d4d8], eax
call fcn.00412d50
add esp, 4
jmp 0x406f45
Function at 0x40d9a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
push 0
push 0x40daa0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
xor bl, bl
push eax
mov byte [ebp - 1], bl
call sub.USER32.dll_DdeInitializeW
test eax, eax
jne 0x40da99
push esi
push edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.USER32.dll_DdeCreateStringHandleW
push 0
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp - 8]
call sub.USER32.dll_DdeCreateStringHandleW
push 0
mov esi, eax
push esi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
call sub.USER32.dll_DdeConnect
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x40da3d
push dword [ebp - 8]
call sub.USER32.dll_DdeGetLastError
push edi
push esi
push ebx
push dword [ebp - 8]
call sub.USER32.dll_DdeConnect
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, 0xea60
jbe 0x40da06
test edi, edi
jne 0x40da3d
push dword [ebp - 8]
call sub.USER32.dll_DdeGetLastError
jmp 0x40da75
mov esi, dword [ebp + 0x10]
push 0
push 0x2710
push 0x4050
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
call sub.USER32.dll_DdeClientTransaction
test eax, eax
push edi
setne byte [ebp - 1]
call sub.USER32.dll_DdeDisconnect
mov esi, dword [ebp - 0x10]
push ebx
push dword [ebp - 8]
call sub.USER32.dll_DdeFreeStringHandle
push esi
push dword [ebp - 8]
call sub.USER32.dll_DdeFreeStringHandle
push dword [ebp - 8]
call sub.USER32.dll_DdeUninitialize
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4152a1
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x41d048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x454], esi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x41d484]
add esp, 0xc
lea ecx, [ecx + 0x74]
call fcn.00410d15
test eax, eax
je 0x40dd0e
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40dd0e
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4178e0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40dd0e
push 1
push 0x40
push 0x20
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x504]
call fcn.0040a660
mov ecx, dword [0x41d484]
mov dword [ebp - 4], 0
lea ecx, [ecx + 0x74]
call fcn.00410d91
mov edx, eax
mov dword [ebp - 0x428], 0
mov ecx, edx
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc10
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00403200
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004032d0
add esp, 8
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push 0
push dword [ebp - 0x440]
cmovae eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x504]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [ebp - 0x500]
call fcn.0040e1f0
test eax, eax
jne 0x40dc96
push eax
mov eax, dword [ebp - 0x504]
lea ecx, [ebp - 0x504]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x450]
call fcn.00403100
mov edx, dword [ebp - 0x424]
cmp edx, 0x10
jb 0x40dce1
mov ecx, dword [ebp - 0x438]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x40dcd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40dcd7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00412a01
add esp, 8
lea ecx, [ebp - 0x504]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0040af50
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408510
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret
Function at 0x40dd70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41d048]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40de38
cmp byte [edi + 0x3d], 0
je 0x40de38
mov eax, dword [edi]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4163c4]
mov ecx, edi
call esi
cmp eax, 0xffffffff
je 0x40de26
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40dded
sub eax, 1
je 0x40ddf1
sub eax, 2
jne 0x40de26
mov byte [edi + 0x3d], al
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40de0f
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40de26
cmp byte [edi + 0x3d], 0
pop esi
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.004129c0
mov esp, ebp
pop ebp
ret
Function at 0x40e290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41d048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40e2c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40e2f0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40e2f0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40e3ea
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40e319
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40e34d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40e3ea
cmp eax, 1
jle 0x40e3ab
cmp eax, 3
jne 0x40e3ea
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00409ce0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e3c9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40e3ea
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x40e3ea
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004129c0
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x40ed26
jl 0x40ed1a
test esi, esi
jne 0x40ed26
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40ed3f
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ed52
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x40ed54
xor eax, eax
mov dword [ebp - 8], esi
test eax, eax
je 0x40ed8c
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x40ed92
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ee3f
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40edbd
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov edx, eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
cmp eax, 0xfff
jbe 0x40edfe
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
mov dword [ebp - 8], edi
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40ee2c
cmp edi, eax
ja 0x40edd0
cmp dword [ebp - 8], 0
jbe 0x40ee42
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 8]
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 8]
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ee60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40ee85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40eea6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40eea8
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x40ef26
jg 0x40eebb
test esi, esi
je 0x40ef26
test ecx, ecx
jl 0x40eeff
jg 0x40eec5
test eax, eax
je 0x40eeff
cmp edi, ecx
jg 0x40eed7
jl 0x40eecf
cmp esi, eax
jae 0x40eed7
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 8]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40ef02
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40ef26
jg 0x40ef0c
test esi, esi
je 0x40ef26
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40ef26
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
je 0x40f816
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SoftwareAdobeAdobe_AcrobatDCSecurity
push 0x80000002
lea esi, [ebx + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f816
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push ebx
push 0x4179c8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f805
cmp dword [ebp - 4], eax
cmove esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f8d6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwarePoliciesAdobeAdobe_AcrobatDCFeatureLockDown
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f87f
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bEnableATL7Compat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f876
cmp dword [ebp - 8], 4
jne 0x40f876
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f8c7
push str.SetProcessDEPPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40f8c7
test edi, edi
je 0x40f8b5
mov eax, esi
xor eax, 1
lea eax, [eax*2 + 1]
jmp 0x40f8b7
xor eax, eax
push eax
call dword [0x4163c4]
call dword [ebp - 0x10]
mov ebx, eax
test ebx, ebx
jne 0x40f928
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40f8df
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.NtSetInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40f928
lea esi, [esi*4 + 9]
test edi, edi
jne 0x40f902
mov esi, 2
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x22
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp - 0xc]
mov ecx, esi
push eax
call dword [0x4163c4]
call esi
xor ebx, ebx
test eax, eax
setns bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410730
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x417588
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 1
call fcn.0040f7a0
add esp, 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
je 0x4107c0
push 0
push 1
push 5
call fcn.0040f6e0
add esp, 0xc
test al, al
je 0x4107c0
push 0
push 0
push 6
call fcn.0040f6e0
add esp, 0xc
test al, al
jne 0x4107c0
mov dword [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__get_heap_handle]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
test edi, edi
je 0x4107ad
push 4
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test esi, esi
je 0x4107c0
push 4
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40f940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 2
test esi, esi
jne 0x4107e5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x40f6c0
push 0x64
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x41d4f8], 0x258
mov edi, eax
jae 0x41085c
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x410838
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x41d484], 0
je 0x410850
mov dword [0x41d4f8], 0
call fcn.0040cb20
cmp dword [0x41d4f8], 0x258
jb 0x410810
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00407fc0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128