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

Disassembly:
mov eax, 0x1008b0f2
call fcn.1008a65c
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.1007b04b
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.10006ba3
lea ecx, [edi + 0x58]
call fcn.10038b8c
push ebx
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.10038716
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1003c1e8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008af40
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.1003c278
lea ecx, [esi + 0x50]
call fcn.10006118
lea ecx, [esi + 0x48]
call fcn.1003d09c
lea ecx, [esi + 0x30]
call fcn.10006118
lea ecx, [esi + 0x28]
call fcn.1000669b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x1003db62
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push edi
push ecx
push eax
call dword [sym.imp.msvcrt.dll_strcpy]
mov esi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x208]
push 0x2f
push eax
call esi
add esp, 0x18
cmp eax, edi
cmova edi, eax
test edi, edi
je 0x1003dc1a
mov esi, dword [sym.imp.msvcrt.dll_strtok]
lea eax, [ebp - 0x208]
push ebx
push 0x100a567c
xor ebx, ebx
push eax
mov byte [edi + 1], bl
call esi
mov byte [ebp - 0x104], bl
pop ecx
pop ecx
test eax, eax
je 0x1003dc19
mov edi, dword [sym.imp.msvcrt.dll_strcat]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1003dbfc
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
push 0x100a5680
push eax
call edi
push 0x100a567c
push ebx
call esi
add esp, 0x10
test eax, eax
jne 0x1003dbd1
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10043428
Capabilities:
Create thread

Disassembly:
mov eax, 0x1008b4f5
call fcn.1008a65c
push ecx
push ebx
push esi
push edi
push 0x10
mov edi, ecx
call fcn.1007b04b
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 [0x100e24cc]
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 0x100434b2
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 0x10043496
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.10079e76
int3
Function at 0x100441a9
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1008b5b2
call fcn.1008a65c
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10045703
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
mov ecx, edi
call fcn.10058800
mov byte [ebp - 4], 1
lea ecx, [esi + 0xd4]
mov dword [esi], vtable.GlRender.0
mov dword [edi], vtable.GlRender.1.0
call fcn.1004460b
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0x70
mov eax, dword [ebp - 0x24]
xor al, 0x77
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x24]
inc al
xor al, 0x67
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x24]
add al, 2
xor al, 0x6c
mov byte [ebp - 0x1e], al
mov eax, dword [ebp - 0x24]
add al, 3
xor al, 0x53
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x24]
add al, 4
xor al, 0x77
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x24]
add al, 5
xor al, 0x61
mov byte [ebp - 0x1b], al
mov eax, dword [ebp - 0x24]
add al, 6
xor al, 0x70
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 0x24]
add al, 7
xor al, 0x42
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x24]
add al, 8
xor al, 0x75
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x24]
add al, 9
xor al, 0x66
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x24]
add al, 0xa
xor al, 0x66
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x24]
add al, 0xb
xor al, 0x65
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x24]
add al, 0xc
xor al, 0x72
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x24]
add al, 0xd
mov byte [ebp - 0x12], 0
xor al, 0x73
xor edx, edx
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x20]
mov al, byte [ebp + edx - 0x20]
mov ecx, dword [ebp - 0x24]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x20], cl
inc edx
cmp edx, 0xe
jb 0x1004428c
lea eax, [ebp - 0x20]
mov byte [ebp - 0x12], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100442d1
push 1
push 1
push 0x1004414d
push eax
mov ecx, edi
call fcn.10057210
mov dword [0x100e2970], esi
mov byte [esi + 4], 1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10046833
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1008bae4
call fcn.1008a65c
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.1007b04b
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.10006ba3
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 0x10046957
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x224
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32First]
jmp 0x1004694c
mov al, byte [ebp - 0x238]
lea edi, [ebp - 0x238]
jmp 0x100468fe
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 0x100468ee
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x34]
call fcn.100067a2
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.100469e0
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.10006b4b
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x100468e0
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 0x1004b850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0xd
pop ebx
lea eax, [edi + 4]
mov esi, eax
mov dl, byte [esi]
mov ecx, dword [edi]
xor cl, dl
mov byte [esi], cl
inc esi
sub ebx, 1
jne 0x1004b85d
mov byte [edi + 0x11], bl
pop edi
pop esi
pop ebx
ret

Function at 0x1004b881
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x14
jb 0x1004b887
pop edi
mov byte [esi + 0x18], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004b8b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x24
pop ebx
lea eax, [edi + 4]
mov esi, eax
mov dl, byte [esi]
mov ecx, dword [edi]
xor cl, dl
mov byte [esi], cl
inc esi
sub ebx, 1
jne 0x1004b8c1
mov byte [edi + 0x28], bl
pop edi
pop esi
pop ebx
ret

Function at 0x1004b8d6
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x28
jb 0x1004b8dc
pop edi
mov byte [esi + 0x2c], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004b8fa
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x23
pop ebx
lea eax, [edi + 4]
mov esi, eax
mov dl, byte [esi]
mov ecx, dword [edi]
xor cl, dl
mov byte [esi], cl
inc esi
sub ebx, 1
jne 0x1004b907
mov byte [edi + 0x27], bl
pop edi
pop esi
pop ebx
ret

Function at 0x1004b91c
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x1d
jb 0x1004b922
pop edi
mov byte [esi + 0x21], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004b97c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x19
pop ebx
lea eax, [edi + 4]
mov esi, eax
mov dl, byte [esi]
mov ecx, dword [edi]
xor cl, dl
mov byte [esi], cl
inc esi
sub ebx, 1
jne 0x1004b989
mov byte [edi + 0x1d], bl
pop edi
pop esi
pop ebx
ret

Function at 0x1004b9bc
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x1a
jb 0x1004b9c2
pop edi
mov byte [esi + 0x1e], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004ba0d
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x11
pop ebx
lea eax, [edi + 4]
mov esi, eax
mov dl, byte [esi]
mov ecx, dword [edi]
xor cl, dl
mov byte [esi], cl
inc esi
sub ebx, 1
jne 0x1004ba1a
mov byte [edi + 0x15], bl
pop edi
pop esi
pop ebx
ret
Function at 0x1004ba2f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x12
jb 0x1004ba35
pop edi
mov byte [esi + 0x16], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004ba9e
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x13
jb 0x1004baa4
pop edi
mov byte [esi + 0x17], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004bac2
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0xd
jb 0x1004bac8
pop edi
mov byte [esi + 0x11], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004bb04
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x16
jb 0x1004bb0a
pop edi
mov byte [esi + 0x1a], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x1004bb37
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0x18
jb 0x1004bb3d
pop edi
mov byte [esi + 0x1c], 0
lea eax, [esi + 4]
pop esi
ret
Function at 0x100549e0
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 0x10054a69
cmp ebx, edi
jne 0x10054a24
lea eax, [edi + 0x3e8]
mov edx, edi
push eax
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.10053722
pop ecx
test eax, eax
je 0x10054a7b
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 0x10054aa0
push dword [ebp - 8]
add ebx, dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
je 0x10054a03
cmp ebx, edi
jne 0x10054ad9
lea eax, [edi + 1]
mov edx, edi
push eax
mov ecx, esi
call fcn.10053722
pop ecx
test eax, eax
jne 0x10054ad7
push str.out_of_memory
push 0xc8
push dword [ebp - 4]
call fcn.10034d50
add esp, 0xc
test esi, esi
je 0x10054a9c
push esi
call dword [0x100941fc]
pop ecx
xor eax, eax
jmp 0x10054af9
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
cmp dword [eax], 0
je 0x10054aba
call edi
push dword [eax]
call dword [sym.imp.msvcrt.dll_strerror]
pop ecx
jmp 0x10054abf
mov eax, str.Error_reading_file
push eax
push 0x100a9bf4
push 0xc8
push dword [ebp - 4]
call fcn.10034d50
add esp, 0x10
jmp 0x10054a90
mov esi, eax
mov edx, dword [ebp - 4]
push ecx
mov ecx, esi
mov byte [ebx + esi], 0
call fcn.10054889
mov edi, eax
pop ecx
test esi, esi
je 0x10054af7
push esi
call dword [0x100941fc]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10055950
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xc
mov byte [esp], 0x66
mov byte [esp + 1], 0x64
mov byte [esp + 2], 0x6f
mov byte [esp + 3], 0x6f
mov byte [esp + 4], 0x23
mov byte [esp + 5], 0x33
mov byte [esp + 6], 0x7b
mov byte [esp + 7], 0x28
mov byte [esp + 8], 0x33
mov byte [esp + 9], 0x3b
mov byte [esp + 0xa], 0x7b
mov byte [esp + 0xb], 0
mov al, byte [esp]
xor eax, eax
mov cl, byte [esp + eax]
sub cl, 3
mov byte [esp + eax], cl
inc eax
cmp eax, 0xb
jb 0x10055993
push dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push dword [esp + 0x1c]
call fcn.10058350
add esp, 0x18
ret 8
Function at 0x10057100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x28]
lea ebp, [esi + 1]
push 0
xor edx, edx
mov ecx, edi
call fcn.100585e0
add esp, 4
test eax, eax
cmove eax, ebp
add esi, eax
add edi, eax
cmp esi, 5
jb 0x10057112
mov ebp, dword [esp + 0x28]
push ecx
push ebp
mov ecx, ebx
call fcn.10058e70
push esi
mov ebx, eax
push ebp
push ebx
call fcn.10058db0
add ebx, eax
mov ecx, ebx
call fcn.100559c0
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x14], 0x60
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x63
lea edi, [ebx + eax]
mov byte [esp + 0x17], 0x78
mov byte [esp + 0x18], 0x30
mov byte [esp + 0x19], 0x75
mov byte [esp + 0x1a], 0x63
mov byte [esp + 0x1b], 0x60
mov al, byte [esp + 0x14]
mov byte [esp + 0x1c], 0
xor eax, eax
nop dword [eax]
mov cl, byte [esp + eax + 0x14]
mov edx, dword [esp + 0x10]
xor dl, cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 8
jb 0x10057190
lea eax, [esp + 0x14]
mov byte [esp + 0x1c], 0
push eax
push edi
call fcn.10058350
add esp, 8
add edi, eax
push edi
push dword [esp + 0x30]
call fcn.10055950
add edi, eax
mov ecx, edi
call fcn.10056580
push esi
add edi, eax
push ebp
push edi
call fcn.10055880
add edi, eax
lea eax, [esi + ebp]
push edi
push eax
call fcn.100558e0
push ebp
push ebx
call fcn.100558e0
sub esi, eax
mov edx, esi
lea ecx, [eax + ebp]
call fcn.10058200
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret 8
Function at 0x100581a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebp
push esi
push eax
push 0x40
mov ebp, ecx
mov dword [esp + 0x14], 0
push ebx
push ebp
mov esi, edx
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 0x10058200
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x10058276
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, edi
nop word [eax + eax]
lea eax, [esp + 0x14]
mov byte [esp + 0x10], 0x90
push eax
push 0x40
push 1
push esi
mov dword [esp + 0x24], 0
call ebp
push 0
push 1
lea eax, [esp + 0x18]
push eax
push esi
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 1
push esi
call ebp
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
inc esi
sub ebx, 1
jne 0x10058220
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 8
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
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 0x10058298
sub esi, ecx
cmp esi, 0x100
jae 0x10058343
push 0x228
lea eax, [esp + 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x18], edi
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 0
push ebx
push 0x100
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x10]
call fcn.100600d0
test eax, eax
je 0x10058343
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
push eax
push 0x40
push dword [esp + 0x28]
mov dword [esp + 0x18], 0
push edi
call esi
push 0
push dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push dword [esp + 0x28]
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10058a60
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
xor bl, bl
push 0
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10058b79
push esi
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x224]
push 0x100a9d6c
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov esi, dword [sym.imp.msvcrt.dll_fseek]
mov ebx, eax
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.msvcrt.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
push edi
call fcn.1007b595
push ebx
push 1
mov esi, eax
push edi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.msvcrt.dll_fread]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, 0x5a4d
add esp, 0x3c
cmp word [esi], ax
jne 0x10058b6b
mov ecx, dword [esi + 0x3c]
add ecx, esi
cmp dword [ecx], 0x4550
jne 0x10058b6b
movzx eax, word [ecx + 0x14]
xor esi, esi
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x10058b68
mov edi, eax
nop dword [eax]
mov eax, edi
mov ecx, str..bind
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10058b57
test dl, dl
je 0x10058b53
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10058b57
add ecx, 2
add eax, 2
test dl, dl
jne 0x10058b37
xor eax, eax
jmp 0x10058b5c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10058b8c
inc esi
add edi, 0x28
cmp esi, ebx
jl 0x10058b30
mov esi, dword [ebp - 0x14]
mov bl, byte [ebp - 0xd]
push esi
call fcn.1007b4db
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [esi + esi*4]
mov esi, dword [ebp - 0x14]
lea edx, [ecx + eax*8]
mov eax, dword [ebp + 0x10]
mov bl, 1
mov ecx, dword [edx + 0xc]
add ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [edx + 0x10]
cmp ecx, dword [edx + 8]
mov eax, dword [ebp + 0x14]
cmovbe ecx, dword [edx + 8]
mov dword [eax], ecx
jmp 0x10058b6e