joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f825
Capabilities:
Check os version

Disassembly:
push edi
push 0xc
xor edi, edi
call fcn.100012ea
mov dword [0x1002b200], eax
cmp eax, edi
je 0x1000f8c1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1002b460
call esi
mov eax, 0x1002b458
push 0x1002b440
mov dword [0x1002b45c], eax
mov dword [0x1002b458], eax
call esi
mov eax, 0x1002b430
mov dword [0x1002b434], eax
mov dword [0x1002b430], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x1000f88b
cmp dword [0x1002b298], edi
jne 0x1000f88b
call fcn.100118f4
mov dword [0x1002b298], eax
xor esi, esi
push dword [esi + 0x1002a5b0]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x1002b200]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0xc
jb 0x1000f88d
mov dword [0x1002b204], 3
mov dword [0x1002b1fc], 1
pop esi
jmp 0x1000f8c4
push 8
pop edi
mov eax, edi
pop edi
ret

Function at 0x1000fbfc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], esi
call fcn.10010606
test eax, eax
jne 0x1000fca4
push esi
push esi
push dword [ebp + 8]
call fcn.1001134e
cmp eax, esi
je 0x1000fc9c
sub eax, edi
push ebx
push eax
mov eax, edi
call fcn.1001152c
mov ebx, eax
cmp ebx, esi
je 0x1000fc9b
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000fc9b
push esi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x1000fc92
push esi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000fc92
cmp dword [ebp - 0xc], 4
jne 0x1000fc92
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x1001056e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1002b208]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, 0x1000
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov ebx, esi
call fcn.100012ea
mov edi, eax
test edi, edi
je 0x100105fc
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 0xc]
call sub.PSAPI.DLL_EnumProcessModules
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100105cd
mov eax, dword [ebp - 4]
cmp ebx, eax
ja 0x100105d0
push edi
call fcn.100012ff
add ebx, esi
push ebx
call fcn.100012ea
mov edi, eax
test edi, edi
jne 0x1001059d
mov eax, dword [ebp - 4]
test edi, edi
je 0x100105fc
cmp dword [ebp - 0x10], 0
je 0x100105ed
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
shr eax, 2
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x100105fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 8], eax
call fcn.100012ff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001068d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 8
pop esi
push dword [ebp + 8]
xor edi, edi
call fcn.10010f23
mov ebx, eax
test ebx, ebx
je 0x100106fa
cmp dword [ebp + 0x14], edi
je 0x100106b9
push dword [ebp + 0x14]
call fcn.10010f23
mov edi, eax
test edi, edi
je 0x100106f4
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000e65c
mov esi, eax
test esi, esi
jne 0x100106ea
push dword [ebp + 0x18]
push eax
push edi
push ebx
push 0x1002c5e0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x100106e8
xor eax, eax
mov esi, eax
test edi, edi
je 0x100106f4
push edi
call fcn.100012ff
push ebx
call fcn.100012ff
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10010898
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0x10000
test esi, esi
je 0x100108b1
push esi
call fcn.100012ff
push dword [ebp - 4]
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x100108db
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000004
je 0x100108a7
jmp 0x100108e0
mov edi, 0xc000009a
test edi, edi
jl 0x10010903
push 0x1002b374
push esi
call fcn.100063ef
mov ecx, dword [esi]
test ecx, ecx
je 0x100108f9
add esi, ecx
jmp 0x100108fb
xor esi, esi
test esi, esi
je 0x10010903
test eax, eax
jne 0x100108e4
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
leave
ret

Function at 0x10010bc4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
and dword [esp + 4], 0
push ebx
push edi
lea eax, [esp + 0x10]
push eax
push 0x201
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10010c89
push 0x10
push eax
push esi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x10010c83
push dword [ebp + 8]
push ebx
call sub.ntdll.dll_strcpy
pop ecx
pop ecx
push 0x3a
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
test edi, edi
jne 0x10010c35
mov edi, ebx
jmp 0x10010c39
mov byte [edi], 0
inc edi
test edi, edi
je 0x10010c4f
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
cmp edi, ebx
je 0x10010c6a
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10010c7d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
jmp 0x10010c75
and dword [esi + 4], 0
cmp word [esi + 2], 0
je 0x10010c7d
mov dword [esp + 0xc], 1
push ebx
call fcn.100012ff
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10011065
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor edi, edi
push SysReAllocString
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10011103
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp dword [ebp - 4], edi
je 0x100110f9
push ebx
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
cmp ebx, edi
je 0x100110f1
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100110e9
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x100110f8
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x100110f8
push ebx
call fcn.100012ff
jmp 0x100110f8
mov dword [ebp + 8], 8
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp + 8]
pop edi
leave
ret 0x10

Function at 0x1001110b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x10011141
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x1001134e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [edi + 0x3c]
and dword [ebp - 0x14], 0
add eax, edi
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x1001136d
add eax, 0x78
jmp 0x10011372
add eax, 0x88
mov ecx, dword [eax]
push ebx
lea ebx, [ecx + edi]
test ecx, ecx
je 0x1001146f
cmp dword [eax + 4], 0
je 0x1001146f
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1001146f
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x1001146f
mov edx, dword [ebp + 8]
push esi
lea esi, [eax + edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edx
test edx, edx
je 0x100113be
cmp edx, 0xffff
ja 0x100113be
mov dword [ebp - 0xc], ecx
jmp 0x100113c8
mov eax, dword [ebx + 0x18]
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10011460
mov esi, dword [ebx + 0x20]
and dword [ebp - 8], 0
add eax, edi
add esi, edi
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
jbe 0x1001146e
cmp dword [ebp - 4], 0
je 0x100113fc
movzx eax, word [eax]
add eax, dword [ebx + 0x10]
cmp dword [ebp - 4], eax
jmp 0x10011428
mov eax, dword [esi]
add eax, edi
test edx, edx
je 0x10011410
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x10011428
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
push eax
add edx, edi
xor eax, eax
call fcn.10011b4e
not eax
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
je 0x10011445
add esi, 4
inc eax
inc eax
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp ecx, dword [ebp - 0xc]
jae 0x1001146e
mov edx, dword [ebp + 8]
jmp 0x100113eb
movzx eax, word [eax]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001146e
mov ecx, dword [esi]
add ecx, edi
mov dword [eax], ecx
jmp 0x1001146e
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001146e
lea eax, [esi + eax*4 - 4]
mov dword [ebp - 0x14], eax
pop esi
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 0xc

Function at 0x1001152c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [eax + ecx + 0x18]
movzx eax, word [ecx + 6]
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [edx + 0xc]
cmp dword [ebp + 8], edi
jb 0x10011567
mov esi, dword [ecx + 0x3c]
mov ebx, dword [edx + 0x10]
lea ebx, [ebx + esi - 1]
dec esi
not esi
and ebx, esi
add ebx, edi
cmp dword [ebp + 8], ebx
jb 0x10011579
add dword [ebp - 4], 0xffff
add edx, 0x28
cmp word [ebp - 4], ax
jne 0x10011549
jmp 0x10011581
mov eax, dword [edx + 0x14]
sub eax, edi
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100118f4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1002c866
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx edx, word [ecx + 0x14]
lea edx, [edx + ecx + 0x18]
movzx ecx, word [ecx + 6]
test ecx, ecx
je 0x10011933
test dword [edx + 0x24], 0x80000000
jne 0x100119dd
add edx, 0x28
dec ecx
jne 0x10011920
xor ecx, ecx
and dword [esp + 0x14], 0
test ecx, ecx
je 0x100119d2
mov esi, dword [ecx + 0xc]
and dword [esp + 0x10], 0
add esi, eax
mov eax, dword [ecx + 8]
lea ebx, [eax + esi - 8]
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0x100118e7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp esi, ebx
ja 0x100119d2
mov eax, dword [esi]
cmp eax, esi
jne 0x100119c8
cmp eax, dword [esi + 4]
jne 0x100119c8
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [eax + 4], ecx
mov eax, ecx
push 0x1002cb21
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100119b0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
cmp dword [esp + 0x10], 0
je 0x100119c8
mov dword [esp + 0x14], esi
add esi, 8
cmp dword [esp + 0x10], 0
je 0x10011978
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
jmp 0x10011935

Function at 0x100119e4
Capabilities:
Check os version

Disassembly:
push ebx
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x10011a1e
push 0x1002d000
push 0x1002c866
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10011a6b
push esi
push edi
push 0x1000f714
push 0
call eax
test eax, eax
jne 0x10011a6b
jmp 0x10011a64
cmp dword [0x1002b298], 0
jne 0x10011a35
call fcn.100118f4
mov dword [0x1002b298], eax
test eax, eax
je 0x10011a6b
push 0x10
call fcn.100012ea
test eax, eax
je 0x10011a68
mov ecx, dword [0x1002b298]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0x1000f714
mov dword [eax + 0xc], edi
mov dword [esi], eax
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
xor ebx, ebx
jmp 0x10011a6b
push 8
pop ebx
mov eax, ebx
pop ebx
ret

Function at 0x10011b4e
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x10011b97
cmp dword [esp + 4], 0
not eax
je 0x10011b93
push esi
mov cl, byte [edx]
dec dword [esp + 8]
movzx ecx, cl
mov esi, ecx
xor esi, eax
and esi, 0xf
shr eax, 4
xor eax, dword [esi*4 + 0x10027460]
shr ecx, 4
mov esi, eax
and esi, 0xf
xor ecx, esi
shr eax, 4
xor eax, dword [ecx*4 + 0x10027460]
inc edx
cmp dword [esp + 8], 0
jne 0x10011b5c
pop esi
not eax
jmp 0x10011b99
xor eax, eax
ret 4
Function at 0x10011e10
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10017e4f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x10017edc
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x10017e9c
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x10017ebe
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x10017f97
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x10017f04
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x10017f0f
xor eax, eax
jmp 0x10017f58
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x10017f2c
mov ecx, dword [edi]
mov eax, dword [edi + 0x28]
push edx
call fcn.10022eac
jmp 0x10017f3c
cmp ecx, 2
jne 0x10017f42
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [edi]
call fcn.10011b4e
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x10017f83
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x10017f97
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x10017e5a
pop edi
pop ebx
leave
ret
Function at 0x1001d48b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor edi, edi
push 0x40
lea eax, [ebp - 0x4c]
push edi
push eax
mov dword [ebp - 8], edi
call sub.ntdll.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, edi
je 0x1001d563
cmp dword [ebp + 0xc], edi
je 0x1001d563
cmp dword [ebp + 0x10], edi
je 0x1001d563
mov ecx, dword [ebp + 0xc]
call fcn.1001cdc5
test eax, eax
je 0x1001d563
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001d53a
push esi
lea ecx, [ebp - 0x4c]
call fcn.1001c946
test eax, eax
je 0x1001d563
mov dword [ebp - 8], 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push dword [ebp + 0xc]
push eax
push 9
pop edx
call fcn.1001ce6d
lea esi, [ebp - 0x4c]
mov ebx, eax
call fcn.1001d27e
test eax, eax
jne 0x1001d517
xor ebx, ebx
lea edi, [ebp - 0x4c]
call fcn.1001d3c3
test eax, eax
jne 0x1001d525
xor ebx, ebx
test ebx, ebx
jne 0x1001d536
cmp dword [ebp - 8], ebx
je 0x1001d536
push dword [ebp + 8]
call fcn.10019e4a
mov eax, ebx
jmp 0x1001d565
push 0x809
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.1001c633
push esi
test eax, eax
je 0x1001d4e2
lea eax, [ebp - 0x4c]
push eax
call fcn.1001c996
test eax, eax
jne 0x1001d4f5
lea edi, [ebp - 0x4c]
call fcn.1001c6d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001dad2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x18]
push 8
pop eax
call fcn.1001e2f4
mov edi, eax
cmp edi, ebx
jne 0x1001dbad
cmp byte [ebp - 8], 1
push 0x57
pop edi
je 0x1001db22
cmp byte [ebp - 8], 2
jne 0x1001dbad
cmp byte [ebp - 1], bl
je 0x1001db45
push ebx
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001db40
cmp byte [ebp - 1], bl
jne 0x1001db27
cmp byte [ebp - 1], bl
jne 0x1001dbad
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea edi, [esi + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x1001dbb3
push 2
pop ecx
mov word [ebp - 0x20], cx
mov cx, word [ebp - 7]
mov word [ebp - 0x1e], cx
mov ecx, dword [ebp - 5]
mov dword [ebp - 0x1c], ecx
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1001db85
xor edi, edi
jmp 0x1001dbbf
push edi
call fcn.1001dc3f
mov edi, 0x4d0
mov byte [ebp - 0xf], 0x5b
push ebx
push 8
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1001dbad
mov edi, 0x4d4
mov eax, edi
pop edi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x1001db90
mov byte [ebp - 0xf], 0x5a
jmp 0x1001db94
Function at 0x1001dfdd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push 0x30
mov dword [ebp - 4], 8
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x2710
mov dword [ebp - 0x10], 0x3e8
mov dword [ebp - 0xc], 0x493e0
mov dword [ebp - 8], ebx
call fcn.100012ea
mov esi, eax
cmp esi, ebx
je 0x1001e0dd
push 0x30
push ebx
push esi
call sub.ntdll.dll_memset
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x98000004
push dword [ebp + 8]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 0xc], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1001e0d8
cmp dword [edi + 0x30], ebx
je 0x1001e07c
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1006
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1001e0d8
push dword [ebp + 8]
push esi
call dword [edi + 0x24]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1001e0d8
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
lea eax, [edi + 8]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10
push esi
push 0x1001dca9
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x1001e0c1
mov eax, dword [edi + 4]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [edi + 4], esi
mov dword [ebp - 4], ebx
jmp 0x1001e0ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
je 0x1001e0dd
call fcn.1001dc67
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
push 0
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1001e33c
cmp eax, 0xffffffff
jne 0x1001e330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1001e341
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x1001e336
sub edi, eax
add dword [esp + 0x10], eax
test edi, edi
jne 0x1001e2fa
jmp 0x1001e341
mov esi, 0x4d4
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x1001e348
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0x10], edi
jne 0x1001e36a
push 0x57
pop ebx
jmp 0x1001e472
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
cmp ebx, edi
jne 0x1001e44c
xor ebx, ebx
inc ebx
push 0x54
mov dword [esp + 0x10], ebx
call fcn.100012ea
mov esi, eax
cmp esi, edi
jne 0x1001e3a0
push 8
pop ebx
jmp 0x1001e467
push 0x54
push edi
push esi
call sub.ntdll.dll_memset
push 0x10
push dword [ebp + 8]
lea eax, [esi + 0x2c]
push eax
call sub.ntdll.dll_memcpy
add esp, 0x18
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or dword [esi + 0x3c], 0xffffffff
push edi
push edi
push ebx
push edi
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x40], eax
cmp eax, edi
je 0x1001e455
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x44], eax
cmp eax, edi
jne 0x1001e3fb
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
cmp eax, edi
je 0x1001e455
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrDupA]
push 6
push ebx
push 2
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], fcn.1001dbc5
mov dword [esi + 0x28], 0x1001dbf9
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x1001e455
lea eax, [esi + 0x50]
push eax
push edi
push esi
push 0x1001e0e6
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x1001e455
mov dword [0x1002b108], esi
xor ebx, ebx
jmp 0x1001e450
mov esi, dword [esp + 0xc]
cmp ebx, 0xffffffff
jne 0x1001e45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
je 0x1001e472
cmp dword [esp + 0xc], edi
je 0x1001e472
call fcn.1001e47d
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc