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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov dword [eax], esi
mov edi, esi
push edx
lea eax, [ebp - 0x14]
mov dword [ebp - 8], esi
push eax
mov dword [ebx], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edx, dword [ebp + 8]
test edx, edx
je 0x42b361
lea eax, [ebp - 8]
xor ecx, ecx
push eax
push 0x20019
call fcn.0042b180
mov esi, eax
test esi, esi
js 0x42b41a
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
je 0x42b392
test esi, esi
js 0x42b41a
mov esi, 0xc0000001
jmp 0x42b41a
push dword [ebp - 4]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x42b3b3
mov esi, 0xc000009a
jmp 0x42b41a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push edi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
js 0x42b41a
cmp dword [edi + 4], 1
je 0x42b3dd
mov esi, 0xc0000024
jmp 0x42b41a
mov eax, dword [ebp - 4]
sub eax, 0xc
push eax
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x42b3ac
push dword [ebp - 4]
lea eax, [edi + 0xc]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov eax, dword [ebp - 4]
xor esi, esi
mov dword [ecx], eax
cmp dword [ebp - 8], 0
je 0x42b429
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x42b43f
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42b448
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov ebx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x34], esi
push eax
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
js 0x42b5c9
push esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, esi
mov dword [esp + 0x14], esi
jmp 0x42b506
cmp dword [esp + 0x1c], 0
je 0x42b4dc
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
mov word [esp + 0x1a], ax
lea edi, [eax + 2]
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x42b5d0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x42b4c0
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test esi, esi
js 0x42b5b1
movzx ecx, word [esp + 0x18]
xor edx, edx
shr ecx, 1
xor esi, esi
mov word [eax + ecx*2], dx
lea eax, [esp + 0x18]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x18]
mov word [esp + 0x22], di
push eax
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jns 0x42b506
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
cmp dword [esp + 0x10], 0
je 0x42b5ad
push dword [esp + 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test esi, esi
jns 0x42b5c7
test eax, eax
je 0x42b5c7
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0xc000009a
jmp 0x42b593

Function at 0x42c5a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
jl 0x42c570
inc ebp
iretd
jo 0x42c574
inc ebp
rcl byte [ebx]
call fcn.0042c278
shl byte [eax + esi*4], cl
retf 0x458d
jl 0x42c570
inc ebp
iretd
Function at 0x42cb60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + 0x4fffff9], edx
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0042c288
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042c23d
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
test dword [ecx], ebx
cld
invalid
dec dword [ebx - 0x3e57a3a]
invalid
call [edx - 0x3e47a3a]
invalid
jmp dword [ebx - 0x3e37a3a]
invalid
inc dword [ecx - 0x3e27a3a]
invalid
dec dword [edx - 0x3e17a3a]
invalid
call [ebx - 0x3e07a3a]
invalid
inc dword [edx - 0x3df7a3a]
invalid
dec dword [ebx - 0x3de7a3a]
invalid
jmp dword [esi - 0x3dd7a3a]
invalid
dec dword [edi - 0x3dc7a3a]
invalid
inc dword [eax - 0x3db7a3a]
invalid
dec dword [edx - 0x3da7a3a]
invalid
inc dword [edx - 0x3d97a3a]
invalid
dec dword [ebx - 0x3d87a3a]
invalid
jmp [edi - 0x3d77a3a]
invalid
invalid
out dx, al
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042c288
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042c23d
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0042c278
push cs
lodsb al, byte [esi]
stosb byte es:[edi], al
fild dword [eax - 0x5335b]
inc dword [eax]
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0042c288
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042c23d
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0042c278
aad 0x54
mov cs, word [edi - 0x6635a80]
invalid

Function at 0x43046f
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov edx, eax
xor eax, dword [ecx + edx*4]
inc edx
cmp edx, 0x7f
jb 0x430473
cmp eax, 0xffffffff
jne 0x430484
push 0xfffffffffffffffe
pop eax
test eax, eax
jne 0x430489
inc eax
ret
Function at 0x43285d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
push edi
push 6
pop ecx
lea eax, [ebx + 0x64]
mov dword [eax + 4], eax
mov dword [eax], eax
add eax, 8
sub ecx, 1
jne 0x432804
lea eax, [ebx + 0x28]
mov edi, dword [eax]
cmp edi, eax
je 0x432855
push esi
mov esi, edi
mov edi, dword [edi]
mov edx, dword [esi + 0x18]
and dword [esi + 0x18], 0
test edx, edx
je 0x432831
mov ecx, ebx
call fcn.0043001b
mov eax, dword [esi]
cmp dword [eax + 4], esi
jne 0x432858
mov ecx, dword [esi + 4]
cmp dword [ecx], esi
jne 0x432858
mov dword [ecx], eax
mov edx, esi
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.0043001b
lea eax, [ebx + 0x28]
cmp edi, eax
jne 0x43281b
pop esi
pop edi
pop ebx
ret
push 3
pop ecx
int 0x29
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov edi, ecx
xor dl, dl
xor ebx, ebx
mov byte [ebp - 1], dl
test edi, edi
jne 0x432888
push 0x57
pop esi
jmp 0x432921
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4328b1
lea esi, [edi + 0x28]
xor edx, edx
mov eax, dword [esi]
jmp 0x43289d
add edx, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, esi
jne 0x432898
mov dword [ecx + 0x28], edx
call fcn.0043046f
mov dword [ecx + 0x1fc], eax
mov dl, bl
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x28]
add eax, 0x1000
je 0x43291f
test dl, dl
jne 0x4328c9
mov eax, 0x1000
jmp 0x4328cf
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
xor esi, esi
mov dword [ebp - 8], eax
push esi
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x4328f0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x432921
mov dl, byte [ebp - 1]
test dl, dl
je 0x4328ff
mov ebx, dword [ebx]
jmp 0x432907
mov ebx, dword [edi + 0x28]
mov dl, 1
mov byte [ebp - 1], dl
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
mov dword [ebp - 0xc], esi
mov eax, dword [ecx + 0x28]
add eax, 0x1000
cmp esi, eax
jb 0x4328be
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x436420
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0x43b3fc]
push esi
mov esi, dword [0x43b400]
push edi
mov edi, edx
cmp eax, 7
jbe 0x43647c
lea edx, [eax - 8]
shr edx, 3
inc edx
add ecx, dword [edi]
sub eax, 8
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, dword [edi + 4]
add edi, 8
add ecx, esi
rol esi, 0x13
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
sub edx, 1
jne 0x436444
sub eax, 0
je 0x4364ca
sub eax, 1
je 0x436574
sub eax, 1
je 0x43654d
sub eax, 1
je 0x436520
dec eax
sub eax, 1
je 0x43655b
sub eax, 1
je 0x436534
sub eax, 1
je 0x436507
add ecx, dword [edi]
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
mov edx, 0x80
mov eax, dword [ebp + 0xc]
add ecx, edx
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
pop edi
mov dword [eax + 4], esi
mov dword [eax], ecx
pop esi
pop ebp
ret 8
add ecx, dword [edi]
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
add edi, 4
movzx edx, byte [edi + 2]
movzx eax, word [edi]
or edx, 0xffff8000
shl edx, 0x10
or edx, eax
jmp 0x4364cf
add ecx, dword [edi]
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
add edi, 4
movzx edx, word [edi]
or edx, 0x800000
jmp 0x4364cf
add ecx, dword [edi]
xor esi, ecx
rol ecx, 0x14
add ecx, esi
rol esi, 9
xor esi, ecx
rol ecx, 0x1b
add ecx, esi
rol esi, 0x13
add edi, 4
movzx edx, byte [edi]
or edx, 0x8000
jmp 0x4364cf

Function at 0x436a5e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
mov esi, 0xc04
push eax
push 8
push 0x404
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x436aac
push 3
lea eax, [ebp - 0x44]
push 0x40a870
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffff800
add esi, eax
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.00437a70
leave
ret
Function at 0x436abc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x40a878
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x436b4b
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x40a930
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x436b4b
push 3
push dword [edi*8 + 0x4010e8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x436b3d
inc edi
cmp edi, 0x1c
jb 0x436b1c
jmp 0x436b4b
mov ax, word [edi*8 + 0x4010ec]
mov word [0x43b414], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x43b414]
xor ecx, ebp
pop edi
call fcn.00437a70
leave
ret
Function at 0x437cf4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4382c0
call fcn.00437fb8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x437d54
cmp eax, 0xffffffff
je 0x437d54
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x437d4d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x437d4d
cmp edx, 0x10000000
jae 0x437d4d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x437d4a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x437dc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x437dfe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x437df6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x437e00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x437de6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x437ed0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x437f01
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x437f01
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x437f01
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40f895
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 0x40f8df
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 0x40f8ae
jmp 0x40f8df
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40f8cf
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x410944
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 0x410979
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 0x4109a3
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x4109a3
test edi, edi
je 0x410970
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x410970
test edi, edi
je 0x4109ab
mov eax, edi
jmp 0x410972
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x410972
mov esi, 0xc4
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push 0x41761e
call fcn.004145cc
add esp, 0xc
int3
Function at 0x414602
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.TestIntegerRange.exe_gMozillaPoisonSize], eax
call fcn.00410944
pop ecx
mov ecx, dword [sym.TestIntegerRange.exe_gMozillaPoisonSize]
mov dword [sym.TestIntegerRange.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x41463a
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestIntegerRange.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

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 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 0x403b40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x416188]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 0x1bc]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004034c0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x403bb4
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x78], edx
lea ecx, [ebp - 0x60]
call fcn.004013e0
mov eax, dword [ebp - 0x78]
jmp 0x403c53
mov dword [ebp - 0x68], 0x100
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x403c0e
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00403b40
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x403c05
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x6c], edx
lea ecx, [ebp - 0x60]
call fcn.004013e0
mov eax, dword [ebp - 0x6c]
jmp 0x403c53
mov dword [ebp - 0x68], 0x100
jmp 0x403bbb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x60], 0
je 0x403c2f
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp + 0x1bc]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00402ba0
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x60]
call fcn.004013e0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
call fcn.00406c34
add ebp, 0x1b4
mov esp, ebp
pop ebp
ret 4

Function at 0x403d30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x403d8f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403d5c
mov eax, 1
jmp 0x403dad
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403d8d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x403dad
jmp 0x403da8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x403da8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x403dad
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x405fd0
Capabilities:
Check if file exists
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x7d8]
sub esp, 0x858
mov eax, dword [0x416188]
xor eax, ebp
mov dword [ebp + 0x7d4], eax
push 0x104
lea eax, [ebp + 0x1bc]
push eax
mov ecx, dword [ebp + 0x7e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x406026
push 0x10
push 0x40f700
push str.GetModuleFileName_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x643
jmp 0x4061dc
lea edx, [ebp + 0x1bc]
push edx
lea eax, [ebp + 0x3c4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [ebp + 0x3c4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp + 0x3c4]
push edx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [ebp + 0x3c4]
push ecx
lea edx, [ebp + 0x5cc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.SetupUi.dll
lea eax, [ebp + 0x5cc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp + 0x5cc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4060f3
lea edx, [ebp + 0x3c4]
push edx
lea eax, [ebp + 0x5cc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.SetupSetupUi.dll
lea ecx, [ebp + 0x5cc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp + 0x5cc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4060e4
push 0x10
push 0x40f700
push str.Cant_find_setupUi.dll_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x643
jmp 0x4061dc
push str.Setup
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x60], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x68], 8
mov dword [ebp - 0x64], 0x2ff
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [ebp - 0x80], eax
push 0
mov eax, dword [ebp + 0x7e0]
push eax
push 0
mov ecx, 0x416f98
call fcn.00402f20
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 0
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x5c]
push edx
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x58], 0x643
lea eax, [ebp + 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4061c0
push str._Run
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4061c0
mov edx, dword [ebp + 0x7e8]
push edx
lea eax, [ebp + 0x1bc]
push eax
call dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
mov ecx, 0x416f98
call fcn.00405300
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0x7d4]
xor ecx, ebp
call fcn.00406c34
add ebp, 0x7d8
mov esp, ebp
pop ebp
ret 0x10