joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f7d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x45f980
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45f949
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x45f979
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x45f979
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x45f979
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.004626e7
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x45f979
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x5397f4
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x45f949
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x45f95e
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x45f965
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.004626e7
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.0045f690
test eax, eax
je 0x45f96c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x45f8ac
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x45f971
mov eax, dword [esp + 0x10]
push eax
jmp 0x45f971
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004625fe
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x45f990
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x45f9c0
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x45f9cf
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x45f9f2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x45fa01
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x45fa24
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x45fa70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x45fbe7
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.0045f990
test eax, eax
jne 0x45fad3
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x45fb82
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x45fb32
mov byte [esp + 0x1a], 0
jmp 0x45fb3a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.0045fa40
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x45fbe7
cmp dword [esp + 0x30], 0x10
jne 0x45fbe7
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x45fae9
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x45fbdc
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x45fbe7
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x45fbe7
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x45fb94
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x45fc00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45fc7f
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x45fc7f
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45fc7f
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x45fe00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45feed
mov esi, dword [esp + 0x28]
mov ecx, edi
push esi
mov word [esp + 0x14], 0x4d42
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.0045fdc0
and eax, 0xffff
push esi
add eax, 0x36
mov ecx, edi
mov dword [esp + 0x1e], eax
call fcn.0045fdd0
imul eax, dword [esi + 8]
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x24]
add eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
shr eax, 2
push edx
push ebx
mov dword [esp + 0x26], eax
call ebp
test eax, eax
je 0x45fee6
cmp dword [esp + 0x24], 0xe
jne 0x45fee6
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.0045fdd0
mov edi, eax
mov ecx, dword [esp + 0x1a]
imul edi, dword [esi + 8]
lea eax, [esp + 0x24]
add edi, ecx
push 0
push eax
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x45fee6
cmp dword [esp + 0x24], edi
jne 0x45fee6
mov ecx, dword [esi + 8]
push ebx
shl ecx, 1
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8

Function at 0x4738a2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4738da
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00471961
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471939
jmp 0x4738e6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x474f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474fd2
call fcn.0047a915
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x474fd2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x474fc9
xor eax, eax
jmp 0x474fda
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474fe0
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ae45
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ae73
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x47ae91
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047adab
jmp 0x47ae91
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae91
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047adab
test edi, edi
mov eax, edi
jne 0x47ae7b
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407e60
Capabilities:
Create directory

Disassembly:
push esi
push ebx
push eax
mov eax, 0x2010
call fcn.0040f44c
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x43e0a0]
test eax, eax
je 0x407f00
xor ebx, ebx
test eax, eax
jg 0x407e9b
jmp 0x407eb8
add ebx, 1
cmp dword [0x43e0a0], ebx
jle 0x407eb8
mov eax, dword [ebx*4 + 0x43d0a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407e90
jmp 0x407ef2
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x407ecc
cmp word [esi + 2], 0x3a
je 0x407ef2
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x407f48
mov ebx, dword [0x43e0a0]
cmp ebx, 0x3ff
jle 0x407f60
mov eax, 1
add esp, 0x2014
pop ebx
pop esi
ret
mov ecx, 0x1000
mov edx, str.HOME
lea eax, [esp + 0x10]
call fcn.00407710
test al, al
je 0x407f7b
lea eax, [esp + 0x10]
mov ebx, dword [0x43e0a0]
mov dword [esp], eax
call sub.msvcrt.dll__wcsdup
mov dword [ebx*4 + 0x43d0a0], eax
mov eax, dword [0x43e0a0]
add eax, 1
mov dword [0x43e0a0], eax
jmp 0x407e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407ee4
xor eax, eax
jmp 0x407ef7
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x43e0a0], 1
mov dword [ebx*4 + 0x43d0a0], eax
jmp 0x407ef2
mov eax, str.HOME
call fcn.00407d90
lea esi, [esi]
lea esi, [esi]

Function at 0x408110
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x438060]
test eax, eax
je 0x408149
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x408160
mov eax, dword [0x438060]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x43b080], 0
jne 0x408180
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x438060]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x408138
mov edx, 0x414
lea edi, [esp + 0x12]
mov dword [esp + 0x12], 0
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x16], 3
mov ebx, 0x14
mov dword [esp + 0x1a], 0x43b0a0
mov dword [esp + 0x1e], 0x41713c
mov word [esp + 0x22], dx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41713c
mov dword [esp], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
jmp 0x408253
test al, 0x10
je 0x408152
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 3
mov dword [esp + 0x1a], 0x43b0a0
mov dword [esp + 0x1e], 0x41713c
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41713c
mov dword [esp], edi
call esi
sub esp, 4
sub ebx, 1
je 0x408152
mov dword [esp], 0x43b0a0
call ebp
sub esp, 4
cmp eax, 0xffffffff
jne 0x4081e8
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e49c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.004148a0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.004148a0
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40f070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40f08f
mov eax, 0
jmp 0x40f0d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40f0b2
mov eax, 0
jmp 0x40f0d3
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40f0ce
mov eax, 0
jmp 0x40f0d3
mov eax, 1
leave
ret

Function at 0x40f0d5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40f134
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40f12c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40f12c
mov eax, dword [ebp - 4]
jmp 0x40f148
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40f109
mov eax, 0
leave
ret
Function at 0x403cfc
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x403ccc
call fcn.00403bb8
xor eax, eax
push ebp
push 0x403d91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 1
call fcn.0040249c
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
push 3
push 0x403da0
push 0x403da4
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00402ea4
lea eax, [ebp - 0x10]
mov edx, 0x403dc8
call fcn.00402ed4
mov eax, dword [ebp - 0x10]
call fcn.00402f18
push eax
push 0x403dd8
push 0
call sub.shell32.dll_ShellExecuteA
mov edx, 1
mov eax, ebx
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d98
lea eax, [ebp - 0x10]
call fcn.00402de8
ret
Function at 0x66ac64f2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6725e014]
mov dword [ebp - 0xc], eax
jmp 0x66ac6586
jmp 0x66ac660c
jmp 0x66ac6692
jmp 0x66ac6718
jmp 0x66ac679e
jmp 0x66ac6824
jmp 0x66ac68aa
jmp 0x66ac6930
jmp 0x66ac69b6
jmp 0x66ac6a3c
jmp 0x66ac6ac2
jmp 0x66ac6b48
jmp 0x66ac6bce
jmp 0x66ac6c54
jmp 0x66ac6cda
jmp 0x66ac6d60
jmp 0x66ac6de6
jmp 0x66ac6e6c
jmp 0x66ac6ef2
cmp dword [ebp - 0xc], 0
je 0x66ac9716
mov eax, dword [0x6725e014]
mov dword [0x6725e00c], eax
jmp 0x66ac6f8c
jmp 0x66ac7012
jmp 0x66ac7098
jmp 0x66ac711e
jmp 0x66ac71a4
jmp 0x66ac722a
jmp 0x66ac72b0
jmp 0x66ac7336
jmp 0x66ac73bc
jmp 0x66ac7442
jmp 0x66ac74c8
jmp 0x66ac754e
jmp 0x66ac75d4
jmp 0x66ac765a
jmp 0x66ac76e0
jmp 0x66ac7766
jmp 0x66ac77ec
jmp 0x66ac7872
jmp 0x66ac78f8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x6725e008], eax
jmp 0x66ac798e
jmp 0x66ac7a14
jmp 0x66ac7a9a
jmp 0x66ac7b20
jmp 0x66ac7ba6
jmp 0x66ac7c2c
jmp 0x66ac7cb2
jmp 0x66ac7d38
jmp 0x66ac7dbe
jmp 0x66ac7e44
jmp 0x66ac7eca
jmp 0x66ac7f50
jmp 0x66ac7fd6
jmp 0x66ac805c
jmp 0x66ac80e2
jmp 0x66ac8168
jmp 0x66ac81ee
jmp 0x66ac8274
jmp 0x66ac82fa
mov eax, dword [0x6725e008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x66ac838b
jmp 0x66ac8411
jmp 0x66ac8497
jmp 0x66ac851d
jmp 0x66ac85a3
jmp 0x66ac8629
jmp 0x66ac86af
jmp 0x66ac8735
jmp 0x66ac87bb
jmp 0x66ac8841
jmp 0x66ac88c7
jmp 0x66ac894d
jmp 0x66ac89d3
jmp 0x66ac8a59
jmp 0x66ac8adf
jmp 0x66ac8b65
jmp 0x66ac8beb
jmp 0x66ac8c71
jmp 0x66ac8cf7
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6725e004], eax
jmp 0x66ac8daa
jmp 0x66ac8e30
jmp 0x66ac8eb6
jmp 0x66ac8f3c
jmp 0x66ac8fc2
jmp 0x66ac9048
jmp 0x66ac90ce
jmp 0x66ac9154
jmp 0x66ac91da
jmp 0x66ac9260
jmp 0x66ac92e6
jmp 0x66ac936c
jmp 0x66ac93f2
jmp 0x66ac9478
jmp 0x66ac94fe
jmp 0x66ac9584
jmp 0x66ac960a
jmp 0x66ac9690
jmp 0x66ac9716
nop
leave
ret
Function at 0x66acab41
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6725e008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6725e008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x66acabe7
jmp 0x66acac6d
jmp 0x66acacf3
jmp 0x66acad79
jmp 0x66acadff
jmp 0x66acae85
jmp 0x66acaf0b
jmp 0x66acaf91
jmp 0x66acb017
jmp 0x66acb09d
jmp 0x66acb123
jmp 0x66acb1a9
jmp 0x66acb22f
jmp 0x66acb2b5
jmp 0x66acb33b
jmp 0x66acb3c1
jmp 0x66acb447
jmp 0x66acb4cd
jmp 0x66acb553
mov dword [ebp - 0x14], 0
jmp 0x66acb5e0
jmp 0x66acb666
jmp 0x66acb6ec
jmp 0x66acb772
jmp 0x66acb7f8
jmp 0x66acb87e
jmp 0x66acb904
jmp 0x66acb98a
jmp 0x66acba10
jmp 0x66acba96
jmp 0x66acbb1c
jmp 0x66acbba2
jmp 0x66acbc28
jmp 0x66acbcae
jmp 0x66acbd34
jmp 0x66acbdba
jmp 0x66acbe40
jmp 0x66acbec6
jmp 0x66acbf4c
mov dword [ebp - 0x18], 0
jmp 0x66acbfd9
jmp 0x66acc05f
jmp 0x66acc0e5
jmp 0x66acc16b
jmp 0x66acc1f1
jmp 0x66acc277
jmp 0x66acc2fd
jmp 0x66acc383
jmp 0x66acc409
jmp 0x66acc48f
jmp 0x66acc515
jmp 0x66acc59b
jmp 0x66acc621
jmp 0x66acc6a7
jmp 0x66acc72d
jmp 0x66acc7b3
jmp 0x66acc839
jmp 0x66acc8bf
jmp 0x66acc945
mov dword [ebp - 0x10], 0
jmp 0x66acc9d2
jmp 0x66acca58
jmp 0x66accade
jmp 0x66accb64
jmp 0x66accbea
jmp 0x66accc70
jmp 0x66acccf6
jmp 0x66accd7c
jmp 0x66acce02
jmp 0x66acce88
jmp 0x66accf0e
jmp 0x66accf94
jmp 0x66acd01a
jmp 0x66acd0a0
jmp 0x66acd126
jmp 0x66acd1ac
jmp 0x66acd232
jmp 0x66acd2b8
jmp 0x66acd33e
mov dword [ebp - 0x10], 0
jmp 0x66ad054a
jmp 0x66acd3d0
jmp 0x66acd456
jmp 0x66acd4dc
jmp 0x66acd562
jmp 0x66acd5e8
jmp 0x66acd66e
jmp 0x66acd6f4
jmp 0x66acd77a
jmp 0x66acd800
jmp 0x66acd886
jmp 0x66acd90c
jmp 0x66acd992
jmp 0x66acda18
jmp 0x66acda9e
jmp 0x66acdb24
jmp 0x66acdbaa
jmp 0x66acdc30
jmp 0x66acdcb6
jmp 0x66acdd3c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6725e004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x66acddd3
jmp 0x66acde59
jmp 0x66acdedf
jmp 0x66acdf65
jmp 0x66acdfeb
jmp 0x66ace071
jmp 0x66ace0f7
jmp 0x66ace17d
jmp 0x66ace203
jmp 0x66ace289
jmp 0x66ace30f
jmp 0x66ace395
jmp 0x66ace41b
jmp 0x66ace4a1
jmp 0x66ace527
jmp 0x66ace5ad
jmp 0x66ace633
jmp 0x66ace6b9
jmp 0x66ace73f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6725e00c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x66ace7d6
jmp 0x66ace85c
jmp 0x66ace8e2
jmp 0x66ace968
jmp 0x66ace9ee
jmp 0x66acea74
jmp 0x66aceafa
jmp 0x66aceb80
jmp 0x66acec06
jmp 0x66acec8c
jmp 0x66aced12
jmp 0x66aced98
jmp fcn.66acee1e
mov eax, dword [0x6725e008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x66acd34a
nop
leave
ret

Function at 0x66aecbe0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6725d040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.66aecc40
Function at 0x66aecc40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6725e378]
test esi, esi
jle 0x66aecd2d
mov edi, dword [0x6725e37c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x66aecc74
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x66aecd26
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x66aecc60
mov dword [esp], eax
mov esi, eax
call fcn.66aed3e0
test eax, eax
mov edi, eax
je 0x66aecd6a
mov esi, dword [0x6725e37c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.66aed4f0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6725e37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x66aecd4a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x66aecd1f
sub eax, 0x40
and eax, 0xffffffbf
je 0x66aecd1f
mov eax, dword [esp + 0x20]
add ebx, dword [0x6725e37c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x66aecd34
add dword [0x6725e378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x66aecc7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.66aecbe0
mov eax, dword [0x6725e37c]
mov eax, dword [eax + ebx + 4]
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 fcn.66aecbe0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.66aecbe0
lea esi, [esi]

Function at 0x66aed050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6725e388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6725e380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x66aed0a5
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 0x66aed09e
test esi, esi
je 0x66aed09e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x66aed080
mov dword [esp], 0x6725e388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret