joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2e3
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0x24], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0040d518
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
call fcn.00409f9e
push 0x118
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], 0x11c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
call fcn.0040d55b
mov dword [esi], eax
lea edi, [ebp - 0x150]
movzx eax, word [ebp - 0x14]
add esp, 4
mov dword [esi + 0x1c], eax
movzx eax, word [ebp - 0x12]
mov dword [esi + 0x20], eax
push 9
pop eax
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x150]
xor edi, edi
movzx eax, cx
inc edi
push 2
pop edx
test eax, eax
je 0x40d3c8
cmp eax, 6
je 0x40d3c3
cmp eax, 9
jne 0x40d3cb
mov dword [esi + 0x24], edi
jmp 0x40d3cb
mov dword [esi + 0x24], edx
jmp 0x40d3cb
mov dword [esi + 0x24], ebx
cmp dword [ebp - 0x124], 6
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x134]
mov dword [esi + 0x2c], eax
je 0x40d443
cmp dword [ebp - 0x124], 0xa
je 0x40d443
cmp dword [ebp - 0x124], 5
jne 0x40d496
cmp dword [ebp - 0x120], edx
jne 0x40d42a
cmp byte [ebp - 0xe], 1
jne 0x40d416
push 9
pop eax
cmp cx, ax
je 0x40d4c0
mov ax, word [ebp - 0x10]
not ax
movzx eax, ax
shr eax, 0xe
and eax, edx
mov dword [esi + 0x18], eax
jmp 0x40d499
cmp dword [ebp - 0x120], edi
jne 0x40d496
mov ax, word [ebp - 0x10]
not ax
movzx eax, ax
shr eax, 9
and eax, edi
jmp 0x40d425
push str.GetProductInfo
push 0x4233e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x120]
push dword [ebp - 0x124]
call eax
mov eax, dword [ebp - 0x12c]
cmp eax, 0xf
ja 0x40d4ac
cmp eax, 0xc
jae 0x40d4c5
cmp eax, edi
je 0x40d4c0
cmp eax, 4
je 0x40d4c0
cmp eax, 6
je 0x40d4c0
jbe 0x40d496
cmp eax, 0xa
jbe 0x40d4c5
mov dword [esi + 0x18], ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret
cmp eax, 0x11
jb 0x40d496
cmp eax, 0x12
jbe 0x40d4c5
cmp eax, 0x19
je 0x40d4c5
cmp eax, 0x30
jne 0x40d496
mov dword [esi + 0x18], edi
jmp 0x40d499
mov dword [esi + 0x18], 2
jmp 0x40d499
Function at 0x40ddba
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x40ddd9
xor al, al
jmp 0x40de32
push ebx
jmp 0x40de1d
cmp eax, 0x80
je 0x40de2f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x40de2f
mov ecx, esi
call fcn.0040de3b
mov bl, al
test bl, bl
je 0x40de0c
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x40de2f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40de2f
test bl, bl
jne 0x40de37
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40dddc
xor al, al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x40de31
Function at 0x40e152
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040d4ce
cmp dword [eax + 0x30], 1
je 0x40e174
mov al, 1
jmp 0x40e26a
push esi
push esi
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
call esi
push eax
lea ecx, [ebx + 8]
call fcn.00408fc3
xor eax, eax
push eax
push eax
push 1
push eax
call esi
push eax
lea ecx, [ebx + 0xc]
call fcn.00408fc3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebx]
lea edx, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
push 0
push 0x100002
push edx
push dword [ecx]
mov dword [ebp - 4], eax
push dword [ebx + 8]
push eax
call edi
test eax, eax
jne 0x40e1cd
xor al, al
jmp 0x40e26a
mov eax, dword [ebx]
lea ecx, [ebp - 0xc]
push 0
push 0
push 0x100002
push ecx
push dword [eax]
push dword [ebx + 0xc]
push dword [ebp - 4]
call edi
test eax, eax
je 0x40e1c6
mov eax, dword [ebx]
mov ecx, 0x1000
push 0x40
push ecx
push ecx
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40e1c6
push 0x2c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
push ecx
push 0x10
lea ecx, [ebp - 0x40]
push ecx
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40e1c6
cmp dword [ebp - 0x10], 0x10
jne 0x40e1c6
push esi
mov ecx, ebx
call fcn.0040df1b
test al, al
je 0x40e1c6
mov ecx, ebx
call fcn.0040ddba
test al, al
je 0x40e1c6
mov eax, dword [ebx]
mov edx, esi
mov ecx, dword [eax]
call fcn.0040de90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4157ee
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp - 0x68], edi
jne 0x41581d
cmp dword [ebx + 8], edi
jne 0x41584b
mov al, 1
jmp 0x415969
push edi
push 0x423954
push 1
push str.NtMapViewOfSection
mov esi, 0x4239e8
push esi
call fcn.00415147
push 1
push 0x423998
push 1
push str.NtUnmapViewOfSection
push esi
mov ecx, ebx
call fcn.00415147
mov eax, dword [ebx]
push 1
push 0x2000
push 0x10000
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
mov dword [ebp - 0x60], eax
call edi
mov esi, eax
mov eax, dword [ebx + 8]
shl eax, 6
add eax, 0x50
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.00415382
mov ecx, eax
mov edx, 0xfffff000
and ecx, edx
and eax, 0xfff
add esi, ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x64]
push 0x40
push 0x1000
add ecx, 0xfff
and ecx, edx
push ecx
push esi
push dword [ebp - 0x60]
call edi
mov esi, eax
test esi, esi
jne 0x4158ca
push ecx
push 0x19f
push str.c:_builds_moz2_slave_m_esr52_w32_000000000000000000_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea ecx, [ebp - 0x124]
call fcn.00409fb4
xor ecx, ecx
inc ecx
jmp 0x4158cd
mov ecx, dword [ebp - 0x68]
test cl, 1
je 0x4158e6
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x11c]
call fcn.0040a1a2
mov edi, dword [ebp - 0x6c]
and dword [ebp - 0x50], 0
add edi, esi
mov esi, dword [ebp - 0x64]
push 0x64
push 0
push sym.firefox.exe_g_originals
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x10
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
push esi
push edi
call fcn.00415504
test al, al
je 0x415967
lea eax, [ebp - 0x70]
push eax
push 0x10
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x415967
cmp dword [ebp - 0x70], 0x10
jne 0x415967
lea eax, [ebp - 0x74]
push eax
push 0x20
push esi
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebx]
push 0x64
push sym.firefox.exe_g_originals
push 0x4239b8
call fcn.00420098
neg eax
sbb eax, eax
inc eax
jmp 0x415969
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret 4
Function at 0x418fac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43a008]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0x30]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x20]
mov dword [esp + 0x2c], ebx
push dword [ebp + 0x1c]
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x41901b
xor eax, eax
inc eax
jmp 0x4190bd
mov ebx, dword [esp + 0xc]
mov ecx, str.CreateProcessA
push 2
mov edx, ebx
call fcn.0040ae4c
cmp dword [sym.firefox.exe_g_shared_section], 0
pop ecx
jne 0x41903b
xor eax, eax
jmp 0x419040
call fcn.00420249
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp dword [eax], 1
jle 0x4190bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 1
push 0x10
pop edx
mov dword [esp + 0x2c], eax
call fcn.0041c95b
pop ecx
test al, al
je 0x4190b1
call fcn.0041c645
mov dword [esp + 0x20], eax
test eax, eax
je 0x4190b1
xor ecx, ecx
xor edi, edi
mov dword [esp + 0xc], ecx
test esi, esi
je 0x419093
mov ecx, esi
call fcn.0041c455
mov edi, eax
test edi, edi
je 0x4190b1
mov ecx, dword [esp + 0xc]
test ebx, ebx
je 0x4190d4
mov ecx, ebx
call fcn.0041c455
mov ecx, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x4190d4
xor edx, edx
mov ecx, edi
call fcn.0041c0ea
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405ef7
mov esp, ebp
pop ebp
ret 0x2c
xor esi, esi
test edi, edi
je 0x4190e3
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jmp 0x4190e7
mov dword [esp + 0x10], esi
test ecx, ecx
je 0x4190f4
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
jmp 0x4190f8
mov dword [esp + 0x14], esi
lea eax, [esp + 0x68]
mov dword [esp + 0x1c], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x419120
cmp eax, 0x104
lea ecx, [esp + 0x68]
cmovae ecx, esi
mov dword [esp + 0x1c], ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.0041dd7d
push 0x34
lea eax, [esp + 0x38]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x24], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x20], 0x10
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00418dde
add esp, 0x14
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.0041c0ea
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0041c0ea
test esi, esi
jne 0x4190b1
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x3c], esi
jne 0x4190bb
mov edx, ebx
mov ecx, str.CreateProcessA
call fcn.0040ad53
jmp 0x419013
Function at 0x4191b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43a008]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
cmp dword [sym.firefox.exe_g_shared_section], eax
je 0x41921c
call fcn.00420249
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp byte [eax + 4], 0
je 0x419256
push ebx
push dword [esp + 0x10]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push edi
push esi
call dword [esp + 0x38]
test eax, eax
je 0x419256
xor eax, eax
inc eax
jmp 0x41935d
mov edx, esi
mov ecx, 0x423f1c
call fcn.0040ae6b
cmp dword [sym.firefox.exe_g_shared_section], 0
jne 0x41926f
xor eax, eax
jmp 0x419274
call fcn.00420249
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp dword [eax], 1
jle 0x41935b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x10
pop edx
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0041c95b
pop ecx
test al, al
je 0x419351
call fcn.0041c645
mov edi, eax
test edi, edi
je 0x419351
and dword [esp + 0xc], 0
lea eax, [esp + 0x68]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4192de
cmp eax, 0x104
lea ecx, [esp + 0x68]
push 0
pop eax
cmovae ecx, eax
mov dword [esp + 0xc], ecx
push edi
lea ecx, [esp + 0x28]
call fcn.0041dd7d
xor eax, eax
push 0x34
push eax
lea eax, [esp + 0x3c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00418cc0
add esp, 0x14
test eax, eax
jne 0x419351
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x3c], 0
jne 0x41935b
mov edx, esi
mov ecx, 0x423f1c
call fcn.0040ad6d
jmp 0x41924e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405ef7
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x4197da
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x2c]
xor eax, eax
push edi
push esi
push dword [ebp + 0x28]
mov edi, edx
mov ebx, ecx
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x419807
xor eax, eax
jmp 0x419869
push 1
push 0
mov ecx, 0x101c01
test edi, edi
mov eax, 0x1f0fff
cmove eax, ecx
push eax
push esi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41983b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419803
push 1
push 0
mov edx, 0x100c43
lea ecx, [esi + 4]
test edi, edi
mov eax, 0x1f03ff
cmove eax, edx
push eax
push ecx
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ac17
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x64], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x5c], eax
cmp byte [ebx + 0x2c], 0
jne 0x41ac44
mov eax, 0x3f0
jmp 0x41ad1e
push esi
lea eax, [ebp - 0x54]
push eax
push 2
lea edx, [ebx + 0x24]
lea ecx, [ebp - 0x60]
call fcn.0041b538
mov esi, dword [ebp - 0x60]
pop ecx
pop ecx
test esi, esi
jne 0x41ac67
mov esi, dword [ebp - 0x54]
jmp 0x41ad11
xor eax, eax
mov dword [ebp - 0x50], eax
cmp dword [esi], eax
jbe 0x41ad0f
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x68], 0x44
test dword [edi + 4], 0xc0000020
jne 0x41acff
mov edx, dword [ebp - 0x5c]
xor cl, cl
mov byte [ebp - 0x49], cl
test edx, edx
je 0x41acdc
and dword [ebp - 0x58], 0
xor ecx, ecx
mov eax, dword [edx]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 4]
sub eax, dword [edx]
cdq
idiv dword [ebp - 0x68]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x58], eax
jae 0x41acd6
mov eax, dword [ebp - 0x64]
push dword [edi]
add eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41acd2
mov ecx, dword [ebp - 0x54]
inc dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
push 0x44
pop eax
add ecx, eax
jmp 0x41ac9a
mov byte [ebp - 0x49], 1
mov cl, byte [ebp - 0x49]
mov eax, dword [ebp - 0x50]
test cl, cl
jne 0x41acff
push dword [edi]
lea eax, [ebp - 0x48]
push eax
push 0x44
pop eax
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x18]
call fcn.0041b73e
mov eax, dword [ebp - 0x50]
inc eax
add edi, 8
mov dword [ebp - 0x50], eax
cmp eax, dword [esi]
jb 0x41ac7f
pop edi
xor esi, esi
push 0
lea ecx, [ebp - 0x60]
call fcn.0040975a
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret 4
Function at 0x41ad2f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x60], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x58], edx
cmp byte [ebx + 0x2c], 0
jne 0x41ad5c
mov eax, 0x3f0
jmp 0x41ae13
push esi
lea eax, [ebp - 0x4c]
push eax
push 2
lea edx, [ebx + 0x24]
lea ecx, [ebp - 0x5c]
call fcn.0041b538
mov esi, dword [ebp - 0x5c]
pop ecx
pop ecx
test esi, esi
jne 0x41ad7f
mov esi, dword [ebp - 0x4c]
jmp 0x41ae06
xor ecx, ecx
mov dword [ebp - 0x54], ecx
cmp dword [esi], ecx
jbe 0x41ae04
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x60], 0x44
test dword [edi + 4], 0xc0000020
jne 0x41adf8
and dword [ebp - 0x50], 0
xor ecx, ecx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
cdq
idiv dword [ebp - 0x60]
cmp dword [ebp - 0x50], eax
jae 0x41adf5
mov edx, dword [ebp - 0x58]
push dword [edi]
mov eax, dword [edx]
add eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41add9
mov ecx, dword [ebp - 0x4c]
inc dword [ebp - 0x50]
push 0x44
pop eax
add ecx, eax
jmp 0x41ada2
push dword [edi]
lea eax, [ebp - 0x48]
push eax
push 0x44
pop eax
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebx + 0x18]
call fcn.0041b73e
mov ecx, dword [ebp - 0x54]
inc ecx
add edi, 8
mov dword [ebp - 0x54], ecx
cmp ecx, dword [esi]
jb 0x41ad93
pop edi
xor esi, esi
push 0
lea ecx, [ebp - 0x5c]
call fcn.0040975a
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret 4
Function at 0x41ff3c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x10000
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
lea esi, [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.00408fc3
mov ecx, dword [esi]
call fcn.0040c73f
test al, al
jne 0x41ff7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42008f
push ebx
push ebx
push 7
lea eax, [ebp - 4]
push eax
push dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41ff72
push ebx
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x41ff72
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x2000]
push eax
call fcn.0041fc52
mov eax, dword [ebp - 4]
pop ecx
push 4
push sym.firefox.exe_g_shared_section
push 0x435d98
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_section], eax
call fcn.00420098
mov ecx, eax
xor esi, esi
mov dword [sym.firefox.exe_g_shared_section], esi
test ecx, ecx
je 0x41fff2
xor eax, eax
inc eax
cmp ecx, eax
jne 0x42008f
jmp 0x41ff72
push 4
push sym.firefox.exe_g_shared_IPC_size
push 0x435dc4
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_IPC_size], 0x2000
call fcn.00420098
mov ecx, eax
mov dword [sym.firefox.exe_g_shared_IPC_size], esi
test ecx, ecx
jne 0x41ffe5
push 4
push sym.firefox.exe_g_shared_policy_size
push 0x435dac
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_policy_size], 0xe000
call fcn.00420098
mov ecx, eax
mov dword [sym.firefox.exe_g_shared_policy_size], esi
test ecx, ecx
jne 0x41ffe5
push 0x1c
call fcn.00405f0d
pop ecx
push dword [ebp + 8]
mov ecx, eax
push dword [edi + 0x28]
push dword [edi + 8]
push dword [edi]
call fcn.0041df42
push eax
lea ecx, [edi + 0x24]
call fcn.0042010f
push ecx
push ecx
mov ecx, dword [edi + 0x24]
push ebx
call fcn.0041e0fc
test al, al
jne 0x42007b
push 8
pop eax
jmp 0x42008f
and dword [edi + 0xc], esi
lea ecx, [edi + 4]
call fcn.0040d142
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42034e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call fcn.0040d4ce
cmp dword [eax], 3
jl 0x4203d8
mov esi, dword [0x43b04c]
test esi, esi
jne 0x4203ad
push 0x435e04
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x420395
xor al, al
jmp 0x4203da
push str.GetUserDefaultLocaleName
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x43b04c], esi
test esi, esi
je 0x420391
push edi
mov edi, 0xaa
lea eax, [ebp - 0xb0]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb0]
push edi
push eax
call esi
neg eax
pop edi
sbb eax, eax
neg eax
jmp 0x4203da
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405ef7
mov esp, ebp
pop ebp
ret
Function at 0x420c4f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00420be8
test al, al
je 0x420c7a
mov eax, 0x1126
jmp 0x420e10
lea ecx, [ebp - 0x228]
call fcn.00409b9a
lea edx, [ebp - 0x228]
mov ecx, esi
call fcn.00420b7a
lea ecx, [ebp - 0x228]
mov byte [ebp - 0x229], al
call fcn.00421263
lea edx, [ebp - 0x228]
mov bl, al
mov ecx, edx
call fcn.00420b0c
xor esi, esi
mov bh, al
test bl, bl
jne 0x420cdb
test bh, bh
jne 0x420cca
cmp byte [ebp - 0x229], bl
je 0x420d4a
push str.._
push ecx
lea ecx, [ebp - 0x228]
call fcn.00412bd8
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x210]
push 0x104
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x420d18
push 0x7b
test bh, bh
mov eax, 0x1126
pop esi
cmovne esi, eax
jmp 0x420dff
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420d21
sub ecx, edx
lea edx, [ebp - 0x210]
sar ecx, 1
lea edi, [ecx - 1]
push edi
lea ecx, [ebp - 0x228]
call fcn.00420a14
pop ecx
test al, al
jne 0x420d52
push 0x7b
pop esi
jmp 0x420dff
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x420dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x420d8e
cmp esi, 3
je 0x420d8e
cmp esi, 1
je 0x420d8e
cmp esi, 0x7b
jne 0x420dff
xor esi, esi
push ecx
push ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x5c
push eax
lea ecx, [ebp - 0x228]
call fcn.0040c0cc
lea ecx, [ebp - 0x228]
cmp eax, dword [ebp - 0x218]
ja 0x420de1
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x218], eax
cmovae ecx, dword [ebp - 0x228]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x420dee
test eax, 0x400
jne 0x420dff
jmp 0x420d90
sub eax, dword [ebp - 0x218]
push esi
push eax
call fcn.0040bafb
cmp dword [ebp - 0x218], edi
ja 0x420d52
mov esi, 0x1126
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00408ecd
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret