joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416710
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 eax, dword [0x43600c]
mov esi, ecx
xor eax, ebp
test edx, edx
mov dword [esp + 0xd0], eax
jne 0x416753
xor edi, edi
cmp dword [esi + 8], 0
jne 0x416784
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.0042ee00
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov ebx, 0x4303f6
mov ecx, esi
inc edi
push 0
push str._TargetNtMapViewOfSection_44
push edi
push str.NtMapViewOfSection
push ebx
call fcn.004161c0
mov ecx, esi
push edi
push str._TargetNtUnmapViewOfSection_12
push edi
push str.NtUnmapViewOfSection
push ebx
call fcn.004161c0
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 8], eax
push 1
push 0x2000
push 0x10000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, dword [esi + 8]
mov dword [esp + 4], eax
shl ebx, 6
lea ecx, [ebx + 0x50]
mov dword [esp + 0xc], ecx
call fcn.00415ff0
mov edi, eax
mov eax, 0xfffff000
add ebx, 0x104f
mov ecx, edi
and edi, 0xfff
and ebx, eax
and ecx, eax
add ecx, dword [esp + 4]
push 0x40
push 0x1000
push ebx
push ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test eax, eax
jne 0x41680e
lea ecx, [esp + 0x18]
push str.thunk_base
push 0x188
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_sandbox_win_src_interception.cc
call fcn.00402240
lea ecx, [esp + 0x18]
call fcn.004022e0
mov eax, dword [esp + 0xc]
add ebx, edi
lea edi, [esp + 0x18]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], 0x10
push 0xa8
push eax
push sym.plugin_container.exe_g_originals
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
mov dword [esp + 4], ebx
mov edx, ebx
push edi
push dword [esp + 0x10]
call fcn.00416aa0
add esp, 8
mov edi, eax
test eax, eax
jne 0x41673b
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x20]
push eax
mov ebx, dword [esp + 0x10]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
mov edi, 0x2a
je 0x41673b
cmp dword [esp + 0x14], 0x10
jne 0x41673b
lea eax, [esp + 0x10]
push eax
push 0x20
push dword [esp + 0x14]
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [esi]
push 0xa8
push sym.plugin_container.exe_g_originals
push str.g_originals
call fcn.00428e50
mov edi, eax
jmp 0x41673b
Function at 0x417bd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x43600c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, 5
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
jne 0x417c63
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 7
jbe 0x417c14
mov edi, dword [edi]
mov ebx, dword [ebx]
push 0
push esi
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x417c77
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
lea eax, [ebp - 0x14]
sbb edi, edi
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.0042ee00
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
dec edi
jmp 0x417c53

Function at 0x41c0b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
push ebx
push edx
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.00405e20
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x41c0f3
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 0x41f580
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 [0x43600c]
mov edi, 5
add ecx, 0xfffffffb
xor eax, ebp
cmp ecx, 1
mov dword [ebp - 0x10], eax
jbe 0x41f5b7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor edi, edi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], 7
jbe 0x41f5fe
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push eax
call dword [sym.imp.mozglue.dll__wcsdup]
add esp, 4
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x41f616
mov esi, dword [esi]
test edx, edx
mov ecx, dword [ebp + 0xc]
cmove esi, edx
cmp dword [ebx + 0x14], 7
jbe 0x41f626
mov ebx, dword [ebx]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x54]
push edx
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x58], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x41f6c1
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov ebx, 0x101c01
cmp eax, 6
mov eax, 0x1fffff
cmove ebx, eax
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push ebx
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [esi + 4]
test eax, eax
je 0x41f6db
mov eax, esi
mov esi, 0x100c43
mov ecx, 0x1fffff
add eax, 4
cmp dword [ebp + 8], 6
mov edi, eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push edi
push dword [ebp - 0x5c]
push ebx
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 0x41f5a3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x41f5a3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41f6c1
Function at 0x41f6f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebx], ecx
xor ebx, ebx
push edi
mov edi, eax
push esi
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x41f761
mov edi, dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push ebx
push ebx
push dword [ebp - 0x10]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x421120
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x43600c]
mov edi, 0x3f0
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
jne 0x421154
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, ecx
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
lea edx, [ecx + 0x30]
mov ecx, edi
push eax
push 2
call fcn.00421250
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x421245
cmp dword [edi], 0
mov dword [ebp - 0x60], esi
je 0x421235
mov eax, dword [ebp - 0x60]
xor edx, edx
add eax, 0x18
mov dword [ebp - 0x64], eax
test dword [edi + edx*8 + 8], 0xc0000020
je 0x4211a1
inc edx
cmp edx, dword [edi]
jb 0x42118d
jmp 0x421235
cmp dword [ebp + 8], 0
je 0x4211b1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
jne 0x4211e3
mov ebx, edx
lea ecx, [ebp - 0x54]
push dword [edi + edx*8 + 4]
call fcn.00426d60
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
cmp edx, eax
je 0x421226
push 0x44
lea ecx, [ebp - 0x54]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], 0x44
mov edx, ebx
jmp 0x421197
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x68], edx
mov eax, dword [edi + edx*8 + 4]
add ecx, esi
mov dword [ebp - 0x6c], eax
call fcn.004270c0
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0x421197
mov eax, dword [ebp + 8]
inc ebx
add esi, 0x44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp ebx, eax
jb 0x4211ea
jmp 0x4211b1
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.0040d3c0
jmp 0x4211df
push edi
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
xor edi, edi
jmp 0x42113e
mov edi, dword [ebp - 0x58]
jmp 0x42113e
Function at 0x4289f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0040bfb0
test al, al
je 0x428a14
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 0x428a32
mov ecx, edi
call fcn.00426460
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x30]
call fcn.00403cf0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x428a4b
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov edi, dword [esi + 0x20]
test edi, edi
je 0x428a62
mov ecx, edi
call fcn.00426460
push edi
call sub.mozglue.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x18]
call fcn.00405da0
lea ecx, [esi + 0x14]
call fcn.00405da0
lea ecx, [esi + 0x10]
call fcn.00405da0
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.0040bf80
Function at 0x429e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov eax, dword [0x43600c]
mov edi, dword [ebp + 8]
mov ebx, 0x1126
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
call fcn.00429b50
add esp, 4
test al, al
je 0x429e42
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, ebx
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x28]
mov ecx, edi
mov edx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
call fcn.00429fd0
mov ecx, esi
mov ebx, eax
call fcn.0042a0a0
mov ecx, esi
mov edx, esi
mov bh, al
call fcn.0042a0e0
mov cl, bh
test bl, bl
jne 0x429e92
test cl, cl
jne 0x429e92
mov ebx, 0x7b
test al, al
jne 0x429e92
lea ecx, [ebp - 0x28]
call fcn.00401b50
jmp 0x429e2b
test cl, cl
mov ebx, eax
je 0x429fb2
cmp dword [ebp - 0x14], 7
jbe 0x429ea5
mov esi, dword [ebp - 0x28]
lea edi, [ebp - 0x230]
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x429ed3
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
dec esi
cmp dword [ebp - 0x14], 7
jbe 0x429ee4
mov eax, dword [ebp - 0x28]
jmp 0x429ee7
test bl, bl
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x429e88
lea eax, [ebp - 0x28]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
mov ebx, 0x7b
test eax, eax
jne 0x429e88
jmp 0x429f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
dec eax
cmp eax, 3
jb 0x429f58
cmp ebx, 0x7b
je 0x429f58
jmp 0x429e88
lea edx, [ecx + ecx]
mov edi, 2
sub edi, edx
test edi, edi
je 0x429f35
add edi, 2
cmp word [ebx - 2], 0x5c
lea edx, [ebx - 2]
mov ebx, edx
jne 0x429f20
jmp 0x429f7c
xor edx, edx
dec edx
jmp 0x429f80
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x429f46
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429efe
bt eax, 0xa
jb 0x429fab
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x429f67
mov eax, dword [ebp - 0x28]
test ecx, ecx
mov edx, 0xffffffff
je 0x429f80
lea ebx, [eax + ecx*2 - 2]
cmp word [ebx], 0x5c
jne 0x429f16
mov edx, ebx
sub edx, eax
sar edx, 1
mov edi, edx
sub edi, ecx
jbe 0x429f93
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.00401a00
jmp 0x429f9c
mov dword [ebp - 0x18], edx
mov word [eax + edx*2], 0
cmp dword [ebp - 0x18], esi
ja 0x429f3a
mov ebx, 0x1126
jmp 0x429e88
xor ebx, ebx
jmp 0x429e88
lea ecx, [ebp - 0x28]
push 4
push str.._
push 0
call fcn.00412df0
jmp 0x429e9c
Function at 0x42b600
Capabilities:
Contain obfuscated stackstrings
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x43600c]
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 0x42b63a
call fcn.0040b5d0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0042ee00
add esp, 0x24
pop esi
pop edi
pop ebp
ret
cmp dword [0x4373a0], 0
mov dword [ebp - 0x28], 0x65006b
mov dword [ebp - 0x24], 0x6e0072
mov dword [ebp - 0x20], 0x6c0065
mov dword [ebp - 0x1c], 0x320033
mov dword [ebp - 0x18], 0x64002e
mov dword [ebp - 0x14], 0x6c006c
mov word [ebp - 0x10], 0
jne 0x42b682
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4373a0], eax
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x28]
mov dword [edi], 0x4373ec
mov dword [edi + 4], 0x43736c
mov dword [edi + 8], 0x4316f1
mov dword [edi + 0xc], 0x42b730
mov dword [esi], 0
mov byte [edi + 0x10], 0
push esi
push edi
push 0x42b790
push 0x4373f0
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x42b624
cmp dword [ebp - 0x2c], 0
je 0x42b624
mov dword [ebp - 0x28], 0x4373f4
mov dword [ebp - 0x24], 0x43736c
mov dword [ebp - 0x20], 0x4316e1
mov dword [ebp - 0x1c], 0x42b750
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x18], 0
push esi
push edi
push 0x42b790
push 0x4373f8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x42b624
cmp dword [ebp - 0x2c], 0
jne 0x42b629
jmp 0x42b624
Function at 0x42c9e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437404]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x42ca43
push 0x437404
call fcn.0042e6b7
add esp, 4
cmp dword [0x437404], 0xffffffff
jne 0x42ca43
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x437400], eax
push 0x437404
call fcn.0042e709
add esp, 4
mov esi, dword [0x437400]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ee00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x42cfe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437438]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d026
mov esi, dword [0x437434]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ee00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
push 0x437438
call fcn.0042e6b7
add esp, 4
cmp dword [0x437438], 0xffffffff
jne 0x42d00e
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x437434], eax
push 0x437438
call fcn.0042e709
add esp, 4
jmp 0x42d00e
Function at 0x42d390
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x43600c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x10]
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
mov dword [ebp - 0x38], ecx
mov dword [ecx + 4], eax
mov eax, dword [0x436100]
mov ecx, dword fs:[0x2c]
mov edx, dword [0x437438]
mov eax, dword [ecx + eax*4]
cmp edx, dword [eax + 4]
jg 0x42d463
mov ecx, dword [0x437434]
lea eax, [ebx + edi - 1]
xor edx, edx
xor edi, edi
div ecx
mov esi, eax
mov eax, ebx
xor edx, edx
div ecx
sub esi, eax
inc esi
mov dword [ebp - 0x48], esi
je 0x42d44e
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
imul ebx, ecx
add eax, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x42d4a1
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x42d4b2
mov edx, ecx
mov ecx, dword [ecx + 4]
inc edi
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], ebx
inc dword [edx + 8]
mov ecx, dword [ebp - 0x44]
add ebx, ecx
cmp edi, dword [ebp - 0x48]
jne 0x42d414
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x437438
call fcn.0042e6b7
add esp, 4
cmp dword [0x437438], 0xffffffff
jne 0x42d3e3
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x437434], eax
push 0x437438
call fcn.0042e709
add esp, 4
jmp 0x42d3e3
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
call fcn.0042d4d0
jmp 0x42d44e
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call fcn.0042d5a0
test al, al
je 0x42d4a8
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
jmp 0x42d434
Function at 0x42d4d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x43600c]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437438]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d550
mov eax, dword [esi + 8]
test eax, eax
jne 0x42d522
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esi + 4]
mov ecx, dword [0x437434]
lea edi, [ebx + eax*8]
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x42d58a
add ebx, 8
cmp ebx, edi
je 0x42d509
jmp 0x42d531
push 0x437438
call fcn.0042e6b7
add esp, 4
cmp dword [0x437438], 0xffffffff
jne 0x42d502
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x437434], eax
push 0x437438
call fcn.0042e709
add esp, 4
jmp 0x42d502
mov dword [ebp - 0x34], 0
jmp 0x42d547

Function at 0x42d7b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Resolve function by parsing pe exports

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 0x42d836
mov eax, dword [ebp + 0xc]
and ecx, 0xfffffffc
mov edi, edx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
call fcn.0042b8d0
test al, al
je 0x42d836
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42d836
mov ecx, eax
mov edi, eax
call fcn.0042b8d0
test al, al
je 0x42d836
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0042d840
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42d838
cmp byte [esi + 0x14], 0
jne 0x42d826
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.0042b940
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401fa9
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040dfc0
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401fd4
push dword [0x418018]
call fcn.004053c7
and eax, eax
je 0x401fd4
push dword [0x418018]
call fcn.00405436
push dword [0x418070]
call fcn.0040a7e7
push dword [0x418060]
call fcn.0040a7e7
call fcn.004034d1
push dword [0x418040]
call fcn.0040a7e7
push dword [0x41802c]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [0x418078]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011a5

Function at 0x402022
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402029
call fcn.0040dfc0
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], CloseServiceHandle
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x417042
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x48], eax
push 0x19
call fcn.00405532
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.DLL_GetExitCodeProcess
and eax, eax
je 0x4020dd
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x4020dd
jmp 0x4020df
jmp 0x4020b0
mov eax, dword [esp + 0x4c]
jmp 0x4020e7
push dword [esp]
call fcn.0040df50
push dword [esp + 4]
call fcn.0040df50
push dword [esp + 8]
call fcn.0040df50
add esp, 0x50
pop ebx
pop ebp
ret 0xc