joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10164f50
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d1188
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x1022c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
push 0
push 0
push 0x1020a098
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x101650a2
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
push edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push str.ObjectLength
push esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x101650bd
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10164fff
push ecx
push eax
lea ecx, [ebp - 0x3c]
lfence
call fcn.1004ae70
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
push 0
push 0x10
push dword [ebp + 0x18]
sub edi, ebx
mov dword [ebp - 0x1c], 0
push edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
je 0x1016502c
push str.BCryptGenerateSymmetricKey_failed
jmp 0x101650c2
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
push 1
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x20], 0
push dword [ebp + 0xc]
push 0x10
push dword [ebp + 8]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
je 0x10165068
push str.BCryptEncrypt_failed
jmp 0x101650c2
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
test edi, edi
je 0x1016507b
push edi
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
lea ecx, [ebp - 0x3c]
call fcn.10004e00
test esi, esi
je 0x10165090
push 0
push esi
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.BCryptOpenAlgorithmProvider_failed
lea ecx, [ebp - 0x3c]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x3c]
push eax
call fcn.101878e5
push str.BCryptGetProperty_failed
lea ecx, [ebp - 0x48]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x48]
push eax
call fcn.101878e5
int3
Function at 0x101650e0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d11c7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1022c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push 0xc
call fcn.10186698
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1000e9e0
test al, al
je 0x101651ec
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
test eax, eax
je 0x101651d1
push 0
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x101651d1
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.1000ead0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
mov edi, dword [eax + 0xc]
xor edi, dword [eax + 8]
xor edi, dword [eax + 4]
xor edi, dword [eax]
bswap edi
call fcn.10004e00
mov eax, dword [esi + 4]
test eax, eax
je 0x1016519d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x101651b2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
push 0xc
push esi
call fcn.101866c8
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Hash::AddData_failed
lea ecx, [ebp - 0x1c]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x1c]
push eax
call fcn.101878e5
push str.HashImplementation::reset_failed
lea ecx, [ebp - 0x28]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x28]
push eax
call fcn.101878e5
int3
Function at 0x10166dd0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1022c068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edx
push ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xd0], 0x67452301
mov dword [ebp - 0xcc], 0xefcdab89
mov dword [ebp - 0xc8], 0x98badcfe
mov dword [ebp - 0xc4], 0x10325476
mov dword [ebp - 0xc0], 0xc3d2e1f0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
call fcn.10166d10
mov ecx, dword [ebp - 0xb8]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xa], al
mov byte [ebp - 9], cl
mov ecx, dword [ebp - 0xbc]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ecx
push 1
shr eax, 8
mov byte [ebp - 5], cl
lea ecx, [ebp - 0xd0]
push 0x1020a1a8
mov byte [ebp - 6], al
call fcn.10166d10
mov eax, dword [ebp - 0xbc]
and eax, 0x1f8
cmp eax, 0x1c0
je 0x10166ed4
nop word [eax + eax]
push 1
push 0x101e88e0
lea ecx, [ebp - 0xd0]
call fcn.10166d10
mov eax, dword [ebp - 0xbc]
and eax, 0x1f8
cmp eax, 0x1c0
jne 0x10166eb0
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xd0]
call fcn.10166d10
xor eax, eax
nop word [eax + eax]
mov edx, eax
mov ecx, 3
and edx, 3
sub ecx, edx
mov edx, eax
shr edx, 2
shl ecx, 3
mov edx, dword [ebp + edx*4 - 0xd0]
shr edx, cl
mov byte [ebp + eax - 0x70], dl
inc eax
cmp eax, 0x14
jb 0x10166ef0
movups xmm0, xmmword [ebp - 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x60]
xor ecx, ebp
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
pop esi
call fcn.10186332
mov esp, ebp
pop ebp
ret
Function at 0x10170760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov ecx, 0x40
push esi
push edi
mov esi, ebx
mov eax, dword [ebx + 0x200]
lea edi, [ebx + 0x100]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x204], eax
mov eax, dword [ebx + 0x208]
mov dword [ebx + 0x20c], eax
test edi, edi
jle 0x101707b9
mov esi, dword [ebp + 0x10]
sub dword [ebp + 8], esi
nop dword [eax]
mov ecx, ebx
call fcn.101706e0
mov ecx, dword [ebp + 8]
lea esi, [esi + 1]
xor al, byte [ecx + esi - 1]
mov byte [esi - 1], al
sub edi, 1
jne 0x101707a0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x10176bb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d1a13
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1022c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x102347e4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x102347e4
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x101e84c3
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10178010
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1017bd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d2023
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x1022c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov edi, dword [ebx + 0x74]
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x78], eax
test eax, eax
je 0x1017bff5
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101d3368]
mov ecx, edi
call esi
test eax, eax
je 0x1017bda4
mov edi, dword [ebx + 0x74]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101d3368]
mov ecx, edi
call esi
mov dword [ebx + 0x3c], eax
mov ecx, ebx
call fcn.1017add0
mov ecx, dword [ebx + 0x18]
call fcn.101821f0
mov eax, dword [ebx + 0x2c]
mov ecx, ebx
push 0
dec eax
push 0xe
mov dword [ebx + 0x30], eax
call fcn.1017c2b0
cmp dword [ebx + 0x24], 1
jne 0x1017bdfd
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1017c00c
push eax
lea ecx, [ebx + 0x40]
call fcn.1017a970
xor esi, esi
cmp esi, 1
jae 0x1017bdf1
lea ecx, [ebx + 0x20]
call fcn.1017abe0
inc esi
jmp 0x1017bde1
mov dword [ebx + 0x1c], 0
jmp 0x1017bfab
movaps xmm0, xmmword [0x1020b2f0]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x54], 0x102347e4
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movsd qword [ebp - 0x44], xmm0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x40]
call fcn.1017a970
cmp dword [ebp - 0x3c], 0
mov dword [ebx + 0x1c], 4
je 0x1017be66
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1017be56
push eax
call fcn.10186693
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1017be66
push eax
call fcn.10186693
add esp, 4
mov eax, dword [ebp - 0x54]
cmp eax, 0x102347e4
je 0x1017bfab
push eax
call fcn.10186693
add esp, 4
jmp 0x1017bfab
mov esi, dword [ebp + 8]
mov dword [esi], 0x102347e4
mov dword [ebp - 4], 6
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
lea ecx, [ebx + 0x40]
mov byte [ebp - 4], 7
push ecx
mov ecx, esi
call fcn.1017a970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
lea ecx, [ebp - 0x1c]
call fcn.1017aa60
push 0x1022a074
mov eax, ecx
push eax
call fcn.101878e5
push 0x22
lea ecx, [ebp - 0x20]
call fcn.1017aa60
push 0x1022a074
mov eax, ecx
push eax
call fcn.101878e5
int3
Function at 0x101a1ce7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a1b5d

Function at 0x101a7da9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a78f6

Function at 0x101aaecb
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x101aaed2
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x101aaecd
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x101aaeb7
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x101aaebf
cmp edx, ebx
jne 0x101ab00d
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x101aae8e
add eax, dword [eax + 4]
jmp 0x101aae7b
mov dword [ebp + 0xc], ebx
jmp 0x101aaedd
push es

Function at 0x101aaf31
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x101aaef5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x101aaf13
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x101aaf71
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x101aaf58
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x101aaf61
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x101aaf6b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x101aaf4d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x101aaed7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x101aafbe
dec eax
je 0x101aafb5
sub eax, 3
je 0x101aafac
mov dword [ebp - 4], 0x40
jmp 0x101aafdb
mov dword [ebp - 4], 4
jmp 0x101aafc1
mov dword [ebp - 4], 0x20
jmp 0x101aafc1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x101ab00d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x101aaf8d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.101aa81e
mov al, byte [0xff67238d]
jne 0x101ab018
push 1
push esi
call edi
mov eax, esi
jmp 0x101ab019
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b8f60
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.101b8f70

Function at 0x101b91f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x101b91fc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.101b9210
Function at 0x4049f0
Capabilities:
Get common file path
Get disk information
Get hostname
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2160
call fcn.0040fb80
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44c3c8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44c3cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004049e0
mov ecx, dword [0x44c3d0]
mov edx, dword [0x44c3d4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a60
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x45a8c4]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a8c
mov dword [0x45a8c0], 0xedeb2e40
jmp 0x404aa7
cmp eax, 0x3eb
jne 0x404aa7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x45a350], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x45a8c4], 0x9e6
mov dword [0x45a8bc], 0xf4ea3dee
jne 0x404ae2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x45a8c4], 0x213
jne 0x404b80
push 0
lea eax, [ebp - 0x1960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x960]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x2160]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x45a8c4], 0xc
jne 0x404b9e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404bf0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040fb80
mov eax, dword [0x45a8c4]
mov ecx, dword [0x45a354]
shr eax, 3
test eax, eax
jbe 0x404d0a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x45a8c4], 0x959
jne 0x404cf0
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004049f0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404c30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b540]
jne 0x408d56
repz ret
jmp fcn.0040d00b

Function at 0x40c043
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a3ed
and dword [ebp - 4], 0
cmp dword [0x4515a0], 0
mov ebx, eax
jne 0x40c0f4
push 0x4024fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c1a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024f0
push edi
call esi
test eax, eax
je 0x40c1a5
push eax
call fcn.0040a37b
mov dword [esp], 0x4024e0
push edi
mov dword [0x4515a0], eax
call esi
push eax
call fcn.0040a37b
mov dword [esp], 0x4024cc
push edi
mov dword [0x4515a4], eax
call esi
push eax
call fcn.0040a37b
mov dword [esp], 0x4024b0
push edi
mov dword [0x4515a8], eax
call esi
push eax
call fcn.0040a37b
pop ecx
mov dword [0x4515b0], eax
test eax, eax
je 0x40c0f4
push 0x402498
push edi
call esi
push eax
call fcn.0040a37b
pop ecx
mov dword [0x4515ac], eax
mov eax, dword [0x4515ac]
cmp eax, ebx
je 0x40c14c
cmp dword [0x4515b0], ebx
je 0x40c14c
push eax
call fcn.0040a3f6
push dword [0x4515b0]
mov esi, eax
call fcn.0040a3f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c14c
test edi, edi
je 0x40c14c
call esi
test eax, eax
je 0x40c143
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c143
test byte [ebp - 0xc], 1
jne 0x40c14c
or dword [ebp + 0x10], 0x200000
jmp 0x40c185
mov eax, dword [0x4515a4]
cmp eax, ebx
je 0x40c185
push eax
call fcn.0040a3f6
pop ecx
test eax, eax
je 0x40c185
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c185
mov eax, dword [0x4515a8]
cmp eax, ebx
je 0x40c185
push eax
call fcn.0040a3f6
pop ecx
test eax, eax
je 0x40c185
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4515a0]
call fcn.0040a3f6
pop ecx
test eax, eax
je 0x40c1a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c1a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401245
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x4012e1
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
call esi
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401269
sub eax, ecx
sar eax, 1
add eax, edi
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4012e3
push edi
push ebx
call esi
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4012a1
push 0x5c
pop ecx
mov word [ebx + eax*2], cx
inc eax
mov ecx, dword [ebp + 8]
xor edx, edx
lea edi, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4012a9
sub ecx, edi
sar ecx, 1
je 0x4012e1
lea ecx, [ebx + eax*2]
mov eax, dword [ebp + 8]
mov si, word [eax + edx*2]
mov word [ecx], si
inc edx
add ecx, 2
lea esi, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x4012ce
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x4012bd
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret