joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, dword [esi]
push dword [edx + 0x78]
call dword [eax + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40de5e
mov eax, dword [esi + 4]
push ebx
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [esi]
push dword [ecx + 0x78]
mov ecx, esi
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x40de5a
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
ja 0x40dd8d
movzx edi, bx
jmp 0x40de42
mov eax, dword [esi]
push dword [ecx + 0x20]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x18]
lea edx, [eax + ecx*4]
mov dword [ebp - 4], edx
cmp eax, edx
je 0x40de5a
mov eax, edx
sub eax, edi
sar eax, 2
mov eax, eax
test eax, eax
jns 0x40ddc0
add eax, 1
sar eax, 1
lea ecx, [edi + eax*4]
mov eax, dword [esi]
push dword [ecx]
mov dword [ebp - 8], ecx
mov ecx, esi
call dword [eax + 4]
mov dl, byte [ebx]
test dl, dl
je 0x40ddf5
mov cl, dl
mov edx, ebx
sub edx, eax
mov dword [ebp - 0x10], edx
mov ebx, edx
mov dl, cl
cmp cl, byte [eax]
jne 0x40ddf2
inc eax
mov cl, byte [ebx + eax]
mov dl, cl
test cl, cl
jne 0x40dde2
mov ebx, dword [ebp + 8]
movzx eax, byte [eax]
movzx ecx, dl
sub ecx, eax
je 0x40de1d
mov edx, dword [ebp - 4]
test ecx, ecx
mov eax, dword [ebp - 8]
cmovle edx, eax
add eax, 4
test ecx, ecx
mov dword [ebp - 4], edx
cmovle eax, edi
mov edi, eax
cmp edi, edx
jne 0x40ddb0
jmp 0x40de20
mov edi, dword [ebp - 8]
test ecx, ecx
jne 0x40de5a
mov ebx, dword [ebp - 0xc]
mov ecx, esi
mov eax, dword [esi]
push dword [ebx + 0x24]
call dword [eax + 4]
sub edi, dword [ebp - 0x14]
sar edi, 2
mov ax, word [eax + edi*2]
add ax, word [ebx + 0x10]
movzx edi, ax
mov ebx, dword [ebp - 0x18]
mov ecx, esi
mov eax, dword [esi]
push dword [ebx + 0x1c]
call dword [eax + 4]
movzx ecx, di
sub ecx, dword [ebx + 0x10]
lea eax, [eax + ecx*4]
jmp 0x40de5c
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40df57
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40df67
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40df64
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x40df64
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x414e7e
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
mov esi, ecx
mov edi, 0x10000
mov dword [ebp - 8], esi
cmp esi, edi
jbe 0x414ec3
push ecx
lea ecx, [ebp - 8]
call fcn.00414a31
pop ecx
test eax, eax
je 0x414ec3
push eax
push 0x2b
push str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea ecx, [ebp - 0xb8]
call fcn.00408d9a
lea ecx, [ebp - 0xb8]
call fcn.00408ec2
sub edi, esi
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx edx, word [ebp - 4]
mov dword [ebp - 4], edx
cmp edx, edi
ja 0x414ec5
mov ecx, 0x800
mov eax, 0x1000
cmp esi, ecx
ja 0x414ef2
mov eax, ecx
shr ecx, 1
cmp ecx, esi
jae 0x414eea
neg eax
pop edi
and eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4152fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x68], ebx
cmp byte [ebp + 8], bl
jne 0x41532a
cmp dword [edi + 8], ebx
jne 0x415359
xor eax, eax
jmp 0x41546c
push 0
push 0x427d74
push 1
push str.NtMapViewOfSection
mov esi, 0x427de8
push esi
call fcn.00414bb1
push 1
push 0x427db8
push 1
push str.NtUnmapViewOfSection
push esi
mov ecx, edi
call fcn.00414bb1
mov eax, dword [edi]
push 1
push 0x2000
push 0x10000
mov eax, dword [eax]
push 0
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov eax, dword [edi + 8]
shl eax, 6
add eax, 0x50
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.00414e7e
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 dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4153d9
push ecx
push 0x1a8
push str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea ecx, [ebp - 0x124]
call fcn.00408d24
xor ebx, ebx
inc ebx
test bl, 1
je 0x4153e9
lea ecx, [ebp - 0x124]
call fcn.00408ec2
mov ebx, dword [ebp - 0x64]
add esi, dword [ebp - 0x6c]
and dword [ebp - 0x50], 0
push 0xa4
push 0
push sym.firefox.exe_g_originals
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 0x10
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
push ebx
push esi
call fcn.00414ff6
test eax, eax
jne 0x41546c
lea eax, [ebp - 0x68]
push eax
push 0x10
lea eax, [ebp - 0x5c]
push eax
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x415469
cmp dword [ebp - 0x68], 0x10
jne 0x415469
lea eax, [ebp - 0x70]
push eax
push 0x20
push ebx
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [edi]
push 0xa4
push sym.firefox.exe_g_originals
push 0x427dd8
call fcn.00422341
jmp 0x41546c
push 0x2a
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405160
mov esp, ebp
pop ebp
ret 4
Function at 0x417ccb
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push edi
and eax, 0x40
xor edi, edi
or eax, edi
mov ebx, ecx
mov dword [ebp - 4], ebx
je 0x417d5c
push esi
push 4
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov esi, dword [ebp - 8]
and esi, 0x3fff
add esi, 0x200
shl esi, 0xa
and esi, 0xffff0000
jbe 0x417d5b
push 0x1c
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x417d5b
mov eax, dword [ebp - 0x18]
mov ebx, esi
add eax, 0xffff
sub ebx, edi
and eax, 0xffff0000
cmp ebx, eax
cmovae ebx, eax
test edi, edi
je 0x417d52
cmp dword [ebp - 0x14], 0x10000
jne 0x417d52
push 1
push 0x2000
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
add edi, ebx
mov ebx, dword [ebp - 4]
cmp edi, esi
jb 0x417d0b
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419484
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 8]
push edi
push 0x8000004
push edi
mov dword [esi], edi
push 0xffffffffffffffff
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.0040ba42
cmp dword [esi], edi
je 0x4194c9
cmp dword [esi], 0xffffffff
je 0x4194c9
push dword [ebp + 8]
push edi
push edi
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x41ba10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
cmp dword [sym.firefox.exe_g_shared_section], eax
je 0x41ba7b
call fcn.004224d1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp byte [eax + 4], 0
je 0x41bab5
push dword [esp + 0x10]
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x38]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x48]
push dword [esp + 0x34]
push edi
push esi
call dword [esp + 0x48]
test eax, eax
je 0x41bab5
xor eax, eax
inc eax
jmp 0x41bbd1
mov edx, esi
mov ecx, 0x428648
call fcn.0040b222
cmp dword [sym.firefox.exe_g_shared_section], 0
jne 0x41bace
xor eax, eax
jmp 0x41bad3
call fcn.004224d1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp dword [eax], 1
jle 0x41bbcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x10]
mov edi, eax
push 1
push 0x10
pop edx
mov ecx, ebx
call fcn.0041f236
pop ecx
test al, al
je 0x41bbc8
call fcn.0041f14a
test al, al
je 0x41bbc8
mov esi, dword [0x42e374]
test esi, esi
je 0x41bbc8
and dword [esp + 0x10], 0
lea eax, [esp + 0x70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41bb4b
cmp eax, 0x104
lea ecx, [esp + 0x70]
push 0
pop eax
cmovae ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 8]
add eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x34
push eax
lea eax, [esp + 0x44]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x20], 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041b48d
add esp, 0x18
test eax, eax
jne 0x41bbc8
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x44], 0
jne 0x41bbcf
mov edx, dword [esp + 0x14]
mov ecx, 0x428648
call fcn.0040b131
jmp 0x41baad
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405160
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41c25f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov ebx, edx
push edi
push esi
push dword [ebp + 0x28]
xor edi, edi
mov dword [ebp - 4], ecx
push dword [ebp + 0x24]
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41c290
xor eax, eax
jmp 0x41c2f1
push 1
push edi
mov edi, 0x1fffff
mov ecx, 0x101c01
test ebx, ebx
mov eax, edi
cmove eax, ecx
push eax
push esi
push dword [ebp - 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
add esi, 4
test eax, eax
jne 0x41c2c9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c28c
push 1
push 0
mov eax, 0x100c43
test ebx, ebx
cmove edi, eax
push edi
push esi
push dword [ebp - 4]
push dword [esi]
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
mov esp, ebp
pop ebp
ret

Function at 0x41c3a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x41c3cf
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push edi
push edi
push dword [ebp + 0x18]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop edi
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
pop esi
pop ebp
ret
Function at 0x41d7f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], ecx
cmp byte [eax + 0x2c], 0
jne 0x41d81b
mov eax, 0x3f0
jmp 0x41d8fb
push ebx
push esi
lea ecx, [ebp - 0x50]
push ecx
push 2
lea edx, [eax + 0x24]
lea ecx, [ebp - 0x58]
call fcn.0041df87
mov esi, dword [ebp - 0x58]
pop ecx
pop ecx
test esi, esi
jne 0x41d83f
mov ebx, dword [ebp - 0x50]
jmp 0x41d8f7
xor ebx, ebx
mov eax, ebx
mov dword [ebp - 0x54], eax
cmp dword [esi], ebx
jbe 0x41d8ef
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x60], 0x44
test dword [edi + 4], 0xc0000020
jne 0x41d8df
mov edx, dword [ebp - 0x5c]
mov cl, bl
test edx, edx
je 0x41d8b9
mov dword [ebp - 0x50], ebx
mov ecx, ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [edx]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 4]
sub eax, dword [edx]
cdq
idiv dword [ebp - 0x60]
cmp dword [ebp - 0x50], eax
jae 0x41d8b4
push dword [edi]
mov eax, dword [ebp - 0x64]
add eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41d8ab
mov ecx, dword [ebp - 0x58]
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
push 0x44
pop eax
add ecx, eax
mov dword [ebp - 0x58], ecx
jmp 0x41d873
mov byte [ebp - 0x49], 1
mov cl, byte [ebp - 0x49]
jmp 0x41d8b6
mov cl, bl
mov eax, dword [ebp - 0x54]
test cl, cl
jne 0x41d8df
push dword [edi]
lea eax, [ebp - 0x48]
push eax
push 0x44
pop eax
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x48]
push eax
add ecx, 0x18
call fcn.0041d719
mov eax, dword [ebp - 0x54]
inc eax
add edi, 8
mov dword [ebp - 0x54], eax
cmp eax, dword [esi]
jb 0x41d859
pop edi
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405160
mov esp, ebp
pop ebp
ret 4

Function at 0x421e29
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
call fcn.0040e4c5
test al, al
je 0x421e4b
push 0x32
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [edi + 0x20]
and dword [edi + 0x20], 0
test esi, esi
je 0x421e65
mov ecx, esi
call fcn.004208b7
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
cmp dword [edi + 0x2c], 0
je 0x421e75
push dword [edi + 0x2c]
call dword [sym.imp.mozglue.dll_free]
pop ecx
mov esi, dword [edi + 0x20]
test esi, esi
je 0x421e8b
mov ecx, esi
call fcn.004208b7
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
lea ecx, [edi + 0x18]
call fcn.004016c0
lea ecx, [edi + 0x14]
call fcn.004016c0
lea ecx, [edi + 0x10]
call fcn.004016c0
mov ecx, edi
call fcn.004016c0
lea ecx, [edi + 4]
call fcn.004016c0
and dword [edi + 8], 0
lea ecx, [edi + 4]
and dword [edi + 0xc], 0
call fcn.004016c0
mov ecx, edi
call fcn.004016c0
pop edi
pop esi
pop ecx
ret
Function at 0x4221b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
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 + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.0040ba42
cmp dword [esi], ebx
je 0x422328
cmp dword [esi], 0xffffffff
je 0x422328
push ebx
push ebx
push 7
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x422211
push 0x1a
jmp 0x42232a
push ebx
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x42222b
push 0x1b
jmp 0x42232a
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x2000]
push eax
call fcn.00421f3a
mov eax, dword [ebp - 4]
pop ecx
push 4
push sym.firefox.exe_g_shared_section
push 0x428b44
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_section], eax
call fcn.00422341
and dword [sym.firefox.exe_g_shared_section], 0
mov esi, eax
test esi, esi
jne 0x42232b
push 4
push sym.firefox.exe_g_shared_IPC_size
push 0x428b58
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_IPC_size], 0x2000
call fcn.00422341
and dword [sym.firefox.exe_g_shared_IPC_size], 0
mov esi, eax
test esi, esi
jne 0x42232b
push 4
push sym.firefox.exe_g_shared_policy_size
push 0x428b14
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_policy_size], 0xe000
call fcn.00422341
and dword [sym.firefox.exe_g_shared_policy_size], 0
mov esi, eax
test esi, esi
jne 0x42232b
push 0x1c
call dword [sym.imp.mozglue.dll_moz_xmalloc]
pop ecx
test eax, eax
je 0x4222e0
push dword [ebp + 8]
mov ecx, eax
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.00420850
jmp 0x4222e2
xor eax, eax
mov esi, dword [edi + 0x20]
mov dword [edi + 0x20], eax
test esi, esi
je 0x4222fe
mov ecx, esi
call fcn.004208b7
push esi
call dword [sym.imp.mozglue.dll_free]
mov eax, dword [edi + 0x20]
pop ecx
push ecx
push ecx
push ebx
mov ecx, eax
call fcn.00420a29
test al, al
jne 0x422311
push 4
pop eax
jmp 0x422338
and dword [edi + 0xc], 0
lea ecx, [edi + 4]
call fcn.0040e52d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x422338
push 0x19
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x422625
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0xaa
lea eax, [ebp - 0xb0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0x55
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.00405160
mov esp, ebp
pop ebp
ret
Function at 0x422fd5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00422f65
test al, al
je 0x423000
mov eax, 0x1126
jmp 0x4231a3
xor eax, eax
mov dword [ebp - 0x214], 7
xor edi, edi
mov word [ebp - 0x228], ax
lea edx, [ebp - 0x228]
mov dword [ebp - 0x218], edi
mov ecx, esi
call fcn.00422eeb
lea ecx, [ebp - 0x228]
mov byte [ebp - 0x229], al
call fcn.004236d1
lea edx, [ebp - 0x228]
mov bl, al
mov ecx, edx
call fcn.00422e71
mov bh, al
test bl, bl
jne 0x423085
test bh, bh
jne 0x42305e
cmp byte [ebp - 0x229], bl
je 0x423107
mov esi, str.._
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x423068
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ecx
lea ecx, [ebp - 0x228]
call fcn.00412837
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 0x4230c2
push 0x7b
test bh, bh
mov eax, 0x1126
pop esi
cmovne esi, eax
jmp 0x423196
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4230cb
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
cmp dword [ebp - 0x214], 8
cmovae eax, dword [ebp - 0x228]
lea edi, [ecx - 1]
push edi
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x42310f
push 0x7b
pop esi
jmp 0x423196
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 0x42314d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x423154
cmp esi, 3
je 0x423154
cmp esi, 1
je 0x423154
cmp esi, 0x7b
jne 0x423196
jmp 0x423154
test eax, 0x400
jne 0x423194
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x228]
mov edx, dword [ebp - 0x218]
cmovae ecx, dword [ebp - 0x228]
sub esp, 0xc
call fcn.00409e29
add esp, 8
lea ecx, [ebp - 0x228]
push eax
call fcn.0040ca81
cmp dword [ebp - 0x218], edi
ja 0x42310f
mov esi, 0x1126
jmp 0x423196
xor esi, esi
lea ecx, [ebp - 0x228]
call fcn.00404770
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405160
mov esp, ebp
pop ebp
ret

Function at 0x423c27
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
xor ecx, ecx
lea edx, [edi + 4]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
push edx
push 0x40
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x14]
push eax
push esi
mov dword [edx], ecx
mov dword [edi + 8], esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov byte [edi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x424692
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [eax]
mov eax, dword [0x42ee74]
cmp eax, dword [ecx + 4]
jle 0x4246dd
push esi
mov esi, 0x42ee74
push esi
call fcn.00405566
cmp dword [0x42ee74], 0xffffffff
pop ecx
jne 0x4246dc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push esi
mov dword [0x42ee7c], eax
call fcn.0040551c
pop ecx
pop esi
mov eax, dword [0x42ee7c]
mov esp, ebp
pop ebp
ret

Function at 0x4247fc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x24
mov ecx, dword [eax]
mov eax, dword [0x42e368]
cmp eax, dword [ecx + 4]
jle 0x424847
push esi
mov esi, 0x42e368
push esi
call fcn.00405566
cmp dword [0x42e368], 0xffffffff
pop ecx
jne 0x424846
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push esi
mov dword [0x42e2a0], eax
call fcn.0040551c
pop ecx
pop esi
mov eax, dword [0x42e2a0]
mov esp, ebp
pop ebp
ret

Function at 0x424878
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x424899
call fcn.004245db
test al, al
jne 0x4248b3
mov ecx, dword [0x42e280]
test ecx, ecx
jne 0x4248ae
call fcn.0040e105
mov ecx, dword [0x42e280]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [sym.firefox.exe_g_shared_section], 0
jne 0x4248f9
call fcn.004148c7
mov esi, eax
test esi, esi
je 0x4248f9
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test eax, eax
jne 0x4248f9
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 4]
push 1
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4248f5
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x4248fb
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424900
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
test eax, eax
je 0x424921
call fcn.004245db
test al, al
jne 0x42493b
mov ecx, dword [0x42e280]
test ecx, ecx
jne 0x424936
call fcn.0040e105
mov ecx, dword [0x42e280]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [sym.firefox.exe_g_shared_section], 0
je 0x424960
call fcn.004224d1
mov esi, eax
test esi, esi
je 0x424960
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
jmp 0x424962
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219