joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106ee5c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
cmp ebx, edi
jae 0x106ef6b
mov eax, 0xe3
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
add esi, ebx
add edx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], esi
cmp ebx, esi
jae 0x106ef4c
movzx ecx, byte [ebx + 1]
movzx esi, byte [ebx]
movzx edi, byte [edx + 1]
movzx edx, byte [edx]
mov dword [ebp - 4], ecx
mov ebx, edx
and ebx, eax
mov ecx, esi
and ecx, eax
add ecx, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
add ecx, ebx
mov dword [ebp - 0x1c], edx
and edx, 0x1c
mov ebx, edi
and ebx, eax
lea ebx, [ecx + ebx + 0x42]
mov ecx, esi
and ecx, 0x1c
add ecx, edx
mov edx, dword [ebp - 4]
and edx, 0x1c
add ecx, edx
shr ebx, 2
mov edx, edi
and edx, 0x1c
lea ecx, [ecx + edx + 8]
shr ecx, 2
xor bl, cl
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
and ecx, eax
and esi, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edi, eax
and bl, 0x1c
lea ecx, [esi + edi + 0x42]
shr ecx, 2
xor bl, cl
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], bl
mov ebx, dword [ebp - 0xc]
inc ebx
inc ebx
inc edx
inc edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
cmp ebx, dword [ebp - 0x20]
jb 0x106eeb4
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jb 0x106ee96
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x106f008
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ecx + 4]
push esi
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x6c]
imul eax, dword [ecx + 0x60]
push edi
mov edi, dword [ecx + 0x20]
add eax, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], eax
cmp edi, eax
jae 0x106f127
mov edx, 0xe3
mov eax, 0xff1c
push ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x68]
lea ecx, [edi + ecx*2]
add esi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], ecx
cmp edi, ecx
jae 0x106f103
movzx ecx, word [esi + 2]
mov dword [ebp - 8], ecx
movzx ecx, word [edi + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [esi]
movzx esi, word [edi]
mov ebx, ecx
and ebx, edx
mov edi, esi
and edi, edx
add edi, ebx
mov ebx, dword [ebp - 4]
and ebx, edx
add edi, ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
and ecx, eax
and ebx, edx
lea edi, [edi + ebx + 0x42]
mov ebx, esi
and ebx, eax
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add ebx, ecx
mov ecx, dword [ebp - 8]
and ecx, eax
lea ecx, [ebx + ecx + 0x208]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x20]
and ecx, eax
and esi, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 8]
and ecx, eax
lea ecx, [esi + ecx + 0x208]
mov esi, dword [ebp - 0x14]
and edi, edx
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0xc], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add edi, 4
add esi, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
cmp edi, dword [ebp - 0x24]
jb 0x106f064
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 0x18]
add esi, dword [ebx + 0x60]
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x60]
lea edi, [edi + ebx*2]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 0x2c]
jb 0x106f045
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x106f22d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x6c]
imul ebx, dword [edx + 0x60]
push edi
mov edi, dword [edx + 0x20]
add ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], ebx
cmp edi, ebx
jae 0x106f343
mov eax, 0xff00
push esi
mov esi, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
lea edx, [edi + edx*2]
add esi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], edx
cmp edi, edx
jae 0x106f323
movzx ebx, word [esi]
movzx edx, word [edi + 2]
movzx ecx, word [esi + 2]
mov dword [ebp - 4], edx
movzx edx, word [edi]
movzx edi, bl
movzx esi, dl
add esi, edi
movzx edi, byte [ebp - 4]
add esi, edi
movzx edi, cl
lea edi, [esi + edi + 2]
mov dword [ebp - 0xc], ebx
mov esi, edx
and esi, eax
and ebx, eax
add esi, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
add esi, ebx
mov ebx, ecx
shr edi, 2
and ebx, eax
lea esi, [esi + ebx + 0x200]
shr esi, 2
xor edi, esi
mov esi, dword [ebp - 0xc]
and esi, eax
and edx, eax
add edx, esi
mov esi, dword [ebp - 4]
and esi, eax
add edx, esi
mov esi, dword [ebp - 0x14]
and ecx, eax
and edi, 0xff
lea ecx, [edx + ecx + 0x200]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add edi, 4
add esi, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
cmp edi, dword [ebp - 0x20]
jb 0x106f286
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov edx, dword [edx]
mov esi, dword [edx + 0x60]
lea edi, [edi + esi*2]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jb 0x106f267
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x106f34e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
cmp ebx, edi
jae 0x106f45d
mov eax, 0xf0
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
add esi, ebx
add edx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], esi
cmp ebx, esi
jae 0x106f43e
movzx ecx, byte [ebx + 1]
movzx esi, byte [ebx]
movzx edi, byte [edx + 1]
movzx edx, byte [edx]
mov dword [ebp - 4], ecx
mov ebx, edx
and ebx, eax
mov ecx, esi
and ecx, eax
add ecx, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
add ecx, ebx
mov dword [ebp - 0x1c], edx
and edx, 0xf
mov ebx, edi
and ebx, eax
lea ebx, [ecx + ebx + 0x20]
mov ecx, esi
and ecx, 0xf
add ecx, edx
mov edx, dword [ebp - 4]
and edx, 0xf
add ecx, edx
shr ebx, 2
mov edx, edi
and edx, 0xf
lea ecx, [ecx + edx + 2]
shr ecx, 2
xor bl, cl
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
and ecx, eax
and esi, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edi, eax
and bl, 0xf
lea ecx, [esi + edi + 0x20]
shr ecx, 2
xor bl, cl
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], bl
mov ebx, dword [ebp - 0xc]
inc ebx
inc ebx
inc edx
inc edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
cmp ebx, dword [ebp - 0x20]
jb 0x106f3a6
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jb 0x106f388
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x107e991
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x2000000
xor edi, edi
push edi
push 0x101afd0
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x107ea07
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x101f02c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.KERNEL32.dll_RegQueryValueExA]
test eax, eax
jne 0x107e9fe
cmp dword [ebp - 0xc], 4
jne 0x107e9fe
cmp dword [ebp - 0x10], edi
je 0x107e9fe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov dword [0x108f378], edi
xor eax, eax
jmp 0x107ea46
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [0x108f378], edi
jge 0x107ea41
lea eax, [ebp - 0x34]
push eax
mov dword [0x108f378], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x107ea41
cmp word [ebp - 0x14], 5
jb 0x107ea41
call fcn.0107e878
test eax, eax
je 0x107ea41
emms
mov dword [0x108f378], 1
mov eax, dword [0x108f378]
pop edi
leave
ret

Function at 0x107ea4e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x108e1f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x107ea97
inc eax
jmp 0x107ead4
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x107eac8
cmp dword [ebp - 0x94], 4
ja 0x107eac4
jne 0x107ead4
cmp dword [ebp - 0x90], 0xa
jb 0x107ead4
mov ecx, 0x55d
cmp word [ebp - 0x8c], cx
jb 0x107ead4
xor eax, eax
jmp 0x107ead4
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01034b69
leave
ret

Function at 0x107eae5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x108e1f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x107eb42
cmp dword [ebp - 0x88], 2
jne 0x107eb42
cmp dword [ebp - 0x94], 5
jb 0x107eb42
xor eax, eax
inc eax
jmp 0x107eb44
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01034b69
leave
ret
Function at 0x10015e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10015ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10015ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10016440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10016473
call fcn.100165a0
jmp 0x10016475
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10016840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1001686a
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x1001686a
mov dword [ebp - 8], 1
jmp 0x10016871
mov dword [ebp - 8], 0
movzx eax, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10017d80
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10073040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x10017dc0
call fcn.100165a0
jmp 0x10017ed0
cmp dword [ebp - 0x41c], 0x100
jbe 0x10017dd6
mov eax, 0x80020013
jmp 0x10017ed0
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x10049168
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10017dff
call fcn.100165a0
jmp 0x10017ed0
mov eax, 2
imul ecx, eax, 0x103
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x10017e1e
jmp 0x10017e23
call fcn.100058b5
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x20c], dx
push 0
push 0x2100
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0xffffffff
jne 0x10017e68
call fcn.100165a0
jmp 0x10017ed0
push 0
lea edx, [ebp - 0x42c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x10017e9c
call fcn.100165a0
jmp 0x10017ed0
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x10017ebf
call fcn.100165a0
jmp 0x10017ed0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.10001cd0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005405
mov esp, ebp
pop ebp
ret
Function at 0x10018390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100420b3
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10073040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x1001841a
mov ecx, dword [ebp + 8]
call fcn.10001750
mov dword [ebp - 0x1c], eax
push 0x10049014
lea ecx, [ebp - 0x2c]
call fcn.100050b0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.100017a0
push eax
mov ecx, dword [ebp - 0x28]
call fcn.10004d90
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb0]
call edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10005040
movzx eax, byte [ebp + 0x10]
test eax, eax
jne 0x1001843d
cmp dword [ebp - 0x10], 0
jl 0x1001843d
push 0
mov ecx, dword [ebp + 0xc]
call fcn.100017c0
movzx ecx, al
test ecx, ecx
je 0x1001857d
push 0x10049040
push 0x10049054
mov edx, dword [0x1007e094]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001847f
mov eax, dword [ebp - 0x10]
push eax
push 0x76
push 0x86
push 0x82
call fcn.10017f80
add esp, 0x10
mov eax, 0x80004005
jmp 0x1001857f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x1007e094]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x1007e094]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10016900
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.10001750
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
call fcn.100017a0
push eax
lea ecx, [ebp - 0x14]
call fcn.10001660
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb4]
call edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x10018535
mov eax, dword [ebp - 0x10]
push eax
push 0x76
push 0x87
push 0x82
call fcn.10017f80
add esp, 0x10
mov dword [ebp - 0x3c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100168b0
mov eax, dword [ebp - 0x3c]
jmp 0x1001857f
cmp dword [ebp - 0x10], 0
jge 0x1001856e
mov ecx, dword [ebp - 0x10]
push ecx
push 0x76
push 0x88
push 0x82
call fcn.10017f80
add esp, 0x10
mov dword [ebp - 0x40], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100168b0
mov eax, dword [ebp - 0x40]
jmp 0x1001857f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100168b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10019580
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004224f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10073040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x80004005
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.10001730
mov byte [ebp - 4], 1
push 0x10048f04
lea eax, [ebp + 8]
push eax
call fcn.10003130
add esp, 8
test eax, eax
jl 0x100195e4
mov dword [ebp - 0x20], 1
jmp 0x100195eb
mov dword [ebp - 0x20], 0
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0xd], cl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
push 0x10048f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001962d
push 0
push 0x8c
push 0x72
push 0x8b
call fcn.10017f80
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x100196ee
push str.CLRCreateInstance
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10019667
push 0
push 0x8c
push 0x8d
push 0x8b
call fcn.10017f80
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x100196e4
lea ecx, [ebp - 0x1c]
call fcn.100017a0
push eax
push 0x10048dcc
push 0x10048ddc
call dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x100196aa
mov ecx, dword [ebp - 0x14]
push ecx
push 0x8c
push 0x8e
push 0x8b
call fcn.10017f80
add esp, 0x10
mov dword [ebp - 0x14], 0x80004005
jmp 0x100196e4
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10001660
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp + 8]
push eax
call fcn.10001fb0
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.10019430
add esp, 0x20
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001d60
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001f27
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x1001963
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push 1
push esi
call ebx
mov dword [0x1003040], eax
cmp eax, esi
jne 0x1001f72
push 1
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
mov edi, 0x1003400
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
call ebx
mov dword [0x1003410], eax
cmp eax, esi
jne 0x1001f9c
push dword [0x1003040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f6a
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
push dword [0x1003040]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [0x1003410]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100225f
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002768
call fcn.01002494
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1003464
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002074
cmp eax, esi
jne 0x1002067
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002077
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100204e
xor esi, esi
inc esi
mov eax, dword [0x1003460]
cmp eax, esi
jne 0x100208a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10020c5
mov eax, dword [0x1003460]
test eax, eax
jne 0x10020bf
mov dword [0x1003460], esi
push 0x1001144
push 0x1001138
call fcn.01001fca
pop ecx
pop ecx
test eax, eax
je 0x10020c5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100218f
mov dword [0x1003074], esi
mov eax, dword [0x1003460]
cmp eax, esi
jne 0x10020e9
push 0x1001134
push 0x100112c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003460], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10020f6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003468], ebx
je 0x1002117
push 0x1003468
call fcn.01002409
pop ecx
test eax, eax
je 0x1002117
push ebx
push 2
push ebx
call dword [0x1003468]
push dword [0x100305c]
push dword [0x1003060]
push dword [0x1003058]
call fcn.01001f27
add esp, 0xc
mov dword [0x1003070], eax
cmp dword [0x1003064], ebx
jne 0x1002175
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1003074], ebx
jne 0x1002183
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003070]
call fcn.010024d9
ret
call fcn.010025b7
jmp 0x100202c
Function at 0x409d20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f4b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx], 0x4680b4
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x4680c8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0x4680ec
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x4680a0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0x24
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0043e6d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0043e6d0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00442c50
mov ecx, dword [ebp - 0x20]
add ecx, 0x28
call fcn.0043e6d0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.00456d10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret