joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df270
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
cmp ebx, 7
push edi
jle 0x4df280
sub ebx, 0x10
mov edi, dword [esp + 0x2c]
cmp edi, 7
jle 0x4df28c
sub edi, 0x10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, ecx
sub ecx, edi
imul ecx, edx
imul eax, edx
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
sub ecx, ebx
add eax, esi
add ecx, esi
mov esi, dword [esp + 0x18]
lea eax, [ebp + eax*2]
lea ecx, [esi + ecx*2]
lea esi, [edx + edx]
sub ecx, eax
mov edx, 0x10
mov di, word [ecx + eax]
mov word [eax], di
mov di, word [ecx + eax + 2]
mov word [eax + 2], di
mov di, word [ecx + eax + 4]
mov word [eax + 4], di
mov di, word [ecx + eax + 6]
mov word [eax + 6], di
mov di, word [ecx + eax + 8]
mov word [eax + 8], di
mov di, word [ecx + eax + 0xa]
mov word [eax + 0xa], di
mov di, word [ecx + eax + 0xc]
mov word [eax + 0xc], di
mov di, word [ecx + eax + 0xe]
mov word [eax + 0xe], di
mov di, word [ecx + eax + 0x10]
mov word [eax + 0x10], di
mov di, word [ecx + eax + 0x12]
mov word [eax + 0x12], di
mov di, word [ecx + eax + 0x14]
mov word [eax + 0x14], di
mov di, word [ecx + eax + 0x16]
mov word [eax + 0x16], di
mov di, word [ecx + eax + 0x18]
mov word [eax + 0x18], di
mov di, word [ecx + eax + 0x1a]
mov word [eax + 0x1a], di
mov di, word [ecx + eax + 0x1c]
mov word [eax + 0x1c], di
mov di, word [ecx + eax + 0x1e]
mov word [eax + 0x1e], di
add eax, esi
dec edx
jne 0x4df2c1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e18e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [esp + 0x270]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
lea ebx, [esp + 0x164]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 0x44
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], edx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x274]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dword [esp + 0x18], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x1c], edx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x60]
neg ecx
sbb ecx, ecx
mov dword [esp + 0x20], edx
and ecx, eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push edx
push edx
push edx
lea ecx, [esp + 0x180]
push edx
push ecx
push edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov word [esp + 0x64], dx
mov word [esp + 0x66], dx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x4e19e0
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
add esp, 0x25c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x10b
sete cl
mov dword [0xd83820], ecx
or eax, 0xffffffff
add esp, 0x25c
ret
Function at 0x4e1a00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x510
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 1
push 0
push str..html
push connect
mov dword [esp + 0x28], 0x104
call ebx
test eax, eax
jne 0x4e1ad2
lea ecx, [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x120]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x636af0
push eax
mov dword [esp + 0x30], 0x400
call ebp
test eax, eax
jne 0x4e1ad2
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x128]
push 0
push ecx
push connect
call ebx
test eax, eax
jne 0x4e1ad2
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0x636af0
push ecx
call ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x4e1adf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x510
ret
lea edx, [esp + 0x1c]
push 0x50cf20
push edx
call fcn.004ee570
add esp, 8
test eax, eax
je 0x4e1af8
mov byte [eax], 0
mov edi, 0x5199ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x528]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x52c]
mov edx, dword [esp + 0x524]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.004e18e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
Function at 0x4e2470
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4e25fd
cmp byte [eax], 0
je 0x4e25fd
push edi
push 0x51e29c
push eax
call fcn.004ee0e7
mov edi, eax
add esp, 8
test edi, edi
je 0x4e24c0
push 2
push 0
push edi
call fcn.004f0011
push edi
call fcn.004efa23
push edi
mov dword [esi + 8], eax
call fcn.004edeb7
add esp, 0x14
jmp 0x4e24c7
mov dword [esi + 8], 0
mov eax, dword [esi + 0x10]
push 0
push 0x10000080
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4e2551
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 8
jne 0x4e2501
push 0
call fcn.004c10d0
add esp, 4
mov al, byte [esp + 0x10c]
test al, al
je 0x4e253c
mov ecx, dword [esi + 0x10]
push edi
push ecx
lea edx, [esp + 0x10]
push str.Failed_to_open_mmf__s:_Error__d.
push edx
call fcn.004ee486
mov ecx, dword [0xd83fc4]
add esp, 0x10
lea eax, [esp + 8]
push 0
push str.MMF_Error
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
pop edi
pop esi
add esp, 0x100
ret 4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4e25d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 8
jne 0x4e2580
push 0
call fcn.004c10d0
add esp, 4
mov al, byte [esp + 0x10c]
test al, al
je 0x4e25bb
mov edx, dword [esi + 0x10]
push edi
push edx
lea eax, [esp + 0x10]
push str.Failed_to_create_mapping_for_mmf__s:_Error__d.
push eax
call fcn.004ee486
mov edx, dword [0xd83fc4]
add esp, 0x10
lea ecx, [esp + 8]
push 0
push str.MMF_Error
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
pop edi
pop esi
add esp, 0x100
ret 4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4e25ef
push eax
call fcn.004c10d0
add esp, 4
mov eax, dword [esi + 0xc]
pop edi
pop esi
add esp, 0x100
ret 4
xor eax, eax
pop esi
add esp, 0x100
ret 4
Function at 0x4e5ac0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0xd83fc4]
push ebx
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e5b7e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x4e5aeb
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
ret
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [0x80c34c]
test ecx, ecx
jne 0x4e5b17
cmp edi, 0xf0
jle 0x4e5b4e
mov edi, 0xf0
jmp 0x4e5b4e
mov edx, dword [ecx]
call dword [edx + 0x10c]
test eax, eax
jne 0x4e5b44
mov ecx, dword [0x80c34c]
mov eax, dword [ecx]
call dword [eax + 0x110]
test eax, eax
jne 0x4e5b44
cmp edi, 0x3e8
jle 0x4e5b53
mov edi, 0x3e8
jmp 0x4e5b53
cmp edi, 0x50
jle 0x4e5b4e
mov edi, 0x50
mov ebp, 1
xor esi, esi
test edi, edi
jle 0x4e5b75
test ebp, ebp
je 0x4e5b63
cmp byte [esi + ebx], 0xd
je 0x4e5b75
movsx ecx, byte [esi + ebx]
push ecx
call fcn.004c1a10
add esp, 4
inc esi
cmp esi, edi
jl 0x4e5b59
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4e7830
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4e7853
push 1
call fcn.004edfc3
ret

Function at 0x4eb460
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
test ebx, ebx
jne 0x4eb475
mov eax, dword [esp + 0x1c]
xor edi, eax
mov ebp, 4
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x10], cl
mov al, cl
mov edx, dword [esp + 0x10]
and al, 0x80
and edx, 0xff
neg al
sbb eax, eax
mov esi, edx
and eax, 0x14d
and esi, 0x7f
and eax, 0xff
and cl, 1
shl esi, 1
xor esi, eax
mov eax, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr eax, 1
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, edi
shl eax, 8
xor eax, edx
dec ebp
mov edi, eax
jne 0x4eb47c
inc ebx
cmp ebx, 2
jl 0x4eb469
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4eb4f0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0xd84a40
mov dl, byte [edi + 0x564570]
mov al, dl
mov cl, dl
and al, 2
mov bl, dl
neg al
sbb al, al
and cl, 1
and eax, 0xb4
mov byte [esp + 0xd], cl
neg cl
sbb cl, cl
and ecx, 0x5a
shr bl, 2
xor bl, cl
mov byte [esp + 0xe], cl
xor bl, al
mov cl, dl
xor bl, dl
shr cl, 1
mov byte [esp + 0x10], bl
mov bl, byte [esp + 0xd]
xor cl, dl
shr cl, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor cl, bl
mov bl, byte [esp + 0xe]
xor cl, bl
mov bl, byte [edi + 0x564670]
xor cl, al
mov al, bl
and al, 2
xor cl, dl
neg al
sbb al, al
and eax, 0xb4
mov byte [esp + 0xd], al
mov al, bl
and al, 1
mov byte [esp + 0xe], al
neg al
sbb al, al
and eax, 0x5a
shr bl, 2
mov byte [esp + 0xf], al
xor bl, al
mov al, byte [esp + 0xd]
xor bl, al
mov al, byte [edi + 0x564670]
xor bl, al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], bl
mov bl, byte [esp + 0x13]
shr al, 1
xor al, bl
mov bl, byte [esp + 0xe]
shr al, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor al, bl
mov bl, byte [esp + 0xf]
xor al, bl
mov bl, byte [esp + 0xd]
xor al, bl
mov bl, byte [edi + 0x564670]
xor al, bl
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0x11]
mov byte [esp + 0x16], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x17], al
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x14], cl
mov dword [esi - 0x400], ebx
mov bl, byte [esp + 0x10]
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], dl
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x15], al
mov dword [esi], ebx
mov bl, byte [esp + 0x11]
mov byte [esp + 0x14], bl
mov bl, byte [edi + 0x564670]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x15], dl
mov dword [esi + 0x400], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x14], al
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
add esi, 4
mov ecx, dword [esp + 0x14]
inc edi
mov dword [esi + 0x7fc], ecx
cmp esi, 0xd84e40
jl 0x4eb4fd
pop edi
pop esi
mov dword [0x564770], 0
pop ebx
add esp, 0xc
ret
Function at 0x4f8926
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f8946
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5b95
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f8969
test byte [esp + 8], 2
je 0x4f8969
call fcn.004f5c08
mov dword [eax], 0xd
call fcn.004f5c11
mov dword [eax], 5
jmp 0x4f8942
xor eax, eax
ret
Function at 0x1005bc58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1005bc67
pop dword [ebp - 0x30]
mov eax, 0x1005bc67
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x41b9f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x11008b88
add ecx, 0xeeffb814
xor edi, edi
add edi, eax
mov ebx, 0x3b9a0da3
add ebx, 0xd47e665d
add ebx, dword [ebp - 0x30]
mov esi, 0xc6a45bae
add esi, 0x4f48b7dc
xor dword [ebp - 4], 0x3b98d149
mov edx, dword [ebx]
sub dword [ebp - 0x14], esi
add edx, esi
mov dword [edi], edx
sub dword [ebp - 0x24], edx
add edi, 0xce77f045
sub edi, 0xce77f041
add ebx, 0x4103bdf1
sub ebx, 0x4103bded
loop 0x1005bcbe
add eax, 0x9efb843b
add eax, 0x61057d08
mov ebx, eax
add eax, 0x2a7490bd
add eax, 0xd58b6f48
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10072480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1007251b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x100724d2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x100724d2
cmp esi, ebx
jge 0x100724d2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10072515
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10072515
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783d8]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783d8]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1007252d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10072750
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
mov eax, dword [ebp + 8]
je 0x10072778
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10072792
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1005bc58
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10076730
leave
ret 4

Function at 0x10072960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10072996
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x100729f5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1005bc58
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1005bc58
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1005bc58
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10076730
leave
ret 0x10
Function at 0x10072a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10072a3c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10072a6d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10072a6b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1005bc58
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10072a6d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10076730
leave
ret 8

Function at 0x4038aa
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
push edi
call fcn.00406889
call fcn.004036af
test eax, eax
setne al
mov byte [0x408048], al
test al, al
jne 0x403939
push 0x104
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
and dword [esp + 0x18], 0
lea eax, [esp + 0x68]
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x1c], str.runas
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
and dword [esp + 0x28], 0
lea edi, [esp + 0x30]
mov dword [esp + 0x24], eax
xor eax, eax
push 7
pop ecx
mov dword [esp + 0x2c], 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.0040698e
neg eax
sbb al, al
inc al
je 0x403990
lea edx, [esp + 0x68]
call fcn.00406a3d
test eax, eax
jne 0x403990
lea ecx, [esp + 8]
mov dword [esp + 8], 8
mov dword [esp + 0xc], 0x8ff
call fcn.00406e0b
call fcn.00403073
test eax, eax
je 0x40398b
jmp 0x40397c
lea ecx, [esp + 0x4c]
call fcn.004047bd
lea ecx, [esp + 0x4c]
call fcn.004047cc
push ecx
push ecx
lea ecx, [esp + 0x54]
call fcn.004047a9
test eax, eax
jne 0x40396a
call fcn.00406a4d
call fcn.00406899
call fcn.00405161
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40414a
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [ecx]
push esi
mov esi, edx
test al, al
je 0x404161
sub ecx, edx
xor al, 0x7f
mov byte [edx], al
inc edx
mov al, byte [ecx + edx]
test al, al
jne 0x404155
mov eax, esi
mov byte [edx], 0
pop esi
ret
Function at 0x10003320
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x10047410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push eax
lea ebx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x6a09e667
mov dword [ebp - 0xac], 0xbb67ae85
mov dword [ebp - 0xa8], 0x3c6ef372
mov dword [ebp - 0xa4], 0xa54ff53a
mov dword [ebp - 0xa0], 0x510e527f
mov dword [ebp - 0x9c], 0x9b05688c
mov dword [ebp - 0x98], 0x1f83d9ab
mov dword [ebp - 0x94], 0x5be0cd19
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x88], ecx
call fcn.100033d0
add esp, 4
mov eax, ebx
call fcn.10003250
mov eax, esi
mov ecx, ebx
call fcn.100030f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001f521
mov esp, ebp
pop ebp
ret
Function at 0x100059e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10042f18
push 0x10024b00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10047410]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x10005a82
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10005a82
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x10005a82
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x10005a82
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005e60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x10058c84], ebx
je 0x10005e79
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x10058c84
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10005e6f
push esi
mov esi, dword [0x10058c78]
mov dword [0x10058c80], ebx
mov dword [0x10058c94], ebx
mov dword [0x10058c90], ebx
mov dword [0x10058c88], ebx
mov dword [0x10058c8c], ebx
cmp esi, ebx
je 0x10005ed6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x10005ec0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005ee0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10058c84], eax
je 0x10005efd
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [0x10058c94]
push edi
test esi, esi
je 0x10005f70
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
xor ecx, ecx
cmp dword [esi + 4], ecx
jne 0x10005f5f
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x10005f5f
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov edi, dword [edx + 8]
mov dword [eax + 0x18], edi
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov edi, dword [esi]
push esi
call fcn.1001f865
add esp, 4
mov esi, edi
test edi, edi
jne 0x10005f10
mov esi, dword [0x10058c78]
mov dword [0x10058c94], 0
test esi, esi
je 0x10005f99
lea edx, [ebp - 8]
push edx
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x10005f84
mov esi, dword [0x10058c90]
test esi, esi
je 0x10005fc7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.1001f865
add esp, 4
mov esi, edi
test edi, edi
jne 0x10005fb0
pop edi
xor eax, eax
pop esi
mov dword [0x10058c90], eax
mov dword [0x10058c84], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006310
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x10058c88]
test eax, eax
jne 0x10006385
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x1000632a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.1001f870
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006340
lea edi, [eax + 8]
jmp 0x1000635d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10006372
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1001f865
add esp, 4
pop esi
mov dword [0x10058c88], edi
mov eax, edi
mov dword [0x10058c8c], 0
pop edi
ret
mov eax, dword [0x10058c90]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x10058c90], esi
xor eax, eax
pop esi
pop edi
ret