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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 7
jbe 0x404e3a
mov ecx, dword [ecx]
test esi, 0x7fffffff
mov dword [ebp - 0x10], edx
je 0x404e60
lea edi, [esi + esi]
mov eax, 0x811c9dc5
mov ebx, ecx
movzx edx, byte [ebx]
inc ebx
xor edx, eax
imul eax, edx, 0x1000193
dec edi
jne 0x404e4f
jmp 0x404e65
mov eax, 0x811c9dc5
mov edi, dword [ebp - 0x14]
mov edx, dword [edi + 4]
and eax, dword [edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x20], edx
mov edx, dword [edx + eax*8]
lea eax, [eax + eax + 1]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
je 0x404e97
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
cmp eax, edx
je 0x404ee1
cmp dword [edx + 0x18], esi
jne 0x404ec5
cmp dword [edx + 0x1c], 7
jbe 0x404eab
mov eax, dword [edx + 8]
jmp 0x404eae
lea eax, [edx + 8]
test esi, esi
je 0x404eda
xor ebx, ebx
movzx edi, word [eax + ebx*2]
cmp di, word [ecx + ebx*2]
jne 0x404ec5
inc ebx
cmp esi, ebx
jne 0x404eb4
jmp 0x404ec9
mov edx, dword [edx]
jmp 0x404e84
xor edi, edi
movzx ebx, word [ecx + edi*2]
cmp bx, word [eax + edi*2]
jne 0x404ee1
inc edi
cmp esi, edi
jne 0x404ecb
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x404ee9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404f00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
movzx eax, byte [ebx]
movzx esi, byte [ebx + 1]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [ebx + 2]
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [ebx + 3]
mov ebx, dword [ebx]
xor esi, eax
mov eax, dword [ecx + 4]
imul edi, esi, 0x1000193
and edi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + edi*8]
lea edi, [edi + edi + 1]
mov dword [ebp - 0x10], edi
mov edi, ecx
mov ecx, esi
cmp esi, eax
mov edx, esi
je 0x404f68
mov edx, dword [ebp - 0x10]
mov edx, dword [edi + edx*4]
mov edx, dword [edx]
cmp edx, ecx
je 0x404fa6
cmp dword [ecx + 8], ebx
je 0x404f75
mov ecx, dword [ecx]
jmp 0x404f5a
mov edx, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
cmp esi, eax
mov edi, esi
je 0x404f95
mov ebx, eax
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov edi, dword [edi + eax*4]
mov eax, ebx
mov ebx, dword [ebp - 0x18]
mov edi, dword [edi]
cmp edi, edx
je 0x404fa2
cmp ebx, dword [edx + 8]
jne 0x404fa2
mov edx, dword [edx]
jmp 0x404f7d
cmp ecx, edx
jne 0x404faa
mov ecx, eax
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405080
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], esi
movzx eax, byte [ecx + 8]
movzx edx, byte [ecx + 9]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
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]
mov esi, dword [esi + 0xc]
lea ebx, [edi + edi]
lea edx, [esi + edi*8]
cmp dword [esi + ebx*4 + 4], ecx
mov eax, dword [edx]
jne 0x4050f6
cmp eax, ecx
jne 0x405101
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov dword [edx], eax
lea edx, [edi + edi + 1]
lea edi, [ebx + 4]
shl edx, 2
add edx, dword [ebx + 0xc]
jmp 0x40510b
mov ebx, dword [ebp - 0x10]
cmp eax, ecx
jne 0x40510f
mov edi, ecx
jmp 0x40510b
lea edx, [esi + ebx*4 + 4]
mov ebx, dword [ebp - 0x10]
lea edi, [ecx + 4]
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.00403cb0
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 8]
cmp dword [ecx], edi
je 0x405e86
mov esi, ecx
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi]
mov dword [ebp - 0x1c], eax
inc ecx
cmp ecx, 2
jae 0x405e90
lea eax, [edi + 1]
cmp eax, 2
jb 0x405e7d
mov dword [esi], edi
call fcn.00405c70
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
call sym.plugin_container.exe_GetHandleVerifier
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
push dword [ebp + 8]
call ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_SetLastError]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00405c70
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
call sym.plugin_container.exe_GetHandleVerifier
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
call edi
mov edi, dword [esi]
call sym.plugin_container.exe_GetHandleVerifier
mov ebx, eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [section..00cfg]
mov ecx, ebx
push edi
mov edi, dword [ebp + 8]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x405e43
Function at 0x40a850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.0042f540
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x436028]
cmp eax, 0xffffffff
je 0x40a882
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
jne 0x40a897
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, 0xfffffffc
lea edi, [ebp - 0x810]
push 0x800
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [0x436028]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1418], ecx
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test ebx, ebx
je 0x40a8d6
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
call fcn.0040abc0
mov esi, eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x1410]
push 0xc00
push 0x436510
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov edx, 0x100
mov al, 1
test al, al
je 0x40a959
mov ebx, 0xfffff400
xor eax, eax
mov esi, dword [edi]
test esi, esi
jne 0x40a926
add edi, 8
add ebx, 0xc
jne 0x40a916
jmp 0x40a949
cmp dword [ebp + ebx - 0x810], 0
je 0x40a91c
mov ecx, dword [edi + 4]
cmp ecx, dword [ebp + ebx - 0x808]
jne 0x40a91c
mov ecx, dword [ebp + ebx - 0x80c]
test ecx, ecx
je 0x40a91c
jmp 0x40a96c
cmp edx, 2
lea edi, [ebp - 0x810]
jb 0x40a959
dec edx
and al, 1
jmp 0x40a90b
push 2
push dword [ebp - 0x1418]
call dword [sym.imp.kernel32.dll_TlsSetValue]
jmp 0x40a882
mov dword [edi], 0
mov dword [ebp - 0x1414], edx
call dword [section..00cfg]
push esi
call ecx
mov edx, dword [ebp - 0x1414]
add esp, 4
mov al, 1
jmp 0x40a91c
Function at 0x40aca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [0x43600c]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xc0], eax
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0
mov eax, dword [0x436028]
cmp eax, 0xffffffff
je 0x40ace1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x40ace6
call fcn.0040a990
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437114]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40ad3f
push 0x437114
call fcn.0042e41b
add esp, 4
cmp dword [0x437114], 0xffffffff
jne 0x40ad3f
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, eax
mov edi, eax
call fcn.00408c90
mov dword [0x437110], edi
push 0x437114
call fcn.0042e41b
add esp, 4
mov edi, dword [0x437110]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x43650c]
mov ecx, 0x100
inc eax
movzx edx, al
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x436510], 0
jne 0x40ade0
mov ecx, dword [ebp + 8]
lea eax, [ebx*4 + 0x436510]
mov dword [0x43650c], edx
mov dword [eax], 1
lea eax, [edx*4]
mov dword [eax + eax*2 + 0x436514], ecx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x436518]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x40adea
mov eax, dword [esi]
mov dword [esp + 8], 0x100
cmp eax, 0xff
mov dword [esp + 4], eax
jg 0x40ae24
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0042ee00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc eax
dec ecx
jne 0x40ad57
jmp 0x40ad97
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.00402470
add esp, 0xc
test eax, eax
je 0x40adb1
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x196
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.00402280
mov ecx, edi
call fcn.004022e0
jmp 0x40adb1
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.00402470
add esp, 0xc
test eax, eax
je 0x40adc6
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.00402280
mov ecx, edi
call fcn.004022e0
jmp 0x40adc6
Function at 0x40b380
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 0x40b3a5
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x3c]
cmp dword [eax + ebx + 0x74], 0
je 0x40b3a5
cmp word [eax + ebx + 0x14], 0x68
jae 0x40b3af
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x18], edx
mov edx, dword [ecx]
mov eax, dword [eax + ebx + 0x78]
mov esi, ecx
mov ebx, dword [edx + 4]
mov dword [ebp - 0x10], eax
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 0x40b3a5
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffff
ja 0x40b3e8
mov word [edi], cx
mov al, 1
jmp 0x40b3a7
mov ecx, dword [eax + 0x20]
mov edi, dword [ebp - 0x14]
mov esi, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi]
mov ebx, dword [ecx + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov edx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], esi
lea ecx, [eax*4]
test ecx, ecx
je 0x40b3a5
lea ecx, [edx + eax*4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov esi, edx
inc eax
mov dword [ebp - 0x28], eax
mov eax, ecx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
sub eax, esi
mov ecx, eax
shr eax, 0x1f
sar ecx, 2
add eax, ecx
mov ecx, dword [edi]
and eax, 0xfffffffe
lea eax, [esi + eax*2]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx]
test cl, cl
je 0x40b47c
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
cmp cl, byte [eax]
jne 0x40b481
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
jne 0x40b46e
jmp 0x40b47f
mov edi, dword [ebp - 0x20]
xor ecx, ecx
movzx eax, byte [eax]
movzx ecx, cl
lea ebx, [edi + 4]
mov edx, ecx
sub edx, eax
test edx, edx
cmovg esi, ebx
cmp ecx, eax
mov ecx, dword [ebp - 0x10]
cmovs ecx, edi
je 0x40b4a8
xor eax, eax
cmp esi, ecx
jne 0x40b429
jmp 0x40b3a7
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x24]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push dword [ebp - 0x10]
call esi
sub edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [ecx + 0x10]
mov word [edx], ax
jmp 0x40b3e4
Function at 0x40c310
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [esp + 0x2c], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437160]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c355
mov ecx, dword [esp + 0x2c]
xor ecx, ebp
call fcn.0042ee00
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x437160
call fcn.0042e41b
add esp, 4
cmp dword [0x437160], 0xffffffff
jne 0x40c343
mov esi, esp
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
mov ecx, 9
mov edi, 0x43713c
rep movsd dword es:[edi], dword [esi]
push 0x437160
call fcn.0042e41b
add esp, 4
jmp 0x40c343
Function at 0x416710
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 eax, dword [0x43600c]
mov esi, ecx
xor eax, ebp
test edx, edx
mov dword [esp + 0xd0], eax
jne 0x416753
xor edi, edi
cmp dword [esi + 8], 0
jne 0x416784
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.0042ee00
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov ebx, 0x4303f6
mov ecx, esi
inc edi
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
push ebx
call fcn.004161c0
mov ecx, esi
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push ebx
call fcn.004161c0
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 8], eax
push 1
push 0x2000
push 0x10000
push 0
push eax
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov ebx, dword [esi + 8]
mov dword [esp + 4], eax
shl ebx, 6
lea ecx, [ebx + 0x50]
mov dword [esp + 0xc], ecx
call fcn.00415ff0
mov edi, eax
mov eax, 0xfffff000
add ebx, 0x104f
mov ecx, edi
and edi, 0xfff
and ebx, eax
and ecx, eax
add ecx, dword [esp + 4]
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 0x41680e
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.00402240
lea ecx, [esp + 0x18]
call fcn.004022e0
mov eax, dword [esp + 0xc]
add ebx, edi
lea edi, [esp + 0x18]
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.00416aa0
add esp, 8
mov edi, eax
test eax, eax
jne 0x41673b
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]
test eax, eax
mov edi, 0x2a
je 0x41673b
cmp dword [esp + 0x14], 0x10
jne 0x41673b
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.00428e50
mov edi, eax
jmp 0x41673b
Function at 0x417bd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x43600c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, 5
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
jne 0x417c63
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 7
jbe 0x417c14
mov edi, dword [edi]
mov ebx, dword [ebx]
push 0
push esi
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x417c77
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
lea eax, [ebp - 0x14]
sbb edi, edi
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.0042ee00
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
dec edi
jmp 0x417c53

Function at 0x41c0b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
push ebx
push edx
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00405e20
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x41c0f3
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 0x41f580
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 [0x43600c]
mov edi, 5
add ecx, 0xfffffffb
xor eax, ebp
cmp ecx, 1
mov dword [ebp - 0x10], eax
jbe 0x41f5b7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor edi, edi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], 7
jbe 0x41f5fe
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push eax
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x41f616
mov esi, dword [esi]
test edx, edx
mov ecx, dword [ebp + 0xc]
cmove esi, edx
cmp dword [ebx + 0x14], 7
jbe 0x41f626
mov ebx, dword [ebx]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x54]
push edx
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x58], eax
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x41f6c1
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov ebx, 0x101c01
cmp eax, 6
mov eax, 0x1fffff
cmove ebx, eax
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push ebx
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov ebx, dword [esi + 4]
test eax, eax
je 0x41f6db
mov eax, esi
mov esi, 0x100c43
mov ecx, 0x1fffff
add eax, 4
cmp dword [ebp + 8], 6
mov edi, eax
cmove esi, ecx
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push esi
push edi
push dword [ebp - 0x5c]
push ebx
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 0x41f5a3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x41f5a3
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x41f6c1
Function at 0x41f6f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebx], ecx
xor ebx, ebx
push edi
mov edi, eax
push esi
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [eax]
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
test eax, eax
je 0x41f761
mov edi, dword [edi]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 3
push ebx
push ebx
push dword [ebp - 0x10]
push edi
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.kernel32.dll_GetLastError]

Function at 0x421120
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x43600c]
mov edi, 0x3f0
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
jne 0x421154
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, ecx
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
lea edx, [ecx + 0x30]
mov ecx, edi
push eax
push 2
call fcn.00421250
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x421245
cmp dword [edi], 0
mov dword [ebp - 0x60], esi
je 0x421235
mov eax, dword [ebp - 0x60]
xor edx, edx
add eax, 0x18
mov dword [ebp - 0x64], eax
test dword [edi + edx*8 + 8], 0xc0000020
je 0x4211a1
inc edx
cmp edx, dword [edi]
jb 0x42118d
jmp 0x421235
cmp dword [ebp + 8], 0
je 0x4211b1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
jne 0x4211e3
mov ebx, edx
lea ecx, [ebp - 0x54]
push dword [edi + edx*8 + 4]
call fcn.00426d60
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, eax
je 0x421226
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 0x421197
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x68], edx
mov eax, dword [edi + edx*8 + 4]
add ecx, esi
mov dword [ebp - 0x6c], eax
call fcn.004270c0
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.advapi32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0x421197
mov eax, dword [ebp + 8]
inc ebx
add esi, 0x44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp ebx, eax
jb 0x4211ea
jmp 0x4211b1
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.0040d3c0
jmp 0x4211df
push edi
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
xor edi, edi
jmp 0x42113e
mov edi, dword [ebp - 0x58]
jmp 0x42113e