joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100077b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1010205b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x101575c8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.100e8960
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x100079a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000784e
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.100e1f90
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.100074a0
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x100078b5
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x101451d8
push eax
call fcn.100e893e
add esp, 0xc
cmp eax, 1
jne 0x100078b5
mov eax, dword [ebp - 0x14]
mov dword [0x101575c8], eax
jmp 0x10007985
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x100078cf
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100078e3
push ebx
push esi
call fcn.10007c00
jmp 0x100078e5
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x101575c8], eax
test eax, eax
jne 0x10007907
push 0x101465f4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.100e764c
push eax
lea edx, [ebp + 0x84]
push 0x101451d8
push edx
mov edi, 1
call fcn.100e854f
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.100075e0
test eax, eax
jne 0x1000797e
push 0x101465f4
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.100e764c
call fcn.10007680
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x101575c8]
test esi, esi
je 0x1000796f
call fcn.10007d50
mov dword [0x101575c8], 0
jmp 0x10007976
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1000797c
ret
mov eax, dword [0x101575c8]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x100079a4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x101575c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.100e200a
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x100079d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10102000
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1014c240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x101575c8]
xor edi, edi
cmp ecx, edi
jne 0x10007a1b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x10007a28
mov dword [ebp - 0x14], edi
jmp 0x10007a40
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10007ad6
mov ecx, dword [0x101575c8]
mov eax, dword [ecx]
cmp eax, edi
je 0x10007a07
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10007a07
mov ebx, 0x101575c8
mov dword [ebp - 4], edi
call fcn.10007af0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x10007a7e
push 0x101465f4
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.100e764c
mov ecx, dword [0x101575c8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x10007a98
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x10007ac2
push 0x101465f4
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.100e764c
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10007ab9
call fcn.10007e50
mov eax, 0x10007abf
ret
mov eax, dword [0x101575c8]
mov eax, dword [eax]
test eax, eax
je 0x10007ad4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007af0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x10007b1d
xor ecx, ecx
jmp 0x10007b29
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x10007bdd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x10007b50
mov dword [esp + 0xc], esi
jmp 0x10007bb0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x10007ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10007b9c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x10007bb0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007bb0
push 0x101451e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10007bb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x10007bd3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x10007b42
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x10007bf1
mov ecx, dword [ebx]
add ecx, 8
call fcn.10007d80
test eax, eax
je 0x10007bf1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x10007c00
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1010202b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1014c240]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.100e1f90
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x10007c98
push 0x101465f4
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.100e764c
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000868d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [esi + 0x41c], eax
push 4
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100086ca
push dword [ebp + 8]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100178f2
add esp, 0xc
leave
ret
Function at 0x10008bec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x1c8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x10008d09
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10008c69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.1001cec6
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.1001795c
add esp, 0x18
jmp 0x10008d10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10008c9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.1001cec6
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10008c5b
lea edi, [esi + 0xcc]
lea ebx, [esi + 0x9e]
lea esi, [ebp - 0x74]
call fcn.10008bb3
test eax, eax
jne 0x10008cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.1001cec6
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x10008c5c
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0x100]
lea ebx, [eax + 0xd0]
lea esi, [ebp + 0xc]
call fcn.10008bb3
test eax, eax
jne 0x10008d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.1001cec6
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x10008ccc
mov esi, dword [ebp - 0x78]
push esi
call fcn.10008b61
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e200a
add ebp, 0x90
leave
ret

Function at 0x10008d28
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10008d6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1001cec6
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100178f2
add esp, 0x14
jmp 0x10008d7a
push str.TCP_NODELAY_set_n
push esi
call fcn.100178f2
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x10008dd5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x560]
push esi
cmp eax, 0xffffffff
je 0x10008e1c
mov ecx, dword [ecx + 0x554]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x10008e1c
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x10008e02
mov dword [ecx], eax
cmp dword [eax + 0x150], 0
mov esi, dword [eax + 0x130]
je 0x10008e22
push eax
call fcn.1001a001
pop ecx
test eax, eax
jne 0x10008e33
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x10008e18
mov eax, esi
jmp 0x10008e1f
Function at 0x1000a64f
Capabilities:
Resolve dns

Disassembly:
push 0x18
push 0x10145790
call fcn.100e36b0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
cmp eax, ebx
jne 0x1000a7ec
mov edi, dword [ebp - 0x24]
jmp 0x1000a73a
cmp dword [edi + 4], 2
jne 0x1000a737
cmp dword [edi + 0x18], ebx
je 0x1000a737
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x1000a737
cmp eax, 0x10
jb 0x1000a737
push 0x20
call dword [0x10148008]
pop ecx
mov esi, eax
cmp esi, ebx
je 0x1000a744
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
push 0x10
pop eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
push eax
call dword [0x10148008]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x1000a74d
push 0x10
push dword [edi + 0x18]
push eax
call fcn.100e20b0
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x1000a722
push eax
call dword [0x10148014]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x1000a75d
cmp dword [ebp - 0x1c], ebx
jne 0x1000a72a
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x1000a734
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x28], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x1000a698
jmp 0x1000a776
mov dword [ebp - 0x20], 8
jmp 0x1000a776
mov dword [ebp - 0x20], 8
push esi
call dword [0x1014800c]
jmp 0x1000a775
mov dword [ebp - 0x20], 8
push dword [esi + 0x18]
call dword [0x1014800c]
push esi
call dword [0x1014800c]
pop ecx
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x1000a784
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x20], ebx
je 0x1000a797
push dword [ebp - 0x1c]
call fcn.1000a613
pop ecx
mov dword [ebp - 0x1c], ebx
jmp 0x1000a7ab
cmp dword [ebp - 0x1c], ebx
jne 0x1000a7ab
mov eax, 0x2af9
mov dword [ebp - 0x20], eax
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
jmp 0x1000a7ec
call fcn.100e36f5
ret

Function at 0x1000b256
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000b29d
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1000b297
shr eax, 8
cmp al, 2
jne 0x1000b297
call fcn.10007ecf
jmp 0x1000b2a0
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e200a
leave
ret
Function at 0x1000c681
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x1000c6a6
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1000c695
xor eax, eax
pop edi
ret
push dword [eax + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call ecx
jmp 0x1000c6d9
cmp dword [esi + 8], 0
jne 0x1000c6c7
push 0x10103b70
push dword [eax + 8]
call fcn.100e30bd
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x1000c6c7
or eax, 0xffffffff
pop edi
ret
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.100e4b2b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1000c6f9
mov eax, dword [esi + 8]
test eax, eax
je 0x1000c6f3
push eax
call fcn.100e2f7d
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
ret
Function at 0x100171cc
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x100171d9
jmp dword [eax*4 + 0x10017234]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret
Function at 0x10017692
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100176c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x100177e2
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x10017802
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x1001783b
cmp eax, 2
jg 0x1001783b
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x101053b8
push 2
push eax
call fcn.100e734d
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.100e734d
add esp, 0x20
xor eax, eax
ret

Function at 0x100179f1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10017a63
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x10017a3d
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x10017a62
push ebx
push esi
call fcn.1001cec6
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.1001795c
mov eax, dword [esi]
mov dword [eax + 0x859c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x1001ef40
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa8]
call fcn.100e30d4
add eax, 0x20
mov dword [edi + 0x10], eax
call fcn.100e30d4
mov dword [edi + 0x14], eax
call fcn.100e30d4
xor ebx, ebx
add eax, 0x40
or ecx, 0xffffffff
mov dword [edi], eax
xor eax, eax
inc eax
push str.rcmd
lea esi, [edi + 0x2e4]
mov dword [edi + 0x58], fcn.100e734d
mov dword [edi + 0x64], fcn.100e4b2b
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xc0], ecx
mov dword [edi + 0xc4], ecx
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x128], eax
mov dword [edi + 0x30c], eax
mov dword [edi + 0x204], eax
mov dword [edi + 0x208], eax
mov dword [edi + 0x20c], ebx
mov dword [edi + 0x198], eax
mov dword [edi + 0x178], 0x3c
mov dword [edi + 0x160], 5
mov dword [edi + 0xc], 0x438
mov dword [edi + 0x174], ebx
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x1cc], eax
mov dword [edi + 0x30], 0xa
mov dword [edi + 0x1c4], eax
mov dword [edi + 0x138], eax
mov dword [edi + 0x13c], 2
mov dword [edi + 0x240], ecx
mov dword [edi + 0x16c], eax
mov dword [edi + 0x24c], 0x1a4
mov dword [edi + 0x250], 0x1ed
mov dword [edi + 0x2fc], ecx
mov dword [edi + 0x300], 0xfffffbef
mov dword [edi + 0x304], ebx
call fcn.1001ed73
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x1001f0fd
lea esi, [edi + 0x2a8]
cmp dword [esi], ebx
jne 0x1001f0d3
push 0x117
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.100e1f90
push 0x117
lea eax, [ebp - 0x7c]
push 0x10152dc0
push eax
call fcn.100e20b0
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001f0d3
lea eax, [ebp - 0x7c]
push eax
call fcn.1001ed73
pop ecx
mov dword [ebp - 0x80], eax
push 0x3c
pop eax
mov dword [edi + 0x334], eax
mov dword [edi + 0x330], eax
mov eax, dword [ebp - 0x80]
mov dword [edi + 0x314], ebx
mov dword [edi + 0x318], ebx
mov dword [edi + 0x31c], ebx
mov dword [edi + 0x32c], ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e200a
add ebp, 0xa0
leave
ret

Function at 0x10024ebd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
call fcn.100e1f90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.Halowp.exe
mov ecx, esi
call fcn.10024e9a
pop esi
test eax, eax
je 0x10024f1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024f1c
xor eax, eax
inc eax
jmp 0x10024f1e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e200a
leave
ret
Function at 0x10024f2a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
push 0x20219
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsHalowp.exepath
push reloc.WS2_32.dll_bind
mov esi, ecx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10024f81
cmp dword [ebp - 0x78], ebx
je 0x10024f7a
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002501b
push edi
lea eax, [ebp - 0x80]
push eax
lea edi, [esi + 0x1c]
push edi
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002500a
cmp dword [ebp - 0x7c], 1
je 0x10024fb4
cmp dword [ebp - 0x7c], 2
jne 0x1002500a
push 0x7e
push edi
call fcn.100e7f0d
pop ecx
pop ecx
test eax, eax
je 0x10024ff7
mov esi, 0x208
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.100e1f90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x10024ff7
push esi
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.100e20b0
add esp, 0xc
cmp dword [ebp - 0x78], ebx
je 0x10025005
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1002501a
cmp dword [ebp - 0x78], ebx
je 0x10025018
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x198]
pop esi
xor ecx, ebp
pop ebx
call fcn.100e200a
add ebp, 0x19c
leave
ret

Function at 0x10025032
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100e1f90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10154830]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10109684
push dword [ebp + 0x10]
push esi
call fcn.10024814
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.100e200a
leave
ret 0xc