joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456274
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45628b
add esp, 0xfffffff0
call fcn.00403694
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004212c0
mov eax, dword [0x4cf28c]
cmp word [eax + 2], 0
jne 0x4562b3
mov eax, dword [0x4cf28c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045794c
mov eax, dword [0x4cf39c]
cmp word [eax + 2], 0
jne 0x4562cd
mov eax, dword [0x4cf39c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457b44
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42349c]
call fcn.004290e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456454
mov eax, dword [0x4cf144]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004294b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4580e4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4cf144]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d064
test eax, eax
je 0x4563c2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004092ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d08c
test eax, eax
je 0x4563d6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404410
mov eax, dword [0x4cef90]
cmp byte [eax], 0
jne 0x45640a
mov eax, ebx
call fcn.0045657c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004582c0
mov eax, ebx
call fcn.00458c84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45644a
call fcn.004036ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d07c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x47d099
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x47d235
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00473888
test al, al
jne 0x47d0d6
mov ecx, 0x47d268
mov dl, 1
mov eax, dword [0x467f84]
call fcn.0040c26c
call fcn.00403bc0
xor eax, eax
push ebp
push 0x47d102
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00472334
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00472220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47d122
mov eax, dword [ebp - 0x10]
mov edx, 0x47d2a4
call fcn.00404b54
je 0x47d13f
mov eax, esi
mov edx, 0x47d2a4
call fcn.00404b54
jne 0x47d163
mov eax, edi
mov edx, 0x47d2b4
call fcn.00404b54
je 0x47d163
mov ecx, 0x47d28c
mov dl, 1
mov eax, dword [0x46822c]
call fcn.0040c26c
call fcn.00403bc0
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x47d190
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x47d190
mov ecx, 0x47d28c
mov dl, 1
mov eax, dword [0x46822c]
call fcn.0040c26c
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x47d2f4
call fcn.00404b54
jne 0x47d1c3
mov eax, edi
mov edx, 0x47d300
call fcn.00404b54
je 0x47d1c3
mov ecx, 0x47d28c
mov dl, 1
mov eax, dword [0x46822c]
call fcn.0040c26c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047b16c
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x47d34c]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d23c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x47eb30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x47eb4d
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x47ece8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00473888
test al, al
jne 0x47eb8a
mov ecx, 0x47ed1c
mov dl, 1
mov eax, dword [0x467f84]
call fcn.0040c26c
call fcn.00403bc0
xor eax, eax
push ebp
push 0x47ebb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00472334
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00472220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ebd6
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x47ec03
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x47ec03
mov ecx, 0x47ed40
mov dl, 1
mov eax, dword [0x46822c]
call fcn.0040c26c
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x47ed58
call fcn.00404b54
jne 0x47ec36
mov eax, edi
mov edx, 0x47ed64
call fcn.00404b54
je 0x47ec36
mov ecx, 0x47ed40
mov dl, 1
mov eax, dword [0x46822c]
call fcn.0040c26c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047b16c
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x47edb0]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x46afa8]
call fcn.0047a3c4
mov dword [ebx + 0x3c], eax
mov ax, word [0x47edb4]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ecef
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x481744
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x481766
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4818d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00473888
test al, al
jne 0x4817a3
mov ecx, 0x481904
mov dl, 1
mov eax, dword [0x467f84]
call fcn.0040c26c
call fcn.00403bc0
push dword [0x4ce690]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4ce690]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0xc]
call fcn.00474360
test al, al
jne 0x481875
push dword [0x4ce68c]
push dword [ebp + 8]
push dword [0x4ce68c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x14]
call fcn.00474360
test al, al
jne 0x481875
push dword [0x4ce690]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4ce690]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x18]
call fcn.00474478
test al, al
jne 0x481875
push dword [0x4ce68c]
push edi
push dword [0x4ce68c]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x20]
call fcn.00474478
test al, al
jne 0x481875
mov ecx, 0x481904
mov dl, 1
mov eax, dword [0x467f84]
call fcn.0040c26c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047b16c
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.004048e8
mov byte [ebx + 0xc], 0xc
mov ax, word [0x481920]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4818d8
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004048c4
ret

Function at 0x4b63d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b644f
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4b6436
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404410
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6456
lea eax, [ebp - 0x104]
call fcn.004041a0
ret
Function at 0x10004840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x100
push dword [eax]
lea eax, [ebp - 0x204]
push eax
call fcn.1008a626
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x10004e90
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [0x1020ad78], eax
test eax, eax
je 0x1000496c
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x10
push eax
push dword [0x1020ad78]
mov dword [0x1020ad7c], 2
mov dword [ebp - 0x21c], 2
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x208], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x10
push eax
push dword [0x1020ad78]
mov dword [0x1020ad7c], 4
mov dword [ebp - 0x238], 4
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0
push 0
push 0
push 0x100050b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c0f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x1000c108
cmp dword [ebp + 0xc], 0
jne 0x1000c112
mov eax, 1
jmp 0x1000c20d
push 0
push 0x80
push 3
push 0
push 5
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000c142
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000c20d
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1000c16b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000c20d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jb 0x1000c181
mov eax, 8
jmp 0x1000c20d
cmp dword [ebp + 0x10], 0
je 0x1000c18f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call fcn.1006ee75
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.10087820
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000c1f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000c20d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
je 0x1000c201
mov eax, 1
jmp 0x1000c20d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x1000c7fc
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1000c803
mov eax, 1
jmp 0x1000c865
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000c830
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000c865
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000c859
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000c865
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181d50
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x67
push 0x6f
push 0x6c
push 0x74
push 0x6e
push 0x65
push 0x74
push 0x6e
push 0x6f
push 0x43
push 0x70
push 0x74
push 0x74
push 0x48
push 0x77
push 0x6f
push 0x68
push 0x53
push str._c_c_c_c_c_c_c_c_c_c_c_c_c_c_c._c_c_c
lea eax, [ebp - 0x28]
push eax
call fcn.100593e7
add esp, 0x50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10003cb0
mov byte [ebp - 4], 1
push 0x10185764
lea ecx, [ebp - 0x40]
call fcn.10003970
push 0x10185768
lea ecx, [ebp - 0x40]
call fcn.10003970
push 0x101f0654
lea ecx, [ebp - 0x40]
call fcn.10003970
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.100056e0
lea ecx, [ebp - 0x40]
call fcn.10003a00
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000d832
mov byte [ebp - 0x82], 1
jmp 0x1000d839
mov byte [ebp - 0x82], 0
mov al, byte [ebp - 0x82]
mov byte [ebp - 0x81], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10004750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004750
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
Function at 0x1001a720
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1001a769
mov al, byte [esi]
push eax
call fcn.10029b80
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x1001a747
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x10024cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f2], 0
je 0x10024d53
cmp dword [edi + 0x1b0], 0
je 0x10024d1d
push esi
push 1
push edi
call fcn.100169e0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.100169e0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10024d53
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x10188c18
push 2
push eax
call fcn.1008bdf9
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1008bdf9
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x148]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.10025550
add esp, 0xc
test eax, eax
je 0x1002512b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x100251a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x10025170
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.10012940
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.10024d60
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x93c], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
Function at 0x10025550
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x288]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10025621
cmp dword [ecx + edx*4 + 0x160], 0x10024fd0
jne 0x10025621
cmp dword [esi], 0
je 0x10025598
test edi, edi
je 0x10025621
mov ebx, dword [ecx + edx*4 + 0x148]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.10033880
add esp, 0x14
cmp eax, 0xffffffff
je 0x10025621
test al, 1
je 0x10025621
mov ecx, dword [esi]
test ecx, ecx
jne 0x100255fc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x100255e7
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x1002561a
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10025621
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x100257b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x19c], 0
je 0x100257d0
push eax
call fcn.1001ecc0
add esp, 4
test eax, eax
jne 0x100257ee
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x100257cc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x100257cc
mov al, 1
pop ebp
ret

Function at 0x100259e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.10087820
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10025a5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10012940
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10025aa0
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.10025630
add esp, 0x10
test al, al
jne 0x10025aa9
call fcn.1008a912
mov esi, dword [eax]
call fcn.1008a912
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10012940
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10024d60
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
mov esp, ebp
pop ebp
ret
Function at 0x10026230
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10207854]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10026281
push 3
push 2
push eax
push 6
call fcn.10050870
add esp, 0x10
test al, al
je 0x10026275
mov dword [0x10207854], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10207854], 1
jmp 0x10026286
cmp eax, 2
je 0x100262c6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100262ad
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x100262c6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret