joyce8/EMBER2024-capa huggingface dataset:
Function at 0xae23dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0xae242c
cmp dword [ebp - 4], 2
ja 0xaee965
mov ecx, dword [edi]
test cl, 1
jne 0xae242c
cmp esi, ebx
je 0xae2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0xae242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0xae2425

Function at 0xae24ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0xaf6b05
call fcn.00ae1350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0xae2519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0xae265b
cmp dword [ebp + 0xc], edi
je 0xae265b
push 1
call fcn.00ae227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0xae264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0xae259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00ae21cb
mov ebx, eax
test ebx, ebx
jl 0xae259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00ae2436
mov ebx, eax
test ebx, ebx
jl 0xae259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0xae2632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xae2654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00ae21cb
mov ebx, eax
test ebx, ebx
jl 0xae2623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00ae2436
mov ebx, eax
test ebx, ebx
jl 0xae2623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xae2623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xaef3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0xae2632
push dword [ebp - 0x14]
call fcn.00ae13c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0xae2641
push dword [ebp - 0x18]
call fcn.00ae13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00ae13c0
pop ecx
mov eax, ebx
call fcn.00ae1390
ret 8
mov ebx, 0x8007000e
jmp 0xae25fe
mov ebx, 0x80070057
jmp 0xae264a
Function at 0xae3a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0xae3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0xae3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xae3ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0xaee30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0xae4267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0xafb00c], esi
jne 0xae42be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0xae2c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0xafb00c], eax
cmp eax, esi
je 0xaee4ec
push 0xffffffffffffffff
push dword [0xafb014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0xafb014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0xafb018], esi
jl 0xaee50a
pop esi
leave
ret

Function at 0xae4441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xae4498
call fcn.00ae2712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xae4490
cmp ecx, 0xffffffff
je 0xae4490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0xae4489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0xae4489
cmp edx, 0x10000000
jae 0xae4489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0xaee892
mov dword [ebp - 4], 0xfffffffe
call fcn.00ae2757
ret 4

Function at 0xae681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0xafb004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0xae6933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0xaeed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ae21cb
test eax, eax
jl 0xae6932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0xae68c3
push 0xae6994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ae2436
test eax, eax
jl 0xae6932
push 0xae6980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ae2436
test eax, eax
jl 0xae6932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0xaeed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xae6970
push eax
call edi
push 0xae695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0xae6948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0xae6940
cmp dword [esi + 0x34], 0
je 0xae6940
test eax, eax
je 0xae6940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00ae20d4
leave
ret
mov eax, 0x8007007f
jmp 0xae6932
Function at 0xae71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0xaf608c
call fcn.00ae39dd
lea ecx, [ebp - 0x34]
call fcn.00ae6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.00ae758b
test eax, eax
jl 0xae722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00ae72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0xae7298
cmp ax, si
jne 0xaee4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00ae1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00ae758b
mov esi, eax
test esi, esi
jl 0xae7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00ae72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00ae760b
mov eax, esi
call fcn.00ae2b9f
ret

Function at 0xae791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0xaedc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0xae7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0xae79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.00ae79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xae78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00ae71e0
cmp esi, ebx
jl 0xae79a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0xae7992
push 0x24
mov eax, 0xaf5c85
call fcn.00ae26dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0xae7854
push 1
lea ecx, [ebp - 0x20]
call fcn.00ae79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xae3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0xae79a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0xae79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00ae7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00ae71e0
mov eax, esi
call fcn.00ae1390
ret 0xc
Function at 0xae7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0xaf5fc0
call fcn.00ae39dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00ae7c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0xae7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0xae7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0xae7b5b
inc esi
cmp esi, edi
jb 0xae7b46
cmp esi, edi
jb 0xae7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0xae7c0e
cmp word [edx], 0x30
jne 0xae7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0xae7b6f
cmp eax, edi
jae 0xae7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xae7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0xae7c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0xae7c03
movzx eax, ax
movzx eax, ax
push eax
push 0xae7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00ae1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00ae6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00ae760b
mov eax, dword [ebp - 0x54]
call fcn.00ae2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0xae7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0xae7be9
Function at 0xae7f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0xaf6a7d
call fcn.00ae1350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0xae8046
push 1
call fcn.00ae227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0xae803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xae7fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.00ae21cb
mov ebx, eax
test ebx, ebx
jl 0xae8024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00ae2436
mov ebx, eax
test ebx, ebx
jl 0xae8024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xae8024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xae7ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0xaef33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xae8024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0xaef353
cmp dword [ebp - 0x14], 0
je 0xae8033
push dword [ebp - 0x14]
call fcn.00ae13c0
pop ecx
push dword [ebp - 0x18]
call fcn.00ae13c0
pop ecx
mov eax, ebx
call fcn.00ae1390
ret 4
mov ebx, 0x80070057
jmp 0xae803c

Function at 0xae85f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xafb004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0xae8684
cmp eax, 0xffffffff
je 0xae8684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xae8684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.00ae85b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00ae8692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xaef2da
cmp esi, dword [ebp - 0xc]
jne 0xaef2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ae20d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0xae866d
Function at 0xae88ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0xaf6be9
call fcn.00ae20e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0xae8999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0xae89a4
push esi
push edi
call fcn.00ae1451
add esp, 0x14
mov eax, edi
call fcn.00ae2126
ret 4
Function at 0xaf0d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0xaf0dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0xaf0db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0xaf0dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0xaf0da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402537
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x407238
cmp dword [edi], ebx
je 0x4025dc
push str._mozilla.org_observer_service_1
mov edx, 0x40792c
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.0040153b
mov eax, dword [ebp - 4]
test eax, eax
je 0x4025bc
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.004014d3
mov eax, dword [ebp - 4]
test eax, eax
je 0x4025dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x402613
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x402613
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00404f03
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.004055cd
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40262f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40263c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x402648
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x402658
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x100090a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 4], edx
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], eax
mov ebx, dword [eax + 0xc]
push edi
test ebx, ebx
je 0x100090f7
mov al, byte [edx]
mov edi, edx
test al, al
je 0x100090e0
movzx eax, al
lea edi, [edi + 1]
movzx ecx, byte [eax + 0x100f84c0]
lea eax, [esi*8]
xor ecx, eax
mov al, byte [edi]
xor esi, ecx
test al, al
jne 0x100090c2
mov ecx, dword [ebp - 8]
mov eax, esi
xor edx, edx
div dword [ecx]
mov esi, edx
mov edx, dword [ebp - 4]
mov edi, dword [ebx + esi*8 + 4]
mov ecx, dword [ebx + esi*8]
jmp 0x100090fd
mov edi, dword [eax + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], esi
test ecx, ecx
je 0x1000915d
mov esi, dword [edi + 0xc]
dec ecx
mov dword [ebp + 8], ecx
mov bl, byte [esi]
test bl, bl
je 0x10009139
sub esi, dword [ebp - 4]
mov al, bl
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x100f84c0]
cmp al, byte [ecx + 0x100f84c0]
jne 0x10009139
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x10009118
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x100f84c0]
movzx eax, bl
movzx eax, byte [eax + 0x100f84c0]
sub eax, ecx
je 0x10009166
mov ecx, dword [ebp + 8]
mov edi, dword [edi]
mov edx, dword [ebp - 4]
test ecx, ecx
jne 0x10009106
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e490
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
cmp edx, dword [ebx + 0x2c]
jbe 0x1001e4cc
push 0x100f685c
push 0xe96c
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007150
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push 0
push eax
call fcn.100173d0
add esp, 8
test eax, eax
jne 0x1001e658
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
movzx eax, word [esi + 0x12]
movzx edi, byte [esi + 6]
mov edx, eax
mov dword [esp + 0x1c], edi
cmp cx, ax
jae 0x1001e5a1
nop dword [eax + eax]
mov eax, dword [esi + 0x40]
movzx edi, byte [eax + ecx*2 + 1]
movzx eax, byte [eax + ecx*2]
shl eax, 8
or edi, eax
movzx eax, word [esi + 0x14]
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x1001e567
movzx edx, byte [edi]
mov ecx, ebx
movzx eax, byte [edi + 1]
push dword [ebp + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
push 1
call fcn.1001e490
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1001e64e
lea eax, [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.1001bda0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001e64e
mov ecx, dword [esp + 0x14]
movzx eax, word [esi + 0x12]
inc ecx
mov ebx, dword [esp + 0x18]
mov edx, eax
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x1001e510
mov edi, dword [esp + 0x1c]
cmp byte [esi + 5], 0
movzx eax, dx
jne 0x1001e5e5
mov ecx, dword [esi + 0x38]
push dword [ebp + 0xc]
add ecx, edi
push 1
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
mov ecx, ebx
or edx, eax
call fcn.1001e490
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1001e64e
jmp 0x1001e5ee
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001e5ee
add dword [ecx], eax
cmp dword [ebp + 8], 0
je 0x1001e617
push dword [esi + 0x48]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.1001b920
mov ecx, dword [esi + 0x44]
add esp, 4
mov ebx, eax
call fcn.100124c0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001e632
call fcn.10012ba0
jmp 0x1001e637
call fcn.10012890
mov ebx, eax
test ebx, ebx
jne 0x1001e64e
mov eax, dword [esi + 0x38]
mov ecx, esi
movzx edx, byte [eax + edi]
or edx, 8
call fcn.100172f0
mov ecx, dword [esi + 0x44]
call fcn.100124c0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.100049d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100312a0
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10100ad4], 0
mov edi, dword [ebp + 8]
je 0x100312d3
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10007390
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.100c4e32
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x100312e0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x100312f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret