joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010a130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10266a40]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10275a50]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1010a17e
mov eax, dword [ebp - 0x10]
sub eax, 5
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1010a1a0
mov eax, 0xa
jmp 0x1010a287
cmp dword [ebp + 0xc], 0
je 0x1010a1ec
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x10]
add ecx, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x1010a1ea
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x1c]
mov byte [edx + 1], 0xf9
jmp 0x1010a228
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1010a213
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1010a228
push 5
mov edx, dword [ebp - 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], cl
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1a2
mov esp, ebp
pop ebp
ret
Function at 0x1010a2f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10266a40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x1010a42e
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1010a424
cmp dword [ebp - 0x20], 0x10
jb 0x1010a408
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1010a408
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1010a408
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1010a398
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x102756dc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1010a396
jmp 0x1010a424
jmp 0x1010a3e8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1010a3e8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x102756dc]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1010a3d2
jmp 0x1010a424
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1010a332
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1a2
mov esp, ebp
pop ebp
ret
Function at 0x1010a560
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1010a2f0
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1010a5fd
mov dword [ebp - 4], 0
jmp 0x1010a5a9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1010a5fd
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1010a5fb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1010a930
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010a5a0
mov esp, ebp
pop ebp
ret

Function at 0x1010aab0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1010ab24
mov dword [ebp - 4], 0
jmp 0x1010aad0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x1010ab10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1010ab0e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010aac7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x102756dc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esp, ebp
pop ebp
ret
Function at 0x1010ac30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10275a40]
mov dword [ebp - 4], eax
jmp 0x1010ac48
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1010ac5e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1010ac5c
mov eax, dword [ebp - 4]
jmp 0x1010acd9
jmp 0x1010ac40
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1010acd6
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x1010ac98
mov edx, dword [ebp - 4]
mov eax, dword [0x10275a40]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10275a40], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1010b1e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x1010b229
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x1010b229
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x1010b229
xor eax, eax
jmp 0x1010b26a
mov dword [ebp - 4], 1
jmp 0x1010b23b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1010b265
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x1010b263
xor eax, eax
jmp 0x1010b26a
jmp 0x1010b232
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x101136e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x10113705
push dword [edi + 0x74]
call eax
add esp, 4
push ebx
push esi
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1011376b
nop
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x10113764
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x10113737
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x10113726
jmp 0x10113764
test edx, edx
jne 0x10113740
mov dword [ebx + 0x54], ecx
jmp 0x10113743
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10113750
push esi
call eax
add esp, 4
push esi
call fcn.10113c60
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x10113710
lea eax, [edi + 0x6c]
test eax, eax
je 0x101137ee
test ebp, ebp
je 0x101137ee
mov ebx, dword [eax]
test ebx, ebx
je 0x101137e1
nop dword [eax]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10113797
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x101137ab
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x101137bc
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
push esi
push ebp
call eax
mov eax, dword [ebp + 8]
push ebx
push ebp
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x10113780
lea eax, [edi + 0x6c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x10113802
push edi
call eax
add esp, 4
push ebp
push edi
call fcn.10113660
mov eax, dword [esp + 0x18]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1011381d
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x1011384f
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x1011383b
push esi
call eax
add esp, 4
test dword [esp + 0x20], 0x400
jne 0x1011384f
mov eax, dword [ebx + 8]
push esi
push ebx
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
pop esi
pop ebx
test eax, eax
je 0x10113876
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebp + 8]
push edi
push ebp
call eax
add esp, 8
pop edi
pop ebp
pop ecx
ret
Function at 0x1015a360
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [ebp + 0x318]
movups xmmword [ebx], xmm0
push esi
movq qword [ebx + 0x10], xmm0
movzx ecx, word [ebp + 0x98]
mov eax, dword [ebp + 0x9c]
shl ecx, 4
add ecx, eax
push edi
cmp eax, ecx
jae 0x1015a54d
cmp dword [eax], 0x42444620
jne 0x1015a3a5
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x1015a3b9
add eax, 0x10
cmp eax, ecx
jb 0x1015a396
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x14
ret
push dword [eax + 8]
mov edi, dword [esp + 0x30]
push edi
call fcn.10112ab0
add esp, 8
test eax, eax
jne 0x1015a54d
cmp esi, 8
jb 0x1015a54d
push ebx
push esi
push edi
call fcn.101121c0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1015a54d
mov eax, dword [ebx]
lea ecx, [eax + esi]
mov dword [ebp + 0x31c], ecx
mov ecx, eax
movzx edi, byte [ecx + 2]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 5]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 7]
movzx ecx, byte [ecx + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebx]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
cmp ecx, 1
jne 0x1015a535
cmp edx, 8
jb 0x1015a535
lea eax, [edx - 8]
shr eax, 2
cmp eax, edi
jb 0x1015a535
lea eax, [edx + 1]
cmp eax, esi
ja 0x1015a535
mov eax, dword [ebx]
sub esi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [ebp + 0x328], edi
mov dword [ebp + 0x324], esi
lea ecx, [eax + edx]
mov dword [ebp + 0x320], ecx
lea edx, [eax + 8]
lea eax, [edx + edi*4]
mov dword [esp + 0x10], eax
cmp edi, 2
jb 0x1015a4f1
lea esi, [edi - 2]
xor ebx, ebx
shr esi, 1
inc esi
xor ebp, ebp
movzx ecx, byte [edx + 2]
sub edi, 2
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
movzx ecx, byte [edx + 6]
lea ebx, [ebx + eax*2]
shl ecx, 8
movzx eax, byte [edx + 7]
add edx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea ebp, [ebp + eax*2]
sub esi, 1
jne 0x1015a4a5
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp + 0x320]
lea ebx, [ebp + 0x318]
jmp 0x1015a4f3
mov esi, ecx
test edi, edi
je 0x1015a510
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
jmp 0x1015a514
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, edx
cmp eax, esi
ja 0x1015a535
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov byte [ebp + 0x32c], 1
pop ebp
pop ebx
add esp, 0x14
ret
push ebx
push dword [esp + 0x30]
call fcn.10112a70
xorps xmm0, xmm0
add esp, 8
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4010d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jne 0x40111d
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + edx*4]
movzx eax, word [edx + ecx]
cmp eax, 0x2d
je 0x401124
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4]
movzx ecx, word [eax + edx]
cmp ecx, 0x2f
je 0x401124
xor eax, eax
jmp 0x40127c
mov edx, 2
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4]
movzx ecx, word [eax + edx]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 0x3f
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x39
ja case.0x401159.1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4012b0]
jmp dword [ecx*4 + 0x401284]
call fcn.00401000
push 0
call fcn.004040a4
mov edx, dword [ebp + 0xc]
add edx, 1
cmp edx, dword [ebp + 0x10]
jl 0x40117e
xor eax, eax
jmp 0x40127c
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 1
mov eax, 2
jmp 0x40127c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 1
mov eax, 1
jmp 0x40127c
mov edx, dword [ebp + 0xc]
add edx, 1
cmp edx, dword [ebp + 0x10]
jl 0x4011b8
xor eax, eax
jmp 0x40127c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + ecx*4 + 4]
mov dword [eax], ecx
mov eax, 2
jmp 0x40127c
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 1
mov eax, 1
jmp 0x40127c
mov eax, dword [ebp + 0xc]
add eax, 1
cmp eax, dword [ebp + 0x10]
jl 0x4011f7
xor eax, eax
jmp 0x40127c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + edx*4 + 4]
mov dword [ecx + 4], edx
mov eax, 2
jmp 0x40127c
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 1
mov eax, 1
jmp 0x40127c
mov ecx, dword [ebp + 0xc]
add ecx, 1
cmp ecx, dword [ebp + 0x10]
jl 0x40122e
xor eax, eax
jmp 0x40127c
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 1
mov eax, 2
jmp 0x40127c
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 1
mov eax, 1
jmp 0x40127c
mov ecx, dword [ebp + 0xc]
add ecx, 1
cmp ecx, dword [ebp + 0x10]
jl 0x40125f
xor eax, eax
jmp 0x40127c
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 1
mov eax, 2
jmp 0x40127c
call fcn.00401000
push 1
call fcn.004040a4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4015f0
Capabilities:
Reference sql statements
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401644
mov dword [ebp - 4], 2
jmp 0x401760
lea ecx, [ebp - 0xc]
push ecx
push str.SELECT_Data_FROM__Streams_WHERE_Name___
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call 0x400000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40166c
jmp 0x401760
push 1
call 0x400000
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40168d
mov dword [ebp - 4], 0xe
jmp 0x401760
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call 0x400000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4016af
jmp 0x401760
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call 0x400000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4016cf
jmp 0x401760
mov edx, dword [ebp - 8]
push edx
call 0x400000
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call 0x400000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4016f9
jmp 0x401760
mov dword [ebp - 0x14], 0x400
cmp dword [ebp - 0x14], 0x400
jne 0x401760
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x41c]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call 0x400000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40172c
jmp 0x401760
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401753
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
je 0x40175e
mov dword [ebp - 4], 0x1d
jmp 0x401760
jmp 0x401700
cmp dword [ebp - 8], 0
je 0x40176f
mov ecx, dword [ebp - 8]
push ecx
call 0x400000
cmp dword [ebp - 0xc], 0
je 0x40177e
mov edx, dword [ebp - 0xc]
push edx
call 0x400000
cmp dword [ebp - 0x10], 0xffffffff
je 0x40178e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x40179d
mov dword [ebp - 0x18], 1
jmp 0x4017a4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8
Function at 0x401c60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], str.acnpbzaljitvz
mov dword [ebp - 8], 0
jmp 0x401c8d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1774
jae 0x401cdf
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + section..data]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 1]
sar edx, 3
movzx eax, byte [ebp - 1]
shl eax, 5
or edx, eax
movzx ecx, byte [ebp - 2]
xor edx, ecx
mov eax, dword [ebp - 8]
mov byte [eax + section..data], dl
mov eax, dword [ebp - 0xc]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0xc], edx
jmp 0x401c84
lea edx, [ebp - 0x20]
push edx
push 0x40
push 0x1774
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, section..data
call eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 1
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 1
jmp 0x401d3d
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], 0
je 0x401d65
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x401d65
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004010d0
mov dword [ebp - 0x10], eax
jmp 0x401d34
lea ecx, [ebp - 0x48]
push ecx
call fcn.00401020
test eax, eax
jne 0x401d7c
jmp 0x401e07
lea edx, [ebp - 0x48]
push edx
call fcn.004012f0
test eax, eax
jne 0x401d8d
jmp 0x401e07
cmp dword [ebp - 0x3c], 0
je 0x401da4
lea eax, [ebp - 0x48]
push eax
call fcn.004014d0
test eax, eax
jne 0x401da4
jmp 0x401e07
cmp dword [ebp - 0x28], 0
je 0x401dbb
lea ecx, [ebp - 0x48]
push ecx
call fcn.00401c10
test eax, eax
jne 0x401dbb
jmp 0x401e07
cmp dword [ebp - 0x38], 0
je 0x401dd2
lea edx, [ebp - 0x48]
push edx
call fcn.004017b0
test eax, eax
jne 0x401dd2
jmp 0x401e07
cmp dword [ebp - 0x2c], 0
je 0x401de9
lea eax, [ebp - 0x48]
push eax
call fcn.00401820
test eax, eax
jne 0x401de9
jmp 0x401e07
cmp dword [ebp - 0x34], 0
je 0x401e00
lea ecx, [ebp - 0x48]
push ecx
call fcn.004015c0
test eax, eax
jne 0x401e00
jmp 0x401e07
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x401e16
mov dword [ebp - 0x18], 1
jmp 0x401e1d
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00401350
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4026e4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402723
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402723
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402723
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402723
cmp dword [ecx + 0x74], 0xe
jbe 0x402723
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40b8a3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b520

Function at 0x412b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret