joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100022f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.10001000
add esp, 0xc
test eax, eax
je 0x1000235d
cmp eax, 4
jne 0x10002330
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
push dword [ebp + 0x10]
push esi
call fcn.10001520
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 4
pop esi
pop ebp
ret
push 0
push 0x5000
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1000235d
test ecx, ecx
je 0x1000235d
cmp byte [esi], 5
je 0x10002363
push str.Invalid_Socks_5_Request_n
call fcn.10002e81
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov al, byte [esi + 3]
cmp al, 1
je 0x1000236e
cmp al, 3
jne 0x1000235d
push dword [ebp + 0x18]
movzx eax, al
push dword [ebp + 0x14]
push eax
push ecx
push esi
call fcn.10001520
add esp, 0x14
test eax, eax
je 0x1000235d
mov al, byte [esi + 1]
cmp al, 1
je 0x10002391
cmp al, 3
jne 0x1000235d
pop edi
movzx eax, al
pop esi
pop ebp
ret
Function at 0x10008308
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000e1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1000652c
mov dword [ebp - 0x14], eax
cmp dword [0x1000fc9c], edi
jne 0x100083f9
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10008386
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100084d9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100084d9
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100084d9
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1000fc9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1000fca0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1000fca4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1000fcac], eax
test eax, eax
je 0x100083f6
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1000fca8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000841e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10008411
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10008433
push 4
pop eax
jmp 0x100084db
cmp dword [ebp - 0x14], edi
je 0x10008433
push dword [0x1000fc9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10008418
mov eax, dword [0x1000fca8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10008491
cmp dword [0x1000fcac], esi
je 0x10008491
push eax
call ebx
push dword [0x1000fcac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10008491
test eax, eax
je 0x10008491
call ecx
test eax, eax
je 0x10008486
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10008486
test byte [ebp - 8], 1
jne 0x10008491
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x100084c1
mov eax, dword [0x1000fca0]
cmp eax, esi
je 0x100084be
push eax
call ebx
test eax, eax
je 0x100084be
call eax
mov edi, eax
test edi, edi
je 0x100084be
mov eax, dword [0x1000fca4]
cmp eax, esi
je 0x100084be
push eax
call ebx
test eax, eax
je 0x100084be
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1000fc9c]
call ebx
test eax, eax
je 0x100084d9
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x100084db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003014
leave
ret
Function at 0x401170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x110], 0
je 0x4011e9
cmp dword [edi + 0x114], 0
je 0x4011bc
push 0x41d1bc
call fcn.004010e0
push 0xffffffffffffffff
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c53
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x41d1bc
push dword [edi + 0x110]
call ebx
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4011c4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00402c53
mov esp, ebp
pop ebp
ret
Function at 0x402680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x608], edi
movsx esi, word [edi]
movsx eax, word [edi + 2]
mov dword [ebp - 0x660], eax
sub esi, 1
je 0x4026bb
push 0x32
call ebx
mov eax, dword [edi + 0x30c]
mov esi, dword [eax + esi*4]
lea eax, [edi + 0x208]
push esi
push eax
lea eax, [ebp - 0x204]
push str._sOfxHz_d.dat
push eax
call fcn.00401770
lea eax, [ebp - 0x204]
add edi, 8
push eax
mov eax, dword [ebp - 0x608]
add eax, 0x108
push eax
mov eax, dword [ebp - 0x660]
and eax, 0x800
push esi
or eax, 0x200
push eax
push edi
lea eax, [ebp - 0x604]
push str.__s__321__d__d___s____s___2473
push eax
call fcn.00401770
lea ecx, [ebp - 0x104]
add esp, 0x2c
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x402722
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00404ab3
add esp, 8
mov dword [ebp - 0x65c], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x630], 1
movups xmmword [ebp - 0x628], xmm0
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x604]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40284f
push 0x64
push dword [ebp - 0x618]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x3e8
push dword [ebp - 0x618]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x618]
call esi
cmp dword [ebp - 0x608], 0x103
jne 0x402836
push 0x17
call ebx
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x618]
call esi
cmp dword [ebp - 0x608], 0x103
je 0x402817
push dword [ebp - 0x618]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x608], 0xfffffff8
jne 0x40284f
push 0x64
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c53
mov esp, ebp
pop ebp
ret 4

Function at 0x40df87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040ddfd
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x8126c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x8126cc]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x8126d0]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x8126d4]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x821914], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [0x80b060]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x821914]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x821910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c7
push 0x80e950
call dword [0x80b088]
push 0
lea eax, [ebp - 0x34]
push eax
call dword [0x80b064]
and dword [0x821868], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [0x82190c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x821914], 0xb03
jne 0x401142
push 0
call dword [0x80b020]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40117c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cb4
call 0x410f80
push ebx
push esi
xor esi, esi
cmp dword [0x821914], 0x93
push edi
jne 0x4011e4
push esi
push esi
call dword [0x80b034]
push esi
push esi
push esi
push esi
call dword [0x80b008]
push esi
call fcn.00401794
push esi
push esi
push esi
push esi
call fcn.00401e2a
push esi
push esi
call fcn.00401e47
push esi
call fcn.00401b50
push esi
push esi
call fcn.00401b7f
add esp, 0x28
call fcn.0040116e
push esi
call 0x402237
pop ecx
push esi
call 0x4024e7
add dword [0x821914], 0x1134b
push dword [0x821914]
mov eax, dword [0x814ff0]
push esi
mov dword [0x822378], eax
call dword [0x80b030]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x821914]
mov dword [0x82186c], eax
push eax
call dword [0x80b080]
mov edi, dword [0x80b190]
mov ebx, 0x29156e
push esi
lea eax, [ebp - 0x8b0]
push eax
call edi
dec ebx
jne 0x401228
cmp dword [0x821914], esi
jbe 0x401288
mov eax, dword [0x822378]
mov al, byte [eax + ebx + 0x1134b]
mov ecx, dword [0x82186c]
mov byte [ecx + ebx], al
cmp dword [0x821914], 0x490
jne 0x40127f
push 0x80e9bc
call dword [0x80b014]
push esi
push esi
push esi
call dword [0x80b058]
call dword [0x80b028]
push esi
call dword [0x80b05c]
inc ebx
cmp ebx, dword [0x821914]
jb 0x40123d
xor ebx, ebx
mov eax, dword [0x821914]
add eax, ebx
cmp eax, 0x8d
jne 0x4012fb
push 0x80e9c4
call dword [0x80b070]
push esi
lea eax, [ebp - 0x10b0]
push eax
call edi
push esi
push esi
push esi
call dword [0x80b010]
push esi
lea eax, [ebp - 0x14b0]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x4b0]
push eax
push esi
call dword [0x80b038]
push 0x80e9d8
call dword [0x80b05c]
push esi
push esi
push esi
call dword [0x80b094]
lea eax, [ebp - 0x1cb0]
push eax
push esi
call dword [0x80b00c]
inc ebx
cmp ebx, 0x38681
jl 0x40128a
mov eax, dword [0x821914]
mov ecx, dword [0x82186c]
shr eax, 3
cmp eax, esi
jbe 0x401349
mov edi, ecx
mov ebx, eax
cmp dword [0x821914], 0x959
jne 0x40133d
push esi
lea eax, [ebp - 0x4b0]
push eax
call dword [0x80b024]
push esi
push esi
push esi
call dword [0x80b090]
push edi
call fcn.00401007
add edi, 8
dec ebx
jne 0x40131a
xor edi, edi
push esi
call dword [0x80b04c]
cmp edi, 0x62
jne 0x40136a
mov dword [ebp - 8], esi
add dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add dword [0x82186c], eax
inc edi
cmp edi, 0x674db
jl 0x40134b
push 0x7b
pop edi
cmp dword [0x821914], 0x86
jne 0x4013df
push esi
lea eax, [ebp - 0x1cb0]
push eax
push esi
call dword [0x80b078]
push esi
push esi
push esi
lea eax, [ebp - 0xb0]
push eax
call dword [0x80b048]
call dword [0x80b074]
push esi
call dword [0x80b068]
lea eax, [ebp - 0x4b0]
push eax
push esi
push esi
call dword [0x80b084]
push esi
push 0x80ea38
push 0x80ea94
call dword [0x80b02c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10b0]
push eax
call dword [0x80b018]
dec edi
jne 0x401376
push 0x80eabc
call dword [0x80b05c]
call dword [0x82186c]
pop edi
pop esi
pop ebx
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.1000f79e
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.1000f79e
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 0x1000f79e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000f7ad
pop dword [ebp - 0x34]
mov eax, 0x7b122954
sub eax, 0x6b1131a7
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x47308
push 0
mov eax, 0x9507e9bb
sub eax, 0x8504f85f
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x63d1
xor ebx, ebx
add ebx, eax
mov edx, 0x6a089217
add edx, 0xa5fc19e9
add edx, dword [ebp - 0x34]
mov edi, 0xd0b9db61
add edi, 0xd0a43a79
add dword [ebp - 0x30], 0xd007100c
mov esi, dword [edx]
sub dword [ebp - 0xc], 0x460bac8b
sub esi, edi
xor dword [ebp - 0x14], 0xc71552cf
mov dword [ebx], esi
mov dword [ebp - 0x1c], 0x1a3ef6a5
add ebx, 0x23d97d00
sub ebx, 0x23d97cfc
add edx, 4
loop 0x1000f808
add eax, 0x310f9061
sub eax, 0x310e0e4a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

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.1000f79e
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.1000f79e
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.1000f79e
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.1000f79e
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.1000f79e
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.1000f79e
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.1000f79e
xor esi, esi
lea ecx, [ebp - 0x220]
push str.Excel.Application
mov dword [ebp - 4], esi
call fcn.1000f79e
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.1000f79e
add esp, 0x14
test eax, eax
jne 0x100134d8
push 0x2f
push edi
call fcn.1000f79e
pop ecx
pop ecx
test eax, eax
je 0x100134f8
add eax, 2
push 0x2e
push eax
call fcn.1000f79e
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1000f79e
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.1000f79e
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.1000f79e
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x1001354f
push edi
call fcn.1000f79e
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.1000f79e
push eax
lea ecx, [ebx + 0x10]
call fcn.1000f79e
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.1000f79e
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.1000f79e
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.1000f79e
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.1000f79e
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