joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4424e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x486113
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047753e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4d1730
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4cfcf8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.DLL_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047ccb4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047e20c
test eax, eax
je 0x4425fc
mov ecx, dword [esp + 0x3c]
call fcn.0047cce1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.DLL_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4425c0
push edi
mov ecx, esi
call fcn.0047a2a2
mov ecx, esi
call fcn.00442760
cmp dword [esp + 0x38], 1
jne 0x4425f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047a40c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x445030
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445063
push esi
call fcn.00448120
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44505c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4450e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4450d2
mov eax, dword [esi + 8]
test eax, eax
je 0x445087
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4450ce
cmp eax, 2
je 0x4450d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44507a
cmp eax, 3
je 0x4450ad
cmp eax, 1
jne 0x44507a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44507a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44507a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445110
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4450f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445110
add esp, 4
pop esi
ret
Function at 0x453ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x453b03
mov eax, dword [esi]
jmp 0x453b05
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x453b26
push 0x4ec560
push edi
push eax
call fcn.00472f15
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x453b86
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x453b86
mov eax, dword [esi]
test eax, eax
je 0x453b6d
push eax
call dword [sym.imp.OLEAUT32.DLL_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x453b7d
push eax
call fcn.00475cab
add esp, 4
push esi
call fcn.00475cab
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x454230
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.DLL_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x454296
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.DLL_RasGetConnectStatusA
cmp eax, 6
je 0x454296
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x454277
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x454dd0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00454f20
push 0
push 1
push 2
call sub.WS2_32.DLL_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x454df0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.DLL_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x454dd1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00454f20
push 0
push 1
push 2
call sub.WS2_32.DLL_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x454df0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.DLL_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x454e20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.DLL_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.DLL_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x454e77
push esi
call sub.WS2_32.DLL_gethostbyname
test eax, eax
je 0x454e8d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00454eb0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.DLL_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x454eb0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.DLL_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x454f40
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.DLL_select
cmp eax, 0xffffffff
jne 0x454f89
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x455400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00454fb0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00455030
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00455030
lea ecx, [esi + 0xc]
call fcn.00475ecc
lea ecx, [esi + 0x10]
call fcn.00475ecc
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00457860
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00457860
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00457860
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00475f41
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00475f41
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4560a8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x486da8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4560b8
call fcn.004565d0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45619b
cmp byte [edi], 0
je 0x45619b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4560dd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00454dd0
test eax, eax
jne 0x4560fd
push 0x4ec888
lea ecx, [esi + 0x38]
call fcn.004760ca
jmp 0x45619b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00454e20
test eax, eax
jne 0x45612c
mov ecx, esi
call fcn.00454f20
push edi
add esi, 0x38
push 0x4ec864
push esi
call fcn.00473914
add esp, 0xc
jmp 0x45619b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00456e50
test eax, eax
je 0x456194
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.DLL_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00456270
test eax, eax
jne 0x4561b0
push edi
lea eax, [esi + 0x38]
push 0x4ec840
push eax
call fcn.00473914
add esp, 0xc
mov ecx, esi
call fcn.004565d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x456258
mov ecx, dword [0x4ed5d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push 0x4ec834
push eax
mov dword [esp + 0x80], 0
call fcn.00473914
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00454ed0
test eax, eax
jne 0x45621a
push 0x4ec824
lea ecx, [esi + 0x38]
call fcn.004760ca
jmp 0x45622a
push 0xfa
mov ecx, esi
call fcn.00456e50
test eax, eax
jne 0x456247
mov ecx, esi
call fcn.004565d0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00475f41
jmp 0x45619b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00475f41
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x458380
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x458423
test eax, eax
jbe 0x458423
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x458423
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.DLL_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4583ce
xor esi, esi
jmp 0x4583d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4583ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00407070
add esi, eax
push esi
mov ebx, esi
call fcn.00407070
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4583e0
pop ebp
test edi, edi
pop edi
jne 0x458423
test ebx, ebx
je 0x458423
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00465650
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x458565
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45867d
push eax
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
je 0x45867d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00477990
mov esi, eax
test esi, esi
je 0x45867d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.DLL_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45867d
mov ecx, esi
call fcn.004584d0
cmp edi, eax
jge 0x45867d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x458603
mov dword [esp + 0x34], 1
jmp 0x45865e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45867d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.DLL_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00457ab0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x478334
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47836c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004763e8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004763c0
jmp 0x478378
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479a26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x479a68
call fcn.0047f7cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x479a68
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x479a5f
xor eax, eax
jmp 0x479a70
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479a76
pop edi
pop esi
pop ebx
ret 4

Function at 0x47fcfd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47fd2b
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x47fd49
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fc63
jmp 0x47fd49
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fd49
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fc63
test edi, edi
mov eax, edi
jne 0x47fd33
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x52668b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0052670a
jae 0x526697
xor ecx, ecx
call fcn.0052670a
jae 0x5266c1
xor eax, eax
call fcn.0052670a
jae 0x5266d2
mov al, 0x10
call fcn.0052670a
adc al, al
jae 0x5266b3
jne 0x5266ff
stosb byte es:[edi], al
jmp 0x526698
call fcn.00526716
dec ecx
loop 0x5266de
mov eax, ebp
call fcn.00526714
jmp 0x526700
lodsb al, byte [esi]
shr eax, 1
je 0x526726
adc ecx, 2
mov ebp, eax
jmp 0x526700
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00526714
cmp eax, 0x7d00
jae 0x5266fe
cmp eax, 0x500
jae 0x5266ff
cmp eax, 0x7f
ja 0x526700
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x526698
pop ebp
ret 8
Function at 0x422fb0
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA
xor edx, edx
jmp 0x422fd6
movzx ecx, byte [eax]
sub cl, 0x2d
je 0x422fc9
sub cl, 2
jne 0x422fd5
movzx ecx, byte [eax + 1]
cmp cl, byte [esi]
jne 0x422fd5
mov dl, 1
jmp 0x422fdb
inc eax
cmp byte [eax], 0
jne 0x422fbc
mov eax, edx
pop esi
ret

Function at 0x4230c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
lea edx, [ebp - 0x10b]
mov ecx, 0xfe
call fcn.00423088
lea eax, [ebp - 0x10b]
cmp byte [ebp + 8], 0
je 0x4230f3
mov edx, 4
jmp 0x4230f8
mov edx, 2
push 0
push 0x80
push edx
push 0
push 0
push 0x40000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42313c
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423144
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
cmp byte [ebp + 8], 0
je 0x423170
lea edx, [ebp - 0x107]
mov ecx, 0xfe
call fcn.00423088
lea eax, [ebp - 0x107]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4231c0
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esi], eax
mov eax, dword [esi]
call fcn.00401184
mov edx, dword [ebp - 4]
mov dword [edx], eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423354
Capabilities:
Create thread

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x4425a0
lea esi, [esp + 0x24]
push 0x423500
call sub.kernel32.dll_LoadLibraryA
mov dword [0x442598], eax
cmp dword [0x442598], 0
jne 0x423384
mov eax, 0x42350c
call fcn.00423f10
push 0x423528
mov eax, dword [0x442598]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x44259c], eax
push 0
push ebx
push 0
call dword [0x44259c]
test eax, eax
je 0x4233b2
mov eax, 0x42353c
call fcn.00423f10
push 2
mov eax, dword [0x44236c]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebx]
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
je 0x4233d2
mov eax, 0x42354c
call fcn.00423f10
mov word [esi], 3
mov word [esi + 2], 2
mov dword [esi + 4], 0xac44
mov word [esi + 0xe], 0x20
movzx eax, word [esi + 2]
add eax, eax
add eax, eax
mov word [esi + 0xc], ax
movzx eax, ax
imul dword [esi + 4]
mov dword [esi + 8], eax
mov word [esi + 0x10], 0
mov eax, esp
xor ecx, ecx
mov edx, 0x24
call fcn.0040149c
mov dword [esp], 0x24
mov dword [esp + 4], 1
push 0
push 0x4425a8
lea eax, [esp + 8]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebx]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x423446
mov eax, 0x423568
call fcn.00423f10
push esi
mov eax, dword [0x4425a8]
push eax
mov eax, dword [0x4425a8]
mov eax, dword [eax]
call dword [eax + 0x38]
test eax, eax
je 0x423465
mov eax, 0x423588
call fcn.00423f10
mov eax, esp
xor ecx, ecx
mov edx, 0x24
call fcn.0040149c
mov dword [esp], 0x24
mov dword [esp + 8], 0x44e8
mov dword [esp + 0x10], esi
mov dword [esp + 4], 0x18000
push 0
push 0x4425a4
lea eax, [esp + 8]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebx]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4234b2
mov eax, 0x423568
call fcn.00423f10
push 1
push 0
push 0
mov eax, dword [0x4425a4]
push eax
mov eax, dword [0x4425a4]
mov eax, dword [eax]
call dword [eax + 0x30]
push 1
call sub.winmm.dll_timeBeginPeriod
push 0x4425b0
push 0
push 0
push 0x423638
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4425ac], eax
push 1
mov eax, dword [0x4425ac]
push eax
call sub.kernel32.dll_SetThreadPriority
add esp, 0x38
pop esi
pop ebx
ret

Function at 0x423e70
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
mov ebx, eax
push esp
push 0
push ebx
push 0x423e60
push 0
push 0
call sub.kernel32.dll_CreateThread
pop edx
pop ebx
ret
Function at 0x401030
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push edi
push 0x40
push 0x3000
push dword [0x41a0cc]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40106c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401164
push eax
push str.ERROR__allocating_negative_control___s_n
call fcn.0040134d
add esp, 0xc
xor eax, eax
jmp 0x4010ac
mov eax, dword [0x41a0cc]
mov edx, esi
add eax, esi
mov ecx, eax
sub ecx, esi
add ecx, 3
push ebx
xor ebx, ebx
shr ecx, 2
cmp esi, eax
cmova ecx, ebx
pop ebx
test ecx, ecx
je 0x40109a
inc edi
mov dword [edx], 0xc3c3c3c3
lea edx, [edx + 4]
cmp edi, ecx
jb 0x40108c
push esi
push 8
push str.INFO__negative_control_allocated_at_0x_.x_n
call fcn.0040134d
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret

Function at 0x40129f
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push 0x41a0b0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.00401030
push 1
push 0x2000
push dword [0x41a0cc]
mov ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4012eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401164
push eax
push str.ERROR__allocating_positive_control___s_n
call fcn.0040134d
add esp, 0xc
jmp 0x4012fb
push esi
push 8
push str.INFO__positive_control_allocated_at_0x_.x_n
call fcn.0040134d
add esp, 0xc
call fcn.004010af
mov edi, eax
test ebx, ebx
je 0x401346
test esi, esi
je 0x401346
test edi, edi
je 0x401346
push 1
push ebx
push str.negative_control
call fcn.004011b7
push 0
push esi
push str.positive_control
mov bl, al
call fcn.004011b7
push 0
push edi
push str.poison_area
or bl, al
call fcn.004011b7
add esp, 0x24
or al, bl
push 0
pop eax
setne al
jmp 0x401349
push 2
pop eax
pop edi
pop esi
pop ebx
ret

Function at 0x40dc53
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 0x40dc97
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 0x40dc66
jmp 0x40dc97
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40dc87
pop esi
pop ebp
ret
Function at 0x40ea31
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 0x40ea66
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 0x40ea90
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40ea90
test edi, edi
je 0x40ea5d
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40ea5d
test edi, edi
je 0x40ea98
mov eax, edi
jmp 0x40ea5f
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40ea5f
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_esr52_w32_d_0000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.004120bc
add esp, 0xc
int3