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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x40
mov edx, dword [0x4f62d0]
mov eax, dword [edx]
xor eax, ebp
mov dword [esp + 0x3c], eax
mov al, byte [0x5178d8]
test al, al
je 0x40c2b4
xor eax, eax
cmp dword [ebp + 0xc], 0
je 0x40c29e
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
cmp ecx, edi
jbe 0x40c29e
mov ebx, ecx
mov esi, dword [0x518b48]
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand_s
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [edi + eax]
mov eax, ebx
sub eax, ecx
xor edx, edx
div esi
mov ecx, eax
mov eax, dword [esp + 0x10]
add ecx, 1
xor edx, edx
div ecx
mov dword [esp], esi
imul edx, esi
add edx, edi
sub ebx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
cmp edx, ebx
jbe 0x40c205
cmp dword [esp + 4], edi
jbe 0x40c290
add dword [esp], 0xffffffff
lea ebx, [esp + 0x14]
mov esi, 0
jmp 0x40c1ac
add edi, ecx
cmp edi, dword [esp + 4]
jae 0x40c290
lea eax, [esp + 0x38]
push eax
push 0x1c
push ebx
push 0
push edi
push dword [ebp + 8]
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x40c284
cmp dword [esp + 0x38], 0x1c
jne 0x40c290
cmp dword [esp + 0x24], 0x10000
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jne 0x40c1a0
mov edx, ecx
neg edx
and edx, dword [esp]
mov eax, edi
sub eax, edx
cmp eax, dword [ebp + 0xc]
lea eax, [edx + ecx]
cmovb eax, esi
cmp edi, edx
jb 0x40c1a0
test eax, eax
je 0x40c1a0
jmp 0x40c298
mov eax, dword [esp]
add eax, 0xffffffff
mov dword [esp + 8], eax
lea ebx, [esp + 0x38]
mov ecx, dword [esp + 4]
jmp 0x40c22c
add ecx, esi
cmp ecx, dword [esp + 0xc]
ja 0x40c184
push ebx
push 0x1c
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push dword [ebp + 8]
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x40c284
cmp dword [esp + 0x38], 0x1c
jne 0x40c290
cmp dword [esp + 0x24], 0x10000
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
jne 0x40c220
mov edx, esi
neg edx
and edx, dword [esp + 8]
mov eax, ecx
sub eax, edx
cmp eax, dword [ebp + 0xc]
lea eax, [edx + esi]
mov ebx, 0
cmovb eax, ebx
lea ebx, [esp + 0x38]
cmp ecx, edx
jb 0x40c220
test eax, eax
je 0x40c220
jmp 0x40c298
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov edx, dword [0x4f62d0]
mov ecx, dword [esp + 0x3c]
xor ecx, ebp
mov edx, dword [edx]
cmp edx, ecx
jne 0x40c2f5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push 0x5178d8
mov esi, edx
call fcn.004c3610
mov edx, esi
add esp, 4
test eax, eax
je 0x40c117
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
mov dword [0x518b48], eax
push 0x5178d8
call fcn.004c3768
mov edx, esi
add esp, 4
jmp 0x40c117
call fcn.00468008
int3
Function at 0x40c490
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x2c
mov ebx, dword [0x4f62d0]
mov eax, dword [ebx]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ecx], 0
je 0x40c561
mov esi, ecx
cmp dword [ecx + 4], 0
je 0x40c561
mov edi, dword [esi + 8]
test edi, edi
je 0x40c561
cmp dword [esi + 0xc], 0
je 0x40c561
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax]
add edx, 0xffffffff
mov ecx, dword [esi + 0x14]
mov al, 1
cmp edx, ecx
jb 0x40c563
cmp ecx, dword [esi + 0x10]
jae 0x40c561
add edi, ecx
mov al, byte [0x5178d0]
test al, al
je 0x40c57e
push 4
push 0x1000
push dword [0x518b44]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40c561
mov ecx, dword [esi]
mov edi, dword [esi + 0xc]
add edi, dword [esi + 0x14]
mov al, byte [0x5178d0]
test al, al
je 0x40c5b9
push 0x20
push 0x1000
push dword [0x518b44]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test eax, eax
je 0x40c55a
mov al, byte [0x5178d0]
test al, al
je 0x40c600
mov eax, dword [0x518b44]
add dword [esi + 0x14], eax
test edi, edi
setne al
jmp 0x40c563
xor eax, eax
mov ecx, dword [esp + 0x28]
xor ecx, ebp
mov edx, dword [ebx]
cmp edx, ecx
jne 0x40c579
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00468008
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x40c4fd
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x40c4fd
push 0x5178d0
mov dword [esp + 4], ecx
call fcn.004c3610
mov ecx, dword [esp + 4]
add esp, 4
test eax, eax
je 0x40c52a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
mov ecx, dword [esp + 4]
add esp, 4
jmp 0x40c52a
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x40c552
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x40c552
Function at 0x40d1a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x30
mov dl, byte [ebp + 8]
mov esi, dword [0x4f62d0]
mov eax, dword [esi]
xor eax, ebp
mov dword [esp + 0x2c], eax
mov al, 1
test dl, dl
je 0x40d24e
mov dword [esp], ecx
mov ebx, dword [ecx + 0x20]
movsx edi, dl
add edi, ebx
mov al, byte [0x5178d0]
test al, al
je 0x40d269
mov esi, dword [0x518b44]
mov eax, ebx
xor edx, edx
div esi
mov ecx, eax
mov eax, edi
xor edx, edx
div esi
cmp ecx, eax
mov esi, dword [0x4f62d0]
mov al, 1
je 0x40d24e
mov eax, dword [esp]
mov eax, dword [eax]
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
push ecx
push 0x1c
push edx
push 0
push edi
push dword [eax]
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x40d240
cmp dword [esp + 0x28], 0
je 0x40d24c
cmp dword [esp + 0xc], 0
je 0x40d24c
cmp dword [esp + 0x14], 0x1000
jne 0x40d24c
cmp dword [esp + 0x18], 1
setne al
jmp 0x40d24e
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor eax, eax
mov edx, dword [esp + 0x2c]
xor edx, ebp
mov ecx, dword [esi]
cmp ecx, edx
jne 0x40d264
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00468008
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x40d1df
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x40d1df
Function at 0x40d2b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x38
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x34], eax
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [esp], ecx
mov dword [ecx + 4], eax
mov ebx, dword [ebp + 0xc]
mov al, byte [0x5178d0]
test al, al
je 0x40d3cd
mov esi, dword [0x518b44]
lea eax, [ebx + edi]
add eax, 0xffffffff
xor edi, edi
xor edx, edx
div esi
mov ecx, eax
mov eax, ebx
xor edx, edx
div esi
sub ecx, eax
inc ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp]
je 0x40d3b1
mov ebx, eax
lea eax, [ecx + 4]
mov dword [esp + 4], eax
imul ebx, esi
mov dword [esp + 8], esi
jmp 0x40d35d
mov edx, dword [ecx + 4]
mov dword [edx + eax*8], esi
mov dword [edx + eax*8 + 4], ebx
add dword [ecx + 8], 1
add edi, 1
mov esi, dword [esp + 8]
add ebx, esi
cmp edi, dword [esp + 0xc]
je 0x40d3b1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40d3ac
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x14]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40d3a1
mov esi, dword [esp + 0x10]
mov ecx, dword [esp]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jne 0x40d340
mov ecx, dword [esp + 4]
push 1
call fcn.0040d4e0
test al, al
je 0x40d3a9
mov ecx, dword [esp]
mov eax, dword [ecx + 8]
jmp 0x40d340
mov dword [esp + 0x10], 0
mov ecx, dword [esp]
call fcn.0040d410
mov eax, dword [esp + 0x34]
xor eax, ebp
mov ecx, dword [0x4f62d0]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x40d408
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push 0x5178d0
call fcn.004c3610
add esp, 4
test eax, eax
je 0x40d2f8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
add esp, 4
jmp 0x40d2f8
call fcn.00468008
int3
Function at 0x40d410
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x30
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x2c], eax
mov al, byte [0x5178d0]
test al, al
mov dword [esp], ecx
je 0x40d49c
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x40d47b
mov eax, dword [0x518b44]
mov dword [esp + 4], eax
mov edi, dword [ecx + 4]
shl ebx, 3
xor esi, esi
jmp 0x40d457
add esi, 8
cmp ebx, esi
je 0x40d47b
mov eax, dword [ecx]
mov eax, dword [eax]
test eax, eax
je 0x40d450
lea ecx, [esp + 8]
push ecx
push dword [edi + esi]
push dword [esp + 0xc]
push dword [edi + esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [esp]
jmp 0x40d450
mov dword [ecx + 8], 0
mov eax, dword [esp + 0x2c]
xor eax, ebp
mov ecx, dword [0x4f62d0]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x40d4db
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5178d0
call fcn.004c3610
mov ecx, dword [esp + 4]
add esp, 4
test eax, eax
je 0x40d435
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xc]
mov dword [0x518b44], eax
push 0x5178d0
call fcn.004c3768
mov ecx, dword [esp + 4]
add esp, 4
jmp 0x40d435
call fcn.00468008
Function at 0x40e820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x11c
mov esi, ecx
mov eax, dword [0x4f62d0]
mov eax, dword [eax]
xor eax, ebp
mov dword [esp + 0x118], eax
lea eax, [ecx + 4]
mov dword [esp], eax
push eax
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov esi, dword [esi]
test esi, esi
je 0x40e9dd
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x14]
jmp 0x40e878
push 0
push edx
push 1
push 0x4f6d84
push edi
call ecx
mov esi, dword [esi + 0x10]
test esi, esi
je 0x40e9dd
movzx eax, word [esi]
shr eax, 1
push 0
push 0
push 0x104
push ebx
push eax
push dword [esi + 4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40e86d
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e86d
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
cmp eax, 0xffffffff
lea edx, [esp + 0x10]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x40e860
push 0
push edx
push 1
push 0x4f6d80
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
shr eax, 0x10
shr ecx, 0x10
mov dword [esp + 8], ecx
push 0xa
push ebx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
add esp, 0xc
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push 0x4f6d82
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [esp + 4]
push 0xa
push ebx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
add esp, 0xc
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push 0x4f6d82
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xa
push ebx
push dword [esp + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
add esp, 0xc
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push 0x4f6d82
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [esp + 0xc]
push 0xa
push ebx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
add esp, 0xc
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40e860
push dword [esp]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, dword [esp + 0x118]
xor eax, ebp
mov ecx, dword [0x4f62d0]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x40ea04
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00468008
int3
Function at 0x40f100
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffffc
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [0x4f62d0]
mov eax, dword [edi]
xor eax, ebp
mov dword [esp + 8], eax
mov eax, dword [0x518648]
test eax, eax
jne 0x40f171
mov eax, dword [0x518644]
mov dword [esp], 0
mov dword [esp + 4], 0
lea ecx, [esp + 4]
mov edx, esp
push 8
push 0
push 2
push ecx
push 0
push 0
push 0
push edx
push 0xffffffffffffffff
push eax
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x40f165
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov eax, dword [esp]
test eax, eax
je 0x40f18c
mov dword [0x518648], eax
mov byte [esi + 0xc], 0
mov dword [esi], eax
mov eax, dword [esp + 8]
xor eax, ebp
mov ecx, dword [edi]
cmp ecx, eax
jne 0x40f1d4
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
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._var_tmp_build_firefox_71aaf16cd119_browser_app_winlauncher_freestanding_SharedSection.cpp
mov dword [esi + 4], 0xdb
mov dword [esi + 8], ecx
mov eax, dword [esp]
test eax, eax
je 0x40f177
push eax
push 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x40f177
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.ntdll.dll_RtlSetLastWin32Error
jmp 0x40f177
call fcn.00468008
int3
Function at 0x412430
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
push eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4124ac
movzx ecx, word [edx]
cmp ecx, 0x5a4d
jne 0x4124ac
mov ecx, dword [edx + 0x3c]
add ecx, edx
je 0x4124ac
cmp dword [ecx], 0x4550
jne 0x4124ac
movzx edi, word [ecx + 0x18]
cmp edi, 0x10b
jne 0x4124ac
cmp dword [ecx + 0x50], 0x137
jbe 0x4124ac
cmp dword [ecx + 0x74], 0
je 0x4124ac
mov edi, dword [ecx + 0x78]
test edi, edi
je 0x4124ac
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x4124ac
mov ebx, edi
add ebx, edx
je 0x4124ac
cmp dword [ebx + 0x14], 0
je 0x4124ac
add ecx, edi
mov dword [esp], ecx
mov ecx, esi
push ebx
push dword [esp + 4]
push edi
push edx
push eax
call fcn.00412500
jmp 0x4124e8
mov dword [esi], eax
xorps xmm0, xmm0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x412570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
push eax
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x4126a1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4126a1
mov esi, ecx
and esi, 3
mov eax, ecx
shr eax, 2
je 0x412627
mov dword [esp], esi
mov esi, edx
mov ebx, ecx
mov edi, eax
test cl, 4
je 0x4125d0
movzx edi, word [edx]
add edi, ecx
movzx esi, word [edx + 2]
shl esi, 0xb
xor esi, edi
shl edi, 0x10
xor edi, esi
lea esi, [edx + 4]
mov ebx, edi
shr ebx, 0xb
add ebx, edi
lea edi, [eax - 1]
and ecx, 0xfffffffc
cmp eax, 1
je 0x412620
add edi, 2
nop dword [eax + eax]
movzx eax, word [esi]
add eax, ebx
movzx ebx, word [esi + 2]
shl ebx, 0xb
xor ebx, eax
shl eax, 0x10
xor eax, ebx
mov ebx, eax
shr ebx, 0xb
add ebx, eax
movzx eax, word [esi + 4]
add eax, ebx
movzx ebx, word [esi + 6]
shl ebx, 0xb
xor ebx, eax
shl eax, 0x10
xor eax, ebx
mov ebx, eax
shr ebx, 0xb
add ebx, eax
add edi, 0xfffffffe
add esi, 8
cmp edi, 2
jg 0x4125e0
add edx, ecx
mov ecx, ebx
mov esi, dword [esp]
cmp esi, 1
je 0x412650
cmp esi, 2
je 0x412662
cmp esi, 3
jne 0x412675
movzx eax, word [edx]
add ecx, eax
movsx eax, byte [edx + 2]
shl eax, 0x12
xor eax, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 0xb
jmp 0x412673
movsx eax, byte [edx]
add ecx, eax
mov eax, ecx
shl eax, 0xa
xor eax, ecx
mov ecx, eax
shr ecx, 1
jmp 0x412673
movzx eax, word [edx]
add ecx, eax
mov eax, ecx
shl eax, 0xb
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
lea eax, [ecx*8]
xor eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
mov edx, ecx
shl edx, 0x19
xor edx, ecx
mov eax, edx
shr eax, 6
add eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4126d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0xc4
mov esi, dword [ebp + 0xc]
mov edi, dword [0x4f62d0]
mov eax, dword [edi]
xor eax, ebp
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x14]
push 0x31
push str._var_tmp_build_firefox_71aaf16cd119_security_sandbox_chromium_shim_base_file_version_info_win.cpp
push str.CreateFileVersionInfoWin
push eax
call fcn.00419d50
add esp, 0x10
test byte [esi], 1
je 0x412716
mov esi, dword [esi + 8]
jmp 0x412719
add esi, 2
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 4], esi
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x412883
mov esi, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
test eax, eax
js 0x4128a7
push esi
call fcn.004c3980
add esp, 4
mov ebx, eax
mov dword [esp + 4], eax
mov edi, esi
add edi, eax
mov dword [esp + 0xc], edi
push esi
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [esp + 8], edi
push ebx
push esi
push dword [esp + 0x18]
push dword [esp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41285d
mov eax, dword [esp + 4]
mov dword [esp + 0x14], 0
lea esi, [esp + 0xbc]
push esi
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41285d
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41285d
push 0x18
call fcn.004c3980
add esp, 4
mov edi, eax
mov eax, dword [ebx]
mov ecx, dword [esp + 4]
mov dword [edi], ecx
mov edx, dword [esp + 8]
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov dword [edi + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [esp + 0xbc], 0
lea eax, [esp + 0xb8]
push eax
push esi
push 0x4f85de
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41284c
lea ebx, [esp + 0x14]
mov ecx, ebx
push str.::VerQueryValue_data__kRoot__fixed_file_info__dummy_size_
push 0x28
push str._var_tmp_build_firefox_71aaf16cd119_security_sandbox_chromium_shim_base_file_version_info_win.cpp
call fcn.00413d10
mov ecx, ebx
call fcn.00413f30
mov eax, dword [esp + 0xbc]
mov dword [edi + 0x14], eax
mov ebx, dword [ebp + 8]
mov dword [ebx], edi
jmp 0x412866
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov edi, dword [0x4f62d0]
mov eax, dword [esp + 4]
test eax, eax
je 0x412889
mov dword [esp + 8], eax
push eax
call fcn.004c3b20
add esp, 4
jmp 0x412889
mov dword [ebx], 0
mov eax, dword [esp + 0xc0]
xor eax, ebp
mov ecx, dword [edi]
cmp ecx, eax
jne 0x4128a2
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00468008
lea ecx, [esp + 4]
call fcn.00472320
Function at 0x419550
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x40
mov dword [esp + 0xc], ecx
mov ebx, dword [0x4f62d0]
mov eax, dword [ebx]
xor eax, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x30]
mov dword [esp], esi
call fcn.0042b260
test byte [esp + 0x30], 1
je 0x4195a5
mov eax, dword [esp + 0x38]
jmp 0x4195a9
lea eax, [esp + 0x32]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test byte [esp + 0x30], 1
je 0x4195e0
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004c3b20
mov eax, esi
lea esi, [esp + 0x30]
cmp dword [esp + 0xc], 0
je 0x4196e4
test eax, eax
je 0x4196e4
mov dword [esp + 0x10], eax
add eax, eax
mov ecx, 0xffffffff
cmovae ecx, eax
mov dword [esp], ecx
call fcn.004c3a70
mov ebx, eax
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.0042b260
test byte [esp + 0x30], 1
je 0x419638
mov eax, dword [esp + 0x38]
jmp 0x41963c
lea eax, [esp + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test byte [esp + 0x30], 1
je 0x419667
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004c3b20
mov dword [esp + 0x18], ebx
cmp word [ebx], 0
je 0x41968f
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
lea eax, [ecx + 1]
cmp word [ebx + ecx*2 + 2], 0
mov ecx, eax
jne 0x419680
jmp 0x419691
xor eax, eax
mov dword [esp + 0x1c], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.0042b2e0
mov ecx, dword [esp + 0xc]
test byte [ecx], 1
je 0x4196c1
mov eax, dword [ecx + 8]
mov dword [esp], eax
call fcn.004c3b20
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [ecx], xmm0
mov dword [esp], ebx
call fcn.004c3b50
mov ebx, dword [0x4f62d0]
mov eax, dword [esp + 0x10]
test eax, eax
setne al
mov ecx, dword [esp + 0x3c]
xor ecx, ebp
mov edx, dword [ebx]
cmp edx, ecx
jne 0x4196fd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00468008
int3