joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003efea
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1008b509
call fcn.10089bfc
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], vtable.ISteamRemoteStorage004.0
mov dword [edi + 8], vtable.ISteamRemoteStorage005.0
mov dword [edi + 0xc], vtable.ISteamRemoteStorage006.0
mov dword [edi + 0x10], vtable.ISteamRemoteStorage008.0
mov dword [edi + 0x14], vtable.ISteamRemoteStorage010.0
mov dword [edi + 0x18], vtable.ISteamRemoteStorage011.0
mov dword [edi + 0x1c], vtable.ISteamRemoteStorage012.0
mov dword [edi + 0x20], vtable.ISteamRemoteStorage013.0
mov dword [edi + 0x24], vtable.ISteamRemoteStorage014.0
mov dword [edi + 0x28], vtable.ISteamRemoteStorage016.0
mov dword [edi], vtable.IMySteamRemoteStorage.7.0
mov dword [edi + 4], vtable.IMySteamRemoteStorage.6.0
mov dword [edi + 8], vtable.IMySteamRemoteStorage.5.0
mov dword [edi + 0xc], vtable.IMySteamRemoteStorage.9.0
mov dword [edi + 0x10], vtable.IMySteamRemoteStorage.2.0
mov dword [edi + 0x14], vtable.IMySteamRemoteStorage.8.0
mov dword [edi + 0x18], vtable.IMySteamRemoteStorage.0
mov dword [edi + 0x1c], vtable.IMySteamRemoteStorage.3.0
mov dword [edi + 0x20], vtable.IMySteamRemoteStorage.10.0
mov dword [edi + 0x24], vtable.IMySteamRemoteStorage.4.0
mov dword [edi + 0x28], vtable.IMySteamRemoteStorage.1.0
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0x38]
mov dword [ebp - 0x14], esi
and dword [esi], ebx
push 0x24
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.1007a471
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ebp - 4], 2
push dword [esi + 4]
mov dword [esi + 0x18], 7
push 0x10
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
call fcn.1000b2db
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 3
call fcn.1003f133
push ebx
mov ecx, edi
call fcn.1003ecdf
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10042987
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008b108
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov dword [esi], vtable.IMySteamUserStats.4.0
mov dword [esi + 4], vtable.IMySteamUserStats.1.0
mov dword [esi + 8], vtable.IMySteamUserStats.5.0
mov dword [esi + 0xc], vtable.IMySteamUserStats.7.0
mov dword [esi + 0x10], vtable.IMySteamUserStats.6.0
mov dword [esi + 0x14], vtable.IMySteamUserStats.8.0
mov dword [esi + 0x18], vtable.IMySteamUserStats.3.0
mov dword [esi + 0x1c], vtable.IMySteamUserStats.2.0
mov dword [esi + 0x20], vtable.IMySteamUserStats.0
call fcn.10042a17
lea ecx, [esi + 0x50]
call fcn.1000ac08
lea ecx, [esi + 0x48]
call fcn.100436e4
lea ecx, [esi + 0x30]
call fcn.1000ac08
lea ecx, [esi + 0x28]
call fcn.1000ac8d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x100440bc
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x208]
sub esp, 0x208
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x100440cd
push esi
mov esi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x208]
push edi
push 0x5c
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x208]
push 0x2f
push eax
call esi
add esp, 0x10
cmp eax, edi
cmova edi, eax
test edi, edi
je 0x1004419a
lea eax, [ebp - 0x208]
mov byte [edi + 1], 0
push 0x1009bda0
push eax
call dword [sym.imp.msvcrt.dll_strtok]
mov byte [ebp - 0x104], 0
jmp 0x10044192
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10044128
lea edi, [ebp - 0x104]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10044138
mov ecx, edx
lea eax, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1004416d
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10044174
mov ax, word [0x1009bd98]
push 0x1009bd9c
push 0
mov word [edi], ax
call dword [sym.imp.msvcrt.dll_strtok]
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x10044126
pop edi
pop esi
leave
ret
Function at 0x10049d6a
Capabilities:
Create thread

Disassembly:
mov eax, 0x1008b95c
call fcn.10089bfc
push ecx
push ebx
push esi
push edi
push 0x10
mov edi, ecx
call fcn.1007a471
mov edx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], esi
mov edx, dword [edx]
mov dword [esi], edx
mov ecx, dword [0x1018d5a4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
xor eax, eax
lea ebx, [edi + 4]
push ebx
push eax
push esi
push 0x10049df4
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x10049dd8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
and dword [ebx], 0
push 6
call fcn.100792bd
int3
Function at 0x1004a9bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x1008ba19
call fcn.10089bfc
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.1004bd22
lea edi, [esi + 0x80]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.1005d34b
mov byte [ebp - 4], 1
lea ecx, [esi + 0xd4]
mov dword [esi], vtable.GlRender.0
mov dword [edi], vtable.GlRender.1.0
call fcn.1004adbd
mov byte [ebp - 4], 2
mov byte [ebp - 0x1f], 0x7c
mov byte [ebp - 0x1e], 0x6c
mov byte [ebp - 0x1d], 0x71
mov byte [ebp - 0x1c], 0x58
mov byte [ebp - 0x1b], 0x7c
mov byte [ebp - 0x1a], 0x66
mov byte [ebp - 0x19], 0x75
mov byte [ebp - 0x18], 0x47
mov byte [ebp - 0x17], 0x7a
mov byte [ebp - 0x16], 0x6b
mov byte [ebp - 0x15], 0x6b
mov byte [ebp - 0x14], 0x6a
mov byte [ebp - 0x13], 0x77
mov byte [ebp - 0x12], 0x78
mov byte [ebp - 0x11], bl
mov al, byte [ebp - 0x1f]
sub byte [ebp + ebx - 0x1f], 5
inc ebx
cmp ebx, 0xe
jb 0x1004aa45
lea eax, [ebp - 0x1f]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004aa7c
push 1
push 1
push 0x1004a960
push eax
mov ecx, edi
call fcn.1005bf5f
mov dword [0x1018da48], esi
mov byte [esi + 4], 1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1004b643
Capabilities:
Contain obfuscated stackstrings
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x1018d388]
sub esp, 0x18
mov eax, dword [eax + 0x120]
push ebx
push esi
mov esi, ecx
sub eax, 1
je 0x1004b7e5
sub eax, 1
jne 0x1004b7fb
mov byte [esp + 0xf], 0x4b
xor ebx, ebx
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], 0x7a
mov byte [esp + 0x12], 0x77
mov byte [esp + 0x13], 0x68
mov byte [esp + 0x14], 0x7b
mov byte [esp + 0x15], 0x6a
mov byte [esp + 0x16], 0x6f
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0x6c
mov byte [esp + 0x19], 0x7a
mov byte [esp + 0x1a], 0x7a
mov byte [esp + 0x1b], 0x68
mov byte [esp + 0x1c], 0x6e
mov byte [esp + 0x1d], 0x6c
mov byte [esp + 0x1e], 0x48
mov byte [esp + 0x1f], bl
mov al, byte [esp + 0xf]
mov eax, ebx
sub byte [esp + eax + 0xf], 7
inc eax
cmp eax, 0x10
jb 0x1004b6c9
mov byte [esp + 8], 0x5a
mov byte [esp + 9], 0x78
mov byte [esp + 0xa], 0x6a
mov byte [esp + 0xb], 0x77
mov byte [esp + 0xc], 0x38
mov byte [esp + 0xd], 0x37
mov byte [esp + 0xe], bl
mov al, byte [esp + 8]
mov eax, ebx
sub byte [esp + eax + 8], 5
inc eax
cmp eax, 6
jb 0x1004b6fc
push 1
push 1
push 0x1004b5b5
push ecx
lea eax, [esp + 0x1f]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005d818
pop ecx
push eax
mov ecx, esi
call fcn.1005bf5f
mov byte [esp + 0xf], 0x48
mov byte [esp + 0x10], 0x6d
mov byte [esp + 0x11], 0x77
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x13], 0x65
mov byte [esp + 0x14], 0x78
mov byte [esp + 0x15], 0x67
mov byte [esp + 0x16], 0x6c
mov byte [esp + 0x17], 0x51
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x77
mov byte [esp + 0x1a], 0x77
mov byte [esp + 0x1b], 0x65
mov byte [esp + 0x1c], 0x6b
mov byte [esp + 0x1d], 0x69
mov byte [esp + 0x1e], 0x5b
mov byte [esp + 0x1f], bl
mov al, byte [esp + 0xf]
mov eax, ebx
sub byte [esp + eax + 0xf], 4
inc eax
cmp eax, 0x10
jb 0x1004b783
mov byte [esp + 8], 0x5b
mov byte [esp + 9], 0x79
mov byte [esp + 0xa], 0x6b
mov byte [esp + 0xb], 0x78
mov byte [esp + 0xc], 0x39
mov byte [esp + 0xd], 0x38
mov byte [esp + 0xe], bl
mov al, byte [esp + 8]
sub byte [esp + ebx + 8], 6
inc ebx
cmp ebx, 6
jb 0x1004b7b4
push 1
push 1
push 0x1004b5b5
push ecx
lea eax, [esp + 0x1f]
mov ecx, esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1005d818
pop ecx
push eax
mov ecx, esi
call fcn.1005bf5f
jmp 0x1004b7fb
xor ebx, ebx
push ebx
push ebx
push 0x1004b51a
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1018dd10], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cdb8
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1008bf45
call fcn.10089bfc
sub esp, 0x24c
push ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
and dword [esi], eax
push edi
push 0x24
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.1007a471
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
xor ebx, ebx
lea ecx, [esi + 0xc]
xor eax, eax
inc ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 8
mov byte [ebp - 4], 2
pop edi
push dword [esi + 4]
mov dword [esi + 0x18], 7
push 0x10
mov dword [esi + 0x1c], edi
mov dword [esi], 0x3f800000
call fcn.1000b2db
and dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004cedc
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x224
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32First]
jmp 0x1004ced1
mov al, byte [ebp - 0x238]
lea edi, [ebp - 0x238]
jmp 0x1004ce83
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll_toupper]
mov byte [edi], al
inc edi
pop ecx
mov al, byte [edi]
test al, al
jne 0x1004ce73
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000b091
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.1000b995
mov ecx, dword [eax]
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 0
mov dword [ecx + 0x20], eax
lea ecx, [ebp - 0x34]
call fcn.1000b2aa
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1004ce65
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1005a2a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [ebp - 4], edx
push edi
push eax
mov dword [ebp - 8], eax
xor edi, edi
xor esi, esi
xor ebx, ebx
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
jne 0x1005a32f
cmp ebx, edi
jne 0x1005a2ea
lea eax, [edi + 0x3e8]
mov edx, edi
push eax
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.10058eac
pop ecx
test eax, eax
je 0x1005a366
mov edi, dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
push dword [ebp - 8]
and dword [eax], 0
mov eax, edi
sub eax, ebx
push eax
lea eax, [ebx + esi]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 0x14
test eax, eax
jne 0x1005a36d
push dword [ebp - 8]
add ebx, dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
je 0x1005a2c5
cmp ebx, edi
jne 0x1005a3a6
lea eax, [edi + 1]
mov edx, edi
push eax
mov ecx, esi
call fcn.10058eac
pop ecx
test eax, eax
jne 0x1005a3a4
push 0x1018a174
push 0xc8
push dword [ebp - 4]
call fcn.100395ca
add esp, 0xc
test esi, esi
je 0x1005a362
push esi
call dword [0x1009cde0]
pop ecx
xor eax, eax
jmp 0x1005a3c6
push 0x1018a19c
jmp 0x1005a346
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
cmp dword [eax], 0
je 0x1005a387
call edi
push dword [eax]
call dword [sym.imp.msvcrt.dll_strerror]
pop ecx
jmp 0x1005a38c
mov eax, str.Error_reading_file
push eax
push 0x1018a184
push 0xc8
push dword [ebp - 4]
call fcn.100395ca
add esp, 0x10
jmp 0x1005a356
mov esi, eax
mov edx, dword [ebp - 4]
push ecx
mov ecx, esi
mov byte [ebx + esi], 0
call fcn.1005a141
mov edi, eax
pop ecx
test esi, esi
je 0x1005a3c4
push esi
call dword [0x1009cde0]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005b25b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov ecx, 0x4f4e4554
mov edi, esi
mov edx, dword [edi + 0x100d67f8]
mov eax, edx
xor eax, ecx
mov ecx, edx
mov dword [edi + 0x100d67f8], eax
add edi, 4
cmp edi, 0x9ca38
jb 0x1005b269
push 0x4e018
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005b2b9
push ecx
push ecx
mov ecx, edi
mov dword [edi + 0x50], esi
call fcn.10076c18
pop ecx
pop ecx
test eax, eax
je 0x1005b2b1
mov esi, edi
jmp 0x1005b2b9
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov dword [ebx + 4], esi
test esi, esi
pop esi
setne al
pop ebx
ret

Function at 0x1005b38e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0xb], 0x6b
xor ecx, ecx
mov byte [ebp - 0xa], 0x6e
mov byte [ebp - 9], 0x71
mov byte [ebp - 8], 0x21
mov byte [ebp - 7], 0x31
mov byte [ebp - 6], 0x79
mov byte [ebp - 5], 0x26
mov byte [ebp - 4], 0x31
mov byte [ebp - 3], 0x39
mov byte [ebp - 2], 0x79
mov byte [ebp - 1], cl
mov al, byte [ebp - 0xb]
dec byte [ebp + ecx - 0xb]
inc ecx
cmp ecx, 0xa
jb 0x1005b3c4
push dword [ebp + 8]
lea eax, [ebp - 0xb]
push eax
push dword [ebp + 0xc]
call fcn.1005d122
add esp, 0xc
leave
ret 8
Function at 0x1005b3e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0xc], 0x6f
xor ecx, ecx
mov byte [ebp - 0xb], 0x6d
mov byte [ebp - 0xa], 0x78
mov byte [ebp - 9], 0x78
mov byte [ebp - 8], 0x2c
mov byte [ebp - 7], 0x3c
mov byte [ebp - 6], 0x84
mov byte [ebp - 5], 0x31
mov byte [ebp - 4], 0x3c
mov byte [ebp - 3], 0x44
mov byte [ebp - 2], 0x84
mov byte [ebp - 1], cl
mov al, byte [ebp - 0xc]
sub byte [ebp + ecx - 0xc], 0xc
inc ecx
cmp ecx, 0xb
jb 0x1005b41e
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.1005d122
add esp, 0xc
leave
ret 8
Function at 0x1005cf1b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push edi
push 8
mov ebp, ecx
call fcn.1007a471
mov ebx, dword [esp + 0x1c]
mov edi, eax
and ebx, 0xfffff000
mov dword [esp + 0x10], edi
pop ecx
and dword [edi + 4], 0
cmp dword [esp + 0x18], 0
mov dword [edi], vtable.MemoryAllocator.0
cmove ebx, dword [esp + 0x18]
push 0x40
push 0x3000
push dword [esp + 0x1c]
add ebx, 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 4], eax
test eax, eax
je 0x1005cf4d
lea ecx, [ebp + 4]
mov dword [esp + 0x18], edi
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x1005cf83
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x1005cf8e
lea edx, [esp + 0x18]
push edx
push eax
call fcn.1005ec86
mov eax, dword [edi + 4]
pop edi
pop ebp
pop ebx
pop ecx
ret 8

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

Disassembly:
push ecx
and dword [esp], 0
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push eax
push 0x40
mov ebp, ecx
mov esi, edx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
push ebx
push ebp
push esi
mov ebx, edx
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005d07c
sub esi, ecx
mov ebp, 0x100
cmp esi, ebp
jae 0x1005d118
push 0x228
lea eax, [esp + 0x1c]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [esp + 0x30], 0
lea eax, [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x20], edi
push ebx
push ebp
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
lea ecx, [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0x18], bl
call fcn.10062662
test eax, eax
je 0x1005d118
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x14]
push eax
push 0x40
push dword [esp + 0x30]
mov dword [esp + 0x20], ebx
push edi
call esi
push ebx
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push dword [esp + 0x30]
push edi
call esi
mov eax, dword [esp + 0x28]
jmp 0x1005d11a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005d50f
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
mov eax, 0x1008c276
call fcn.10089bfc
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005d632
push 0x104
lea eax, [ebp - 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1005d590
lea eax, [ebp - 0x220]
push 0x1009d0f8
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005d590
push 2
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
push esi
call dword [sym.imp.msvcrt.dll_ftell]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
cmp edi, 0x40000000
jle 0x1005d597
push esi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor al, al
jmp 0x1005d634
push ebx
push ebx
push esi
call dword [sym.imp.msvcrt.dll_fseek]
push edi
call fcn.1007a8de
push esi
push 1
push dword [ebp - 0x10]
mov edi, eax
push edi
call dword [sym.imp.msvcrt.dll_fread]
push esi
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, 0x5a4d
add esp, 0x24
cmp word [edi], ax
jne 0x1005d62b
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x1005d62b
movzx esi, word [ecx + 0x14]
mov edx, ebx
movzx eax, word [ecx + 6]
add esi, 0x18
add esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
test eax, eax
je 0x1005d62b
mov ecx, ebx
mov eax, str..bind
movzx eax, byte [eax + ecx]
cmp al, byte [esi + ecx]
jne 0x1005d645
inc ecx
cmp ecx, 6
jne 0x1005d5f1
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
imul edx, edx, 0x28
mov ecx, dword [edx + ebx + 0xc]
add ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [edx + ebx + 0x10]
cmp ecx, dword [edx + ebx + 8]
mov eax, dword [ebp + 0x14]
cmovbe ecx, dword [edx + ebx + 8]
mov bl, 1
mov dword [eax], ecx
push edi
call fcn.1007a46c
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
inc edx
add esi, 0x28
cmp edx, dword [ebp - 0x10]
jl 0x1005d5ef
jmp 0x1005d62b
Function at 0x1005d831
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x1008c2c9
call fcn.10089bfc
sub esp, 0x68
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [edi*2 + 1]
push eax
call fcn.1007a8de
mov byte [ebp - 0x21], 0x31
mov esi, eax
mov byte [ebp - 0x20], 0x32
mov edx, dword [ebp + 8]
mov byte [ebp - 0x1f], 0x33
mov byte [ebp - 0x1e], 0x34
mov byte [ebp - 0x1d], 0x35
mov byte [ebp - 0x1c], 0x36
mov byte [ebp - 0x1b], 0x37
mov byte [ebp - 0x1a], 0x38
mov byte [ebp - 0x19], 0x39
mov byte [ebp - 0x18], 0x3a
mov byte [ebp - 0x17], 0x42
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x44
mov byte [ebp - 0x14], 0x45
mov byte [ebp - 0x13], 0x46
mov byte [ebp - 0x12], 0x47
mov byte [ebp - 0x11], bl
mov al, byte [ebp - 0x21]
pop ecx
mov ecx, esi
mov eax, ebx
dec byte [ebp + eax - 0x21]
inc eax
cmp eax, 0x10
jb 0x1005d8a3
test edi, edi
je 0x1005d8d3
movzx eax, byte [edx]
shr eax, 4
mov al, byte [ebp + eax - 0x21]
mov byte [ecx], al
movzx eax, byte [edx]
and eax, 0xf
mov al, byte [ebp + eax - 0x21]
mov byte [ecx + 1], al
add ecx, 2
inc edx
sub edi, 1
jne 0x1005d8b1
push 0x700
push dword [ebp + 0x10]
mov byte [ecx], bl
lea ecx, [ebp - 0x38]
call fcn.1005da77
mov dword [ebp - 4], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x6c], bl
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x3c], bl
mov ecx, esi
mov byte [ebp - 4], 1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d916
sub ecx, edx
lea eax, [ebp - 0x38]
push esi
push ecx
push eax
lea eax, [ebp - 0x70]
lea edx, [ecx + esi]
mov ecx, esi
push eax
call fcn.1005e9eb
add esp, 0x10
push 0xc
pop edi
test al, al
je 0x1005d999
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
cdq
idiv edi
mov ecx, eax
lea eax, [ebp - 0x44]
test ecx, ecx
cmovne eax, dword [ebp - 0x68]
mov eax, dword [eax]
sub eax, dword [ebp - 0x70]
cdq
sub eax, edx
mov ebx, eax
lea eax, [ebp - 0x44]
sar ebx, 1
add ebx, dword [ebp + 8]
test ecx, ecx
cmovne eax, dword [ebp - 0x68]
mov edi, dword [eax]
sub edi, dword [ebp - 0x70]
add edi, ecx
add edi, esi
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1005d977
push edi
push ecx
lea eax, [ebp - 0x38]
sub edx, ecx
push eax
lea eax, [ebp - 0x70]
add edx, edi
push eax
mov ecx, edi
call fcn.1005e9eb
add esp, 0x10
push 0xc
pop edi
push esi
call fcn.1007a46c
pop ecx
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x1005d9bb
mov eax, dword [ebp - 0x60]
sub eax, ecx
cdq
idiv edi
imul eax, eax, 0xc
push eax
push ecx
call fcn.1000c7f0
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
call fcn.1005dbec
lea ecx, [ebp - 0x2c]
call fcn.1005ca18
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10