joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100048d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x1000490a
cmp dword [esp + 0x34], esi
je 0x1000490a
push 0x200
call fcn.10018088
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10004915
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004a74
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x10004a0a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000496d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100049e3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100049d8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.10004840
cmp edx, edi
jb 0x100049d8
ja 0x100049d2
cmp eax, dword [esp + 0x24]
jbe 0x100049d8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x10004960
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x10004a20
cmp dword [esp + 0x24], 0
jbe 0x10004a74
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.10002660
add esp, 0xc
test eax, eax
jne 0x10004a59
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.10017fab
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.10004480
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.10017fab
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10007830
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x10028d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10032f68]
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 [0x1003574c], 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.1001627b
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 0x10007a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100078ce
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.10015800
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.10007520
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x10007935
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x1002f418
push eax
call fcn.100178a4
add esp, 0xc
cmp eax, 1
jne 0x10007935
mov eax, dword [ebp - 0x14]
mov dword [0x1003574c], eax
jmp 0x10007a05
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000794f
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 0x10007963
push ebx
push esi
call fcn.10007c80
jmp 0x10007965
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x1003574c], eax
test eax, eax
jne 0x10007987
push 0x10030ccc
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1001579f
push eax
lea edx, [ebp + 0x84]
push 0x1002f418
push edx
mov edi, 1
call fcn.10017d2b
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.10007660
test eax, eax
jne 0x100079fe
push 0x10030ccc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1001579f
call fcn.10007700
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x1003574c]
test esi, esi
je 0x100079ef
call fcn.10007dd0
mov dword [0x1003574c], 0
jmp 0x100079f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100079fc
ret
mov eax, dword [0x1003574c]
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 0x10007a24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1003574c
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.100157eb
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x10007a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028d00
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10032f68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x1003574c]
xor edi, edi
cmp ecx, edi
jne 0x10007a9b
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 0x10007aa8
mov dword [ebp - 0x14], edi
jmp 0x10007ac0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10007b56
mov ecx, dword [0x1003574c]
mov eax, dword [ecx]
cmp eax, edi
je 0x10007a87
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10007a87
mov ebx, 0x1003574c
mov dword [ebp - 4], edi
call fcn.10007b70
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x10007afe
push 0x10030ccc
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1001579f
mov ecx, dword [0x1003574c]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x10007b18
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x10007b42
push 0x10030ccc
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1001579f
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10007b39
call fcn.10007ed0
mov eax, 0x10007b3f
ret
mov eax, dword [0x1003574c]
mov eax, dword [eax]
test eax, eax
je 0x10007b54
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 0x10007b70
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 0x10007b9d
xor ecx, ecx
jmp 0x10007ba9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x10007c5d
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 0x10007bd0
mov dword [esp + 0xc], esi
jmp 0x10007c30
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x10007c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10007c1c
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 0x10007c30
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007c30
push 0x1002f420
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10007c30
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 0x10007c53
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x10007bc2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x10007c71
mov ecx, dword [ebx]
add ecx, 8
call fcn.10007e00
test eax, eax
je 0x10007c71
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x10007c80
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x10028d2b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10032f68]
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.10015800
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 0x10007d18
push 0x10030ccc
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1001579f
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 0x10008020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000803a
test al, 0x10
jne 0x1000803a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x10008040
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
mov ebp, dword [esp + 0x814]
push esi
mov esi, dword [esp + 0x820]
push edi
mov edi, dword [esp + 0x820]
push 0x7ff
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.10015800
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push esi
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100080ec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100080ec
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.100157eb
add esp, 0x80c
ret
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.100157eb
add esp, 0x80c
ret

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

Disassembly:
sub esp, 0x254
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
mov esi, dword [esp + 0x25c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100082dc
test al, 0x10
je 0x100082f6
xor eax, eax
xor edx, edx
pop esi
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.100157eb
add esp, 0x254
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100082dc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
push 1
push 0
push 0
push ecx
call fcn.10015880
mov ecx, dword [esp + 0x18]
xor esi, esi
add eax, ecx
mov ecx, dword [esp + 0x254]
adc edx, esi
pop esi
xor ecx, esp
call fcn.100157eb
add esp, 0x254
ret

Function at 0x10008340
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
push 0x1002a416
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10008395
mov edi, dword [eax + 0xc]
xor esi, esi
cmp dword [edi], esi
je 0x10008395
movsx ebx, word [eax + 0xa]
mov ebp, dword [esp + 0x28]
mov eax, edi
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.100158c0
add esp, 0xc
cmp ebp, dword [esp + 0x14]
je 0x100083aa
inc esi
cmp dword [edi + esi*4], 0
lea eax, [edi + esi*4]
jne 0x10008374
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100157eb
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.100157eb
add esp, 0x14
ret
Function at 0x100083d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
mov ebp, dword [esi + 4]
push edi
mov edi, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ecx, 1
test eax, eax
je 0x10008406
mov ecx, 2
mov edx, dword [esp + 0x30]
push 1
push edx
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 1
jne 0x10008436
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100157eb
add esp, 0x20
ret 8
cmp eax, 0x102
je 0x100084ec
cmp eax, 0xffffffff
je 0x100084ec
push ebx
add edi, 0x34
push edi
call fcn.100153bb
push edi
mov ebx, eax
push 0
push ebx
call fcn.10015800
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push edi
push ebx
push ebp
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x100084b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [0x100347e0], 5
jge 0x100084e2
push eax
push str.recvfrom__err_d
push 1
push 0x10034838
call fcn.100146a0
add esp, 0x10
inc dword [0x100347e0]
jmp 0x100084e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100084ce
test eax, eax
jle 0x100084ca
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
push eax
mov eax, dword [edx]
push ebx
call eax
jmp 0x100084e2
test ecx, ecx
jne 0x100084e2
test eax, eax
jle 0x100084e2
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
mov ecx, esi
call edx
push ebx
call fcn.10015c76
add esp, 4
pop ebx
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.100157eb
add esp, 0x20
ret 8

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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
push 0x10
push eax
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10008592
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10034838
call fcn.100146a0
add esp, 0x10
xor al, al
ret 0xc
mov al, 1
ret 0xc
Function at 0x10008970
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
fld qword [0x1002a348]
mov edx, dword [esp + 0x34]
fstp qword [esp + 8]
push esi
mov esi, 0x28
mov word [esp + 4], si
mov esi, 0x15
mov word [esp + 6], si
mov esi, dword [eax + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0x18]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0x1c]
push 0x10
push edx
mov dword [esp + 0x28], esi
mov esi, dword [eax + 0x20]
push 0
mov dword [esp + 0x30], esi
mov esi, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
push 0x28
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x84]
push edx
push eax
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
cmp eax, 0xffffffff
jne 0x10008a09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10034838
call fcn.100146a0
add esp, 0x10
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100157eb
add esp, 0x2c
ret 8

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

Disassembly:
sub esp, 0x34
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
fld qword [0x1002a348]
push esi
fstp qword [esp + 0xc]
mov edx, dword [esp + 0x4c]
mov esi, 0x17
mov word [esp + 6], si
mov esi, dword [esp + 0x44]
mov dword [esp + 0x2c], esi
mov si, word [esp + 0x48]
mov word [esp + 0x30], si
mov esi, 1
mov word [esp + 0x32], si
mov esi, dword [eax + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0x18]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x20], esi
mov esi, dword [eax + 0x20]
push 0x10
push edx
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
push 0
mov eax, 0x30
push eax
lea edx, [esp + 0x14]
mov word [esp + 0x14], ax
mov eax, dword [ecx + 0x84]
push edx
push eax
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
cmp eax, 0xffffffff
jne 0x10008ad4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10034838
call fcn.100146a0
add esp, 0x10
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100157eb
add esp, 0x34
ret 0x14
Function at 0x10008e90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
fld qword [0x1002a348]
mov edx, dword [esp + 0x34]
fstp qword [esp + 8]
push esi
mov esi, 0x28
mov word [esp + 4], si
mov esi, 0x14
mov word [esp + 6], si
mov esi, dword [eax + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0x18]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0x1c]
push 0x10
push edx
mov dword [esp + 0x28], esi
mov esi, dword [eax + 0x20]
push 0
mov dword [esp + 0x30], esi
mov esi, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
push 0x28
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x84]
push edx
push eax
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
cmp eax, 0xffffffff
jne 0x10008f29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10034838
call fcn.100146a0
add esp, 0x10
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100157eb
add esp, 0x2c
ret 8

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

Disassembly:
sub esp, 0x34
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
fld qword [0x1002a348]
push esi
fstp qword [esp + 0xc]
mov esi, dword [esp + 0x44]
mov edx, ecx
mov ecx, dword [esp + 0x40]
push edi
mov edi, 0x13
mov word [esp + 0xa], di
mov edi, dword [ecx]
mov cx, word [ecx + 4]
mov word [esp + 0x34], cx
mov ecx, 1
mov word [esp + 0x36], cx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
push 0x10
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
push esi
mov dword [esp + 0x34], ecx
push 0
mov ecx, 0x30
push ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov word [esp + 0x18], cx
mov ecx, dword [edx + 0x84]
push eax
push ecx
mov dword [esp + 0x48], edi
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x10008ff9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_Error:_d
push 1
push 0x10034838
call fcn.100146a0
add esp, 0x10
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100157eb
add esp, 0x34
ret 0xc
Function at 0x10009010
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
cmp dword [ebp + 0x18], 8
push esi
push edi
lea ebx, [ebp + 4]
jb 0x10009028
mov eax, dword [ebx]
jmp 0x1000902a
mov eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call edi
mov esi, dword [esp + 0x1c]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10009086
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x18], 8
jb 0x1000905f
mov eax, dword [ebx]
jmp 0x10009061
mov eax, ebx
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10009086
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
mov al, 1
pop ebx
add esp, 8
ret 0xc

Function at 0x1000a7e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10028508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x10032f68]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.10009d10
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000a840
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.1000a0e0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.10009d10
cmp dword [esp + 0x28], 8
jb 0x1000a88d
mov eax, dword [esp + 0x14]
push eax
call fcn.10015436
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x1000ad00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10028540
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10032f68]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10032f68]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
push edi
push esi
call fcn.1000aa30
push 0x1002a8a8
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.1000a7e0
add esp, 0x14
mov eax, dword [esp + 0x34]
mov ebp, 8
mov dword [esp + 0x58], 0
cmp dword [esp + 0x48], ebp
jae 0x1000ad6f
lea eax, [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1000ad81
test al, 0x10
je 0x1000adf2
push edi
push esi
call fcn.1000abd0
push 0x1002a8a8
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.1000a7e0
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 1
call fcn.10009d10
cmp dword [esp + 0x2c], ebp
jb 0x1000adc1
mov edx, dword [esp + 0x18]
push edx
call fcn.10015436
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebp
jae 0x1000adcf
lea eax, [esp + 0x34]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1000addb
test al, 0x10
je 0x1000adf2
cmp dword [esp + 0x48], ebp
jb 0x1000adee
mov eax, dword [esp + 0x34]
push eax
call fcn.10015436
add esp, 4
xor al, al
jmp 0x1000ae07
cmp dword [esp + 0x48], ebp
jb 0x1000ae05
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10015436
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.100157eb
add esp, 0x48
ret