joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ecb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x14], edx
mov esi, ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
movzx edx, byte [ecx + 9]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [ecx + 0xa]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [ecx + 0xb]
xor edx, eax
imul edi, edx, 0x1000193
and edi, dword [esi + 0x18]
lea ebx, [edi + edi]
mov dword [ebp - 0x10], esi
mov esi, dword [esi + 0xc]
lea edx, [esi + edi*8]
mov eax, dword [edx]
cmp dword [esi + ebx*4 + 4], ecx
jne 0x40ed26
cmp eax, ecx
jne 0x40ed31
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov dword [edx], eax
lea edx, [edi + edi]
inc edx
lea edi, [ebx + 4]
shl edx, 2
add edx, dword [ebx + 0xc]
jmp 0x40ed3d
cmp eax, ecx
mov ebx, dword [ebp - 0x10]
jne 0x40ed41
mov edi, ecx
jmp 0x40ed3d
lea edx, [esi + ebx*4]
add edx, 4
lea edi, [ecx + 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi]
mov dword [edx], eax
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [eax], esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
dec dword [ebx + 8]
call fcn.0040e230
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40fb20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0040fb70
test edi, edi
je 0x40fb59
test al, al
je 0x40fb59
mov ecx, ebx
sar ecx, 0x1f
add edi, ebx
adc ecx, 0
mov eax, ecx
and eax, 1
neg eax
xor ecx, eax
jne 0x40fb59
test eax, eax
js 0x40fb59
cmp dword [esi + 8], edi
jae 0x40fb62
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040fb80

Function at 0x40fb80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [esi + 4], 0
setne al
mov ebx, ecx
sar ebx, 0x1f
add eax, eax
add eax, 4
push dword [ebp + 0xc]
push ecx
push ebx
mov dword [ebp - 0x30], eax
push eax
push dword [esi]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test edi, edi
je 0x40fbfe
mov esi, dword [ebp + 0x14]
lea ebx, [ebp - 0x2c]
push 0x1c
push ebx
push edi
call dword [sym.imp.kernel32.dll_VirtualQuery]
mov ecx, dword [ebx + 0xc]
sub ecx, edi
add ecx, dword [ebx + 4]
test eax, eax
cmove ecx, eax
mov dword [esi], ecx
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x30]
push dword [esi]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
test edi, edi
jne 0x40fbc7
xor ebx, ebx
jmp 0x40fbe8
Function at 0x412ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
test edi, edi
je 0x412ad5
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x3c]
cmp dword [eax + ebx + 0x74], 0
je 0x412ad5
cmp word [eax + ebx + 0x14], 0x68
jae 0x412adf
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x18], edx
mov esi, ecx
mov eax, dword [eax + ebx + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov dword [ebp - 0x14], esi
mov ecx, esi
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x412ad5
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffff
ja 0x412b18
mov word [edi], cx
mov al, 1
jmp 0x412ad7
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi]
mov ebx, dword [ecx + 4]
mov esi, eax
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov edx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x18]
lea ecx, [eax*4]
test ecx, ecx
je 0x412ad5
lea edi, [edx + eax*4]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov esi, edx
mov dword [ebp - 0x10], edi
sub edi, esi
mov eax, edi
sar eax, 2
shr edi, 0x1f
add edi, eax
and edi, 0xfffffffe
mov dword [ebp - 0x20], esi
mov eax, dword [esi + edi*2]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx]
test cl, cl
je 0x412baa
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
cmp cl, byte [eax]
jne 0x412baf
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x412b9a
xor ecx, ecx
jmp 0x412baf
xor ecx, ecx
mov esi, dword [ebp - 0x20]
lea ebx, [esi + edi*2]
movzx ecx, cl
movzx eax, byte [eax]
mov edx, ecx
sub edx, eax
test edx, edx
lea edx, [ebx + 4]
cmovg esi, edx
cmp ecx, eax
mov edi, dword [ebp - 0x10]
cmovs edi, ebx
je 0x412bd9
xor eax, eax
cmp esi, edi
jne 0x412b59
jmp 0x412ad7
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x10]
call edi
sub ebx, dword [ebp - 0x24]
sar ebx, 1
movzx eax, word [eax + ebx]
mov ecx, dword [ebp - 0x1c]
add ax, word [ecx + 0x10]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
jmp 0x412b14
Function at 0x413450
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [0x438160]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x413493
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0040a740
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x438160
call fcn.0040a751
add esp, 4
cmp dword [0x438160], 0xffffffff
jne 0x413482
xorps xmm0, xmm0
mov esi, esp
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
mov eax, dword [esi + 0x20]
mov dword [0x43815c], eax
movaps xmm0, xmmword [esi]
movaps xmm1, xmmword [esi + 0x10]
movups xmmword [0x43814c], xmm1
movups xmmword [0x43813c], xmm0
push 0x438160
call fcn.0040a751
add esp, 4
jmp 0x413482
Function at 0x416450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0042d4b0
test al, al
je 0x416474
push 0x32
push dword [esi]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, dword [esi + 0x20]
mov dword [esi + 0x20], 0
test edi, edi
je 0x416492
mov ecx, edi
call fcn.0042b5c0
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x30]
call fcn.0040e270
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4164ab
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [esi + 0x20]
test edi, edi
je 0x4164c2
mov ecx, edi
call fcn.0042b5c0
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x18]
call fcn.004065e0
lea ecx, [esi + 0x14]
call fcn.004065e0
lea ecx, [esi + 0x10]
call fcn.004065e0
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.00413220
Function at 0x41a3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov edi, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x1126
push edi
call fcn.0041abd0
add esp, 4
test al, al
je 0x41a432
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x28]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
mov ecx, edi
mov edx, esi
call fcn.0042d9a0
mov ebx, eax
mov ecx, esi
call fcn.0042da60
mov bh, al
mov ecx, esi
mov edx, esi
call fcn.0042daa0
mov cl, bh
test bl, bl
jne 0x41a482
test cl, cl
jne 0x41a482
mov ebx, 0x7b
test al, al
jne 0x41a482
lea ecx, [ebp - 0x28]
call fcn.004027f0
jmp 0x41a41b
test cl, cl
mov ebx, eax
je 0x41a5cc
cmp dword [ebp - 0x14], 7
jbe 0x41a495
mov esi, dword [ebp - 0x28]
lea edi, [ebp - 0x230]
push 0x104
push edi
push esi
call dword [sym.imp.kernel32.dll_GetVolumePathNameW]
test eax, eax
je 0x41a4c3
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
dec esi
cmp dword [ebp - 0x14], 7
jbe 0x41a4d4
mov eax, dword [ebp - 0x28]
jmp 0x41a4d7
test bl, bl
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x41a478
lea eax, [ebp - 0x28]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
mov ebx, 0x7b
test eax, eax
jne 0x41a478
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x41a4f8
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a559
bt eax, 0xa
jb 0x41a5c5
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x41a51a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
xor edx, edx
dec edx
test ecx, ecx
je 0x41a536
lea ebx, [eax + ecx*2]
add ebx, 0xfffffffe
cmp word [ebx], 0x5c
jne 0x41a57a
mov edx, ebx
sub edx, eax
sar edx, 1
mov edi, edx
sub edi, ecx
jbe 0x41a549
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.00402d70
jmp 0x41a552
mov dword [ebp - 0x18], edx
mov word [eax + edx*2], 0
cmp dword [ebp - 0x18], esi
ja 0x41a4ec
jmp 0x41a5bb
call dword [sym.imp.kernel32.dll_GetLastError]
lea ecx, [eax - 1]
cmp ecx, 3
jae 0x41a59e
mov ebx, dword [ebp - 0x234]
cmp ecx, 3
jae 0x41a5a7
mov dword [ebp - 0x234], ebx
jmp 0x41a50e
lea edx, [ecx + ecx]
mov edi, 2
sub edi, edx
test edi, edi
je 0x41a599
lea edx, [ebx - 2]
add edi, 2
cmp word [ebx - 2], 0x5c
mov ebx, edx
jne 0x41a584
jmp 0x41a532
xor edx, edx
dec edx
jmp 0x41a536
mov ebx, eax
cmp eax, 0x7b
je 0x41a567
jmp 0x41a56d
mov dword [ebp - 0x234], ebx
cmp eax, 0x7b
je 0x41a50e
jmp 0x41a478
mov ebx, 0x1126
jmp 0x41a478
xor ebx, ebx
jmp 0x41a478
lea ecx, [ebp - 0x28]
push 4
push str.._
push 0
call fcn.0041a960
jmp 0x41a48c
Function at 0x41e950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0xd0], eax
test edx, edx
jne 0x41e993
xor edi, edi
cmp dword [esi + 8], 0
jne 0x41e9c4
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
inc edi
mov ebx, 0x430476
mov ecx, esi
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
push ebx
call fcn.00418010
mov ecx, esi
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push ebx
call fcn.00418010
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 8], eax
sub esp, 0x14
movaps xmm0, xmmword [0x430460]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov dword [esp + 4], eax
mov ebx, dword [esi + 8]
shl ebx, 6
lea ecx, [ebx + 0x50]
mov dword [esp + 0xc], ecx
call fcn.0041e2d0
mov edi, eax
mov eax, 0xfffff000
mov ecx, edi
and ecx, eax
add ecx, dword [esp + 4]
and edi, 0xfff
add ebx, 0x104f
and ebx, eax
push 0x40
push 0x1000
push ebx
push ecx
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov ebx, eax
test eax, eax
jne 0x41ea51
lea ecx, [esp + 0x18]
push str.thunk_base
push 0x188
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
call fcn.0040d320
lea ecx, [esp + 0x18]
call fcn.0040d3c0
add ebx, edi
lea edi, [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], 0x10
push 0xa8
push eax
push sym.plugin_container.exe_g_originals
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
mov dword [esp + 4], ebx
mov edx, ebx
push edi
push dword [esp + 0x10]
call fcn.0041ed10
add esp, 8
mov edi, eax
test eax, eax
jne 0x41e97b
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x20]
push eax
mov ebx, dword [esp + 0x10]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
mov edi, 0x2a
test eax, eax
je 0x41e97b
cmp dword [esp + 0x14], 0x10
jne 0x41e97b
lea eax, [esp + 0x10]
push eax
push 0x20
push dword [esp + 0x14]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
mov ecx, dword [esi]
push 0xa8
push sym.plugin_container.exe_g_originals
push str.g_originals
call fcn.0041bdf0
mov edi, eax
jmp 0x41e97b
Function at 0x41fc60
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x43700c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
cmp eax, 3
jne 0x41fcfc
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 7
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jbe 0x41fc9f
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x41fd13
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
jmp 0x41fd0b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, 5
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
dec edi
jmp 0x41fcde

Function at 0x424090
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
sub esp, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
movaps xmm0, xmmword [0x4308c0]
movups xmmword [esp], xmm0
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00403330
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4240de
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425bb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 5]
mov edi, 5
cmp eax, 1
jbe 0x425be7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], 7
jbe 0x425c0f
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov edx, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x425c27
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp dword [esi + 0x14], 7
jbe 0x425c3a
mov esi, dword [esi]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
sub esp, 0x28
mov dword [esp + 0x24], ebx
lea ecx, [ebp - 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x425ce7
mov eax, dword [ebp + 8]
cmp eax, 6
mov eax, 0x1fffff
mov esi, 0x101c01
cmove esi, eax
mov eax, dword [ebx]
mov dword [ebp - 0x60], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
je 0x425d01
cmp dword [ebp + 8], 6
mov esi, 0x100c43
mov eax, 0x1fffff
cmove esi, eax
mov edi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x425bd3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x425bd3
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x425ce7

Function at 0x425d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
test eax, eax
je 0x425dcf
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.kernel32.dll_GetLastError]
Function at 0x427b00
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x3f0
cmp byte [ecx + 0x38], 0
jne 0x427b34
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
mov eax, edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, ecx
lea edx, [ecx + 0x30]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.00427c30
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x427c26
mov dword [ebp - 0x60], esi
cmp dword [edi], 0
je 0x427c16
xor edx, edx
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x64], eax
test dword [edi + edx*8 + 8], 0xc0000020
je 0x427b81
inc edx
cmp edx, dword [edi]
jb 0x427b6d
jmp 0x427c16
cmp dword [ebp + 8], 0
je 0x427bd2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x427bd2
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x68], edx
mov eax, dword [edi + edx*8 + 4]
mov dword [ebp - 0x6c], eax
add ecx, esi
call fcn.0040bf10
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.advapi32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0x427b77
inc ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
add esi, 0x44
cmp ebx, eax
jb 0x427b98
lea ecx, [ebp - 0x54]
mov ebx, edx
push dword [edi + edx*8 + 4]
call fcn.00413a90
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, eax
je 0x427c07
push 0x44
lea ecx, [ebp - 0x54]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], 0x44
mov edx, ebx
jmp 0x427b77
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.00414650
jmp 0x427c00
push edi
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
xor edi, edi
jmp 0x427b1e
mov edi, dword [ebp - 0x58]
jmp 0x427b1e

Function at 0x42de40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x42dec6
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.0042ded0
test al, al
je 0x42dec6
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x42dec6
mov edi, eax
mov ecx, eax
call fcn.0042ded0
test al, al
je 0x42dec6
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004067c0
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42dec8
cmp byte [esi + 0x14], 0
jne 0x42deb6
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00404cf0
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42e380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x438438]
mov ecx, dword [0x437100]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42e3fc
mov eax, dword [esi + 8]
test eax, eax
jne 0x42e3d2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a740
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x438434]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
je 0x42e3b9
jmp 0x42e3e1
push 0x438438
call fcn.0040a751
add esp, 4
cmp dword [0x438438], 0xffffffff
jne 0x42e3b2
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x438434], eax
push 0x438438
call fcn.0040a751
add esp, 4
jmp 0x42e3b2
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219