joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013a40
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10075434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10013b1f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10013b18
push edi
cmp dword [ebp - 0x20], 0x10
jb 0x10013afe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10013afe
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10013afe
mov eax, dword [esi]
test eax, eax
jne 0x10013ac9
push 0x200
push eax
mov dword [esi + 4], 0x80
push dword [0x1007709c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10013b17
lea edi, [esi + 8]
jmp 0x10013af4
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], ecx
jb 0x10013af4
shl ecx, 3
push ecx
push eax
push 0
push dword [0x1007709c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10013b17
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
inc dword [edi]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10013a83
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10016d89
mov esp, ebp
pop ebp
ret

Function at 0x10013c20
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10013a40
add esp, 4
cmp dword [esi], 0
je 0x10013c8c
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10013c8b
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10013c84
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014000
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10013c52
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10014100
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x10014150
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1001413f
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10014138
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10014115
pop ebx
push dword [edi]
push 0
push dword [0x1007709c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x10014200
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1007806c]
test eax, eax
je 0x1001421c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1001426f
mov eax, dword [eax]
test eax, eax
jne 0x10014210
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1001426d
push esi
push edi
xor edi, edi
mov dword [edx + 8], 0
lea ecx, [edx + 0x20]
lea esi, [edi + 0x20]
mov dword [ecx], edi
mov eax, ecx
mov dword [edx + 4], ecx
add esi, 0x20
add ecx, 0x20
mov edi, eax
cmp esi, 0xfe0
jbe 0x10014247
mov eax, dword [0x1007806c]
pop edi
mov dword [edx], eax
pop esi
mov dword [0x1007806c], edx
mov eax, edx
ret
Function at 0x10016269
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1001628a
jl 0x10016281
test edi, edi
jne 0x1001628a
xor eax, eax
xor edx, edx
jmp 0x1001634b
cmp dword [ebx + 0x38], 0
je 0x1001629f
push eax
push edi
push dword [ebp + 8]
call fcn.10016351
jmp 0x1001634b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100162e6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100162e6
cmp eax, edi
jb 0x100162c0
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10018490
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100162ec
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10016340
mov ecx, ebx
call fcn.10015a9b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1001632b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1002252a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10016340
jmp 0x100162fe
test edx, edx
je 0x10016340
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1002252a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x1001c7df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10017da0
mov eax, dword [0x10075434]
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.1002a779
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001c821
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001c97d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100396d0
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 + 0x10077c18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1002a989
mov ecx, dword [esi*4 + 0x10077c18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001c976
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001c976
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c976
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002a989
add esp, 0x14
test edx, edx
jl 0x1001c976
jg 0x1001c8ec
test eax, eax
jb 0x1001c976
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001c976
jl 0x1001c906
cmp dword [ebp - 0x1008], eax
ja 0x1001c976
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001c924
test ebx, ebx
je 0x1001c95d
cmp ecx, edi
jae 0x1001c95d
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001c93e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001c94a
cmp byte [ecx + 1], 0xa
jne 0x1001c94a
inc ecx
jmp 0x1001c94a
movzx eax, al
movsx eax, byte [eax + 0x10075648]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001c924
cmp edx, ebx
jne 0x1001c924
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001c97b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10016d89
leave
ret
Function at 0x1002aa05
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10077c18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002aa45
cmp byte [ebx], 0xa
jne 0x1002aa45
or byte [eax + edi + 0x28], 4
jmp 0x1002aa4a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1002ab48
mov al, byte [edx]
cmp al, 0x1a
je 0x1002ab2a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1002aa79
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1002aa9e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1002aaa8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1002aa5b
jmp 0x1002ab48
push 0
lea eax, [ebp - 0xc]
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 0x1002ab25
cmp dword [ebp - 0xc], 0
je 0x1002ab25
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10077c18]
test byte [eax + edi + 0x28], 0x48
je 0x1002aaff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002aaea
mov byte [esi], dl
jmp 0x1002aafb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10077c18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002ab48
cmp byte [ebp - 1], 0xa
jne 0x1002ab0e
cmp esi, ebx
jne 0x1002ab0e
mov byte [esi], 0xa
jmp 0x1002ab47
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002a9a7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002ab48
mov byte [esi], 0xd
jmp 0x1002ab47
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10077c18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002ab44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002ab48
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002ab51
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10077c18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002ab94
cmp word [esi], dx
jne 0x1002ab94
or byte [edi + eax + 0x28], 4
jmp 0x1002ab99
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1002acd2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1002acb2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1002abdb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002ac11
cmp eax, edx
jae 0x1002ac1d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1002abb3
jmp 0x1002acd2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002acae
cmp dword [ebp - 0x14], 0
je 0x1002acae
mov eax, dword [ebx*4 + 0x10077c18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1002ac86
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1002accc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10077c18]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10077c18]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10077c18]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1002accf
pop ebx
cmp word [ebp - 4], bx
jne 0x1002ac97
cmp esi, dword [ebp + 0xc]
jne 0x1002ac97
mov word [esi], bx
jmp 0x1002accf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002a9a7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1002acd2
push 0xd
jmp 0x1002accb
mov ecx, dword [ebx*4 + 0x10077c18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002acc9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002acd2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002cd42
Capabilities:
Read file on windows

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

Function at 0x1002d803
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10065718
push 0x10065710
push str.FlsAlloc
push 0x1e
call fcn.1002d6cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d837
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c1a4]
call esi
jmp 0x1002d83d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002d881
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10065728
push 0x10065720
push str.FlsGetValue
push 0x20
call fcn.1002d6cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002d8b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003c1a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003179e
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 0x1003183b
push ebx
push esi
call fcn.10031767
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.1003065e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100317e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003183a
push edi
push eax
call fcn.1002b8f8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10031808
call fcn.1002b6aa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10031839
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003065e
add esp, 0x20
test eax, eax
jne 0x10031827
push edi
call fcn.1002b6aa
jmp 0x1003182f
push ebx
call fcn.1002b6aa
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 0x100395f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003961d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003961d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a2bd
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.00407d10
pop ecx
mov ecx, dword [sym.TestArray.exe_gMozillaPoisonSize]
mov dword [sym.TestArray.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40a2f5
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestArray.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x40c198
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040799b
mov dword [ebp - 0x14], eax
cmp dword [0x811e80], esi
jne 0x40c28b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c218
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c36b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c36b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c36b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811e80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811e84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811e90], eax
test eax, eax
je 0x40c288
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811e8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2a3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2c5
push 4
pop eax
jmp 0x40c36d
cmp dword [ebp - 0x14], esi
je 0x40c2c5
push dword [0x811e80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2aa
mov eax, dword [0x811e8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c323
cmp dword [0x811e90], edi
je 0x40c323
push eax
call ebx
push dword [0x811e90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c323
test eax, eax
je 0x40c323
call ecx
test eax, eax
je 0x40c318
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c318
test byte [ebp - 8], 1
jne 0x40c323
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c353
mov eax, dword [0x811e84]
cmp eax, edi
je 0x40c350
push eax
call ebx
test eax, eax
je 0x40c350
call eax
mov esi, eax
test esi, esi
je 0x40c350
mov eax, dword [0x811e88]
cmp eax, edi
je 0x40c350
push eax
call ebx
test eax, eax
je 0x40c350
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811e80]
call ebx
test eax, eax
je 0x40c36b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c36d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b05
mov esp, ebp
pop ebp
ret
Function at 0x6e002644
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x6e04b032
call fcn.6e049338
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi + 0xfc], ebx
call fcn.6e01ed43
mov dword [ebp - 4], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], vtable.CProxy_IAcroAXDocShimEvents_class_CAcroAXDocShim_.0
lea ecx, [esi + 0xc8]
call fcn.6e002b0e
mov dword [esi + 0xf8], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 3
call fcn.6e01ed43
lea ecx, [esi + 0x110]
mov byte [ebp - 4], 4
call fcn.6e01ed43
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 5
call fcn.6e01ed43
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
lea ecx, [esi + 0x128]
mov byte [ebp - 4], 8
call fcn.6e01ed43
lea ecx, [esi + 0x130]
mov byte [ebp - 4], 9
call fcn.6e01ed43
mov dword [esi + 0x138], ebx
mov dword [esi + 0x174], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], 0xf
mov byte [esi + 0x18c], bl
mov dword [esi + 0x2b8], ebx
mov dword [esi + 0x310], ebx
mov dword [esi + 0x314], ebx
mov dword [esi + 0x318], ebx
mov word [esi + 0x31e], bx
mov dword [esi + 0x2cf], ebx
mov byte [esi + 0x2d3], bl
mov byte [ebp - 4], 0x10
cmp byte [0x6e07047b], bl
jne 0x6e002747
cmp byte [0x6e07047a], bl
je 0x6e00277b
push esi
push 0x6e051a0c
mov edi, 0x6e06ea68
push edi
call fcn.6e01ed43
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e00276b
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e00277b
push edi
call fcn.6e003fc0
pop ecx
or dword [esi + 0x44], 0x40
xor eax, eax
inc eax
mov dword [esi + 0x2c0], ebx
push eax
mov ecx, esi
mov word [esi + 0x31c], bx
mov dword [esi + 0x2c8], eax
mov word [esi + 0x2ab], bx
mov word [esi + 0x2ea], bx
mov dword [esi + 0x2b0], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], ebx
mov dword [esi + 0x320], ebx
mov dword [esi + 0x324], ebx
mov dword [esi + 0x2ec], ebx
mov byte [esi + 0x2f5], bl
mov dword [esi + 0x2f8], ebx
mov byte [esi + 0x2fc], al
call fcn.6e00ea22
mov eax, esi
call fcn.6e049301
ret

Function at 0x6e0040b5
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x6e04b27c
call fcn.6e0493a3
mov dword [ebp - 0x14], ecx
cmp byte [0x6e07047b], 0
jne 0x6e0040d6
cmp byte [0x6e07047a], 0
je 0x6e00410b
push str._AcroAXDocShim__CAcroAXDocShim::AddRangesToRangeTree
mov esi, 0x6e06ea68
push esi
call fcn.6e01ed43
cmp byte [0x6e07047a], 0
pop ecx
pop ecx
je 0x6e0040f8
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e004108
push esi
call fcn.6e003fc0
pop ecx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, ebx
dec ebx
test eax, eax
je 0x6e004145
push dword [edi + 4]
mov ecx, dword [ecx + 0x2b8]
push dword [edi]
call fcn.6e01ed43
mov ecx, dword [ebp - 0x14]
add edi, 8
jmp 0x6e004116
test esi, esi
setne al
call fcn.6e049301
ret 8
Function at 0x6e0049f4
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x6e07047b], 0
push esi
mov esi, ecx
jne 0x6e004a09
cmp byte [0x6e07047a], 0
je 0x6e004a3f
push edi
push esi
push str.CAcroAXDocShim__x_::CloseStream
mov edi, 0x6e06ea68
push edi
call fcn.6e01ed43
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e004a2e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e004a3e
push edi
call fcn.6e003fc0
pop ecx
pop edi
cmp byte [esi + 0x170], 0
je 0x6e004a70
mov eax, dword [esi + 0x16c]
push 1
mov eax, dword [eax + 4]
mov eax, dword [eax]
push dword [eax + 4]
call fcn.6e01ed43
pop ecx
pop ecx
test eax, eax
jne 0x6e004a69
mov byte [esi + 0x170], al
cmp byte [esi + 0x170], 0
sete al
pop esi
ret