joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2406770
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
push edi
jne 0x240678a
pop edi
mov dword [esi + 0x28], 0xb
xor eax, eax
pop esi
ret 8
push 0
push 0x20
push 2
push 0
push 0
mov edx, 0xc0000000
call fcn.02481ba0
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x24067b3
pop edi
mov dword [esi + 0x28], 2
xor eax, eax
pop esi
ret 8
push ebp
lea ebp, [esi + 4]
xor eax, eax
mov ecx, 6
mov edi, ebp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov dword [esi + 8], 1
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
mov edi, 0x19
push edi
push ebp
push edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0xdea
mov dword [esi + 0x14], 0x80
mov dword [esi + 0x18], 0
mov byte [esi + 0x1c], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
pop ebp
jne 0x240681c
mov eax, dword [esi]
push eax
jmp 0x2406825
cmp dword [esp + 0xc], edi
je 0x240683f
mov ecx, dword [esi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
mov dword [esi + 0x28], 4
xor eax, eax
pop esi
ret 8
mov dword [esi + 0x24], edi
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x2406850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
push esi
push edi
mov esi, ecx
jne 0x2406870
pop edi
mov dword [esi + 0x28], 0xb
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
setne cl
neg eax
push 0
sbb eax, eax
push 0x20
and eax, 0xc0000000
push 3
add eax, 0xc0000000
mov edi, ecx
mov ebx, eax
push 0
push edi
mov edx, ebx
mov ecx, ebp
call fcn.02481ba0
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x2406930
lea edx, [esp + 0x18]
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.02481c80
test eax, eax
jne 0x24068d0
pop edi
mov dword [esi + 0x28], 1
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test byte [esp + 0x18], 0x11
je 0x24068e8
pop edi
mov dword [esi + 0x28], 8
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov dword [esp + 0x24], 0
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
push 0
push 0x20
push 3
push 0
push edi
mov edx, ebx
mov ecx, ebp
call fcn.02481ba0
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x2406930
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x32
mov dword [esp + 0x24], eax
jb 0x24068f0
pop edi
mov dword [esi + 0x28], 1
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
lea ebx, [esi + 4]
xor eax, eax
mov ecx, 6
mov edi, ebx
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x14]
push edx
push 0x19
stosb byte es:[edi], al
mov eax, dword [esi]
push ebx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x240697e
mov ecx, dword [esi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
mov dword [esi + 0x28], 5
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
cmp dword [esp + 0x10], 0x19
jne 0x24069d3
mov edx, dword [ebx]
cmp edx, dword [esp + 0x1c]
jne 0x24069d3
cmp byte [esi + 0x1c], 1
jne 0x24069d3
cmp dword [esi + 0x10], 0xdea
jne 0x24069d3
cmp dword [esi + 0x14], 0x80
jne 0x24069d3
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x24069c6
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
mov dword [esi + 0x28], 3
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
Function at 0x2406a00
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
lea ecx, [eax - 0x19]
mov eax, 0x264bbabd
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x12
push edi
mov edi, eax
mov eax, ecx
xor edx, edx
mov ecx, 0x6f580
div ecx
shl edi, 7
cmp edx, 0x80
jbe 0x2406a4c
lea ecx, [edx - 0x80]
mov eax, 0x2660e163
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xb
add edi, ecx
mov ebx, dword [esp + 0x18]
cmp ebx, edi
jb 0x2406a65
pop edi
mov dword [esi + 0x28], 9
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov dl, byte [esp + 0x1c]
mov edi, ebx
shr edi, 7
mov eax, edi
shl eax, 5
add eax, edi
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
shl eax, 2
push 0
sub eax, edi
mov ebp, ebx
shl eax, 7
and ebp, 0x7f
push 0
lea ecx, [eax + ebp + 0x19]
mov byte [esp + 0x20], dl
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2406ab4
pop edi
mov dword [esi + 0x28], 0xa
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov edx, dword [esi]
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2406ae6
pop edi
mov dword [esi + 0x28], 4
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp dword [esp + 0x10], 1
je 0x2406afe
pop edi
mov dword [esi + 0x28], 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x44], edi
jne 0x2406b0b
mov al, byte [esp + 0x18]
mov byte [esi + ebp + 0x48], al
mov al, byte [esp + 0x1c]
test al, al
jne 0x2406b1f
mov eax, dword [esi + 0x18]
cmp eax, ebx
jae 0x2406b1c
mov ebx, eax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x2406b91
inc dword [esi + 8]
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [esi]
push 0
push 0
push 0
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2406b57
pop edi
mov dword [esi + 0x28], 0xa
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x20]
push edx
push 0x19
lea eax, [esi + 4]
push eax
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x2406b80
cmp dword [esp + 0x1c], 0x19
je 0x2406b91
pop edi
mov dword [esi + 0x28], 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x2406ba0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov byte [ebx], 0
push edi
mov edi, ecx
mov dword [ebp], 0xffffffff
mov dword [eax], 0
mov eax, dword [edi + 0x24]
lea ecx, [eax - 0x19]
mov eax, 0x264bbabd
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x12
mov esi, eax
mov eax, ecx
xor edx, edx
mov ecx, 0x6f580
div ecx
shl esi, 7
cmp edx, 0x80
jbe 0x2406c07
lea ecx, [edx - 0x80]
mov eax, 0x2660e163
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xb
add esi, ecx
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x2406c25
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], 1
mov eax, 1
pop ebx
ret 0x10
mov ecx, dword [edi + 0x44]
mov esi, eax
shr esi, 7
cmp ecx, esi
je 0x2406cc4
mov ecx, dword [edi]
mov eax, esi
shl eax, 5
add eax, esi
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
shl eax, 2
sub eax, esi
push 0
shl eax, 7
push 0
add eax, 0x19
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2406c70
mov dword [edi + 0x28], 0xa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x24]
push edx
push 0x80
lea eax, [edi + 0x48]
push eax
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2406ca3
mov dword [edi + 0x28], 5
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp dword [esp + 0x20], 0x80
je 0x2406cbd
mov dword [edi + 0x28], 5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, dword [esp + 0x14]
mov dword [edi + 0x44], esi
and eax, 0x7f
mov ecx, eax
shl ecx, 5
add ecx, eax
lea ecx, [ecx + ecx*2]
lea edx, [ecx + ecx*8]
mov ecx, esi
shl ecx, 5
add ecx, esi
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*8]
shl ecx, 2
shl edx, 1
sub ecx, esi
sub edx, eax
shl ecx, 7
lea edx, [ecx + edx*2 + 0x99]
mov dword [ebp], edx
mov al, byte [eax + edi + 0x48]
pop edi
pop esi
mov byte [ebx], al
pop ebp
mov eax, 1
pop ebx
ret 0x10
Function at 0x2406f60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x2406fd6
inc dword [esi + 8]
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0
push 0
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x2406f97
mov dword [esi + 0x28], 0xa
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi]
push 0
lea ecx, [esp + 8]
push ecx
push 0x19
lea edx, [esi + 4]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2406fc3
mov dword [esi + 0x28], 4
pop esi
pop ecx
ret
cmp dword [esp + 4], 0x19
je 0x2406fd6
mov dword [esi + 0x28], 4
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret
Function at 0x2407560
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x24bed93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0247c780
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call fcn.0240dc70
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call fcn.0240dc70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi], 0x24c79f4
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x240b690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
mov ebx, ecx
mov eax, dword [ebx + 8]
cmp dword [ebp + 8], eax
push esi
push edi
jne 0x240b887
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebx + 0xc]
jne 0x240b887
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebx + 0x10]
jne 0x240b887
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebx + 0x14]
jne 0x240b887
cmp eax, 0x20
jne 0x240b887
mov edi, dword [esp + 0x98]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x9c]
sub ecx, edi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xa4]
mov edx, edi
neg edx
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 4]
sub edx, esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x8c]
mov edx, ecx
neg edx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x90]
neg edx
mov dword [esp + 0x5c], edx
mov edx, dword [ebx]
sub edx, ecx
mov ecx, dword [ebx + 4]
mov eax, esi
neg eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x60], edx
sub ecx, dword [esp + 0x90]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x3c]
call fcn.024074f0
test eax, eax
jne 0x240b799
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret 0x1c
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x5c]
call fcn.024074f0
test eax, eax
jne 0x240b7be
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret 0x1c
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x7c]
call fcn.024074f0
test eax, eax
jne 0x240b7e3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret 0x1c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [ecx + esi]
imul eax, dword [ebp + 0x448]
lea esi, [edx + edi]
lea edi, [eax + esi*4]
mov eax, dword [esp + 0x90]
mov esi, dword [ebp + 0x450]
add eax, ecx
imul eax, dword [ebx + 0x448]
add edi, esi
mov esi, dword [esp + 0x8c]
add esi, edx
lea esi, [eax + esi*4]
add esi, dword [ebx + 0x450]
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x24]
sub edx, ecx
test edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
jle 0x240b878
jmp 0x240b847
mov eax, dword [esp + 0x14]
push eax
mov edx, edi
mov ecx, esi
call fcn.0240b5e0
mov eax, dword [ebx + 0x448]
mov edx, dword [ebp + 0x448]
mov ecx, dword [esp + 0x24]
add esi, eax
mov eax, dword [esp + 0x10]
add edi, edx
mov edx, dword [esp + 0x1c]
inc eax
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x240b843
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret 0x1c
Function at 0x240cea0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x24bef78
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x28]
test ebx, ebx
push esi
push edi
mov edi, ecx
je 0x240cf0d
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x240cf0d
lea ecx, [esp + 0xc]
call fcn.0240dc70
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
call fcn.0240cf60
test eax, eax
jne 0x240cf23
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0247c770
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov edx, dword [esp + 0x30]
push ebx
push esi
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.0240ca70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0247c770
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x2414450
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, edx
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
lea edx, [esi + edi]
mov dword [esp + 0x18], edx
mov edx, esi
xor edx, ebp
test dl, 3
mov dword [esp + 0x10], ebp
mov ecx, ebp
mov eax, esi
je 0x2414491
mov edi, dword [esp + 0x18]
cmp esi, edi
jae 0x24144d9
sub ecx, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
cmp eax, edi
jb 0x241447f
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
test byte [esp + 0x10], 3
mov esi, dword [esp + 0x18]
je 0x24144b0
cmp eax, esi
jae 0x24144b0
mov dl, byte [ecx]
mov bl, byte [eax]
xor bl, dl
inc ecx
mov byte [eax], bl
inc eax
dec edi
test cl, 3
jne 0x241449c
and edi, 0xfffffffc
add edi, eax
cmp eax, edi
jae 0x24144c7
mov edx, dword [ecx]
xor dword [eax], edx
add eax, 4
add ecx, 4
cmp eax, edi
jb 0x24144b9
cmp eax, esi
jae 0x24144d9
mov dl, byte [ecx]
mov bl, byte [eax]
xor bl, dl
inc ecx
mov byte [eax], bl
inc eax
cmp eax, esi
jb 0x24144cb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x241c810
Capabilities:
Read file on windows

Disassembly:
test ecx, ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
je 0x241c852
test edi, edi
je 0x241c852
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x241c852
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x241c852
push 0
push 0x80
push 3
push 0
push 3
mov edx, 0x80000000
call fcn.02481ba0
mov esi, eax
cmp esi, 0xffffffff
jne 0x241c85b
mov dword [ebx], 0x64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x241c89b
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x241c89b
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov dword [ebx], 0x68
xor eax, eax
pop ebx
ret 0x10
mov ecx, dword [edi]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push ebp
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x241c8cf
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov dword [ebx], 0x66
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x1c]
push esi
mov dword [edi], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
Function at 0x241c8f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
mov ebp, edx
je 0x241c988
mov eax, dword [esp + 0x20]
test eax, eax
je 0x241c988
mov eax, dword [esp + 0x24]
test eax, eax
je 0x241c988
push 0
push 0x80
push 4
push 0
push 3
mov edx, 0x40000000
call fcn.02481ba0
mov esi, eax
cmp esi, 0xffffffff
jne 0x241c993
lea edx, [esp + 0xc]
mov ecx, edi
mov dword [esp + 0xc], 0
call fcn.02481c80
test eax, eax
je 0x241c97e
mov edx, dword [esp + 0xc]
test dl, 1
je 0x241c97e
and edx, 0xfffffffe
mov ecx, edi
call fcn.02482000
test eax, eax
je 0x241c97e
push 0
push 0x80
push 4
push 0
push 3
mov edx, 0x40000000
mov ecx, edi
call fcn.02481ba0
mov esi, eax
cmp esi, 0xffffffff
jne 0x241c993
mov eax, dword [esp + 0x24]
mov dword [eax], 0x64
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push esi
mov dword [esp + 0x20], ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x241c9d9
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x241c9d9
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx], 0x68
xor eax, eax
pop ebp
add esp, 8
ret 0x10
test ebp, ebp
je 0x241ca3b
mov eax, dword [esp + 0x20]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x241ca19
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx], 0x67
xor eax, eax
pop ebp
add esp, 8
ret 0x10
cmp dword [esp + 0x18], ebp
je 0x241ca62
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
pop edi
pop esi
mov dword [edx], 0x67
xor eax, eax
pop ebp
add esp, 8
ret 0x10
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x241ca62
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
pop edi
pop esi
mov dword [eax], 0x67
xor eax, eax
pop ebp
add esp, 8
ret 0x10
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 0x10
Function at 0x241cd10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x24bf2a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
cmp ecx, ebp
push esi
push edi
mov dword [esp + 0x18], edx
je 0x241cd54
cmp edx, ebp
je 0x241cd54
mov edi, dword [esp + 0x34]
cmp edi, ebp
je 0x241cd54
mov ebx, dword [esp + 0x38]
cmp ebx, ebp
je 0x241cd54
cmp dword [edi], ebp
jne 0x241cd6b
mov dword [ebx], 1
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
xor eax, eax
push ebp
mov dword [edx], eax
push 0x80
mov dword [edx + 4], eax
push 3
mov dword [edx + 8], eax
push ebp
mov dword [edx + 0xc], eax
push 3
mov edx, 0x80000000
call fcn.02481ba0
mov esi, eax
cmp esi, 0xffffffff
jne 0x241cd9c
mov dword [ebx], 0x64
jmp 0x241cd54
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ebp
lea edx, [esp + 0x18]
push edx
push eax
push esi
mov dword [esp + 0x24], ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x241cdd4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x241cdd4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebx], 0x68
jmp 0x241cd54
mov dword [esp + 0x30], ebp
mov edi, dword [edi]
cmp edi, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
je 0x241ce37
push edi
call fcn.024acf00
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x30], ebx
je 0x241ce33
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
push esi
jne 0x241ce49
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x38]
push ebx
mov dword [edx], 0x66
call fcn.024ad03a
add esp, 4
jmp 0x241cd54
mov ebx, dword [esp + 0x38]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebx], 8
jmp 0x241cd54
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
cmp edx, ebp
mov eax, dword [esp + 0x34]
mov dword [eax], edx
jbe 0x241ce6d
cmp edx, edi
ja 0x241ce6d
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.02486df0
push ebx
call fcn.024ad03a
add esp, 4
mov eax, 1
jmp 0x241cd56
Function at 0x241ed60
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, 0x24e276c
call fcn.024871d0
mov dword [0x24e2798], 1
mov ecx, 0x24e276c
call fcn.02487290
mov eax, fcn.0241ed40
test eax, eax
je 0x241ee41
push esi
push edi
mov ecx, 0x24e276c
call fcn.024871d0
mov ecx, dword [0x24e2760]
test ecx, ecx
je 0x241ee35
lea edx, [esp + 8]
test edx, edx
je 0x241ee35
lea eax, [esp + 8]
test eax, eax
je 0x241ee35
mov edx, dword [0x24e2764]
xor eax, eax
mov esi, dword [ecx]
test esi, esi
jne 0x241edd2
inc eax
add ecx, 4
cmp eax, edx
jbe 0x241edc2
jmp 0x241ee35
mov edi, eax
lea eax, [esi + 8]
test eax, eax
je 0x241ee35
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0
push ecx
push edx
add eax, 8
push eax
call fcn.0241ed40
test eax, eax
je 0x241ee35
mov ecx, dword [0x24e2760]
test ecx, ecx
je 0x241ee35
test esi, esi
je 0x241ee35
mov esi, dword [esi]
test esi, esi
je 0x241ee0a
lea eax, [esi + 8]
jmp 0x241ee31
mov esi, dword [0x24e2764]
lea eax, [edi + 1]
cmp eax, esi
ja 0x241ee35
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
test ecx, ecx
jne 0x241ee2a
inc eax
add edx, 4
cmp eax, esi
ja 0x241ee35
jmp 0x241ee1a
mov edi, eax
mov esi, ecx
lea eax, [ecx + 8]
test eax, eax
jne 0x241eddb
mov ecx, 0x24e276c
call fcn.02487290
pop edi
pop esi
push 0
push 0x242d560
call dword [sym.imp.user32.dll_EnumWindows]
pop ecx
ret

Function at 0x2428f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push edi
mov edi, ebx
add edi, ecx
cmp edi, eax
jbe 0x2428f51
mov ecx, 0x24daf34
call fcn.0247f7e0
cmp edi, dword [esi + 8]
jbe 0x2428f93
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
imul edx, ecx
mov eax, 0x51eb851f
mul edx
shr edx, 5
add edi, edx
cmp edi, ecx
jbe 0x2428f71
mov edi, ecx
mov eax, dword [esi]
push 0x40
push 0x1000
push edi
push eax
call dword [sym.imp.kernel32.dll_VirtualAlloc]
cmp dword [esi], eax
je 0x2428f90
mov ecx, 0x24daf0c
call fcn.0247f7e0
mov dword [esi + 8], edi
mov edx, dword [esi + 0xc]
mov edi, dword [esi]
add edi, edx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esi + 0xc]
add edx, ebx
pop edi
mov dword [esi + 0xc], edx
mov eax, edx
pop esi
sub eax, ebx
pop ebx
ret 4

Function at 0x2428fc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_VirtualAlloc]
push 0x40
push 0x2000
push ebp
push 0
mov esi, ecx
call edi
test eax, eax
mov dword [esi], eax
jne 0x2428fec
mov ecx, 0x24daf6c
call fcn.0247f7e0
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
push 0x40
push 0x1000
push ebx
push eax
call edi
cmp dword [esi], eax
je 0x242900b
mov ecx, 0x24daf0c
call fcn.0247f7e0
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], ecx
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc