joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10155eec]
push esi
mov esi, dword [0x10155ef0]
push edi
movsd xmm0, qword [eax]
lea eax, [ebp - 8]
subsd xmm0, qword [0x10149e38]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 8
andps xmm0, xmmword [0x1014a410]
mulsd xmm0, qword [0x10149d08]
push esi
addsd xmm0, qword [0x10149f40]
movsd qword [ebp - 0x10], xmm0
call edi
movsd xmm0, qword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movsd qword [esi], xmm0
push 8
push esi
call edi
mov eax, dword [0x10155eec]
mov esi, dword [0x10155ef4]
movsd xmm0, qword [eax]
lea eax, [ebp - 8]
subsd xmm0, qword [0x10149e38]
push eax
push 0x40
push 8
push esi
andps xmm0, xmmword [0x1014a410]
mulsd xmm0, qword [0x10149d08]
addsd xmm0, qword [0x10149f40]
movsd qword [ebp - 0x10], xmm0
call edi
movsd xmm0, qword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movsd qword [esi], xmm0
push 8
push esi
call edi
mov eax, dword [0x10155eec]
mov esi, dword [0x10155ef8]
movsd xmm0, qword [eax]
lea eax, [ebp - 8]
subsd xmm0, qword [0x10149e38]
push eax
push 0x40
push 4
push esi
andps xmm0, xmmword [0x1014a410]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10149d90]
addss xmm0, dword [0x1014a234]
movss dword [ebp - 0xc], xmm0
call edi
movss xmm0, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movss dword [esi], xmm0
push 4
push esi
call edi
mov eax, dword [0x10155eec]
mov esi, dword [0x10155efc]
movsd xmm0, qword [eax]
lea eax, [ebp - 8]
subsd xmm0, qword [0x10149e38]
push eax
andps xmm0, xmmword [0x1014a410]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10149d90]
addss xmm0, dword [0x1014a234]
movss dword [ebp - 0xc], xmm0
push 0x40
push 4
push esi
call edi
movss xmm0, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movss dword [esi], xmm0
push 4
push esi
call edi
mov eax, dword [0x10155eec]
mov esi, dword [0x10155f00]
movsd xmm0, qword [eax]
lea eax, [ebp - 8]
subsd xmm0, qword [0x10149e38]
push eax
push 0x40
push 4
push esi
andps xmm0, xmmword [0x1014a410]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10149d90]
addss xmm0, dword [0x1014a22c]
movss dword [ebp - 0xc], xmm0
call edi
movss xmm0, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movss dword [esi], xmm0
push 4
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100a3a28
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10007420
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10155018]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x58], 0
je 0x10007614
movss xmm0, dword [ebx + 0x5c]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push esi
movss dword [esp + 0x20], xmm0
call edi
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movss dword [esi], xmm0
push 4
push esi
call edi
movss xmm0, dword [ebx + 0x60]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x34]
push eax
push 0x40
push 4
push esi
movss dword [esp + 0x20], xmm0
call edi
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movss dword [esi], xmm0
push 4
push esi
call edi
movss xmm0, dword [ebx + 0x64]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x38]
push eax
push 0x40
push 4
push esi
movss dword [esp + 0x20], xmm0
call edi
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movss dword [esi], xmm0
push 4
push esi
call edi
movsd xmm0, qword [ebx + 0x68]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x3c]
push eax
push 0x40
push 8
push esi
movsd qword [esp + 0x20], xmm0
call edi
movsd xmm0, qword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movsd qword [esi], xmm0
push 8
push esi
call edi
movsd xmm0, qword [ebx + 0x70]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x40]
push eax
push 0x40
push 8
push esi
movsd qword [esp + 0x20], xmm0
call edi
movsd xmm0, qword [esp + 0x10]
lea eax, [esp + 0x18]
movsd qword [esi], xmm0
push eax
push dword [esp + 0x1c]
push 8
push esi
call edi
movsd xmm0, qword [ebx + 0x78]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x44]
push eax
push 0x40
push 8
push esi
movsd qword [esp + 0x20], xmm0
call edi
movsd xmm0, qword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movsd qword [esi], xmm0
push 8
push esi
call edi
movss xmm0, dword [ebx + 0x80]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x48]
push eax
push 0x40
push 4
push esi
movss dword [esp + 0x20], xmm0
call edi
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movss dword [esi], xmm0
push 4
push esi
call edi
movss xmm0, dword [ebx + 0x84]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x4c]
push eax
push 0x40
push 4
push esi
movss dword [esp + 0x20], xmm0
call edi
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movss dword [esi], xmm0
push 4
push esi
call edi
movss xmm0, dword [ebx + 0x88]
lea eax, [esp + 0x18]
mov esi, dword [ebx + 0x50]
push eax
push 0x40
push 4
push esi
movss dword [esp + 0x20], xmm0
call edi
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
movss dword [esi], xmm0
push 4
push esi
call edi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret
Function at 0x1000f3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x182c
call fcn.100a4b90
mov eax, dword [0x10155018]
xor eax, esp
mov dword [esp + 0x1828], eax
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [esp + 0xc34]
push 0xffffffffffffffff
push eax
call fcn.10006b60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.10106be8
movzx eax, word [esp + 0x34]
add esp, 0x1c
xorps xmm0, xmm0
mov word [esp + 0x24], 0
movq qword [esp + 0x1c], xmm0
mov byte [esp + 0x26], 0
push eax
movzx eax, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push str.__02d:_02d:_02d_
push eax
call fcn.1000f4c0
add esp, 0x14
lea eax, [esp + 0xc28]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push str._s__s_n
push eax
call fcn.1000f4e0
lea eax, [esp + 0x38]
add esp, 0x10
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000f470
push 0
lea ecx, [esp + 0xc]
sub eax, edx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 0xc], 1
jne 0x1000f4a6
lea eax, [esp + 0x28]
push eax
push dword [0x10312858]
call sym.Main.dll_fprintf
add esp, 8
mov ecx, dword [esp + 0x182c]
pop esi
xor ecx, esp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret
Function at 0x1001a0f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132b25
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x101461c0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.1000d010
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push dword [0x10156d68]
lea ecx, [ebp - 0x4c]
call fcn.10007690
push 0x1001a010
push str.SetJewelStack
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000e290
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x1001a1b7
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001a1ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a2d9
push ecx
push edx
call fcn.100a3d50
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0x10
jb 0x1001a204
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001a1fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a2d9
push ecx
push edx
call fcn.100a3d50
add esp, 8
push str.MCustoms__Lua__Configs__CustomJewelStack.lua
mov ecx, 0x10156d64
call fcn.10057a80
push 0x101466f9
push str.StartLoadJewelStack
push 0x10156d64
call fcn.10057c60
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
push 0x40
push 6
push 0x7dc964
call esi
mov eax, 0x7dc964
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 6
push 0x7dc964
call esi
push 0x10019ea0
push 0x7dc964
push 0xe9
call fcn.10087110
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40
push 6
push 0x7dd634
call esi
mov eax, 0x7dd634
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 6
push 0x7dd634
call esi
push 0x10019fe0
push 0x7dd634
push 0xe9
call fcn.10087110
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100a3a28
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10106ffd
int3
Function at 0x1001bd80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ebf8
call esi
lea eax, [ebp - 8]
mov byte [0x62ebf8], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ebf8
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ebfe
call esi
lea eax, [ebp - 8]
mov byte [0x62ebfe], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ebfe
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ee42
call esi
lea eax, [ebp - 8]
mov byte [0x62ee42], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ee42
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ee48
call esi
lea eax, [ebp - 8]
mov byte [0x62ee48], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ee48
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62eee5
call esi
lea eax, [ebp - 8]
mov byte [0x62eee5], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62eee5
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62eeeb
call esi
lea eax, [ebp - 8]
mov byte [0x62eeeb], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62eeeb
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ebf7
call esi
lea eax, [ebp - 8]
mov byte [0x62ebf7], 0x69
push eax
push dword [ebp - 8]
push 1
push 0x62ebf7
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ee41
call esi
lea eax, [ebp - 8]
mov byte [0x62ee41], 0x69
push eax
push dword [ebp - 8]
push 1
push 0x62ee41
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62eee4
call esi
lea eax, [ebp - 8]
mov byte [0x62eee4], 0x69
push eax
push dword [ebp - 8]
push 1
push 0x62eee4
call esi
push 0x1001b0b0
push 0x4dada4
push 0xe8
call fcn.10087110
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x40
push 0x83
push 0x47fc85
call esi
push 0x83
push 0x90
push 0x47fc85
call fcn.100f1950
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x83
push 0x47fc85
call esi
push 0x1001b2d0
push 0x47fc85
push 0xe9
call fcn.10087110
push 0x1001bd50
push 0x520ecf
push 0xe8
call fcn.10087110
push 0x1001bd50
push 0x520f1f
push 0xe8
call fcn.10087110
push 0x1001bd50
push 0x63e743
push 0xe8
call fcn.10087110
push 0x1001bd50
push 0x640eb2
push 0xe8
call fcn.10087110
push 0x1001bd50
push 0x7d2dd9
push 0xe8
call fcn.10087110
add esp, 0x48
push 0x1001bd50
push 0x7e6c0f
push 0xe8
call fcn.10087110
push 0x1001bd50
push 0x84aef7
push 0xe8
call fcn.10087110
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.100a3a28
mov esp, ebp
pop ebp
ret
Function at 0x1002a150
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002a1e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x1015c6f4]
mov dword [0x1015c6f8], eax
test ecx, ecx
je 0x1002a1b2
push ecx
call fcn.100a3f52
mov eax, dword [0x1015c6f8]
add esp, 4
mov dword [0x1015c6f4], 0
push eax
call fcn.100a3f57
add esp, 4
mov dword [0x1015c6f4], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push 0
push ecx
push dword [0x1015c6f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x1002a1fa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [0x1015c6f8]
cmp ecx, 8
jb 0x1002a1e6
mov esi, dword [0x1015c6f4]
mov eax, dword [esi]
cmp eax, dword [0x10146174]
jne 0x1002a1e6
mov eax, dword [esi + 4]
cmp eax, dword [0x10146178]
jne 0x1002a1e6
push edi
lea eax, [ecx - 8]
xor edi, edi
test eax, eax
jle 0x1002a28f
mov ecx, 0x102f70b4
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a240
sub ecx, edx
mov eax, edi
xor edx, edx
div ecx
movsx eax, byte [edx + 0x102f70b4]
and eax, 0xf
movzx eax, byte [eax + 0x10146164]
sub byte [esi + edi + 8], al
mov eax, edi
mov ecx, dword [0x1015c6f4]
and eax, 0xf
movzx eax, byte [eax + 0x10146164]
xor byte [ecx + edi + 8], al
inc edi
mov eax, dword [0x1015c6f8]
add eax, 0xfffffff8
cmp edi, eax
jge 0x1002a28f
mov esi, dword [0x1015c6f4]
jmp 0x1002a232
call fcn.100fba1e
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push str.DataItemltemp_t_d
push 0x1015c6fc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x10106
push 2
push 0
push 7
push 0x40000000
push 0x1015c6fc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x1002a1e6
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [0x1015c6f8]
add eax, 0xfffffff8
push eax
mov eax, dword [0x1015c6f4]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1002a31a
call ebx
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 4
call ebx
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 4
Function at 0x10057570
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x6311b7
call esi
lea eax, [ebp - 8]
mov dword [0x6311b7], 0x101487e4
push eax
push dword [ebp - 8]
push 4
push 0x6311b7
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x6311d7
call esi
lea eax, [ebp - 8]
mov dword [0x6311d7], 0x101487e4
push eax
push dword [ebp - 8]
push 4
push 0x6311d7
call esi
push 0x10056780
push 0x4d7d13
push 0xe8
call fcn.10087110
push 0x100574d0
push 0x40b1ef
push 0xe8
call fcn.10087110
push 0x10057500
push 0x40b210
push 0xe8
call fcn.10087110
push 0x10057530
push 0x40b6a7
push 0xe8
call fcn.10087110
push 0x10057530
push 0x40b635
push 0xe8
call fcn.10087110
add esp, 0x3c
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x40b7a2
call esi
mov eax, 0x40b7a2
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x40b7a2
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x40b2e2
call esi
mov eax, 0x40b2e2
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x40b2e2
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x40b306
call esi
mov eax, 0x40b306
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x40b306
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x40b380
call esi
mov eax, 0x40b380
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x40b380
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x401f56
call esi
mov eax, 0x401f56
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x401f56
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100a3a28
mov esp, ebp
pop ebp
ret
Function at 0x1005f870
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005f8f8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1005f8c7
push eax
call fcn.100a3f52
add esp, 4
mov dword [edi + 4], 0
push dword [edi + 8]
call fcn.100a3f57
add esp, 4
mov dword [edi + 4], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push 0
push ecx
push dword [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x1005f90c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 8]
cmp ecx, 8
jb 0x1005f8f8
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp eax, dword [0x10146190]
jne 0x1005f8f8
mov eax, dword [edx + 4]
cmp eax, dword [0x10146194]
jne 0x1005f8f8
push ebx
lea eax, [ecx - 8]
xor ebx, ebx
test eax, eax
jle 0x1005f98d
nop dword [eax]
mov ecx, 0x102f70b4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005f948
sub ecx, edx
mov esi, dword [edi + 4]
mov eax, ebx
xor edx, edx
div ecx
movsx eax, byte [edx + 0x102f70b4]
and eax, 0xf
movzx eax, byte [eax + 0x10146180]
sub byte [esi + ebx + 8], al
mov eax, ebx
mov ecx, dword [edi + 4]
and eax, 0xf
movzx eax, byte [eax + 0x10146180]
xor byte [ecx + ebx + 8], al
inc ebx
mov eax, dword [edi + 8]
sub eax, 8
cmp ebx, eax
jl 0x1005f940
lea esi, [edi + 0xc]
call fcn.100fba1e
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push str.DatalTemp_t_d.tmp
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x1005f8f8
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [edi + 8]
sub eax, 8
push eax
mov eax, dword [edi + 4]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jne 0x1005fa14
call eax
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 4
call eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 4
Function at 0x10075d80
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10075df8
sub eax, 1
jne 0x10075e02
push ebx
call fcn.10075950
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp + 8]
push eax
push ebx
push 0x10031ab0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1015c814], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x10031c40
push 7
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push 0
push 0
push 0x10072670
push 0
push 0
mov dword [0x1015c818], eax
mov dword [0x1015c810], ebx
mov dword [0x10317d38], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
mov eax, 1
pop ebp
ret 0xc
mov ecx, 0x10155e30
call fcn.10006c00
mov eax, 1
pop ebp
ret 0xc
Function at 0x10077b90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10155018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0xe8c588]
push ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
test eax, eax
je 0x10077bb5
push eax
call esi
mov eax, dword [0xe8c58c]
test eax, eax
je 0x10077bc1
push eax
call esi
mov eax, dword [0xe8c590]
test eax, eax
je 0x10077bcd
push eax
call esi
mov eax, dword [0xe8c594]
test eax, eax
je 0x10077bd9
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x81c0380
call edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [0x81c0380], esi
push dword [ebp - 8]
push 4
push 0x81c0380
call edi
cmp dword [0x1015605c], 0x10
mov ecx, 0x10156048
mov edi, dword [sym.imp.GDI32.dll_CreateFontA]
mov ebx, 0x190
cmovae ecx, dword [0x10156048]
mov eax, 0x2bc
cmp dword [0x1015603c], 1
mov edx, ebx
push ecx
push 0
push 3
push 0
push 0
push dword [0x10156044]
cmove edx, eax
mov eax, dword [0x10156040]
push 0
push 0
push 0
push edx
push 0
push 0
dec eax
add eax, esi
push 0
push eax
call edi
mov dword [0xe8c588], eax
mov ecx, 0x1015606c
cmp dword [0x10156080], 0x10
mov eax, 0x2bc
mov edx, ebx
cmovae ecx, dword [0x1015606c]
cmp dword [0x10156060], 1
push ecx
push 0
push 3
push 0
push 0
push dword [0x10156068]
cmove edx, eax
mov eax, dword [0x10156064]
push 0
push 0
push 0
push edx
push 0
push 0
dec eax
add eax, esi
push 0
push eax
call edi
mov dword [0xe8c58c], eax
mov ecx, 0x10156090
cmp dword [0x101560a4], 0x10
mov eax, 0x2bc
mov edx, ebx
cmovae ecx, dword [0x10156090]
cmp dword [0x10156084], 1
push ecx
cmove edx, eax
mov eax, dword [0x10156088]
push 0
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push 3
push 0
push 0
push dword [0x1015608c]
push 0
push 0
push 0
push edx
push 0
push 0
push 0
push eax
call edi
mov dword [0xe8c590], eax
mov ecx, 0x101560b4
cmp dword [0x101560c8], 0x10
mov eax, 0x2bc
cmovae ecx, dword [0x101560b4]
cmp dword [0x101560a8], 1
push ecx
push 0
push 3
push 0
push 0
push dword [0x101560b0]
cmove ebx, eax
mov eax, dword [0x101560ac]
push 0
push 0
push 0
push ebx
push 0
push 0
add eax, 0xc
push 0
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0xe8c594], eax
pop ebx
call fcn.100a3a28
mov esp, ebp
pop ebp
ret 8