joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ece0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [esp + 0xc0], eax
mov eax, dword [0x438020]
cmp eax, 0xffffffff
je 0x40ed14
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x40ed19
call fcn.0040eea0
mov eax, dword [0x439094]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40ed6e
push 0x439094
call fcn.00414188
add esp, 4
cmp dword [0x439094], 0xffffffff
jne 0x40ed6e
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [eax], 0
mov dword [0x439090], eax
push 0x439094
call fcn.00414188
add esp, 4
mov edi, dword [0x439090]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x43848c]
inc eax
xor ecx, ecx
lea edx, [eax + ecx]
movzx edx, dl
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x438490], 0
jne 0x40ee0d
lea eax, [ebx*4 + 0x438490]
mov dword [eax], 1
lea eax, [edx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x438494], ecx
mov dword [0x43848c], edx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x438498]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x40ee1c
mov eax, dword [esi]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
cmp eax, 0xff
jg 0x40ee56
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.00414c00
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc ecx
cmp ecx, 0x100
jne 0x40ed83
jmp 0x40edc6
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.0041b340
add esp, 0xc
test eax, eax
je 0x40ede0
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x196
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0041b070
mov ecx, edi
call fcn.0041b100
jmp 0x40ede0
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.0041b340
add esp, 0xc
test eax, eax
je 0x40edf5
lea esi, [esp + 8]
mov ecx, esi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0041b070
mov ecx, esi
call fcn.0041b100
jmp 0x40edf5
Function at 0x410e00
Capabilities:
Check for software breakpoints
Get system information on windows
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
push ecx
push eax
push eax
mov dword [ebp - 0x18], edx
push edx
push esi
call dword [sym.imp.advapi32.dll_GetKernelObjectSecurity]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x410f9e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov edi, eax
sub edi, ebx
mov dword [ebp - 0x1c], ecx
sub ecx, edi
mov dword [ebp - 0x24], esi
jb 0x410f1f
mov dword [ebp - 0x20], ecx
jbe 0x410ee7
mov ecx, dword [edx + 8]
sub ecx, ebx
mov ebx, dword [ebp - 0x1c]
cmp ecx, ebx
jae 0x410f29
test ebx, ebx
js 0x410f44
mov esi, ecx
shr esi, 1
mov eax, 0x7fffffff
mov edx, esi
xor edx, eax
add esi, ecx
cmp esi, ebx
cmovbe esi, ebx
cmp ecx, edx
cmova esi, eax
cmp esi, 0x1000
jae 0x410f49
push esi
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
add edi, ebx
push dword [ebp - 0x20]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memmove
mov eax, edi
add esp, 0xc
mov ecx, dword [edi]
test ecx, ecx
jne 0x410f68
mov dword [eax], ebx
mov ecx, dword [ebp - 0x1c]
add ecx, ebx
mov dword [eax + 4], ecx
add esi, ebx
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push edx
push dword [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.advapi32.dll_GetKernelObjectSecurity]
xor ebx, ebx
test eax, eax
je 0x410f98
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov dword [edx + 4], eax
jmp 0x410ee7
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx]
push ecx
push 0
push eax
mov edi, edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 4], esi
mov ebx, dword [edi]
jmp 0x410ee7
call fcn.0041a2f0
cmp esi, 0xffffffdd
jae 0x410fa5
lea eax, [esi + 0x23]
push eax
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x410ea7
mov eax, dword [eax + 8]
sub eax, ecx
cmp eax, 0x1000
jb 0x410f86
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x410faa
add eax, 0x23
mov ecx, edx
push eax
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov eax, dword [ebp + 8]
jmp 0x410ed8
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
jmp 0x410f0b
call fcn.0041acd0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
Function at 0x411ce0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x439384]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x411d43
push 0x439384
call fcn.00414188
add esp, 4
cmp dword [0x439384], 0xffffffff
jne 0x411d43
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x439380], eax
push 0x439384
call fcn.00414188
add esp, 4
mov esi, dword [0x439380]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x414188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x414197
pop dword [ebp - 0x34]
mov eax, 0x414197
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x380d0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x4c97
xor ebx, ebx
add ebx, eax
mov esi, 0x43f000
add esi, dword [ebp - 0x34]
mov edx, 0x8971bc3b
sub edx, 0xf8cd777e
xor dword [ebp - 4], 0x40f39484
mov edi, dword [esi]
mov dword [ebp - 0x24], 0xad846a97
xor edi, edx
mov dword [ebp - 0x1c], 0xc06ca9cd
mov dword [ebx], edi
add ebx, 0x209c3d17
add ebx, 0xdf63c2ed
add esi, 4
loop 0x4141e2
add eax, 0x1252f
mov ebx, eax
add eax, 0xea9f5d70
add eax, 0x1560a295
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4161c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov ebx, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [esp + 0xd0], eax
test edx, edx
je 0x416337
xor edi, edi
inc edi
mov esi, 0x431524
mov ecx, ebx
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
push esi
call fcn.004050e0
mov ecx, ebx
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push esi
call fcn.004050e0
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esp + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x431510]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0xc], ecx
mov edi, dword [ecx + 8]
shl edi, 6
lea ecx, [edi + 0x50]
mov dword [esp + 8], ecx
call fcn.00405e00
mov esi, eax
and eax, 0xf000
add eax, ebx
and esi, 0xfff
add edi, 0x104f
and edi, 0xfffff000
push 0x40
push 0x1000
push edi
push eax
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov ebx, eax
test eax, eax
je 0x416345
add ebx, esi
lea edi, [esp + 0x18]
mov esi, dword [esp + 8]
mov dword [edi], esi
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], 0x10
push 0xac
push eax
push sym.plugin_container.exe_g_originals
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, ebx
push edi
push esi
call fcn.004068e0
add esp, 8
test eax, eax
jne 0x41631d
lea eax, [esp + 0x14]
push eax
push 0x10
push edi
push ebx
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
mov esi, 0x2a
test eax, eax
je 0x41631f
cmp dword [esp + 0x14], 0x10
mov ecx, dword [esp + 8]
jne 0x41631f
lea eax, [esp + 0x10]
push eax
push 0x20
push ecx
push ebx
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 0xac
push sym.plugin_container.exe_g_originals
push str.g_originals
call fcn.00406240
mov esi, eax
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 8], 0
jne 0x416218
xor esi, esi
jmp 0x41631f
lea edi, [esp + 0x18]
mov ecx, edi
push str.thunk_base
push 0x188
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
call fcn.0041b030
mov ecx, edi
call fcn.0041b100
jmp 0x41628a
Function at 0x418450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.004062e0
test al, al
je 0x418474
push 0x32
push dword [esi]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, dword [esi + 0x20]
mov dword [esi + 0x20], 0
test edi, edi
je 0x418492
mov ecx, edi
call fcn.0040ea10
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x4184d3
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4184aa
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x418508
lea ecx, [esi + 0x18]
call fcn.00404350
lea ecx, [esi + 0x14]
call fcn.00404350
lea ecx, [esi + 0x10]
call fcn.00404350
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.00404c40
mov eax, dword [esi + 0x38]
sub eax, ecx
cmp eax, 0x1000
jb 0x4184f1
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41851a
add eax, 0x23
mov ecx, edx
push eax
push ecx
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
jmp 0x418499
mov ecx, edi
call fcn.0040ea10
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4184b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]

Function at 0x419e60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.MOZ_ENABLE_HANDLE_VERIFIER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x419e9a
call fcn.00419f70
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414c00
add esp, 0x24
pop esi
pop edi
pop ebp
ret
movaps xmm0, xmmword [str.kernel32]
lea esi, [ebp - 0x28]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x64002e
mov dword [esi + 0x14], 0x6c006c
mov word [esi + 0x18], 0
cmp dword [0x439320], 0
jne 0x419ed0
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x439320], eax
lea edi, [ebp - 0x2c]
mov dword [edi], 0
mov dword [ebp - 0x28], 0x43936c
mov dword [ebp - 0x24], 0x4392ec
mov dword [ebp - 0x20], 0x432983
mov dword [ebp - 0x1c], 0x42f6b0
mov byte [ebp - 0x18], 0
push edi
push esi
push 0x42f710
push 0x439370
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x419e84
cmp dword [ebp - 0x2c], 0
je 0x419e84
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x439374
mov dword [ebp - 0x24], 0x4392ec
mov dword [ebp - 0x20], 0x432973
mov dword [ebp - 0x1c], 0x42f6d0
mov byte [ebp - 0x18], 0
push edi
push esi
push 0x42f710
push 0x439378
call dword [sym.imp.kernel32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x419e84
cmp dword [ebp - 0x2c], 0
jne 0x419e89
jmp 0x419e84
Function at 0x41cde0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0041d040
test edi, edi
je 0x41ce24
test al, al
je 0x41ce24
mov ecx, ebx
sar ecx, 0x1f
add edi, ebx
adc ecx, 0
mov eax, ecx
and eax, 1
neg eax
xor ecx, eax
jne 0x41ce24
test eax, eax
js 0x41ce24
cmp dword [esi + 8], edi
jb 0x41ce24
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0041d050
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x424eb0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x438014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x424f43
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jb 0x424ef4
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x424f57
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
dec edi
jmp 0x424f33

Function at 0x426ab0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
sub esp, 0x18
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
movaps xmm0, xmmword [0x431960]
movups xmmword [esp], xmm0
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.004016a0
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x426afe
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x428ea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 7]
mov edi, 5
cmp eax, 0xfffffffe
jae 0x428ed7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], 8
jb 0x428eff
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov edx, dword [edi + 0x10]
cmp dword [edi + 0x14], 8
jb 0x428f17
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp dword [esi + 0x14], 8
jb 0x428f2a
mov esi, dword [esi]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
sub esp, 0x28
mov dword [esp + 0x24], ebx
lea ecx, [ebp - 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x428fd7
mov eax, dword [ebp + 8]
cmp eax, 6
mov eax, 0x1fffff
mov esi, 0x101c01
cmove esi, eax
mov eax, dword [ebx]
mov dword [ebp - 0x60], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
test eax, eax
je 0x428ff1
cmp dword [ebp + 8], 6
mov edi, 0x100c43
mov eax, 0x1fffff
cmove edi, eax
mov esi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 1
push 0
push edi
push ebx
push dword [ebp - 0x5c]
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x428ec3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x428ec3
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x428fd7

Function at 0x429000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
test eax, eax
je 0x42905f
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.kernel32.dll_GetLastError]
Function at 0x42fbf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4393b8]
mov ecx, dword [0x4380f8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42fc6a
mov eax, dword [esi + 8]
test eax, eax
je 0x42fc51
mov ecx, dword [0x4393b4]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
jne 0x42fc38
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4393b8
call fcn.00414188
add esp, 4
cmp dword [0x4393b8], 0xffffffff
jne 0x42fc22
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x4393b4], eax
push 0x4393b8
call fcn.00414188
add esp, 4
jmp 0x42fc22

Function at 0x42fee0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x42ff66
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.0041a040
test al, al
je 0x42ff66
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x42ff66
mov edi, eax
mov ecx, eax
call fcn.0041a040
test al, al
je 0x42ff66
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00410fb0
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42ff68
cmp byte [esi + 0x14], 0
jne 0x42ff56
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040a680
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404908
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xb
push 0x7918
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40495e
push 0x19
push 0x4014f27
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404a2d
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40499c
push 0x97
push 0x4014f27
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404a2d
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4049da
push 0x10a
push 0x4014f27
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404a2d
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x910
call fcn.00440690
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x46f8c5]
test ebx, ebx
je 0x404a27
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8c5], eax
mov eax, 0x46a40c
xor ecx, ecx
test eax, eax
je 0x404a3b
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [0x46f8c5]
xor ebx, ebx
test eax, eax
je 0x404a4e
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x404a65
dec eax
test ecx, ecx
je 0x404a65
call fcn.0040485c
add esp, 0xc
test eax, eax
jne 0x404aa6
mov eax, 0x46a42b
test eax, eax
je 0x404a8c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x46f8c5]
test ebx, ebx
je 0x404aa0
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8c5], eax
mov esp, ebp
pop ebp
ret