joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58d228
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x58d3fb
cmp dword [ebp - 0xc], 1
jne 0x58d3f5
mov eax, dword [ebp + 0xbc]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0xb8]
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0xb4]
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0xb0]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0xac]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0xa8]
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x98]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x94]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___super_fnc__949
mov dword [ebp - 0xc], 0
jmp 0x58d3f6
nop
jmp 0x58d238
nop
leave
ret
Function at 0x58da92
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x40
jle 0x58dab8
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x5a
jle 0x58dacf
jmp 0x58dab9
nop
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x60
jle 0x58daf8
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x7a
jg 0x58daef
jmp 0x58dad0
nop
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x3a
jne 0x58dae6
mov dword [ebp - 0x14], 1
jmp 0x58daff
mov dword [ebp - 0x14], 0
jmp 0x58daff
mov dword [ebp - 0x14], 0
jmp 0x58daff
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [esp + 8], 0x201
mov dword [esp + 4], 0
lea eax, [ebp - 0x225]
mov dword [esp], eax
call sym._memset
cmp dword [ebp - 0x18], 0
je 0x58db49
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebp - 0x225], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 1]
mov byte [ebp - 0x224], al
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
je 0x58dbfe
cmp dword [ebp - 0x10], 0x1ff
jg 0x58dc01
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x2f
je 0x58db85
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, 0x5c
jne 0x58dbd8
jmp 0x58db86
nop
cmp dword [ebp - 0x18], 0
jne 0x58db94
cmp dword [ebp - 0x10], 0
jg 0x58dba3
jmp 0x58db95
nop
cmp dword [ebp - 0x18], 0
je 0x58dbd8
cmp dword [ebp - 0x10], 2
jle 0x58dbd8
jmp 0x58dba4
nop
lea eax, [ebp - 0x225]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__mkdir]
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x58dbd8
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp eax, 0x11
je 0x58dbd8
mov eax, 0xffffffe9
jmp 0x58dc07
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
lea ecx, [ebp - 0x225]
mov edx, dword [ebp - 0x24]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0xc], 1
jmp 0x58db54
nop
jmp 0x58dc02
nop
mov eax, 0
leave
ret
Function at 0x59bca5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x59bddc
cmp dword [ebp - 0xc], 1
jne 0x59bdd6
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___super_fnc__136
mov dword [ebp - 0xc], 0
jmp 0x59bdd7
nop
jmp 0x59bcb5
nop
leave
ret
Function at 0x59f029
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x59f04e
cmp dword [ebp - 0xc], 1
jne 0x59f22b
jmp 0x59f231
mov eax, dword [ebp + 0xcc]
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 0xc8]
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0xc4]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0xc0]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 0xbc]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0xb8]
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0xb4]
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0xb0]
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0xac]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0xa8]
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x98]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x94]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___super_fnc__2591
mov dword [ebp - 0xc], 1
jmp 0x59f22c
nop
jmp 0x59f039
leave
ret
Function at 0x5a00a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x5a0100
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xbfcc14]
test esi, esi
jle 0x5a0220
mov eax, dword [0xbfcc18]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x5a0134
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x5a01b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x5a0120
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x5a0247
mov eax, dword [0xbfcc18]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0xbfcc18]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x5a0227
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x5a01b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x5a01c0
add dword [0xbfcc14], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xbfcc18]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x5a01b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x5a013e
mov eax, dword [0xbfcc18]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x5a0700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xbfcc30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xbfcc28]
sub esp, 4
test ebx, ebx
je 0x5a0755
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x5a074e
test esi, esi
je 0x5a074e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5a0730
mov dword [esp], 0xbfcc30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5a0a80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x5a0aa5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x5a0ab0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x5a0aa5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x5a0af8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5a0aee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x5a0afa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x5a0ae0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10002510
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000260a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10002603
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100025e9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100025e9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100025e9
mov edx, dword [esi]
test edx, edx
jne 0x100025b2
push 0x200
push edx
push dword [0x1008c110]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10002603
jmp 0x100025dd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100025dd
shl eax, 3
push eax
push edx
push 0
push dword [0x1008c110]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10002603
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002571
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1000264f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000264f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10002649
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100023a0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10002616
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003000
mov esp, ebp
pop ebp
ret

Function at 0x10002660
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x100026ae
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1000269e
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10002695
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10002672
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x1008c110]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x100026b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x1008c130]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100026f6
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10002711
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002740
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x1008c138]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1000289d
mov eax, dword [0x1008c130]
add eax, 0x14
test byte [eax], 2
je 0x1000277a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10002765
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000289d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10002510
add esp, 4
cmp esi, dword [0x1008c138]
jae 0x10002850
imul ecx, esi, 0x2c
mov dword [ebp - 0xc], ecx
nop word [eax + eax]
mov edi, dword [0x1008c130]
add edi, ecx
mov dl, byte [edi + 0x14]
test dl, 2
jne 0x1000282e
mov eax, dword [edi]
lea ecx, [ebp - 8]
and dl, 1
push ecx
push 0x40
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, dl
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002848
mov byte [ebx], 0xe9
mov eax, dword [edi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [edi + 0x14], 1
je 0x10002805
mov eax, dword [edi]
mov word [eax], 0xf9eb
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]
or byte [edi + 0x14], 6
mov ecx, dword [ebp - 0xc]
inc esi
add ecx, 0x2c
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
cmp esi, dword [0x1008c138]
jb 0x100027b0
jmp 0x10002850
mov ebx, 0xa
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000289c
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x1000288d
mov ebx, eax
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10002881
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x10002860
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
push eax
push 0
push dword [0x1008c110]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406960
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x419540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [esp + 0x20], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esi + 0x20]
push eax
call ebx
lea eax, [esi + 0x30]
push eax
call ebx
lea ebp, [esi + 0x44]
mov byte [esp + 0x20], 5
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
lea ebx, [esi + 0x50]
mov byte [esp + 0x20], 6
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_1
mov dword [esi], 0x41be10
mov eax, dword [edi]
test eax, eax
mov byte [esp + 0x20], 7
je 0x4069fb
mov dword [edi], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x406a22
mov dword [ecx], 0
call fcn.00409980
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406a22
mov edx, dword [eax]
push eax
call dword [edx + 8]
push 0x421d94
mov ecx, ebx
call fcn.004178ca
push 0x421d94
mov ecx, ebp
call fcn.004178ca
xor ebp, ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov eax, dword [edi]
cmp eax, ebp
je 0x406a4e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [esp + 0x10]
push edx
push 0x421768
push 7
push ebp
push 0x421758
call ebx
cmp eax, ebp
jl 0x406a94
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebp
jl 0x406a8a
mov eax, dword [esp + 0x10]
push edi
push 0x421748
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
cmp eax, ebp
je 0x406aa4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x10]
push edx
push 0x421768
push 7
push ebp
push 0x421738
call ebx
cmp eax, ebp
jl 0x406ae4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, ebp
jl 0x406ada
mov eax, dword [esp + 0x10]
push edi
push 0x421728
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
mov dword [esi + 0x40], ebp
mov dword [esi + 0x14], 1
call fcn.00406b50
mov eax, dword [eax]
mov edi, dword [esi + 0x10]
lea ecx, [esi + 0x10]
cmp edi, eax
mov byte [esp + 0x20], 8
je 0x406b1e
mov dword [ecx], eax
call fcn.00409980
cmp edi, ebp
je 0x406b1e
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 7
cmp eax, ebp
je 0x406b31
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4