joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b47
Capabilities:
Get common file path
Move file

Disassembly:
push 0x420
mov eax, 0x10040be6
call fcn.10021f0e
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], ebx
xor eax, eax
mov esi, 0x206
mov dword [ebp - 4], ebx
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.10024270
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.10024270
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jne 0x10001bc7
push 0x1004aa2c
mov ecx, edi
call fcn.100021a3
jmp 0x10001c88
push 0x100581b4
lea ecx, [ebp - 0x424]
call fcn.100023ad
push str..tmp
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 1
call fcn.100021a3
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
je 0x10001c06
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x428]
call fcn.100023d5
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp - 0x42c]
push dword [eax]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push str._s_s__d_s
push eax
call fcn.10002a52
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x1004a784
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [ebp - 0x424]
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
add esi, 0xfffffff0
push esi
call fcn.10002687
pop ecx
mov ecx, dword [ebp - 0x428]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [edi], eax
call fcn.10002c37
mov ecx, esi
call fcn.10002c37
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10002c37
mov eax, edi
call fcn.10021f58
ret

Function at 0x10001e59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x10058684]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x808], 0
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.10024270
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
test eax, eax
jne 0x10001eb0
push 0x1004aa2c
jmp 0x10001eb7
lea eax, [ebp - 0x804]
push eax
call fcn.100021a3
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.1001d73b
leave
ret
Function at 0x10003ad3
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push 0x10
push 0x10052fc8
call fcn.100263f0
mov esi, dword [ebp + 8]
lea eax, [esi + 6]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10003aea
sub eax, edx
sar eax, 1
je 0x10003c0b
lea eax, [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], ebx
cmp byte [esi + 4], bl
je 0x10003bff
push ebx
push 0x80
push 4
push ebx
push 1
mov edi, 0x40000000
push edi
lea eax, [esi + 6]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x10003bf9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x228]
jb 0x10003b82
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push 4
push ebx
push 1
push edi
mov eax, dword [ebp + 8]
add eax, 6
push eax
call esi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10003bff
push 2
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x1000
push edi
push ebx
mov esi, 0x1005d3b0
push esi
call fcn.10024270
add esp, 0xc
push ebx
push 0x1004a756
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call fcn.10003998
mov dword [ebp - 0x20], ebx
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003bcc
sub eax, edi
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.10003c13
call fcn.10026435
ret 8
Function at 0x10004925
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10058684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push edi
inc eax
mov edi, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1000496a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10004988
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10004962
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000498a
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1001d73b
leave
ret

Function at 0x10004ac5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
xor esi, esi
mov edi, str..pipeEAB101BB_5991_4E54_B6F7_C038723D6AC3
jmp 0x10004b02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10004b91
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x10004b91
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push edi
call ebx
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10004add
push esi
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov edi, eax
cmp edi, esi
je 0x10004b6b
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, esi
je 0x10004b5d
push str.SendPipeData__:_WriteFile_successfully
call fcn.10003e3a
jmp 0x10004b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SendPipeData__:_WriteFile_failed__error__d
jmp 0x10004b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SendPipeData__:_SetNamedPipeHandleState_failed__error__d
call fcn.10003e3a
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, esi
setne al
dec eax
jmp 0x10004b9f
push str.SendPipeData__:_Could_not_open_pipe
call fcn.10003e3a
or eax, 0xffffffff
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004ba4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004bcb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_error__d
call fcn.10003e3a
pop ecx
pop ecx
mov eax, esi
pop esi
ret
Function at 0x10004c1d
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test esi, esi
je 0x10004c48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect_error__d
call fcn.10003e3a
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10005238
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10041ce2
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x10058684]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push esi
push edi
mov eax, dword [0x10058684]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov esi, edx
cmp edi, ebx
je 0x100053ee
cmp esi, ebx
je 0x100053ee
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100053ee
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100053ee
push 0x3ff
lea eax, [esp + 0xf9]
push ebx
push eax
mov byte [esp + 0x100], bl
call fcn.10024270
add esp, 0xc
lea eax, [esp + 0xf4]
push eax
push esi
call fcn.10005214
push str.DirTree
lea eax, [esp + 0x78]
push eax
call fcn.1000d975
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x50c], ebx
call fcn.1000de18
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0x50c], 1
call fcn.1000d5fc
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [esp + 0x20], eax
push str.FileElement
lea eax, [esp + 0x28]
push eax
call fcn.1000d645
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0x1004b37c
mov byte [esp + 0x510], 2
call fcn.1000d727
lea eax, [esp + 0xf4]
push eax
push str.FullPath
lea eax, [esp + 0x2c]
call fcn.1000d727
push 0x1004b390
push str.Type
lea eax, [esp + 0x2c]
call fcn.1000d727
push dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.100069a5
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x28]
call fcn.1000d5fc
push 0x1004b39c
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x24], ebx
call fcn.1001dbca
add esp, 0xc
test eax, eax
je 0x10005416
lea ecx, [esp + 0x24]
mov byte [esp + 0x508], 1
call fcn.1000d6b9
lea ecx, [esp + 0xbc]
mov byte [esp + 0x508], bl
call fcn.10004d94
or dword [esp + 0x508], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.10004e0c
xor al, al
mov ecx, dword [esp + 0x500]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.1001d73b
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x74]
call fcn.1000d9ce
push dword [esp + 0x18]
mov byte [esp + 0x1b], al
call fcn.1001e614
pop ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x508], 1
call fcn.1000d6b9
lea ecx, [esp + 0xbc]
mov byte [esp + 0x508], bl
call fcn.10004d94
or dword [esp + 0x508], 0xffffffff
mov ecx, esi
call fcn.10004e0c
mov al, byte [esp + 0x17]
jmp 0x100053f0
Function at 0x10006d04
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x10041045
call fcn.10021ea5
cmp dword [ebp + 0xc], 0
je 0x10006e00
cmp dword [ebp + 0x10], 0
je 0x10006e00
test esi, esi
je 0x10006e00
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10006d32
sub eax, edx
sar eax, 1
je 0x10006e00
mov eax, dword [ebp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10006d4d
sub eax, edx
sar eax, 1
je 0x10006e00
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10006d67
sub eax, edx
sar eax, 1
je 0x10006e00
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006e00
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10006e00
and dword [ebp - 0x10], 0
push 0x1004b5b0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.1001dbca
add esp, 0xc
test eax, eax
jne 0x10006e00
push esi
lea ecx, [ebp - 0x14]
call fcn.100021a3
push dword [ebp + 0x10]
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.100021a3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.10006e0a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
push dword [ebp - 0x10]
call fcn.1001e614
pop ecx
mov al, 1
jmp 0x10006e02
xor al, al
call fcn.10021f44
ret 0xc
Function at 0x100078b9
Capabilities:
Get session user name

Disassembly:
push 0x2c
push 0x10052fa8
call fcn.10032d00
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call fcn.1000499a
cmp eax, ebx
je 0x1000794b
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000794b
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1000794b
mov dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x10007945
lea eax, [ebp - 0x2c]
push eax
push 0x20
push esi
call fcn.1001fc70
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007939
sub eax, edx
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 4], 0xfffffffe
call fcn.10007962
mov eax, dword [ebp - 0x38]
call fcn.10032d48
ret
Function at 0x10008658
Capabilities:
Get memory capacity

Disassembly:
push 0x13c
mov eax, 0x10042248
call fcn.10021f0e
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea eax, [ebp - 0x148]
push eax
call fcn.1000a06a
and dword [ebp - 4], 0
push dword [ebp - 0x84]
lea eax, [ebp - 0x148]
push eax
call fcn.10009df0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x148]
call fcn.1000a124
mov esi, eax
mov byte [ebp - 4], 1
and dword [ebp - 0x38], 0
push 1
push 0x1004c108
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.1000cffa
mov eax, esi
lea ecx, [ebp - 0x48]
lea edi, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.1000bc48
mov esi, eax
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.1000cf26
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0xa4]
call fcn.10003236
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.10003236
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10003236
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa8], 2
call fcn.10009095
lea edi, [ebx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10003236
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb0]
call fcn.10009095
lea edi, [ebx + 0x38]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10003236
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa8], 2
call fcn.10009095
lea edi, [ebx + 0x54]
mov esi, eax
mov byte [ebp - 4], 6
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10003236
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa8], 2
call fcn.10009095
lea edi, [ebx + 0x70]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003236
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.1000a0e5
lea eax, [ebp - 0xf8]
push eax
mov dword [ebp - 0xf8], vtable.std::ios_base.0
call fcn.1001cac4
pop ecx
call fcn.10021f58
ret
Function at 0x10008bab
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push 0x68
mov eax, 0x10041bff
call fcn.10021f0e
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
xor ebx, ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x10
mov edi, ecx
push 2
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
call esi
cmp eax, 0x6f
jne 0x10008bf3
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x6c], eax
cmp eax, ebx
jne 0x10008c12
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x1004a756
mov ecx, edi
mov byte [edi], bl
call fcn.1000d06f
mov eax, edi
jmp 0x10008d28
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x70]
push ecx
push eax
push ebx
push 0x10
push 2
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
jne 0x10008cf6
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x34]
jne 0x10008c50
mov esi, dword [ebp + 8]
lea edi, [eax + 0x2c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10008c5c
mov edi, dword [ebp - 0x68]
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x10008c39
jmp 0x10008cf6
mov edi, dword [eax + 0x1c]
mov dword [ebp - 0x74], edi
cmp edi, ebx
je 0x10008cf3
jmp 0x10008c6f
mov edi, dword [ebp - 0x74]
mov esi, dword [edi + 0xc]
cmp dword [ebp - 0x1c], ebx
jne 0x10008c8b
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000d06f
jmp 0x10008ce5
lea eax, [ebp - 0x48]
push 0x1004c17c
push eax
lea edi, [ebp - 0x2c]
call fcn.1000bc91
pop ecx
pop ecx
mov edi, eax
mov byte [ebp - 4], 1
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.1000bcf5
add esp, 0xc
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10003236
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.10003236
mov edi, dword [ebp - 0x74]
mov edi, dword [edi + 8]
mov dword [ebp - 0x74], edi
cmp edi, ebx
jne 0x10008c6c
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
lea esi, [ebp - 0x2c]
mov byte [edi], bl
call fcn.1000cf26
push ebx
push 1
mov ecx, esi
call fcn.10003236
mov eax, dword [ebp - 0x68]
call fcn.10021f58
ret 8
Function at 0x10010151
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x100414ef
call fcn.10021ea5
mov esi, dword [ebp + 8]
push dword [esi]
push str.CExecuteFileCmd::Execute__:_execute_file_param__s.
call fcn.10003e3a
pop ecx
pop ecx
push str..exe
call fcn.1001028f
mov ebx, 0x100581b4
push ebx
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.100023ad
xor edi, edi
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.100023ad
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x100101bf
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
mov eax, edi
call fcn.10021f44
ret 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
add esi, 4
push eax
mov edx, esi
call fcn.100042f8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100023d5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10002c37
lea ebx, [ebp - 0x14]
call fcn.1000fd6b
mov ebx, eax
call fcn.1000fdb9
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 8]
push eax
call fcn.10002289
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.100023d5
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10002c37
lea ebx, [ebp - 0x10]
call fcn.1000fd6b
mov ebx, eax
call fcn.1000fdb9
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.10024270
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1001027f
xor edi, edi
inc edi
jmp 0x1001019f
push str.execute_file_failed
call fcn.10003e3a
pop ecx
jmp 0x1001019f
Function at 0x100102bc
Capabilities:
Get graphical window text

Disassembly:
push 0x424
mov eax, 0x10042546
call fcn.10021f0e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
and dword [ebp - 0x42c], 0
mov esi, eax
cmp esi, dword [0x1005b980]
je 0x10010428
push esi
mov dword [0x1005b980], esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.1001d8ce
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10010428
inc edi
push edi
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10010321
sub eax, ecx
je 0x10010421
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], dl
call fcn.10024270
add esp, 0xc
push ebx
lea ecx, [ebp - 0x428]
call fcn.1000214e
and dword [ebp - 4], 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
call fcn.10001ac4
pop ecx
lea eax, [ebp - 0x420]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x424]
cmp dword [eax - 4], 1
jle 0x100103a0
push dword [eax - 0xc]
lea ecx, [ebp - 0x424]
call fcn.100029b7
mov eax, dword [ebp - 0x424]
push eax
movzx eax, word [ebp - 0x414]
push eax
movzx eax, word [ebp - 0x416]
push eax
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x420]
push eax
push str._r_n:_04d_02d_02d__02d:_02d:_02d_tTitle:__s__r_n
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.1001f421
mov edi, dword [ebp - 0x430]
add esp, 0x28
lea esi, [ebp - 0x410]
call fcn.10016c63
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
mov dword [ebp - 0x42c], 1
call fcn.10002c37
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.10002c37
push ebx
call fcn.1001d894
pop ecx
mov eax, dword [ebp - 0x42c]
call fcn.10021f58
ret

Function at 0x1001046c
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor edi, edi
push edi
push edi
push esi
push 0x100105d1
push edi
push edi
call fcn.10020d0d
push edi
push edi
push esi
push 0x10010606
push edi
push edi
mov dword [esi + 0x14], eax
call fcn.10020d0d
add esp, 0x30
mov dword [esi + 0x10], eax
pop edi
xor eax, eax
pop esi
ret 4