joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ed30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ac8b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x10064008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x420], esi
xor eax, eax
mov dword [ebp - 0x424], 0
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push eax
push 0x204
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x420]
mov dword [ebp - 0x420], eax
lea ecx, [ebp - 0x41c]
call fcn.1002bc40
lea edx, [ebp - 0x41c]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.1001dd80
mov edi, dword [ebp - 0x41c]
add edi, 0xfffffff8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x1001ede1
cmp edi, 0x10088fa4
je 0x1001ede1
push edi
call fcn.1002e9c1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002e779
mov esp, ebp
pop ebp
ret
Function at 0x1001ee00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x10064008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x278], eax
mov esi, ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x274], eax
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
jne 0x1001ee92
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.1002b870
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x1001eeb9
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002e779
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001eeb9
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002e779
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 0x230]
lea edx, [ebp - 0x264]
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x260]
call fcn.1002bc40
mov esi, dword [ebp - 0x260]
lea edi, [esi - 8]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea esi, [eax - 8]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x1001ef13
cmp esi, 0x10088fa4
je 0x1001ef13
push esi
call fcn.1002e9c1
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x1001ef30
cmp edi, 0x10088fa4
je 0x1001ef30
push edi
call fcn.1002e9c1
add esp, 4
mov edx, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x25c]
test edx, edx
je 0x1001ef49
mov eax, ecx
shr eax, 4
and al, 1
mov byte [edx], al
mov edx, dword [ebp - 0x270]
test edx, edx
je 0x1001ef5b
mov eax, ecx
shr eax, 1
and al, 1
mov byte [edx], al
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x1001ef6a
and cl, 1
mov byte [eax], cl
test ebx, ebx
je 0x1001ef84
mov ecx, dword [ebp - 0x240]
xor eax, eax
add eax, dword [ebp - 0x23c]
mov dword [ebx], eax
adc ecx, 0
mov dword [ebx + 4], ecx
mov ebx, dword [ebp - 0x278]
test ebx, ebx
je 0x1001efb8
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x244]
add ecx, 0x2ac18000
push 0
push 0x2710
adc eax, 0xfe624e21
push eax
push ecx
call fcn.10047580
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp - 0x27c]
test ebx, ebx
je 0x1001efec
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
add ecx, 0x2ac18000
push 0
push 0x2710
adc eax, 0xfe624e21
push eax
push ecx
call fcn.10047580
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e779
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10023800
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b36a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10064008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
add edi, 0x18
push edi
call fcn.100239b0
test al, al
je 0x1002398e
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.1001dd80
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.1001ed30
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.1001e1f0
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.1002b870
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add edi, 0xfffffff8
push edi
call ebx
cmp eax, 0xffffffff
jne 0x100238a9
cmp edi, 0x10088fa4
je 0x100238a9
push edi
call fcn.1002e9c1
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.1001f7d0
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x100238c4
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 4
test edi, edi
je 0x10023927
mov eax, dword [ebp + 8]
push 0x1d8
mov eax, dword [eax + 0x28]
mov dword [0x1008a444], eax
call fcn.1002e989
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.100201a0
test eax, eax
mov byte [ebp - 4], 4
cmovne esi, eax
mov dword [ebp - 0x14], esi
mov ecx, esi
mov eax, dword [esi + 0x88]
test eax, eax
je 0x10023918
mov dword [eax + 0x2c], esi
call fcn.100205b0
jmp 0x10023927
xor esi, esi
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x10023927
mov eax, dword [ecx]
push 1
call dword [eax]
lea edx, [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.1002b870
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test edi, edi
je 0x10023950
lea eax, [edi + 4]
push eax
call ebx
test eax, eax
jne 0x10023950
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov edi, dword [ebp - 0x18]
add edi, 0xfffffff8
push edi
call ebx
cmp eax, 0xffffffff
jne 0x1002396f
cmp edi, 0x10088fa4
je 0x1002396f
push edi
call fcn.1002e9c1
add esp, 4
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff8
push edi
call ebx
cmp eax, 0xffffffff
jne 0x1002398e
cmp edi, 0x10088fa4
je 0x1002398e
push edi
call fcn.1002e9c1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100239b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b3b1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x10064008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 8]
mov edx, dword [ebp + 8]
call fcn.1001dd80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.1001dbc0
test eax, eax
setne al
test al, al
je 0x10023a4f
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.1002b870
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x10023a4f
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], str..dll
lea ecx, [ebp - 0x14]
call fcn.1002bb00
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.1001e720
test al, al
je 0x10023a4f
mov bl, 1
jmp 0x10023a51
xor bl, bl
test byte [ebp - 0x10], 1
je 0x10023a7a
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff8
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x10023a7a
cmp esi, 0x10088fa4
je 0x10023a7a
push esi
call fcn.1002e9c1
add esp, 4
mov esi, dword [ebp + 8]
add esi, 0xfffffff8
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x10023a9d
cmp esi, 0x10088fa4
je 0x10023a9d
push esi
call fcn.1002e9c1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10023ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b3d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10064008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
lea edx, [edx + 0x18]
call fcn.1001dd80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1001dbc0
test eax, eax
je 0x10023b48
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1002b870
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10023b48
mov bl, 1
jmp 0x10023b4a
xor bl, bl
mov esi, dword [ebp + 8]
add esi, 0xfffffff8
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0xffffffff
jne 0x10023b6d
cmp esi, 0x10088fa4
je 0x10023b6d
push esi
call fcn.1002e9c1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10025760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b737
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10064008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
lea edx, [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x44], 0
mov ecx, dword [edx + 8]
inc ecx
cmp ecx, dword [edx + 4]
jle 0x10025837
mov eax, ecx
add ecx, 8
cdq
sub eax, edx
sar eax, 1
add eax, ecx
lea ecx, [esi + 0x14]
and eax, 0xfffffff8
push eax
call fcn.1001d480
lea edx, [esi + 0x14]
mov ecx, dword [edx + 8]
lea eax, [ecx + 1]
mov dword [edx + 8], eax
mov eax, dword [edx]
lea eax, [eax + ecx*4]
test eax, eax
je 0x1002584f
mov dword [eax], 0xfffffffe
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 0xc]
jle 0x10025870
mov eax, ecx
add ecx, 8
cdq
sub eax, edx
sar eax, 1
add eax, ecx
lea ecx, [esi + 8]
and eax, 0xfffffff8
push eax
call fcn.1001d480
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
lea eax, [eax + ecx*4]
test eax, eax
je 0x10025889
mov dword [eax], 0
mov ecx, dword [esi + 0x28]
inc ecx
cmp ecx, dword [esi + 0x24]
jle 0x100258aa
mov eax, ecx
add ecx, 8
cdq
sub eax, edx
sar eax, 1
add eax, ecx
lea ecx, [esi + 0x20]
and eax, 0xfffffff8
push eax
call fcn.1001d480
mov ecx, dword [esi + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x20]
lea eax, [eax + ecx*4]
test eax, eax
je 0x100258c3
mov dword [eax], 0xfffffffe
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax + 8], edi
jle 0x100258f2
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov ecx, esi
push edi
push ebx
mov eax, dword [eax]
push dword [eax + edi*4]
call fcn.10025a70
push edi
mov ecx, esi
call fcn.100273a0
mov eax, dword [esi + 4]
inc edi
cmp edi, dword [eax + 8]
jl 0x100258d0
mov ecx, dword [esi]
mov eax, dword [esi + 0x44]
cmp dword [ecx + 0x34], eax
je 0x10025904
mov dword [ecx + 0x34], eax
call fcn.100251d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405660
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42a608
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43107c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ecx, ecx
xor edi, edi
mov eax, 0x100000
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x14], edi
mov dword [esi], vtable.MatchModel.0
mov dword [esi + 4], 0x14
neg ecx
or ecx, eax
push ecx
call fcn.0040a835
mov ecx, dword [esi + 4]
mov edx, 1
shl edx, cl
mov dword [esi + 0x30], eax
add edx, edx
add edx, edx
push edx
push edi
push eax
call fcn.004177d0
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
add esp, 0x10
mov dword [esi + 0x20], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x1c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x408b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov ecx, eax
shr ecx, 0x18
xor cl, al
mov byte [esp + 3], cl
mov ecx, 0x20
sub ecx, dword [edi]
push ebx
shr eax, cl
push ebp
push esi
and eax, 0xfffffffc
mov esi, eax
lea ebp, [esi + 4]
mov ecx, esi
cmp esi, ebp
jae 0x408bcc
shl eax, 4
add eax, dword [edi + 4]
mov edi, edi
mov dl, byte [esp + 0xf]
cmp byte [eax], dl
je 0x408bc9
movzx edx, byte [eax + 1]
shl edx, 4
movzx ebx, word [edx + 0x431f0a]
movzx edx, word [edx + 0x431f08]
add ebx, edx
je 0x408bbb
inc ecx
add eax, 0x10
cmp ecx, ebp
jb 0x408b90
jmp 0x408bcc
mov eax, dword [edi + 4]
mov bl, byte [esp + 0xf]
mov edx, ecx
add edx, edx
mov byte [eax + edx*8], bl
mov dword [edi + 8], ecx
cmp ecx, ebp
jne 0x408c4a
mov edx, dword [edi + 4]
mov dword [edi + 8], esi
shl esi, 4
movzx ecx, byte [edx + esi + 0x31]
movzx eax, byte [edx + esi + 0x21]
add edx, esi
shl ecx, 4
movzx ebx, word [ecx + 0x431f0a]
movzx ecx, word [ecx + 0x431f08]
shl eax, 4
add ebx, ecx
movzx ecx, word [eax + 0x431f0a]
movzx eax, word [eax + 0x431f08]
add ecx, eax
cmp ecx, ebx
jge 0x408c13
push 0x20
jmp 0x408c15
push 0x30
push edx
add edx, 0x10
push edx
call fcn.0040a160
mov eax, dword [edi + 4]
add esp, 0xc
pxor xmm0, xmm0
movq qword [eax + esi], xmm0
movq qword [eax + esi + 8], xmm0
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov al, byte [esp + 0xf]
pop esi
add ecx, ecx
pop ebp
mov byte [edx + ecx*8], al
pop ebx
add esp, 0x14
ret
mov ecx, dword [edi + 8]
cmp ecx, esi
je 0x408ca6
mov edx, dword [edi + 4]
mov eax, ecx
add eax, eax
movq xmm0, qword [edx + eax*8]
sub ecx, esi
mov ebx, esi
movq qword [esp + 0x10], xmm0
movq xmm0, qword [edx + eax*8 + 8]
shl ecx, 4
add ebx, ebx
lea eax, [edx + ebx*8]
push ecx
push eax
add eax, 0x10
push eax
movq qword [esp + 0x24], xmm0
call fcn.0040a160
mov eax, dword [edi + 4]
movq xmm0, qword [esp + 0x1c]
movq qword [eax + ebx*8], xmm0
movq xmm0, qword [esp + 0x24]
movq qword [eax + ebx*8 + 8], xmm0
add esp, 0xc
mov dword [edi + 8], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x409eb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43107c]
jne 0x409ebc
repz ret
jmp fcn.0040b778

Function at 0x417072
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040cb70
and dword [ebp - 0x14], 0
cmp dword [0x4b5390], 0
mov dword [ebp - 0x18], eax
jne 0x417125
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4171cd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4171cd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b5390], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b5394], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b5398], eax
call edi
push eax
call esi
mov dword [0x4b53a0], eax
test eax, eax
je 0x417125
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b539c], eax
mov eax, dword [0x4b539c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41717e
cmp dword [0x4b53a0], ecx
je 0x41717e
push eax
call esi
push dword [0x4b53a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41717e
test ebx, ebx
je 0x41717e
call edi
test eax, eax
je 0x417175
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417175
test byte [ebp - 8], 1
jne 0x41717e
or dword [ebp + 0x10], 0x200000
jmp 0x4171b1
mov eax, dword [0x4b5394]
cmp eax, dword [ebp - 0x18]
je 0x4171b1
push eax
call esi
test eax, eax
je 0x4171b1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4171b1
mov eax, dword [0x4b5398]
cmp eax, dword [ebp - 0x18]
je 0x4171b1
push eax
call esi
test eax, eax
je 0x4171b1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b5390]
call esi
test eax, eax
je 0x4171cd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4171cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409eb2
leave
ret
Function at 0x40c019
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40c063
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40c032
jmp 0x40c063
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40c053
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40d0f9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40d12e
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40d158
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40d158
test edi, edi
je 0x40d125
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d125
test edi, edi
je 0x40d160
mov eax, edi
jmp 0x40d127
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40d127
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410e6c
add esp, 0xc
int3
Function at 0x410ea0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestFunction.exe_gMozillaPoisonSize], eax
call fcn.0040d0f9
pop ecx
mov ecx, dword [sym.TestFunction.exe_gMozillaPoisonSize]
mov dword [sym.TestFunction.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410ed8
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestFunction.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x2f04300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02f0438f
jae 0x2f0430e
xor ecx, ecx
call fcn.02f0438f
jae 0x2f0433d
xor eax, eax
call fcn.02f0438f
jae 0x2f0434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02f0438f
adc al, al
jae 0x2f0432f
jne 0x2f04379
stosb byte es:[edi], al
jmp 0x2f04311
call fcn.02f0439b
sub ecx, ebx
jne 0x2f04356
call fcn.02f04399
jmp 0x2f04375
lodsb al, byte [esi]
shr eax, 1
je 0x2f04383
adc ecx, ecx
jmp 0x2f04372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02f04399
cmp eax, 0x7d00
jae 0x2f04372
cmp ah, 5
jae 0x2f04373
cmp eax, 0x7f
ja 0x2f04374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2f04311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401a1e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a5d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a5d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a5d
cmp dword [ecx + 0x74], 0xe
jbe 0x401a5d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40e4e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d408
push 0x41d400
push str.FlsAlloc
push 0x1f
call fcn.0040e3a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e51b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b128]
call esi
jmp 0x40e521
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e565
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d418
push 0x41d410
push str.FlsGetValue
push 0x21
call fcn.0040e3a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e59c
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e5a4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d420
push 0x41d418
push str.FlsSetValue
push 0x22
call fcn.0040e3a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e5de
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411a17
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 0x411ab4
push ebx
push esi
call fcn.004119e0
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.00411974
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x411a61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411ab3
push edi
push eax
call fcn.0040eaa4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x411a81
call fcn.0040d4be
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411ab2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00411974
add esp, 0x20
test eax, eax
jne 0x411aa0
push edi
call fcn.0040d4be
jmp 0x411aa8
push ebx
call fcn.0040d4be
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