joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4186b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x456a40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4186fb
cmp word [ebx], dx
jne 0x4186fb
or byte [eax + edi + 0x28], 4
jmp 0x418700
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418863
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418843
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418741
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418777
cmp eax, edx
jae 0x418785
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41871c
jmp 0x418863
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41883e
cmp dword [ebp - 0x18], 0
je 0x41883e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x456a40]
test byte [eax + edi + 0x28], 0x48
je 0x418814
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4187d8
mov word [esi], cx
jmp 0x41880f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x456a40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x456a40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x456a40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418863
pop eax
cmp word [ebp - 4], ax
jne 0x418824
cmp esi, ebx
jne 0x418824
mov word [esi], ax
jmp 0x418860
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041149e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418863
push 0xd
pop eax
jmp 0x41881f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x456a40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41885d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418863
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bbdf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4485a8
push 0x4485a0
push str.FlsAlloc
push 0x1f
call fcn.0041ba9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bc13
push dword [ebp + 8]
mov ecx, esi
call dword [0x426254]
call esi
jmp 0x41bc19
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41bc5d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4485b8
push 0x4485b0
push str.FlsGetValue
push 0x21
call fcn.0041ba9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bc94
push dword [ebp + 8]
mov ecx, esi
call dword [0x426254]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41bc9c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4485c0
push 0x4485b8
push str.FlsSetValue
push 0x22
call fcn.0041ba9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bcd6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x426254]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41ff08
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ffa5
push ebx
push esi
call fcn.0041fed1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b809
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ff52
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ffa4
push edi
push eax
call fcn.0041a10d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ff72
call fcn.0041a076
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ffa3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b809
add esp, 0x20
test eax, eax
jne 0x41ff91
push edi
call fcn.0041a076
jmp 0x41ff99
push ebx
call fcn.0041a076
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ffa8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ffb9
pop esi
ret
push ebx
push edi
push esi
call fcn.0041fed1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a10d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ffe1
push ebx
push esi
push edi
call fcn.0040b720
add esp, 0xc
push 0
call fcn.0041a076
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42073b
Capabilities:
Set environment variable

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

Function at 0x425500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42552d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42552d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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 0x40b750
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 0x40b863
mov edi, edx
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x40b863
mov dword [ebp - 0x18], ecx
cmp word [eax + edx + 0x14], 0x68
jb 0x40b863
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 0x40b863
cmp edi, 0xffff
jbe 0x40b897
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 0x40b863
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 0x40b8a7
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
cmp cl, byte [eax]
jne 0x40b844
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40b836
xor ecx, ecx
lea ebx, [edi + esi*2]
movzx eax, byte [eax]
cmp cl, al
je 0x40b867
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 0x40b7f5
xor eax, eax
jmp 0x40b89f
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 0x40b844
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.0041700a
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.00416fc0
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.0041700a
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.00416fc0
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.0041700a
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.00416fc0
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