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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x459220]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4424a5
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4425a7
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x442555
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4425a8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44254a
cmp dword [ebp - 0x24], 1
jne 0x44254a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x44bfe4
push eax
call fcn.0042cbf0
add esp, 0xc
cmp eax, 1
jne 0x44254a
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4425a8
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4425a8
lea ecx, [ebp - 0x18]
push ecx
push 0x4423ed
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4425a8
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4425ce
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0044236e
cmp eax, ebx
pop ecx
pop ecx
jne 0x4425d0
inc edi
cmp edi, esi
jl 0x4425b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0042aa55
leave
ret 4
Function at 0x4425df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x45840c
je 0x44269b
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x442683
mov esi, dword [ebx + 4]
jmp 0x44267d
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44266d
cmp dword [ebp - 0xc], 4
jne 0x44266d
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x442665
or dword [eax + 0x9c], ecx
jmp 0x44266d
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x442631
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x442614
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x442b87
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x447dfe
call fcn.0042c37c
sub esp, 0x11c
mov eax, dword [0x459220]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x442c80
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x442c54
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00405440
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00442b87
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401390
test bl, bl
jne 0x442c54
or dword [ebp - 4], 0xffffffff
jmp 0x442bc5
cmp esi, 0x103
je 0x442c64
cmp esi, 0x3f2
jne 0x442c74
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0042aa55
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x443f55
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x443f8a
cmp edi, dword [esi + 0xc]
jge 0x443f8a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x443f8a
cmp edi, dword [eax + 8]
jge 0x443f8a
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x443f8c
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x444090
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4440c4
jmp fcn.004373bf
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x444135
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44422e
cmp eax, dword [edi + 0xc]
jge 0x44422e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x444186
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x444217
cmp dword [ebp + 0xc], ebx
je 0x444217
jmp 0x4441b0
push 0x10
call fcn.00443e21
cmp eax, ebx
je 0x44419c
mov ecx, eax
call fcn.00444087
mov esi, eax
jmp 0x44419e
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4441c7
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4441d7
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4441e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004373bf
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0042c630
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x444229
cmp ecx, dword [esi + 8]
jge 0x444229
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44422f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402960
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402993
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402993
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x402993
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402993
mov al, 1
ret
xor al, al
ret

Function at 0x403810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
cmp dword [edx + 0x74], 0
jbe 0x403953
cmp word [edx + 0x14], 0x68
jb 0x403953
add edx, 0x78
je 0x403953
mov eax, dword [edi]
push dword [edx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403953
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx + 0x74], 0
jbe 0x403953
cmp word [edx + 0x14], 0x68
jb 0x403953
add edx, 0x78
je 0x403953
mov eax, dword [edi]
push dword [edx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x403953
mov ecx, dword [ebp + 8]
cmp ecx, 0xffff
ja 0x4038b8
movzx ebx, cx
jmp 0x403989
mov eax, dword [edi]
push dword [ebx + 0x20]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov ecx, dword [ebx + 0x18]
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edx
lea ebx, [eax + ecx*4]
cmp eax, ebx
je 0x403953
nop
mov eax, ebx
sub eax, edx
sar eax, 2
mov eax, eax
test eax, eax
jns 0x4038f0
add eax, 1
sar eax, 1
push dword [edx + eax*4]
lea ecx, [edx + eax*4]
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
je 0x403931
mov cl, dl
sub esi, eax
nop dword [eax]
mov dl, cl
cmp cl, byte [eax]
jne 0x403931
mov cl, byte [esi + eax + 1]
inc eax
mov dl, cl
test cl, cl
jne 0x403920
movzx eax, byte [eax]
movzx ecx, dl
sub ecx, eax
je 0x40395e
mov edx, dword [ebp - 8]
test ecx, ecx
cmovle ebx, edx
add edx, 4
test ecx, ecx
cmovle edx, dword [ebp - 4]
mov dword [ebp - 4], edx
cmp edx, ebx
jne 0x4038e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov ebx, dword [ebp - 0x10]
mov esi, dword [eax + 4]
mov ecx, esi
push dword [ebx + 0x24]
call dword [0x5b1854]
mov ecx, edi
call esi
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
sar edx, 2
mov ax, word [eax + edx*2]
add ax, word [ebx + 0x10]
movzx ebx, ax
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 4]
push dword [ecx + 0x1c]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov edx, dword [ebp - 0xc]
movzx ecx, bx
pop edi
pop esi
sub ecx, dword [edx + 0x10]
pop ebx
lea eax, [eax + ecx*4]
mov esp, ebp
pop ebp
ret 4
Function at 0x409100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597eaf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x62cf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x633d10], 0
je 0x40913f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x30
call fcn.00406b5e
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x409171
push 0x30
push 0
push esi
call fcn.0056aed0
add esp, 0xc
mov ecx, esi
push 0
call fcn.004091d0
jmp 0x409173
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x633d10], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 8
xor ecx, ecx
mov edx, esp
mov dword [edx], eax
test eax, eax
je 0x4091a1
cmp word [eax], cx
je 0x4091a1
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x409197
mov dword [edx + 4], ecx
mov ecx, dword [0x633d10]
call fcn.00409450
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b4b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59823c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x62cf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6359c4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x633d68]
cmp eax, dword [ecx + 4]
jg 0x40b505
mov eax, 0x633d44
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x633d68
call fcn.0040b37e
add esp, 4
cmp dword [0x633d68], 0xffffffff
jne 0x40b4f1
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 0
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movups xmm0, xmmword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
push 0x633d68
movups xmmword [0x633d44], xmm0
mov dword [0x633d64], eax
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [0x633d54], xmm0
call fcn.0040b56b
add esp, 4
jmp 0x40b4f1
Function at 0x40bc60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598300
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
push ecx
push 0
push eax
push dword [edi]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40be35
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x40bcda
cmp eax, 2
je 0x40bcda
mov eax, 0x3f4
jmp 0x40be37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40be20
lea ecx, [eax + 3]
cmp ecx, eax
jbe 0x40be1c
xor eax, eax
shr ecx, 1
mov word [ebp - 0x34], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x31]
movq qword [ebp - 0x24], xmm0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040be60
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x38]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40be12
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x40bd60
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.0040bef0
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
cmp eax, 2
jne 0x40be0d
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x40bdf4
lea eax, [edi + 1]
cmp eax, edi
jbe 0x40bdf4
xor ecx, ecx
xorps xmm0, xmm0
lfence
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x31]
push ecx
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x30], xmm0
push ecx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], 0
call fcn.0040be60
push edi
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jb 0x40bddd
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.0040bef0
lea ecx, [ebp - 0x30]
call fcn.0040bf20
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
lea ecx, [ebp - 0x30]
mov esi, 0xa
call fcn.0040bf20
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
test edi, edi
lea ecx, [ebp - 0x24]
mov eax, 0xea
mov esi, 8
cmove esi, eax
call fcn.0040bf20
jmp 0x40be35
mov esi, 0x3f4
lea ecx, [ebp - 0x24]
call fcn.0040bf20
jmp 0x40be35
test eax, eax
jne 0x40be30
push 0
push 0x5b6ea8
mov ecx, ebx
call fcn.00409db0
jmp 0x40be35
mov esi, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 8
Function at 0x40e3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x21c], 0
call fcn.0056aed0
mov bx, word [ebp + 0x10]
xor eax, eax
cmp dword [ebp + 0xc], eax
mov ecx, str.SoftwareAdobeAcrobat_ReaderDCFeatureState
mov dword [ebp - 0x210], 0
sete al
mov dword [ebp - 0x214], 0
movzx esi, ax
test bx, bx
mov eax, str.SoftwareAdobeAdobe_AcrobatDCFeatureState
mov dword [ebp - 0x218], 4
cmovne eax, ecx
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004067bb
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e4ff
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e4ca
cmp dword [ebp - 0x210], 4
jne 0x40e4ca
push dword [ebp - 0x21c]
xor ebx, ebx
cmp dword [ebp - 0x214], ebx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x10], 0
mov ebx, esi
je 0x40e4df
test edi, edi
je 0x40e4df
mov eax, 1
mov word [edi], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
mov eax, esi
test bx, bx
je 0x40e514
test edi, edi
je 0x40e514
mov eax, 1
mov word [edi], ax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret
Function at 0x410760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor bl, bl
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], edx
push 0x400
push eax
call fcn.00410850
add esp, 0x14
test eax, eax
js 0x41083a
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push eax
push 1
push 0
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41083a
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 4
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push dword [ebp - 0x818]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41082e
cmp dword [ebp - 0x808], 4
jne 0x41082e
cmp dword [ebp - 0x80c], eax
mov bl, 1
setne al
mov dword [esi], eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret

Function at 0x412620
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x412643
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412678
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x41266d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4126b5
push 0x635558
push 0x208
call fcn.0041e564
mov esi, eax
add esp, 8
test esi, esi
je 0x4126b5
push 0x208
push 0
push esi
call fcn.0056aed0
push 0
push esi
call fcn.00480b90
add esp, 0x14
test eax, eax
je 0x4126ba
push esi
call fcn.0041e935
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x4126cc
add eax, 0x3e8
push ebx
push 1
push eax
push esi
call fcn.00480d80
xor ebx, ebx
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x412717
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
je 0x412716
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x412703
push 0
push 0xce
jmp 0x41270d
test edi, edi
jne 0x412716
push edi
push 0xcc
push esi
call fcn.00480d80
add esp, 0xc
pop edi
push esi
call fcn.0041e935
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x414540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x414611
test ebx, ebx
je 0x414611
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x414611
push 0x1c
lea eax, [ebp - 0x24]
mov dword [ebp - 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4145a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, 0x40
and eax, 0xf0
lea eax, [ebp - 8]
push eax
mov eax, 4
cmovne eax, ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4145f8
push edi
push ebx
push esi
call fcn.0056a3d0
add esp, 0xc
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016cd
mov esp, ebp
pop ebp
ret