joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b56
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x40c59c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x214]
xor eax, eax
mov ebx, ecx
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x258]
pop edi
push edi
push 0
push eax
call fcn.0040a410
or dword [ebp - 0x22c], 0x101
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x258], edi
mov word [ebp - 0x228], ax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
mov esi, 0x4027ac
mov dword [ebp - 0x220], eax
push esi
push 0x4026b4
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402af0
add esp, 0x14
test eax, eax
js 0x402c52
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x258]
push eax
xor eax, eax
push eax
push eax
push 0x400
push 1
push eax
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x402c52
movzx eax, ax
or eax, 0x80070000
jmp 0x402c52
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331a
leave
ret 8

Function at 0x402ce0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40d644]
push ebx
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, eax
mov ecx, edi
xor eax, eax
and ecx, 0x3ff
inc eax
cmp cx, ax
je 0x402d19
cmp cx, 0xd
jne 0x402d1e
mov edi, 0x409
push esi
push 2
lea eax, [ebp - 4]
movzx esi, di
push eax
push 0x2000000b
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 2
lea eax, [ebp - 8]
push eax
push 0x20001004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
pop esi
cmp ebx, 0xfde9
je 0x402d5e
cmp ebx, dword [ebp - 4]
je 0x402d5e
cmp ebx, dword [ebp - 8]
je 0x402d5e
mov edi, 0x409
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.00402da5
cmp eax, 1
jne 0x402da1
and edi, 0x3ff
push edi
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, ebx
push eax
call fcn.00402da5
cmp eax, 1
jne 0x402da1
push 0x409
mov ecx, ebx
call fcn.00402da5
cmp eax, 1
jne 0x402da1
mov eax, 0x80070717
pop edi
pop ebx
leave
ret
Function at 0x403ed2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.00403d1d
mov esi, eax
test esi, esi
je 0x40404f
push 0x4012e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012f0
push esi
mov dword [0x40ce68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012fc
push esi
mov dword [0x40ce6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401308
push esi
mov dword [0x40ce70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x40ce68], 0
mov dword [0x40ce74], eax
je 0x403f48
cmp dword [0x40ce6c], 0
je 0x403f48
cmp dword [0x40ce70], 0
je 0x403f48
test eax, eax
jne 0x403f70
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40ce6c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x40ce70], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40ce68], 0x403a90
mov dword [0x40ce74], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40c574], eax
cmp eax, 0xffffffff
je 0x404054
push dword [0x40ce6c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404054
call fcn.00404282
push dword [0x40ce68]
call fcn.00403b42
push dword [0x40ce6c]
mov dword [0x40ce68], eax
call fcn.00403b42
push dword [0x40ce70]
mov dword [0x40ce6c], eax
call fcn.00403b42
push dword [0x40ce74]
mov dword [0x40ce70], eax
call fcn.00403b42
add esp, 0x10
mov dword [0x40ce74], eax
call fcn.00406985
test eax, eax
je 0x40404f
push 0x403bc0
push dword [0x40ce68]
call fcn.00403acd
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x40f120]
call esi
mov dword [0x40c570], eax
cmp eax, 0xffffffff
je 0x40404f
push 0x214
push 1
call fcn.004069ec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40404f
push edi
push dword [0x40c570]
push dword [0x40ce70]
call fcn.00403acd
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x40f120]
call esi
test eax, eax
jne 0x404059
push edi
call fcn.0040654e
pop ecx
call fcn.0040406c
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.00403df9
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x404056
Function at 0x4044d1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x401008]
je 0x4044f0
inc esi
cmp esi, 0x17
jb 0x4044e1
cmp esi, 0x17
jae 0x404630
push 3
call fcn.004079ee
pop ecx
cmp eax, 1
je 0x4045fa
push 3
call fcn.004079ee
pop ecx
test eax, eax
jne 0x404523
cmp dword [0x40c560], 1
je 0x4045fa
cmp edi, 0xfc
je 0x404630
push 0x4018e0
push 0x314
mov edi, 0x40ceb0
push edi
call fcn.004078ff
add esp, 0xc
test eax, eax
je 0x404558
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040605e
add esp, 0x14
push 0x104
push 0x40cec9
push ebx
mov byte [0x40cfcd], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40459b
push 0x4018fc
push 0x2fb
push 0x40cec9
call fcn.004078ff
add esp, 0xc
test eax, eax
je 0x40459b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040605e
add esp, 0x14
push 0x401914
push 0x314
push edi
call fcn.0040796f
add esp, 0xc
test eax, eax
je 0x4045bf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040605e
add esp, 0x14
push dword [esi*8 + 0x40100c]
push 0x314
push edi
call fcn.0040796f
add esp, 0xc
test eax, eax
je 0x4045e5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040605e
add esp, 0x14
push 0x12010
push 0x401918
push edi
call fcn.00407a3a
add esp, 0xc
jmp 0x404630
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x404630
cmp edx, 0xffffffff
je 0x404630
mov esi, dword [esi*8 + 0x40100c]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404619
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404ded
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x404e4f
push ebx
xor ebx, ebx
push esi
mov esi, edi
cmp word [edi], bx
je 0x404e23
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x404e1e
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x404e0b
sub esi, edi
add esi, 2
push esi
call fcn.0040643a
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x404e44
push esi
push edi
push eax
call fcn.004084c0
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x407460
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40749e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407496
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4074a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407486
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407570
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4075a1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4075a1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4075a1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407a3a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40c59c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.00403bb7
xor esi, esi
mov ebx, eax
cmp dword [0x40d56c], esi
jne 0x407b1a
push esi
push esi
push 0x401c50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x407bfc
push 0x401c68
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407bfc
push eax
call fcn.00403b42
mov dword [esp], 0x401c74
push edi
mov dword [0x40d56c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00403b42
mov dword [esp], 0x401c84
push edi
mov dword [0x40d570], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00403b42
mov dword [esp], 0x401c98
push edi
mov dword [0x40d574], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00403b42
pop ecx
mov ecx, eax
mov dword [0x40d57c], ecx
test ecx, ecx
je 0x407b13
push 0x401cb4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00403b42
pop ecx
mov dword [0x40d578], eax
jmp 0x407b1f
mov eax, dword [0x40d578]
jmp 0x407b25
mov eax, dword [0x40d578]
mov ecx, dword [0x40d57c]
cmp eax, ebx
je 0x407b8b
cmp ecx, ebx
je 0x407b8b
push eax
call fcn.00403acd
push dword [0x40d57c]
mov dword [ebp - 0x14], eax
call fcn.00403acd
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x407b8b
test edi, edi
je 0x407b8b
mov ecx, eax
call dword [0x40f120]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x407b82
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x40f120]
call edi
test eax, eax
je 0x407b82
test byte [ebp - 8], 1
jne 0x407b8b
or dword [ebp + 0x10], 0x200000
jmp 0x407bd4
mov eax, dword [0x40d570]
cmp eax, ebx
je 0x407bd4
push eax
call fcn.00403acd
mov edi, eax
pop ecx
test edi, edi
je 0x407bd4
mov ecx, edi
call dword [0x40f120]
call edi
mov esi, eax
test esi, esi
je 0x407bd4
mov eax, dword [0x40d574]
cmp eax, ebx
je 0x407bd4
push eax
call fcn.00403acd
mov edi, eax
pop ecx
test edi, edi
je 0x407bd4
push esi
mov ecx, edi
call dword [0x40f120]
call edi
mov esi, eax
push dword [0x40d56c]
call fcn.00403acd
mov edi, eax
pop ecx
test edi, edi
je 0x407bfc
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x40f120]
call edi
jmp 0x407bfe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040331a
leave
ret
Function at 0x40b54e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x40c59c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.0040aef0
mov eax, esp
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b65d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
push 0x401330
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b5df
push 0x40268c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40b5df
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call dword [0x40f120]
call edi
cmp eax, 1
jne 0x40b5df
cmp dword [ebp - 0xc], esi
jbe 0x40b5df
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.00404896
add esp, 0xc
test eax, eax
js 0x40b65d
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x40b615
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.00404896
add esp, 0xc
test eax, eax
js 0x40b65d
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x40b61e
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edi, ebx
neg edi
add eax, ebx
and edi, dword [ebp - 0x10]
sub edi, esi
cmp edi, eax
jb 0x40b65d
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40b65d
lea ecx, [ebp - 0x18]
push ecx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b65d
xor eax, eax
inc eax
jmp 0x40b65f
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040331a
leave
ret
Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1002498b
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1002498b
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10
Function at 0x100123e7
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002d2cf
call fcn.10016fd1
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.1002498b
and dword [ebp - 4], edi
lea esi, [ebx + 0x44]
cmp dword [esi], edi
je 0x10012492
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.1002498b
mov ecx, dword [esi]
test al, al
je 0x10012474
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
sub esp, 0x10
mov byte [ebp - 4], 1
mov edi, esp
lea esi, [ebp - 0x20]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push ecx
push eax
movsd dword es:[edi], dword [esi]
push 1
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1002498b
add esp, 0x28
mov byte [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
lea esi, [ebx + 0x44]
jmp 0x1001248b
push 0
push str.Close
push ecx
push 0
push 1
push ebx
call fcn.1002498b
add esp, 0x18
mov edi, eax
mov ecx, esi
call fcn.10009bb3
cmp dword [ebx + 0x24], 0
je 0x100124b2
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.1002498b
test al, al
je 0x100124b2
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, edi
call fcn.10016f9a
ret
Function at 0x100133d0
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002d3b0
call fcn.10017005
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
cmp dword [ebx + 8], 0
je 0x100133fb
mov eax, reloc.oleaut32.dll_VariantCopyInd
jmp 0x10013586
mov eax, dword [ebx - 0xc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f4d0]
lea ecx, [ebx - 0xc]
call esi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x1001341f
mov eax, 0x80004005
jmp 0x10013586
mov edx, dword [ebp + 0x10]
mov esi, reloc.oleaut32.dll_SysReAllocString
mov eax, edx
and eax, esi
cmp eax, esi
push dword [ebp - 0x21c]
sete al
mov byte [ecx + 0x31], al
lea ecx, [esi + 2]
mov eax, edx
and eax, ecx
cmp eax, ecx
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x32], cl
lea eax, [esi + 6]
and edx, eax
cmp edx, eax
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x33], cl
mov ecx, dword [ebx + 0x14]
add ecx, 0x28
call fcn.1002498b
mov edi, dword [ebx + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, edi
call esi
push eax
lea ecx, [ebp - 0x220]
call fcn.1002498b
xor esi, esi
lea ecx, [ebp - 0x220]
push str.Excel.Application
mov dword [ebp - 4], esi
call fcn.1002498b
test al, al
je 0x1001355e
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100194b0
mov edi, dword [ebp - 0x21c]
push 0x5c
push edi
call fcn.1002498b
add esp, 0x14
test eax, eax
jne 0x100134d8
push 0x2f
push edi
call fcn.1002498b
pop ecx
pop ecx
test eax, eax
je 0x100134f8
add eax, 2
push 0x2e
push eax
call fcn.1002498b
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1002498b
add esp, 0x14
cmp word [ebp - 0x218], si
je 0x10013557
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1002498b
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x10013549
lea eax, [ebp - 0x218]
push eax
call fcn.1002498b
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x1001354f
push edi
call fcn.1002498b
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x1001356f
mov esi, 0x80004005
jmp 0x10013578
mov ecx, dword [ebx + 0x14]
push dword [ebp - 0x21c]
add ecx, 0x24
call fcn.1002498b
push eax
lea ecx, [ebx + 0x10]
call fcn.1002498b
push dword [ebp - 0x220]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, esi
call fcn.10016faf
ret 0xc
Function at 0x10013c40
Capabilities:
Terminate process

Disassembly:
push 0x81c
mov eax, 0x1002d483
call fcn.10017005
mov ebx, ecx
xor ecx, ecx
lea edi, [ebx + 0x40]
mov esi, ecx
mov dword [ebp - 0x818], ecx
mov dword [ebp - 0x814], ecx
cmp dword [edi], ecx
je 0x10013d7c
push 0x10
push ecx
lea eax, [ebp - 0x828]
push eax
call fcn.100194b0
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.oleaut32.dll_VariantClear]
push esi
push str.Caption
push dword [edi]
lea eax, [ebp - 0x828]
mov dword [ebp - 4], esi
push eax
push 2
push ebx
call fcn.1002498b
add esp, 0x18
test eax, eax
jne 0x10013ce1
push dword [ebp - 0x820]
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1002498b
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.user32.dll_FindWindowW]
mov dword [ebp - 0x814], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x818]
push ecx
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f4d0]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
js 0x10013d20
cmp dword [ebp - 0x818], 0
jne 0x10013d20
push 0
push str.Quit
push dword [edi]
push 0
push 1
push ebx
call fcn.1002498b
add esp, 0x18
mov esi, eax
mov ecx, edi
call fcn.10009bb3
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x10013d7c
cmp dword [ebp - 0x818], 0
jne 0x10013d7c
test esi, esi
jns 0x10013d7c
and dword [ebp - 0x814], 0
lea ecx, [ebp - 0x814]
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x814]
push 1
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, esi
call fcn.10016faf
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1002498b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x1002498b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002499a
pop dword [ebp - 0x1c]
mov eax, 0xc917bf8d
sub eax, 0xb91575f3
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3f682
push 0
mov eax, 0x561781b
sub eax, 0xf55e86bf
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x44a2
xor ebx, ebx
add ebx, eax
mov edx, 0xdff7424e
add edx, 0x300d69b2
add edx, dword [ebp - 0x1c]
mov edi, 0x9d58aa5f
sub edi, 0xef6f4fcb
xor dword [ebp - 8], eax
mov esi, dword [edx]
add dword [ebp - 0xc], ecx
add esi, edi
sub dword [ebp - 0x10], 0xff038521
mov dword [ebx], esi
sub dword [ebp - 8], ecx
add ebx, 0xbbbd2b8a
add ebx, 0x4442d47a
add edx, 0xfc6d0818
add edx, 0x392f7ec
loop 0x100249f5
add eax, 0xa643abe2
sub eax, 0xa642a687
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret