joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10015b28
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x10015b1d
cmp dword [edi + 0x7c], ebx
je 0x10015b37
call fcn.10015f00
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10015880
add esp, 0xc
test eax, eax
je 0x10015b5d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.10051230
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x10015b9f
push 0x4000
call fcn.10051230
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x10015bab
push ebp
call fcn.10051153
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x10015bf4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.10014970
test eax, eax
jne 0x10015bf4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x10015c1e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x10015c27
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x10015c64
mov cl, byte [esi]
cmp cl, bl
je 0x10015c64
call fcn.100146b0
add esi, 1
jne 0x10015c54
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x10015f80
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x10016020
cmp dword [esi + 4], 0xffffffff
jne 0x10016020
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x10015fb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10015fb0
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp cx, 0x5c
je 0x10015fea
cmp cx, 0x2f
je 0x10015fea
mov ecx, 0x2f
xor edx, edx
mov word [esi + eax*2 + 0x244], cx
mov word [esi + eax*2 + 0x246], dx
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
call fcn.10014dc0
add esp, 4
test eax, eax
jne 0x10016007
mov eax, dword [esp + 8]
pop edi
ret 4
call fcn.100151f0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 4
mov eax, 0x1000000
pop edi
ret 4

Function at 0x10016670
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push edi
mov edi, dword [esp + 0x428]
test ebx, ebx
je 0x1001670f
push 0x104
push ebx
lea eax, [esp + 0x21c]
push 0x104
push eax
call fcn.10055134
lea eax, [esp + 0x224]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100166c4
sub eax, edx
sar eax, 1
je 0x100166f0
lea ecx, [esp + eax*2 + 0x212]
movzx eax, word [ecx]
cmp ax, 0x2f
je 0x100166eb
cmp ax, 0x5c
jne 0x100166f0
xor edx, edx
mov word [ecx], dx
lea eax, [esp + 0x214]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x1001670f
push 0
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x100167f9
mov ecx, edi
mov edx, edi
movzx eax, ax
cmp ax, 0x2f
je 0x1001672e
cmp ax, 0x5c
jne 0x10016730
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x10016722
cmp ecx, edi
je 0x10016774
sub ecx, edi
sar ecx, 1
push esi
add ecx, ecx
mov esi, ecx
push esi
lea edx, [esp + 0x21c]
push edi
push edx
call fcn.100508e0
lea ecx, [esp + 0x224]
push ecx
xor eax, eax
push ebx
mov word [esp + esi + 0x22c], ax
call fcn.10016670
add esp, 0x14
pop esi
xor edx, edx
mov word [esp + 0xc], dx
test ebx, ebx
je 0x10016797
push 0x104
push ebx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.10055134
add esp, 0x10
xor ecx, ecx
lea eax, [esp + 0xc]
mov word [esp + 0x212], cx
lea edx, [eax + 2]
jmp 0x100167b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100167b0
sub eax, edx
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
push edi
push ecx
lea edx, [esp + eax*2 + 0x18]
push edx
call fcn.10055134
add esp, 0x10
lea ecx, [esp + 0xc]
xor eax, eax
push ecx
mov word [esp + 0x216], ax
call ebp
cmp eax, 0xffffffff
jne 0x100167f9
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004ea1f
add esp, 0x414
ret
Function at 0x10018300
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push ebp
push esi
push edi
mov dword [eax], vtable.CRC32.0
xor ebx, ebx
lea esi, [eax + 4]
nop
xor ecx, ecx
test bl, 1
je 0x1001831c
mov ecx, 0x80
mov edx, ebx
shr edx, 1
test dl, 1
je 0x10018328
or ecx, 0x40
shr edx, 1
test dl, 1
je 0x10018332
or ecx, 0x20
shr edx, 1
test dl, 1
je 0x1001833c
or ecx, 0x10
shr edx, 1
test dl, 1
je 0x10018346
or ecx, 8
shr edx, 1
test dl, 1
je 0x10018350
or ecx, 4
shr edx, 1
test dl, 1
je 0x1001835a
or ecx, 2
test dl, 2
je 0x10018362
or ecx, 1
shl ecx, 0x18
mov edx, ecx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
mov ecx, edx
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add edx, edx
and ecx, 0x4c11db7
xor ecx, edx
mov edx, ecx
and edx, 0x80000000
neg edx
sbb edx, edx
add ecx, ecx
and edx, 0x4c11db7
xor edx, ecx
xor edi, edi
mov dword [esi], edx
lea ecx, [edi + 0x1f]
lea esp, [esp]
test dl, 1
je 0x1001842e
mov ebp, 1
shl ebp, cl
or edi, ebp
dec ecx
shr edx, 1
cmp ecx, 0xffffffff
jg 0x10018420
mov dword [esi], edi
inc ebx
add esi, 4
cmp ebx, 0xff
jle 0x10018310
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10018730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10082960]
mov dword [ebp - 4], eax
jmp 0x10018749
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10018766
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 0x10018740
mov esp, ebp
pop ebp
ret
Function at 0x10018770
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x10082970], eax
je 0x1001878e
mov eax, 0x10dd
jmp 0x1001886f
mov eax, dword [0x10082980]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001880c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100187ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100187ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100188e0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1004ea14
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10018796
mov dword [0x10082980], 0
call fcn.10018880
mov ecx, dword [0x1008297c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10018859
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1004ea14
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x10018824
mov dword [0x1008297c], 0
mov dword [0x10082970], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018de0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10018df5
xor eax, eax
jmp 0x10018e6a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x10018e22
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x10018e65
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x10018e63
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10018e5f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10018e63
xor eax, eax
jmp 0x10018e6a
jmp 0x10018e19
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10018f10
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10082974], 0
je 0x10018f29
mov eax, dword [0x10082974]
jmp 0x10018fc9
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10018f3b
xor eax, eax
jmp 0x10018fc9
push 8
call fcn.1004f246
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10018f91
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x10018f7a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1004ea14
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x10082974], eax
mov dword [0x10082978], 0
mov eax, dword [ebp - 4]
jmp 0x10018fc9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x10018fab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10018f5b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x1008297c]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x1008297c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100197f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100198c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100198ac
cmp dword [ebp - 4], 0x50000000
jb 0x1001982c
cmp dword [ebp - 4], 0x80000000
ja 0x1001982c
mov dword [ebp - 4], 0x80010000
jmp 0x10019805
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10050860
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
jne 0x10019852
jmp 0x100198ac
cmp dword [ebp - 0x10], 0x10000
jne 0x10019895
cmp dword [ebp - 0x14], 0x10000
jb 0x10019895
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10019888
mov eax, dword [ebp - 0x24]
jmp 0x100198ae
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100198a7
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.100198c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10019805
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100198f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100199c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100199b4
cmp dword [ebp - 4], 0x50000000
jb 0x10019931
cmp dword [ebp - 4], 0x80000000
ja 0x10019931
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001990a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10050860
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
jne 0x10019957
jmp 0x100199b4
cmp dword [ebp - 0x10], 0x10000
jne 0x1001999a
cmp dword [ebp - 0x14], 0x10000
jb 0x1001999a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1001998d
mov eax, dword [ebp - 0x24]
jmp 0x100199b6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100199af
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.100199c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001990a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100199f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x10082970], eax
je 0x10019a15
mov eax, 0x10dd
jmp 0x10019bad
cmp dword [0x10082974], 0
je 0x10019a28
mov eax, dword [0x10082974]
jmp 0x10019bad
cmp dword [ebp + 8], 0
jne 0x10019a38
mov eax, 6
jmp 0x10019bad
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10019a61
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x10082974], ecx
mov edx, dword [ebp + 8]
mov dword [0x10082978], edx
mov eax, dword [ebp - 0xc]
jmp 0x10019bad
push 0x18
call fcn.1004f246
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10019aba
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x10082974], ecx
cmp dword [ebp - 0x18], 0
je 0x10019aa9
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.1004ea14
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10082978], ecx
mov eax, dword [ebp - 0xc]
jmp 0x10019bad
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10018470
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10018470
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x10019afa
cmp dword [ebp - 8], 0x1e
jbe 0x10019b16
mov dword [ebp - 0xc], 9
cmp dword [0x10082968], 0
je 0x10019b11
jmp 0x10019a8a
jmp 0x10019a81
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10019b3d
mov dword [ebp - 0xc], 9
cmp dword [0x10082968], 0
je 0x10019b38
jmp 0x10019a8a
jmp 0x10019a81
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x10019b6a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x10019a81
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10082980]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10082980], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10019f90
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1007d128
push 0x100506d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x100810f0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
jne 0x10019fd5
mov dword [ebp - 0x1c], 0x10000
jmp 0x10019fe0
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.10050860
add esp, 0xc
jmp 0x10019ffb
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
test eax, eax
jne 0x1001a018
jmp 0x1001a137
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x1001a02c
jmp 0x1001a137
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x1001a03c
jmp 0x1001a137
cmp dword [ebp - 0x28], 0x1000
jne 0x1001a05d
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x1001a05d
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x1001a05f
jmp 0x10019ff2
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001a08c
mov dword [ebp - 4], 0xfffffffe
jmp 0x10019ff2
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x1001a0a6
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x1001a0a6
cmp dword [ebp - 0x44], 0x40
jae 0x1001a0b2
mov dword [ebp - 4], 0xfffffffe
jmp 0x10019ff2
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
jne 0x1001a0de
mov dword [ebp - 4], 0xfffffffe
jmp 0x10019ff2
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x1001a0f5
mov dword [ebp - 4], 0xfffffffe
jmp 0x10019ff2
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x1001a139
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.1004ea1f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001abf0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x34], 0
jne 0x1001ac0e
mov ecx, dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x1001ac41
xor eax, eax
jmp 0x1001acb5
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x30], 0
je 0x1001ac61
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0xc], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10019bc0
test eax, eax
jne 0x1001ac86
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
xor eax, eax
jmp 0x1001acb5
cmp dword [ebp + 0x2c], 0
je 0x1001ac9e
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
call fcn.100508e0
add esp, 0xc
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x1001acb0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1001b180
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1007d168
push 0x100506d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x100810f0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1001b1ca
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1001b200
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1001b38b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1001b238
push 0xbf
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1001b38b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x1001b264
push 0xc0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x1001b38b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1001b287
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x1001b336
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
add eax, dword [ebp - 0x20]
push eax
call fcn.10050e70
add esp, 8
test eax, eax
jne 0x1001b331
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x1001b2d2
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x10], 0
jne 0x1001b2d4
jmp 0x1001b336
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x40
jb 0x1001b301
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x727444
je 0x1001b303
jmp 0x1001b336
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x1001b317
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1001b38b
jmp 0x1001b27e
push 0xc0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1001b38b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4