joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3006a757
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3006a785
xor eax, eax
jmp 0x3006a7ad
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3006a7a2
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x3006a7b2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 4

Function at 0x3006a7cc
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x3006a834
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x3006a82b
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret
Function at 0x3006ac70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x464]
push esi
push eax
mov dword [ebp - 0x468], 0x44
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x424], esi
xor eax, eax
lea edi, [ebp - 0x420]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push ebx
stosd dword es:[edi], eax
call fcn.30059e13
cmp eax, 0x104
jg 0x3006ad27
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push 0x6b
push ebx
push 0x300226cc
push 0x208
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x3006ad27
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x420]
call esi
jmp 0x3006ad32
push esi
push 0x30303030
call fcn.300434a3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret 8

Function at 0x3006b4e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.3006b34c
test eax, eax
je 0x3006b55a
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3006b55a
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x300227cc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x3006b550
cmp dword [ebp - 0x10], 1
je 0x3006b550
and word [esi], ax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc
Function at 0x3007068e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x300706f2
cmp dword [ebp - 0x90], 2
jne 0x300706f2
cmp dword [ebp - 0x9c], 6
ja 0x300706d9
cmp dword [ebp - 0x9c], 6
jne 0x300706f2
cmp dword [ebp - 0x94], 0x155e
jb 0x300706f2
push 0x3002300c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x300706f4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3006961b
mov esp, ebp
pop ebp
ret

Function at 0x30077ed2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 1
jne 0x30077fd4
push 0x30023e6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x6c], 0
jne 0x30077f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x30077f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.3006d165
mov dword [ebp - 8], eax
jmp 0x30077f26
mov dword [ebp - 8], 0x80004005
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x68], ecx
jmp 0x30077fd4
push 0x30009634
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x70], eax
push 0x300095f8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x74], eax
push 0x3000964c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x78], eax
push 0x30009610
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x7c], eax
push 0x30009624
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
push 0x300095e8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov esp, ebp
pop ebp
ret
Function at 0x3007888d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30088888
push 0x30069f34
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x3002223c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x30078980
cmp dword [ebp + 8], 0xffffffff
je 0x30078980
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x30078960
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
jne 0x30078926
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x3007892f
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x3007892f
mov dword [ebp - 0x1c], 0
jmp 0x30078960
cmp dword [ebp + 0xc], 0
je 0x30078960
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x30078953
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.30078685
jmp 0x30078960
mov ecx, 0x42
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xfffffffe
jmp 0x30078980
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x30078997
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x300789c2
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x300789fa
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x300789ef
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x300789ef
mov eax, dword [ebp - 4]
jmp 0x300789fc
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x300789b9
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x300790ba
Capabilities:
Create thread
Suspend thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x300888c8
push 0x30069f34
mov eax, dword fs:[0]
push eax
add esp, 0xfffffa40
mov eax, dword [0x3002223c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x300790b3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x30079134
xor eax, eax
jmp 0x30079271
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
mov edx, dword [ebp + 8]
push edx
call fcn.30078ffe
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x30079160
mov dword [ebp - 0x300], 0
jmp 0x30079229
mov dword [ebp - 0x300], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x30079196
mov dword [ebp - 0x300], 0
jmp 0x30079206
mov dword [ebp - 0x5d0], 0x10007
lea ecx, [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x300791c2
jmp 0x30079206
mov dword [ebp - 0x2f8], 0x10007
lea eax, [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x300791ee
jmp 0x30079206
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0x240]
je 0x30079206
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x30079229
cmp dword [ebp - 0x2fc], 0
jle 0x3007923c
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 0x20], 0
je 0x3007925b
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x3007926b
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.3006961b
mov esp, ebp
pop ebp
ret 4
Function at 0x3007dcdd
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x3007dd1c
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x3007dcf7
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x3007dd38
dec edi
je 0x3007dd31
dec edi
jne 0x3007dd3d
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc

Function at 0x3007f144
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [ebx + 0xc], di
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edi
mov esi, 0x8000
jne 0x3007f194
push esi
push eax
add eax, esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov word [ebx + 0x2c], di
mov dword [ebx + 0x30], edi
call fcn.3007eb9e
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], edi
push 2
mov word [ebx + 0x3c], si
mov dword [ebx + 0x34], esi
add eax, esi
pop ecx
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x3007f1b2
cmp byte [ebp + 0x24], cl
je 0x3007f1d8
mov edi, ebx
call fcn.3007e9fb
jmp 0x3007f1e9
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x3007f1dc
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.3007de41
push 0x4b
pop edx
call fcn.3007de41
call fcn.3007eeca
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x3007f227
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x300815ea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
cmp ecx, 0x320
mov dword [ebp - 0xc9c], ecx
jb 0x30081637
xor eax, eax
jmp 0x30081813
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call sub.MSVCR80.dll_memset
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x30081797
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
push ebx
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x30081696
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x300816c0
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x30081704
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x300816ee
call fcn.3007f947
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x300816fd
call fcn.3007f947
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x30081736
movzx eax, byte [edi + eax]
jmp 0x3008177a
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x30081764
call fcn.3007f947
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x30081773
call fcn.3007f947
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x30081690
pop ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0xc9c], esi
jbe 0x30081810
movzx eax, word [ebp + esi*2 - 0xc84]
cmp ax, 0x100
movzx eax, ax
jae 0x300817bd
movzx eax, byte [eax + 0x300246f0]
jmp 0x300817ca
shr eax, 8
movzx eax, byte [eax + 0x300246f0]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
cmp cx, 0x100
movzx ecx, cx
jae 0x300817e5
movzx ecx, byte [ecx + 0x300246f0]
jmp 0x300817f2
shr ecx, 8
movzx ecx, byte [ecx + 0x300246f0]
add ecx, 8
mov eax, dword [eax*4 + 0x300246a8]
sub eax, dword [ecx*4 + 0x300246a8]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x300817a3
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3006961b
leave
ret 0x14
Function at 0x10004030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x667bf0
call fcn.100041a0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10004860
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10004091
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53e58955
jne 0x100040a3
mov eax, 0x64
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x667c40
call fcn.100047f0
cmp eax, 0x53e58955
jne 0x100040be
mov eax, 0x6e
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x666ba0
call fcn.100047f0
xor ecx, ecx
mov edx, 0x78
cmp eax, 0x53e58955
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x10004210
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x14], cl
cmovne ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1000422f
mov byte [ebp - 4], cl
jmp 0x1000424c
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007e00
add esp, 0xc
cmp byte [ebp - 4], 0
je 0x1000427a
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x10004280
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 4], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x100042b4
sub eax, 1
je 0x10004309
sub eax, 2
je 0x10004366
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
sub bl, al
movzx ecx, byte [ebp + 0x14]
dec bl
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
test ecx, ecx
jne 0x100042d4
mov byte [ebp - 0xc], cl
mov byte [eax], bl
jmp 0x10004306
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x10004306
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov ebx, dword [ebp - 4]
mov eax, ebx
mov dword [ebp - 0x18], 0
sub eax, esi
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, byte [ebp + 0x14]
add eax, eax
jne 0x10004333
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x10004366
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x10004366
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x1000438e
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x100043bd
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100043d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
movzx ebx, byte [ebp + 0x10]
mov dword [ebp - 0x14], edx
push esi
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
jne 0x100043f5
xor cl, cl
jmp 0x10004410
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 0x14], eax
call edi
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 8], cl
mov ch, byte [esi]
mov byte [ebp + 0x13], ch
test cl, cl
je 0x10004433
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp + 0x13]
movzx ecx, ch
sub ecx, 0xe8
je 0x1000450c
sub ecx, 1
je 0x1000450c
sub ecx, 0x16
jne 0x100044fc
mov dword [ebp - 0x14], ecx
lea esi, [eax + 1]
test ebx, ebx
jne 0x10004462
xor cl, cl
jmp 0x1000447a
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x14], esi
call edi
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 8], cl
mov dl, byte [esi]
mov byte [ebp + 0x13], dl
test cl, cl
je 0x1000449f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 0x13]
cmp dl, 0x15
je 0x100044a9
cmp dl, 0x25
jne 0x100044fc
shl ebx, 2
lea esi, [eax + 2]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x100044bc
xor al, al
jmp 0x100044d4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x14], esi
call edi
mov ecx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov esi, dword [esi]
test al, al
je 0x100044ee
mov eax, dword [ebp - 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl ebx, 2
lea esi, [eax + 1]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x1000451f
xor al, al
jmp 0x10004537
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x14], esi
call edi
mov ecx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov ebx, dword [esi]
test al, al
je 0x10004551
mov eax, dword [ebp - 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
lea ecx, [ebx + 4]
pop edi
add ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret