joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024b34
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100394b4
push 0x100394ac
push str.FlsAlloc
push 0x1f
call fcn.10024ff4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024b68
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10024b6e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10024bb2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100394c4
push 0x100394bc
push str.FlsGetValue
push 0x21
call fcn.10024ff4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024be9
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10024bf1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100394cc
push 0x100394c4
push str.FlsSetValue
push 0x22
call fcn.10024ff4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024c2b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100282ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10014a10
mov eax, dword [0x10044b54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100276fa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100282ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002844a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10028ea0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10046660]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10028054
mov ecx, dword [esi*4 + 0x10046660]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10028443
cmp eax, dword [ecx + edi + 0x24]
jne 0x10028443
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028443
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10028054
add esp, 0x14
test edx, edx
jl 0x10028443
jg 0x100283b9
test eax, eax
jb 0x10028443
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10028443
jl 0x100283d3
cmp dword [ebp - 0x1008], eax
ja 0x10028443
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100283f1
test ebx, ebx
je 0x1002842a
cmp ecx, edi
jae 0x1002842a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002840b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10028417
cmp byte [ecx + 1], 0xa
jne 0x10028417
inc ecx
jmp 0x10028417
movzx eax, al
movsx eax, byte [eax + 0x100455a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100283f1
cmp edx, ebx
jne 0x100283f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10028448
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10014947
leave
ret
Function at 0x10028dc5
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 0x10028e62
push ebx
push esi
call fcn.10028e65
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.100229c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10028e0f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10028e61
push edi
push eax
call fcn.100228b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10028e2f
call fcn.10022877
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10028e60
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100229c1
add esp, 0x20
test eax, eax
jne 0x10028e4e
push edi
call fcn.10022877
jmp 0x10028e56
push ebx
call fcn.10022877
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 0x1002a896
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10046660]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002a8d6
cmp byte [ebx], 0xa
jne 0x1002a8d6
or byte [edi + eax + 0x28], 4
jmp 0x1002a8db
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1002a9da
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002a9bd
inc eax
cmp dl, 0xd
je 0x1002a907
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002a92d
cmp eax, ecx
jae 0x1002a93b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1002a8ef
jmp 0x1002a9da
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002a9b8
cmp dword [ebp - 0x10], 0
je 0x1002a9b8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10046660]
test byte [eax + edi + 0x28], 0x48
je 0x1002a992
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002a97d
mov byte [esi], dl
jmp 0x1002a98e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10046660]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002a9da
cmp byte [ebp - 1], 0xa
jne 0x1002a9a1
cmp esi, ebx
jne 0x1002a9a1
mov byte [esi], 0xa
jmp 0x1002a9d9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10027ff6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002a9da
mov byte [esi], 0xd
jmp 0x1002a9d9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10046660]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002a9d7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002a9da
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002a9e3
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 + 0x10046660]
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 0x1002aa29
cmp word [ebx], dx
jne 0x1002aa29
or byte [eax + edi + 0x28], 4
jmp 0x1002aa2e
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 0x1002ab91
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 0x1002ab71
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002aa6f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002aaa5
cmp eax, edx
jae 0x1002aab3
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 0x1002aa4a
jmp 0x1002ab91
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 0x1002ab6c
cmp dword [ebp - 0x18], 0
je 0x1002ab6c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10046660]
test byte [eax + edi + 0x28], 0x48
je 0x1002ab42
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 0x1002ab06
mov word [esi], cx
jmp 0x1002ab3d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10046660]
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 + 0x10046660]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10046660]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002ab91
pop eax
cmp word [ebp - 4], ax
jne 0x1002ab52
cmp esi, ebx
jne 0x1002ab52
mov word [esi], ax
jmp 0x1002ab8e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10027ff6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002ab91
push 0xd
pop eax
jmp 0x1002ab4d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10046660]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002ab8b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002ab91
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 0x1002dc8e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10044b54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10022b03
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10022b03
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1002dd05
cmp word [ecx], dx
je 0x1002dd05
mov eax, dword [0x10039acc]
push edi
dec eax
push eax
push 0x100399b8
call fcn.1002de7e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002dd78
cmp word [eax], dx
je 0x1002dd78
mov eax, dword [edi]
test eax, eax
je 0x1002dd29
cmp word [eax], dx
je 0x1002dd29
lea eax, [ebp - 0x10]
push eax
call fcn.1002dedf
jmp 0x1002dd32
lea eax, [ebp - 0x10]
push eax
call fcn.1002e1cd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002dda2
mov eax, dword [0x100399b4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100396a8
call fcn.1002de7e
add esp, 0xc
test al, al
je 0x1002dda2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002dd6d
cmp word [eax], di
je 0x1002dd6d
lea eax, [ebp - 0x10]
push eax
call fcn.1002dedf
pop ecx
jmp 0x1002dda4
lea eax, [ebp - 0x10]
push eax
call fcn.1002e1cd
jmp 0x1002dd6a
mov eax, dword [edi]
test eax, eax
je 0x1002dd8f
cmp word [eax], dx
je 0x1002dd8f
lea eax, [ebp - 0x10]
push eax
call fcn.1002e301
pop ecx
jmp 0x1002dda2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002de6d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002e3f3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002de6d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002de6d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002de6d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002ddfa
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10024d8e
test ebx, ebx
je 0x1002de68
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10024d8e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002de6d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002de6d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10032086
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002de6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014947
leave
ret
Function at 0x1002e4f9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10022b03
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002e568
cmp esi, dword [ebp - 4]
je 0x1002e563
cmp dword [ebp + 0xc], 0
je 0x1002e563
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002e540
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002e5c2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002e56a
xor eax, eax
inc eax
jmp 0x1002e56a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10032984
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10032b1b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10032af3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10032af3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10032aa8
jg 0x100329e0
test eax, eax
je 0x10032a9e
push 1
push 0x1000
call fcn.100252c7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10032a03
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10032a95
push 0x8000
push ebx
call fcn.1003287e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10032a2c
jg 0x10032a27
cmp ecx, 0x1000
jb 0x10032a2c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002935c
add esp, 0x10
cmp eax, 0xffffffff
je 0x10032a71
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10032a27
jl 0x10032a58
test ecx, ecx
jne 0x10032a19
push dword [ebp - 0xc]
push ebx
call fcn.1003287e
push esi
call fcn.10022877
add esp, 0xc
xor ebx, ebx
jmp 0x10032b01
cmp byte [edi + 0x24], 0
je 0x10032a88
cmp dword [edi + 0x20], 5
jne 0x10032a88
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10032a93
mov ebx, dword [edi + 0x18]
jmp 0x10032a95
xor ebx, ebx
push esi
call fcn.10022877
pop ecx
jmp 0x10032b01
test ecx, ecx
jg 0x10032a6a
jl 0x10032aa8
test eax, eax
jae 0x10032a6a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10027ff6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10032ac8
cmp byte [edi + 0x1c], 0
je 0x10032a6a
jmp 0x10032af9
push ebx
call fcn.1002e8a3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10032a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10032b01
cmp byte [edi + 0x1c], 0
je 0x10032afe
mov ebx, dword [edi + 0x18]
jmp 0x10032b01
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10027ff6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4097a9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x4097ed
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x4097bc
jmp 0x4097ed
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4097dd
pop esi
pop ebp
ret

Function at 0x40a587
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 0x40a5bc
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 0x40a5e6
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40a5e6
test edi, edi
je 0x40a5b3
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40a5b3
test edi, edi
je 0x40a5ee
mov eax, edi
jmp 0x40a5b5
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40a5b5
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.0040da13
add esp, 0xc
int3
Function at 0x40da47
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.TestArray.exe_gMozillaPoisonSize], eax
call fcn.0040a587
pop ecx
mov ecx, dword [sym.TestArray.exe_gMozillaPoisonSize]
mov dword [sym.TestArray.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40da7f
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestArray.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403203
pop dword [ebp - 0x3c]
mov eax, 0x403203
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x6fd94358
sub dword [ebp - 0x4c], 0x2186fe0d
mov dword [ebp - 0x48], 0x26285876
add dword [ebp - 0x48], 0xc0af3cf
mov dword [ebp - 0x44], 0xb3035afc
add dword [ebp - 0x44], 0x9948e932
mov dword [ebp - 0x40], 0x7397edf5
add dword [ebp - 0x40], 0x8c68120b
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x9c434735
sub dword [ebp - 0x4c], 0x27d0dddf
mov dword [ebp - 0x48], 0x20d90744
add dword [ebp - 0x48], 0x20935a31
mov dword [ebp - 0x44], 0xb220e6ee
add dword [ebp - 0x44], 0xb14e857e
mov dword [ebp - 0x40], 0x944099df
sub dword [ebp - 0x40], 0x944099df
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xcf7baf24
add eax, 0x30c4d1b0
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x37e49
push 0
call eax
mov ecx, 0x4d32
mov esi, eax
mov edi, 0xf1c69e61
sub edi, 0xf1858e61
add edi, dword [ebp - 0x3c]
mov edx, 0x436e088
sub edx, 0x158cee0c
mov ebx, dword [edi]
sub dword [ebp - 0x24], edi
sub ebx, edx
xor dword [ebp - 0x28], 0x83b1b2be
mov dword [esi], ebx
add esi, 0xe7c17757
add esi, 0x183e88ad
add edi, 0xf5c74c2
sub edi, 0xf5c74be
loop 0x403315
add eax, 0xb243e9c3
add eax, 0x4dbd3dd8
xor ebx, ebx
add ebx, eax
add eax, 0xd4decf6c
sub eax, 0xd4decf67
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4018bf
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4018f6
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4018e9
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401964
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0xa645c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xa645c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xa645c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xa645c0]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4019b1
cmp ebx, 4
jne 0x4019b4
cmp edi, 6
jbe 0x4019b4
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0xa645c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xa645c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xa645c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xa645c0]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401905
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402b17
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xa9e06c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402b57
cmp dword [ebp - 0x364], 6
jne 0x402b57
cmp dword [ebp - 0x360], 0
je 0x402b81
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b81
push 0xc00
call eax
test eax, eax
jne 0x402c16
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c16
cmp eax, 0x104
ja 0x402c16
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402bc1
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x402c15
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402bdc
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402bda
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ea213
leave
ret