joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b60
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420488
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x42a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
push 0x400
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x6c]
push edx
push 0x400
mov eax, dword [ebp - 0x6c]
add eax, 0x800
push eax
call fcn.0040cc0c
add esp, 0xc
mov ecx, dword [ebp - 0x6c]
add ecx, 0x800
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x6c]
call fcn.00402450
mov ecx, dword [ebp - 0x6c]
call fcn.00401d20
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 4
jne 0x401c8c
push 0x44
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.0040af70
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push 4
lea ecx, [ebp - 0x14]
call fcn.00402890
lea ecx, [ebp - 0x14]
call fcn.004011b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
push ecx
push str.__s_
lea edx, [ebp - 0x14]
push edx
call fcn.004017e0
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x6c]
add edx, 0x800
push edx
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00401960
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401c7d
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004012e0
push 0xdead
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409345
mov esp, ebp
pop ebp
ret 4
Function at 0x408a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408a24
xor eax, eax
jmp 0x408aa4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408a3b
xor eax, eax
jmp 0x408aa4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x408a87
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x408a87
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x408a5e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x408a93
xor eax, eax
jmp 0x408aa4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x408aa1
xor eax, eax
jmp 0x408aa4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408c28
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x408c2a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408c30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4205d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x42a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401350
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408c8f
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004012e0
mov eax, dword [ebp - 0x18]
jmp 0x408d01
push 4
lea ecx, [ebp - 0x14]
call fcn.00402890
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401960
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00401190
call fcn.00408c30
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004012e0
push 0
lea ecx, [ebp + 8]
call fcn.00401350
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004012e0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409345
mov esp, ebp
pop ebp
ret

Function at 0x416ca2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416b18

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x65b33c96
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6b3f6ded
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret

Function at 0x4ca23b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4c9fca
dec esi
or esi, esi
sub edi, esi
call fcn.004ca281
add edi, edi
mov esi, 0x3a126bb3
xor dword [ecx], edx
mov edi, edi
and edi, esi
inc ecx
or edi, edi
sub esi, edi
cmp ecx, eax
jne fcn.004ca23b
and esi, edi
sub edi, 0x548fdfc4
add esi, 0x386c87a
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.00415180
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.00414c00
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.00415260
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 0x406ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ebp + 8], 0
je 0x406fb3
mov edi, edx
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x406fb3
mov dword [ebp - 0x18], ecx
cmp word [eax + edx + 0x14], 0x68
jb 0x406fb3
mov eax, dword [eax + edx + 0x78]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406fb3
cmp edi, 0xffff
jbe 0x406fe7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x406fb3
lea esi, [eax + ecx*4]
mov dword [ebp - 0x24], edi
lea ecx, [edi + 1]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov edi, eax
mov dword [ebp - 0x28], esi
sub esi, edi
mov eax, esi
sar eax, 2
shr esi, 0x1f
add esi, eax
and esi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov eax, dword [edi + esi*2]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x2c]
call ebx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx]
test cl, cl
je 0x406ff7
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
cmp cl, byte [eax]
jne 0x406f94
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x406f86
xor ecx, ecx
lea ebx, [edi + esi*2]
movzx eax, byte [eax]
cmp cl, al
je 0x406fb7
movzx ecx, cl
cmp ecx, eax
lea eax, [ebx + 4]
cmovg edi, eax
mov esi, dword [ebp - 0x28]
cmovs esi, ebx
cmp edi, esi
jne 0x406f45
xor eax, eax
jmp 0x406fef
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
push dword [ebp - 0x10]
call esi
sub ebx, dword [ebp - 0x1c]
sar ebx, 1
movzx edi, word [eax + ebx]
mov eax, dword [ebp - 0x14]
add di, word [eax + 0x10]
mov eax, dword [ebp + 8]
mov word [eax], di
mov al, 1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov edi, dword [ebp - 0x10]
jmp 0x406f94
Function at 0x408d40
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x408e69
mov dword [ebp - 0x60], ecx
lea edx, [ecx + 0x30]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.00409060
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0x408e70
cmp dword [edx], 0
je 0x408e48
mov eax, dword [ebp - 0x60]
add eax, 0x18
mov dword [ebp - 0x68], eax
xor esi, esi
mov dword [ebp - 0x64], edx
test dword [edx + esi*8 + 8], 0xc0000020
jne 0x408e2b
cmp dword [ebp + 8], 0
je 0x408de8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [ecx + 4], eax
je 0x408de8
xor edi, edi
xor ebx, ebx
add eax, edi
push dword [edx + esi*8 + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x64]
test eax, eax
jne 0x408e2b
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 edi, 0x44
cmp ebx, ecx
jb 0x408db9
mov eax, dword [edx + esi*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 edi, dword [ebp - 0x60]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jne 0x408e36
mov ecx, dword [ebp - 0x68]
push ebx
push eax
call fcn.00408e80
mov edx, dword [ebp - 0x64]
inc esi
cmp esi, dword [edx]
jb 0x408d97
jmp 0x408e48
push 0x44
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 0x1c], 0x44
jmp 0x408e28
push edx
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 0x3f0
jmp 0x408e53
mov esi, dword [ebp - 0x58]
jmp 0x408e53
Function at 0x40b940
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 0x40ba07
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 0x40b9f3
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 0x40ba45
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x40ba55
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 0x40b9c1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4393b8
call fcn.00413e6a
add esp, 4
cmp dword [0x4393b8], 0xffffffff
jne 0x40b98b
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.00413e20
add esp, 4
jmp 0x40b98b
mov dword [ebp - 0x34], 0
mov ecx, esi
call fcn.0042fbf0
jmp 0x40b9f3
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
call fcn.0042fcb0
test al, al
je 0x40ba4c
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
jmp 0x40b9de
Function at 0x40ece0
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 0x40ed14
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x40ed19
call fcn.0040eea0
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 0x40ed6e
push 0x439094
call fcn.00413e6a
add esp, 4
cmp dword [0x439094], 0xffffffff
jne 0x40ed6e
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.00413e20
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 0x40ee0d
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 0x40ee1c
mov eax, dword [esi]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
cmp eax, 0xff
jg 0x40ee56
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.00414c00
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc ecx
cmp ecx, 0x100
jne 0x40ed83
jmp 0x40edc6
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.0041b340
add esp, 0xc
test eax, eax
je 0x40ede0
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.0041b070
mov ecx, edi
call fcn.0041b100
jmp 0x40ede0
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.0041b340
add esp, 0xc
test eax, eax
je 0x40edf5
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.0041b070
mov ecx, esi
call fcn.0041b100
jmp 0x40edf5
Function at 0x410e00
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 0x410f9e
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 0x410f1f
mov dword [ebp - 0x20], ecx
jbe 0x410ee7
mov ecx, dword [edx + 8]
sub ecx, ebx
mov ebx, dword [ebp - 0x1c]
cmp ecx, ebx
jae 0x410f29
test ebx, ebx
js 0x410f44
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 0x410f49
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 0x410f68
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 0x410f98
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
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 0x410ee7
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 0x410ee7
call fcn.0041a2f0
cmp esi, 0xffffffdd
jae 0x410fa5
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 0x410ea7
mov eax, dword [eax + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x410f86
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x410faa
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 0x410ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x410f0b
call fcn.0041acd0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]