joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x4508b4]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x406143
push 0x4508b4
call fcn.00422a27
add esp, 4
cmp dword [0x4508b4], 0xffffffff
jne 0x406143
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x4508b0], eax
push 0x4508b4
call fcn.00422a79
add esp, 4
mov esi, dword [0x4508b0]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x406160
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x4508ac]
cmp ecx, dword [eax + 4]
jg 0x406223
mov ecx, dword [0x4508a8]
lea eax, [ebx + edi]
dec eax
xor edx, edx
div ecx
mov edi, eax
mov eax, ebx
xor edx, edx
div ecx
inc edi
sub edi, eax
je 0x40620f
mov ebx, eax
lea eax, [esi + 4]
mov dword [ebp - 0x3c], eax
imul ebx, ecx
cmp edi, 1
adc edi, 0
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x34]
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x406264
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x406274
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], ebx
inc dword [esi + 8]
mov ecx, dword [ebp - 0x40]
add ebx, ecx
dec edi
jne 0x4061dd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4508ac
call fcn.00422a27
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x4061ae
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
add esp, 4
jmp 0x4061ae
mov dword [ebp - 0x34], 0
mov ecx, esi
call fcn.00423ce0
jmp 0x40620f
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
push 1
call fcn.00427650
test al, al
je 0x40626b
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
jmp 0x4061fa
Function at 0x408450
Capabilities:
Parse pe header

Disassembly:
mov eax, ecx
mov ecx, 0x400000
xor edx, edx
and ecx, 0xfffffffc
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov byte [eax + 0xc], 0
je 0x4084d9
push ebp
mov ebp, esp
push edi
push esi
movzx ecx, word [ecx]
cmp ecx, 0x5a4d
jne 0x4084d6
mov edx, 0x400000
and edx, 0xfffffffc
mov esi, dword [edx + 0x3c]
lea ecx, [edx + esi]
mov dword [eax + 4], ecx
cmp dword [edx + esi], 0x4550
jne 0x4084d6
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x4084d6
mov edx, dword [ecx + 0x50]
cmp edx, 0x138
jb 0x4084d6
mov esi, 0x400000
and esi, 0xfffffffc
add esi, edx
dec esi
mov dword [eax + 8], esi
mov esi, dword [ecx + 0x74]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
cmp edi, 2
jb 0x4084d6
cmp dword [ecx + 0x80], edx
setae byte [eax + 0xc]
pop esi
pop edi
pop ebp
ret

Function at 0x4084e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x450010]
xor eax, ebp
mov dword [esp + 0x10], eax
mov eax, esp
mov dword [eax], 4
lea edi, [esp + 0xc]
push eax
push edi
push 0
push 0x18
push ecx
push str.SOFTWAREPoliciesMozillaFirefox
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [edi], 1
sete bl
test eax, eax
je 0x4085bc
mov dword [esp + 0xc], 8
push edi
lea eax, [esp + 4]
push eax
push 0
push 0x48
push esi
push str.SOFTWAREPoliciesMozillaFirefox
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [esp]
xor ecx, 1
or ecx, dword [esp + 4]
sete bl
test eax, eax
je 0x4085bc
mov dword [esp], 4
mov eax, esp
push eax
push edi
push 0
push 0x18
push esi
push str.SOFTWAREPoliciesMozillaFirefox
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [esp + 0xc], 1
sete bl
test eax, eax
je 0x4085bc
mov dword [esp + 0xc], 8
push edi
lea eax, [esp + 4]
push eax
push 0
push 0x48
push esi
push str.SOFTWAREPoliciesMozillaFirefox
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [esp]
xor ecx, 1
or ecx, dword [esp + 4]
or ecx, eax
sete bl
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x450010]
xor ecx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 8
cmp dword [eax + 0x14], 8
jb 0x408b6d
mov eax, dword [eax]
lea ecx, [esp + 4]
lea edi, [esp + 8]
mov ebx, esp
push ecx
push edi
push ebx
push 0
push eax
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408ba6
cmp dword [esp], 0xb
jne 0x408bca
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x10], 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
jmp 0x408bb5
cmp eax, 2
jne 0x408be4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov byte [esi + 0x10], 0
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x10], 1
mov dword [esi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [esi + 4], 0x43
mov dword [esi + 8], 0x8007065d
jmp 0x408bb5
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [esi + 0x10], 1
mov dword [esi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [esi + 4], 0x3f
mov dword [esi + 8], ecx
jmp 0x408bb5
Function at 0x40a5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
cmp dword [ecx], edi
je 0x40a616
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40a620
lea eax, [edi + 1]
cmp eax, 2
jb 0x40a60d
mov dword [esi], edi
call fcn.0040a710
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
call fcn.0040a720
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
push dword [ebp + 8]
call ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0040a710
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
call fcn.0040a720
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
call edi
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
call fcn.0040a720
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
mov edi, dword [ebp + 8]
push dword [ebp - 0x10]
call ebx
mov dword [esi], 0
jmp 0x40a5d3
Function at 0x40a970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, ecx
mov eax, dword [0x450010]
xor eax, ebp
mov dword [esp + 0xc0], eax
mov eax, dword [0x450054]
cmp eax, 0xffffffff
je 0x40a9a4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x40a9a9
call fcn.0040ab30
mov eax, dword [0x451538]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40aa02
push 0x451538
call fcn.00422a27
add esp, 4
cmp dword [0x451538], 0xffffffff
jne 0x40aa02
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0040a920
mov dword [0x451534], edi
push 0x451538
call fcn.00422a79
add esp, 4
mov edi, dword [0x451534]
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x450930]
inc eax
xor ecx, ecx
lea edx, [eax + ecx]
movzx edx, dl
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x450934], 0
jne 0x40aaa1
lea eax, [ebx*4 + 0x450934]
mov dword [eax], 1
lea eax, [edx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x450938], ecx
mov dword [0x450930], edx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x45093c]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x40aab0
mov eax, dword [esi]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
cmp eax, 0xff
jg 0x40aaea
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.004230e0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc ecx
cmp ecx, 0x100
jne 0x40aa17
jmp 0x40aa5a
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.0042b7f0
add esp, 0xc
test eax, eax
je 0x40aa74
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x196
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0042b520
mov ecx, edi
call fcn.0042b5b0
jmp 0x40aa74
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.0042b7f0
add esp, 0xc
test eax, eax
je 0x40aa89
lea esi, [esp + 8]
mov ecx, esi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0042b520
mov ecx, esi
call fcn.0042b5b0
jmp 0x40aa89
Function at 0x40af40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov esi, edx
mov edi, ecx
mov eax, dword [0x450010]
xor eax, ebp
mov dword [esp + 0x18], eax
cmp byte [0x4508a4], 1
je 0x40b094
cmp dword [edi + 0x20], 0
je 0x40b02c
cmp byte [edi + 8], 0
je 0x40afc2
movsd xmm0, qword [edi]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.00408a40
movsd xmm0, qword [esp]
movsd qword [esp + 8], xmm0
cmp dword [eax + 0x14], 8
jb 0x40af9b
mov eax, dword [eax]
lea ecx, [esp + 8]
push 8
push ecx
push 0xb
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b0aa
cmp byte [edi + 8], 0
je 0x40afc2
mov byte [edi + 8], 0
cmp byte [edi + 0x18], 0
je 0x40b013
movsd xmm0, qword [edi + 0x10]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.00408d20
movsd xmm0, qword [esp]
movsd qword [esp + 8], xmm0
cmp dword [eax + 0x14], 8
jb 0x40afec
mov eax, dword [eax]
lea ecx, [esp + 8]
push 8
push ecx
push 0xb
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b0aa
cmp byte [edi + 0x18], 0
je 0x40b013
mov byte [edi + 0x18], 0
mov byte [esi + 0xc], 0
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x24
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x445280]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 4], str.SOFTWAREMozillaFirefoxLauncher
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b0d1
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x40b0f3
mov dword [edi + 0x20], ebx
mov eax, dword [esp + 8]
dec eax
cmp eax, 1
jbe 0x40af72
mov eax, 0xb4
mov ecx, 0x80070507
jmp 0x40b0e4
cmp byte [edi + 0x18], 0
je 0x40b09e
mov byte [edi + 0x18], 0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [edi], xmm0
jmp 0x40b013
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [esi + 0xc], 1
mov dword [esi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [esi + 4], 0x79
mov dword [esi + 8], ecx
jmp 0x40b017
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0xa5
mov byte [esi + 0xc], 1
mov dword [esi], str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov dword [esi + 4], eax
jmp 0x40b0c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b077
Function at 0x40e370
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov ebx, edx
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 8]
cmp edi, edx
ja 0x40e4cf
mov esi, ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x3c], eax
cmp ebx, 0x11
mov eax, 0x10
cmovae eax, ebx
mov ebx, eax
sub ebx, edi
jbe 0x40e3f0
mov ecx, dword [esi + 0xc]
sub ecx, edi
mov eax, edi
cmp ecx, ebx
jae 0x40e3c8
mov ecx, dword [ebp - 0x3c]
push ebx
call fcn.0040e270
test al, al
je 0x40e56c
mov eax, dword [esi + 8]
test ebx, ebx
jle 0x40e3ee
mov ecx, dword [esi + 4]
lea edx, [ecx + eax]
add eax, ecx
inc eax
lea ecx, [ebx + edx]
cmp ecx, eax
cmova eax, ecx
sub eax, edx
push eax
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [esi + 8]
add eax, ebx
mov dword [ebp - 0x40], edi
mov dword [esi + 8], eax
mov edx, dword [esi]
cmp dword [edx], 0
mov dword [ebp - 0x4c], esi
je 0x40e565
mov edi, dword [esi + 0x20]
mov eax, dword [ebp - 0x40]
add edi, eax
mov esi, dword [esi + 4]
add esi, eax
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x4508ac]
cmp ecx, dword [eax + 4]
jg 0x40e4f9
add ebx, edi
cmp ebx, edi
jbe 0x40e565
mov eax, dword [0x4508a8]
mov dword [ebp - 0x38], eax
dec eax
mov dword [ebp - 0x48], eax
mov ecx, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], 0
mov eax, ebx
sub eax, edi
lea esi, [ebp - 0x34]
push esi
push eax
push ecx
push edi
push dword [edx]
mov esi, edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40e543
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
lea ecx, [ebx + eax]
inc ecx
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi + 8]
mov edi, ecx
sub edi, eax
jbe 0x40e4c2
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, edi
jb 0x40e4e3
test edi, edi
jle 0x40e4be
mov edx, dword [esi + 4]
lea ecx, [edx + eax]
mov dword [ebp - 0x3c], ebx
lea ebx, [edi + eax]
add ebx, edx
add eax, edx
inc eax
cmp ebx, eax
cmovbe ebx, eax
sub ebx, ecx
push ebx
mov ebx, dword [ebp - 0x3c]
push 0
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [esi + 8]
add eax, edi
mov ecx, eax
add ebx, dword [ebp - 0x40]
mov dword [esi + 8], ecx
mov eax, dword [esi + 4]
mov byte [eax + ebx], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x3c]
push edi
call fcn.0040e270
test al, al
je 0x40e577
mov eax, dword [esi + 8]
jmp 0x40e490
push 0x4508ac
mov dword [ebp - 0x38], edx
call fcn.00422a27
mov edx, dword [ebp - 0x38]
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x40e432
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
mov edx, dword [ebp - 0x38]
add esp, 4
jmp 0x40e432
mov edx, dword [ebp - 0x38]
mov eax, edx
neg eax
and eax, ebx
mov ecx, ebx
sub ecx, edx
test dword [ebp - 0x48], ebx
cmovne ecx, eax
mov ebx, ecx
cmp ecx, edi
mov edx, esi
mov ecx, dword [ebp - 0x44]
ja 0x40e44d
xor ebx, ebx
jmp 0x40e474
int3
int3
Function at 0x40e600
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x44], edx
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [0x4502e0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [ebp + 8]
mov ecx, dword [0x4508ac]
cmp ecx, dword [eax + 4]
jg 0x40e6d8
mov ecx, dword [0x4508a8]
lea eax, [edi + ebx]
dec eax
xor edx, edx
div ecx
mov ebx, eax
mov eax, edi
xor edx, edx
div ecx
inc ebx
sub ebx, eax
je 0x40e6c4
mov edi, eax
lea eax, [esi + 4]
mov dword [ebp - 0x3c], eax
imul edi, ecx
cmp ebx, 1
adc ebx, 0
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
je 0x40e720
lea edx, [ebp - 0x34]
push edx
push 0x40
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40e719
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x40e729
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 8]
mov ecx, dword [ebp - 0x40]
add edi, ecx
dec ebx
jne 0x40e684
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4508ac
call fcn.00422a27
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x40e655
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
add esp, 4
jmp 0x40e655
mov dword [ebp - 0x34], 0
mov ecx, esi
call fcn.0040e750
jmp 0x40e6c4
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
push 1
call fcn.00427650
test al, al
je 0x40e720
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
jmp 0x40e6af
Function at 0x40e750
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4508ac]
mov ecx, dword [0x4502e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40e7dc
mov edi, dword [esi + 8]
test edi, edi
je 0x40e7c3
mov eax, dword [0x4508a8]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
shl edi, 3
xor ebx, ebx
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40e7bc
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x38]
push dword [ecx + ebx]
push dword [ebp - 0x3c]
push dword [ecx + ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
add ebx, 8
cmp edi, ebx
jne 0x40e79c
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004230e0
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4508ac
call fcn.00422a27
add esp, 4
cmp dword [0x4508ac], 0xffffffff
jne 0x40e782
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x4508a8], eax
push 0x4508ac
call fcn.00422a79
add esp, 4
jmp 0x40e782
Function at 0x413590
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x450010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [edi], 0
je 0x41360b
mov eax, dword [0x4508e0]
xor ecx, ecx
lea edx, [ebp - 0x18]
mov dword [edx], ecx
lea ebx, [ebp - 0x14]
mov dword [ebx], ecx
push 4
push ecx
push 2
push ebx
push ecx
push ecx
push ecx
push edx
push 0xffffffffffffffff
push eax
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x4135e1
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x413614
cmp dword [ebx + 0x18], 0
je 0x41363d
mov byte [esi + 0xc], 1
mov dword [esi], str._builds_worker_checkouts_gecko_browser_app_winlauncher_freestanding_SharedSection.cpp
mov dword [esi + 4], 0xd8
mov dword [esi + 8], 0x8007139f
jmp 0x413692
mov byte [esi + 0xc], 0
jmp 0x4136b1
call sub.ntdll.dll_RtlGetLastWin32Error
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [esi + 0xc], 1
mov dword [esi], str._builds_worker_checkouts_gecko_browser_app_winlauncher_freestanding_SharedSection.cpp
mov dword [esi + 4], 0xd1
mov dword [esi + 8], ecx
jmp 0x413692
movzx eax, byte [ebp + 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [edi]
cmp eax, 0xfe0
ja 0x41367a
lea ecx, [ebx + 0x20]
push eax
push dword [edi + 4]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [edi]
test eax, eax
je 0x41367a
cmp eax, 0x19
mov ecx, 0x18
cmovae ecx, eax
add ecx, 0x20
mov dword [ebx + 0x18], ecx
mov byte [esi + 0xc], 0
jmp 0x413692
mov byte [esi + 0xc], 1
mov dword [esi], str._builds_worker_checkouts_gecko_browser_app_winlauncher_freestanding_SharedSection.cpp
mov dword [esi + 4], 0xe1
mov dword [esi + 8], 0x8007007a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4136b1
push eax
push 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x4136b1
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004230e0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret