joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30014460
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x30014495
call fcn.30003f40
cmp eax, 1
jne 0x30014495
mov ecx, dword [esi + 0x24]
mov edx, 0x10b
movzx eax, word [ecx + 0x18]
cmp ax, dx
jne 0x30014498
mov edx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
jmp 0x300144a1
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov edi, dword [esi + 4]
sub edi, dword [esi]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 6]
mov ecx, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, 0x4ec4ec4f
mov dword [ebp - 8], edx
imul edi
push 0x30014440
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 4]
push eax
call fcn.30014b40
mov eax, dword [esi + 0x24]
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
movzx ecx, word [eax + 0x14]
lea eax, [edx + edx*4]
lea ecx, [ecx + eax*8]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x3c]
add eax, 0x98
add eax, ecx
mov dword [ebp - 0x10], eax
test edx, edx
je 0x30014577
mov ecx, dword [esi]
xor eax, eax
mov dword [ebp - 0xc], ecx
lea esp, [esp]
imul ebx, eax, 0x34
xor edx, edx
mov ecx, dword [ebx + ecx + 0xc]
dec ecx
add ecx, dword [ebp - 8]
mov eax, ecx
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub ecx, edx
xor edx, edx
mov dword [ebx + eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
dec ecx
add ecx, dword [ebp - 4]
mov eax, ecx
div dword [ebp - 4]
mov eax, dword [esi]
sub ecx, edx
xor edx, edx
mov dword [ebx + eax + 0x14], ecx
mov edi, dword [esi]
mov ecx, dword [ebp - 4]
dec ecx
add ecx, dword [edi + ebx + 0x2c]
mov eax, ecx
div dword [ebp - 4]
sub ecx, edx
mov dword [edi + ebx + 0x10], ecx
mov ecx, dword [esi]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + ecx + 0x14]
add eax, dword [ebx + ecx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
movzx eax, ax
cmp eax, dword [ebp - 0x18]
jb 0x30014510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x30014670
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov byte [ebp - 1], 0
push edi
cmp dword [esi + 0x10], 0
je 0x300147de
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x300147de
call fcn.30003f40
cmp eax, 1
jne 0x300147de
xor edi, edi
push edi
push edi
push 3
push edi
push eax
push closesocket
push dword [esi + 0x10]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x3001470f
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x300146ff
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x300146eb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], edi
call ebx
jmp 0x30014715
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
call ebx
jmp 0x30014715
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x1c], eax
call ebx
jmp 0x30014715
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.30013410
cmp edi, eax
jbe 0x300147de
mov edi, dword [esi + 0x3c]
cmp edi, 0xffffffff
jne 0x30014757
mov eax, dword [esi + 0x10]
test eax, eax
je 0x300147cd
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esi + 0x3c], edi
cmp edi, 0xffffffff
je 0x300147d4
mov ecx, esi
call fcn.30013410
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x30014781
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x30014781
mov ecx, dword [ebp - 0x20]
jmp 0x30014783
xor ecx, ecx
mov edi, dword [ebp - 0xc]
sub ecx, edi
push ecx
mov dword [esi + 0x30], ecx
call fcn.3015e392
add esp, 4
mov dword [esi + 0x2c], eax
push 0
push 0
push edi
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x300147c2
mov byte [ebp - 1], 1
mov ecx, dword [esi + 0x3c]
cmp ecx, 0xffffffff
je 0x300147d4
push ecx
call ebx
mov dword [esi + 0x3c], 0xffffffff
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3001d3a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x3001d3c8
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x3001d3d6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x3001d3ef
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x3001d3fd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x3001d416
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x3001d424
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x3001d43d
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x3001d44b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.3001d492

Function at 0x3001d520
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x33
call 0x3001d531
add dword [esp], 5
retf
Function at 0x30045600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x3021ae88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
push ebx
mov ebx, edx
test ecx, ecx
je 0x30045803
test ebx, ebx
je 0x30045803
test eax, eax
je 0x30045803
push esi
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x30045802
cmp dword [esi + 4], 0x73736c35
jne 0x30045802
push edi
push 0x60
lea eax, [ebp - 0x67]
push 0
push eax
call fcn.30160f00
add esp, 0xc
lea edx, [ebp - 0x68]
add esi, 0x1c
mov edi, 0x30
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x301ee318]
mov byte [edx], al
movzx eax, byte [ecx + 0x301ee318]
mov byte [edx + 1], al
add edx, 2
sub edi, 1
jne 0x30045666
mov byte [edx], 0
lea ecx, [ebp - 0x68]
mov eax, 0x301f62ee
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x300456c0
test dl, dl
je 0x300456bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x300456c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x300456a0
xor eax, eax
jmp 0x300456c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x30045801
mov ecx, ebx
mov eax, 0x301f62ee
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x300456f4
test dl, dl
je 0x300456f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x300456f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x300456d4
xor eax, eax
jmp 0x300456f9
sbb eax, eax
or eax, 1
test eax, eax
je 0x30045801
mov edi, dword [ebp - 0x6c]
mov eax, 0x301f62ee
mov ecx, edi
jmp 0x30045710
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x30045730
test dl, dl
je 0x3004572c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x30045730
add eax, 2
add ecx, 2
test dl, dl
jne 0x30045710
xor eax, eax
jmp 0x30045735
sbb eax, eax
or eax, 1
test eax, eax
je 0x30045801
mov ecx, str.tlsdump
mov dword [ebp - 0x6c], 0
call fcn.30003370
mov esi, eax
push str.tlsdump.log
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [0x302452a0], 0
jne 0x3004577d
push esi
push str.TLS_1.2_secrets_logged_to:__s
mov dword [0x302452a0], 1
call fcn.30009b00
add esp, 8
mov eax, dword [0x3026d6e0]
test eax, eax
jne 0x300457a2
push eax
push 0x80
push 4
push eax
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x3026d6e0], eax
cmp eax, 0xffffffff
je 0x30045801
push 0x1000
push 0
push 0x3026c6e0
call fcn.30160f00
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
push str.client_random:__s__server_random:__s__master_secret:__s_n
push 0xffffffffffffffff
push 0x1000
push 0x3026c6e0
call fcn.30009a10
mov ecx, 0x3026c6e0
add esp, 0x28
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x300457e0
push 0
lea eax, [ebp - 0x6c]
sub ecx, edx
push eax
push ecx
push 0x3026c6e0
push dword [0x3026d6e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.3015dd6d
mov esp, ebp
pop ebp
ret
Function at 0x30046a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x3026c6a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x30245520], 0
jle 0x30046b14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x30046a60
cmp dword [0x30245540], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
jne 0x30046a9d
cmp dword [0x30245518], 0xffffffff
je 0x30046a93
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x30245520]
push eax
push dword [0x30245524]
push dword [0x30245518]
jmp 0x30046aca
mov eax, dword [0x30245520]
mov dword [ebp - 4], eax
jmp 0x30046acf
cmp dword [0x3026c670], 0xffffffff
jne 0x30046ab2
mov dword [0x30245520], 0
jmp 0x30046b06
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x30245520]
push eax
push dword [0x30245524]
push dword [0x3026c670]
call esi
mov eax, dword [ebp - 4]
test eax, eax
js 0x30046b06
cmp eax, dword [0x30245520]
jge 0x30046af9
mov eax, dword [0x30245520]
mov edx, dword [ebp - 4]
sub eax, edx
mov ecx, dword [0x30245524]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.301608d0
add esp, 0xc
mov eax, dword [0x30245520]
sub eax, dword [ebp - 4]
mov dword [0x30245520], eax
cmp dword [0x30245520], 0
jg 0x30046a60
pop esi
push 0x3026c6a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x30046bd0
Capabilities:
Write file on windows

Disassembly:
push 0x3026c680
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x30046c21
mov ecx, dword [0x30245528]
test ecx, ecx
je 0x30046c09
mov edx, dword [0x3024552c]
call fcn.30046b30
mov ecx, dword [0x30245528]
call fcn.300011f0
mov dword [0x30245528], 0
push 0x3026c680
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x30245524], 0
jne fcn.30046a30
ret
Function at 0x3004b390
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0xc]
add edx, 0xc
cmp eax, edx
je 0x3004b3ae
cmp dword [eax + 0x18], ecx
je 0x3004b3b1
mov eax, dword [eax]
cmp eax, edx
jne 0x3004b3a3
xor eax, eax
ret
add eax, 0x2c
ret

Function at 0x3004b3c0
Capabilities:
Access peb ldr_data

Disassembly:
push esi
mov esi, dword fs:[0x30]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0xa0]
xor edx, edx
pop esi
cmp eax, dword [ecx + 0xc]
sete dl
mov eax, edx
ret
Function at 0x3004d210
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 4], edx
push ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
xor edi, edi
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x18]
add ecx, eax
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x3004d2af
mov ebx, ecx
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3004d246
mov esi, dword [ebp - 4]
sub eax, edx
mov edx, ebx
sub eax, 4
jb 0x3004d271
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x3004d276
add edx, 4
add esi, 4
sub eax, 4
jae 0x3004d260
cmp eax, 0xfffffffc
je 0x3004d2b8
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x3004d2a3
cmp eax, 0xfffffffd
je 0x3004d2b8
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x3004d2a3
cmp eax, 0xfffffffe
je 0x3004d2b8
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x3004d2a3
cmp eax, 0xffffffff
je 0x3004d2b8
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x3004d2b8
mov edx, dword [ebp - 4]
inc edi
add ebx, 0x28
cmp edi, dword [ebp - 8]
jb 0x3004d241
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
lea eax, [edi + edi*4]
mov edx, dword [ebp - 0x10]
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 8]
add edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
pop edi
mov dword [eax], edx
add ecx, edx
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x3004e0d0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
xor ecx, ecx
call fcn.3004d9e0
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jle 0x3004e1cd
push ebx
push esi
push edi
pushfd
mov eax, dword fs:[0x18]
pop ebx
test eax, eax
jne 0x3004e10b
or esi, 0xffffffff
or edi, 0xffffffff
jmp 0x3004e114
mov esi, dword [eax + 0x34]
mov edi, dword [eax + 0xbf4]
lea eax, [ecx + 1]
push eax
push 8
push dword [0x30271450]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword fs:[0x18]
mov dword [ebp - 4], ecx
test eax, eax
je 0x3004e144
mov dword [eax + 0x34], esi
mov dword [eax + 0xbf4], edi
test ebx, ebx
je 0x3004e144
push ebx
popfd
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
call fcn.3004d9e0
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xffffffffffffffff
push eax
push dword [eax]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 4]
push 0x3026d780
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov esi, eax
neg esi
sbb esi, esi
not esi
pushfd
mov ebx, dword fs:[0x18]
pop dword [ebp - 8]
test ebx, ebx
jne 0x3004e18e
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x3004e197
mov edi, dword [ebx + 0x34]
mov ebx, dword [ebx + 0xbf4]
push dword [ebp - 4]
push 0
push dword [0x30271450]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword fs:[0x18]
test eax, eax
je 0x3004e1c4
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x3004e1c4
push eax
popfd
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x30053650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x3005366a
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0xffffffff
je 0x3005369f
push esi
movzx eax, byte [ebx]
mov esi, edi
and esi, 0x1f
inc ebx
mov ecx, esi
neg ecx
mov edx, dword [eax*4 + 0x301ee368]
and ecx, 0x1f
mov eax, edx
shr eax, cl
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 4]
or eax, edx
xor ecx, eax
mov dword [ebp - 4], ecx
sub edi, 1
jne 0x30053670
pop esi
movzx eax, byte [ebx]
pop edi
pop ebx
mov eax, dword [eax*4 + 0x301ee368]
xor eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x300825a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp edx, 0x40
jb 0x3008260a
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x3008260a
mov eax, dword [ecx + 0x3c]
test eax, eax
js 0x3008260a
lea esi, [eax + 0x18]
cmp edx, esi
jb 0x3008260a
add eax, ecx
add esi, 0xe0
cmp dword [eax], 0x4550
jne 0x3008260a
movzx edi, word [eax + 4]
mov ebx, 0x14c
cmp di, bx
je 0x300825eb
mov ebx, 0x8664
cmp di, bx
jne 0x3008260a
cmp edx, esi
jbe 0x3008260a
mov esi, 0x2000
test word [eax + 0x16], si
jne 0x3008260a
mov eax, dword [eax + 0x28]
xor edx, edx
add eax, dword [ebp + 8]
pop edi
adc edx, dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret
cmp edx, 0x10
jb 0x30082631
cmp dword [ecx], 0x464c457f
jne 0x30082631
movzx eax, byte [ecx + 4]
mov esi, eax
sub esi, 1
je 0x3008262c
sub esi, 1
jne 0x30082631
cmp edx, 0x40
jmp 0x3008262f
cmp edx, 0x34
jae 0x30082633
xor eax, eax
sub eax, 1
je 0x3008264f
sub eax, 1
jne 0x30082660
cmp word [ecx + 0x10], 2
jne 0x30082660
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp word [ecx + 0x10], 2
jne 0x30082660
mov eax, dword [ecx + 0x18]
xor edx, edx
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0xfabadaff
mov edx, 0xfffabada
pop ebx
pop ebp
ret
Function at 0x30089050
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
or eax, 0xffffffff
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebx + 8]
mov edx, ecx
movzx eax, word [eax + 6]
mov dword [ebp - 0x1c], eax
cmp ax, 0x60
mov dword [ebp - 0x18], ecx
movzx eax, ax
jb 0x3008909e
mov eax, 0x60
cmp ecx, eax
jge 0x30089190
mov eax, dword [ebx + 4]
cmp eax, 0x28
jb 0x300891e5
mov ecx, dword [ebx]
cmp esi, ecx
jb 0x300891e5
add eax, 0xffffffd8
add eax, ecx
cmp esi, eax
ja 0x300891e5
mov ecx, dword [esi + 0xc]
mov eax, ecx
cmp dword [ebp - 0xc], ecx
mov edx, dword [esi + 8]
cmovbe eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x300890e2
mov edx, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
jb 0x3008917e
mov eax, dword [ebp + 8]
ja 0x300890f9
cmp eax, ecx
jb 0x3008917e
mov ebx, eax
mov eax, dword [ebp + 0xc]
sub ebx, ecx
sbb eax, 0
test eax, eax
ja 0x3008917b
jb 0x3008910d
cmp ebx, edx
jae 0x3008917b
mov edx, dword [ebp - 4]
cmp edx, ecx
ja 0x30089169
mov eax, dword [ebp - 0x14]
mov ebx, 0x200
mov edi, dword [esi + 0x14]
mov edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x3c]
cmp eax, ebx
cmovb ebx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x30089145
xor edx, edx
mov eax, edi
div ebx
test edx, edx
je 0x30089142
sub edi, edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
cmp dword [eax + 0x38], 0x1000
jb 0x30089181
mov ecx, dword [ebp - 0x18]
and edi, 0xfffffe00
mov eax, dword [ebp - 0x1c]
add esi, 0x28
inc ecx
jmp 0x3008908d
mov ecx, dword [ebp - 0x18]
add esi, 0x28
mov ebx, dword [ebp - 8]
inc ecx
mov eax, dword [ebp - 0x1c]
jmp 0x3008908d
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add esi, 0x28
mov eax, dword [ebp - 0x1c]
inc ecx
jmp 0x3008908d
cmp dword [ebp + 0xc], 0
ja 0x300891ad
jb 0x300891a0
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jae 0x300891ad
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [ebp - 4], edx
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp + 0xc]
sub ecx, edx
sbb eax, 0
test eax, eax
ja 0x300891e5
jb 0x300891c5
cmp ecx, dword [ebp - 0x10]
jae 0x300891e5
xor edx, edx
sub edi, dword [ebp - 4]
sbb edx, edx
add edi, esi
adc edx, dword [ebp + 0xc]
test edx, edx
jg 0x300891e5
jl 0x300891dc
cmp edi, dword [ebx + 4]
jae 0x300891e5
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3008b1a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ecx + 8]
mov dword [ebp - 0x10], eax
lea ebx, [edx + 8]
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 4], eax
mov ecx, 3
push edi
mov edi, dword [ebp + 8]
add eax, edi
mov dword [ebp - 8], eax
div ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
sub ecx, esi
neg esi
sbb esi, esi
and esi, ecx
mov dword [eax], esi
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 3]
mov eax, 0xaaaaaaab
mul ecx
lea eax, [edi + 9]
shr edx, 1
add edx, esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add eax, edx
push eax
push 8
push dword [0x3026c078]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x3008b22f
push dword [ebp - 8]
push 8
push dword [0x3026c078]
call esi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x3008b238
push edi
push eax
push dword [0x3026c078]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 0xc], eax
test ecx, ecx
jle 0x3008b261
mov dword [ebp + 0xc], ecx
mov eax, 0x41414141
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0xc]
mov eax, edx
push dword [ebp - 4]
add eax, esi
push dword [ebp - 0x10]
push eax
call fcn.30160350
mov edx, esi
add esp, 0xc
lea esi, [edi + 8]
mov eax, edx
mov edi, dword [ebp + 0xc]
add edi, dword [ebp - 4]
add eax, edi
mov dword [ebp + 8], eax
cmp edi, 3
jl 0x3008b2ee
nop dword [eax]
movzx eax, byte [edx]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + ebx]
mov byte [esi + 1], al
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + ebx]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [esi + 3], al
add esi, 4
cmp edi, 3
jge 0x3008b290
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
je 0x3008b33c
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
and ecx, 3
shl ecx, 4
cmp dword [ebp + 8], 1
jne 0x3008b319
mov al, byte [ecx + ebx]
mov cl, 0x3d
mov byte [esi + 1], al
jmp 0x3008b332
movzx eax, byte [edx + 1]
shr eax, 4
or eax, ecx
mov al, byte [eax + ebx]
mov byte [esi + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov cl, byte [ebx + eax*4]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
push dword [ebp - 8]
push 0
push dword [0x3026c078]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
sub esi, eax
sub esi, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret