joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1301a530
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push ebx
push esi
push 6
push 1
push 2
xor bl, bl
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1301a5b0
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c]
push 0x13111e6c
mov word [esp + 0xe], ax
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1301a5a9
push 0x13111e84
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1301a5a9
push 0x10
lea edx, [esp + 0xc]
push edx
push esi
call eax
test eax, eax
sete bl
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x1301a5e0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
lea edx, [esp + 4]
push edx
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x1301a5c0
push 0
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], ecx
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1301a63a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x10]
pop esi
add esp, 0x10
ret

Function at 0x1301a6b0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1310e538
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x1301a6e0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1301a716
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x1301a6fd
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1301a716
cmp word [eax + 0xa], 0
je 0x1301a716
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [ecx]
mov edx, dword [edi + 0x68]
push edx
push esi
call fcn.1301a5e0
mov ecx, dword [esp + 0x3c]
add esp, 8
mov byte [ecx], al
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x1301a745
mov edx, dword [esp + 0x1c]
push edx
call fcn.13030fdc
add esp, 4
mov ecx, dword [esp + 8]
pop edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x20
Function at 0x1301b050
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x1310e62a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov dword [esp + 0x5c], 1
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
call fcn.1301c590
mov byte [esp + 0x5c], 2
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
call fcn.13004980
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x38]
call fcn.13004980
lea edx, [esp + 0xc]
push edx
push ebx
lea eax, [esp + 0x18]
push eax
push 0x1301aa90
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1301b0e0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x50]
cmp al, bl
je 0x1301b109
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x48]
mov dword [ecx], edx
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x4c]
mov dword [ecx], edx
mov byte [esp + 0xb], al
mov byte [esp + 0x5c], 1
lea ecx, [esp + 0x10]
call fcn.1301c5f0
mov byte [esp + 0x5c], bl
mov esi, 0x10
cmp dword [esp + 0x7c], esi
jb 0x1301b137
mov eax, dword [esp + 0x68]
push eax
call fcn.13030fdc
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x98], esi
jb 0x1301b168
mov ecx, dword [esp + 0x84]
push ecx
call fcn.13030fdc
add esp, 4
mov ecx, dword [esp + 0x54]
mov al, byte [esp + 0xb]
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
pop esi
mov dword [esp + 0x94], 0xf
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x1301c590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1310e523
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov dword [esp], eax
mov byte [eax + 4], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x20], cl
mov byte [esp + 0xc], 1
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov byte [eax + 0x40], cl
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1301ec50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1310ea19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0xc], esi
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov byte [esp + 0x14], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esp + 0x14], 2
mov dword [esi + 0x58], 0xf
mov dword [esi + 0x54], ebx
mov byte [esi + 0x44], bl
mov byte [esp + 0x14], 3
mov dword [esi + 0x6c], ebx
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1301f6b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
jmp 0x1301f6cb
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], 0x63
mov word [ebp - 0x1e], 0x6c
mov word [ebp - 0x1c], 0x69
mov word [ebp - 0x1a], 0x65
mov word [ebp - 0x18], 0x78
mov word [ebp - 0x16], 0x74
mov word [ebp - 0x14], 0x2e
mov word [ebp - 0x12], 0x64
mov word [ebp - 0x10], 0x6c
mov word [ebp - 0xe], 0x6c
mov word [ebp - 0xc], 0
mov byte [ebp - 5], 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1301f73c
mov edx, dword [0x1316509c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1301f772
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x1301f772
mov byte [ebp - 5], 1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x28], edx
movzx eax, byte [ebp - 5]
test eax, eax
jne 0x1301f78d
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x28], 0xdbba0
jmp 0x1301f79f
mov esp, ebp
pop ebp
ret
Function at 0x13028220
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1310eed6
push eax
mov eax, 0x8378
mov dword fs:[0], esp
call fcn.13031f00
push edi
xor edi, edi
cmp dword [ecx], edi
jne 0x13028418
push 0x206
lea eax, [esp + 0xb2]
push edi
push eax
mov dword [ecx], 1
mov word [esp + 0xb8], di
call fcn.130309b0
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x13112234
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x80c6
lea eax, [esp + 0x2ba]
push edi
push eax
mov word [esp + 0x2c0], di
call fcn.130309b0
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
push 0x4000
lea edx, [esp + 0x2bc]
push edx
push edi
push str.AutoItemList
push str.AutoItem
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x13028418
lea eax, [esp + 0x2b4]
push eax
lea ecx, [esp + 0xc]
call fcn.13004b60
mov dword [esp + 0x8384], edi
push 1
push 3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.1301eb40
mov byte [esp + 0x8384], 2
cmp dword [esp + 0x20], 8
jb 0x13028326
mov edx, dword [esp + 0xc]
push edx
call fcn.13030fdc
add esp, 4
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
mov dword [esp + 8], edi
call fcn.1302a4d0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
neg dl
sbb edx, edx
not edx
test ecx, edx
je 0x130283c2
mov ecx, dword [esp + 4]
cmp ecx, edi
jle 0x13028384
mov eax, dword [0x13165bc8]
cmp eax, 0xc7
jge 0x130283ac
mov dword [eax*4 + 0x131658a8], ecx
add eax, 1
mov dword [0x13165bc8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x28]
call fcn.1302a4d0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
neg dl
sbb edx, edx
not edx
test ecx, edx
jne 0x13028361
jmp 0x130283c2
push 0x40000
push str.Client.ini
push str.Too_many_items_in_AutoItemList_
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [0x13165bc8], edi
jle 0x13028404
push esi
push str.NWindow.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x13028403
push edi
lea eax, [esi + 0x149f09]
push 0x130281f0
push eax
call fcn.13001220
push edi
lea eax, [esi + 0x146ce0]
push 0x130281f0
push eax
call fcn.13001220
add esp, 0x18
pop esi
mov dword [esp + 0x8384], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.130045b0
mov ecx, dword [esp + 0x837c]
pop edi
mov dword fs:[0], ecx
add esp, 0x8384
ret
Function at 0x1302b560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
jmp 0x1302b575
mov al, 0x65
mov cl, 0x6c
push 5
mov dl, 0x72
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0x14], al
mov byte [esp + 0x18], al
mov byte [esp + 5], al
mov byte [esp + 0xb], al
push 0x1302b4f0
lea eax, [esp + 0x14]
mov byte [esp + 0x25], cl
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], cl
mov byte [esp + 0x1b], cl
mov byte [esp + 0xe], cl
mov byte [esp + 0x22], dl
mov byte [esp + 0x15], dl
mov dl, 0x69
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x28], 0x4b
mov byte [esp + 0x2b], 0x6e
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], 0
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x21], 0x46
mov byte [esp + 0x22], dl
mov byte [esp + 0x25], 0
mov byte [esp + 0x10], 0x52
mov byte [esp + 0x12], 0x61
mov byte [esp + 0x13], 0x64
mov byte [esp + 0x14], 0x46
mov byte [esp + 0x15], dl
mov byte [esp + 0x18], 0
call fcn.13001400
push 5
push 0x1302b480
lea edx, [esp + 0x18]
mov dword [0x13165bdc], eax
push edx
lea eax, [esp + 0x34]
push eax
call fcn.13001400
add esp, 0x20
mov dword [0x13165bd8], eax
jmp 0x1302b658
add esp, 0x28
ret

Function at 0x1302b780
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
jmp 0x1302b799
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x1302b7be
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1302b7d0
mov esp, ebp
pop ebp
ret

Function at 0x1302b7f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
jmp 0x1302b809
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x1302b85a
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], eax
xor eax, eax
call fcn.1302b7e0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
jmp 0x1302b86c
mov esp, ebp
pop ebp
ret
Function at 0x1302bcb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1310ef30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea eax, [esi + 8]
mov dword [esi], vtable.CJobHandler.0
xor edi, edi
push eax
mov dword [esp + 0xc], esi
mov dword [eax + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 1
push edi
call fcn.13031eba
add esp, 4
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1303468b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1315d264]
jne 0x13034695
repz ret
jmp fcn.1303f689
Function at 0x1303e568
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x1303e595
call fcn.130345c4
mov dword [eax], esi
call fcn.130345b1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.130311bd
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x1303e571
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1303e5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.130345d7
pop ecx
call fcn.130345b1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x1303e5eb
test al, 1
je 0x1303e5eb
test byte [esp + 0xc], 2
je 0x1303e5eb
call fcn.130345c4
mov dword [eax], 5
call fcn.130345b1
mov dword [eax], 0xd
jmp 0x1303e5bb
xor eax, eax
pop esi
ret

Function at 0x13042b81
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1315de68]
je 0x13042b9c
inc edi
cmp edi, 0x17
jb 0x13042b8d
cmp edi, 0x17
jae 0x13042d1c
push ebp
push 3
call fcn.1304944a
cmp eax, 1
pop ecx
je 0x13042ce8
push 3
call fcn.1304944a
test eax, eax
pop ecx
jne 0x13042bd0
cmp dword [0x131686f0], 1
je 0x13042ce8
cmp ebx, 0xfc
je 0x13042d1b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x13168d50
push ebp
call fcn.13032479
add esp, 0xc
test eax, eax
je 0x13042c06
push esi
push esi
push esi
push esi
push esi
call fcn.130310c1
add esp, 0x14
push 0x104
mov esi, 0x13168d69
push esi
push 0
mov byte [0x13168e6d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x13042c4a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.13032479
add esp, 0xc
test eax, eax
je 0x13042c4a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.130310c1
add esp, 0x14
push esi
call fcn.13034600
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x13042c8f
push esi
call fcn.13034600
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x13169064
push 0x13114144
sub ecx, eax
push ecx
push eax
call fcn.13040372
add esp, 0x14
test eax, eax
je 0x13042c8f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.130310c1
add esp, 0x14
jmp 0x13042c91
xor esi, esi
push 0x13114140
push ebx
push ebp
call fcn.13040301
add esp, 0xc
test eax, eax
je 0x13042cb1
push esi
push esi
push esi
push esi
push esi
call fcn.130310c1
add esp, 0x14
push dword [edi*8 + 0x1315de6c]
push ebx
push ebp
call fcn.13040301
add esp, 0xc
test eax, eax
je 0x13042cd3
push esi
push esi
push esi
push esi
push esi
call fcn.130310c1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1304928d
add esp, 0xc
jmp 0x13042d1b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x13042d1b
cmp ebp, 0xffffffff
je 0x13042d1b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1315de6c]
push dword [esi]
call fcn.13034600
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1304928d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.13037a9b
xor ebx, ebx
cmp dword [0x1316918c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x13049363
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x13049443
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x131149ec
push edi
call esi
cmp eax, ebx
je 0x13049443
push eax
call fcn.13037a2d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1316918c], eax
call esi
push eax
call fcn.13037a2d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x13169190], eax
call esi
push eax
call fcn.13037a2d
mov dword [0x13169194], eax
lea eax, [ebp - 0xc]
push eax
call fcn.13036fe9
test eax, eax
pop ecx
pop ecx
je 0x13049331
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.130310c1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x13049363
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.13037a2d
cmp eax, ebx
pop ecx
mov dword [0x1316919c], eax
je 0x13049363
push 0x13114994
push edi
call esi
push eax
call fcn.13037a2d
pop ecx
mov dword [0x13169198], eax
mov eax, dword [0x13169198]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x130493e8
cmp dword [0x1316919c], ecx
je 0x130493e8
push eax
call fcn.13037aa4
push dword [0x1316919c]
mov esi, eax
call fcn.13037aa4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x130493e8
cmp edi, ebx
je 0x130493e8
call esi
cmp eax, ebx
je 0x130493b5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x130493b5
test byte [ebp - 0x18], 1
jne 0x130493e8
lea eax, [ebp - 0x10]
push eax
call fcn.1303705c
test eax, eax
pop ecx
je 0x130493d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.130310c1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x130493df
or dword [ebp + 0x10], 0x200000
jmp 0x13049423
or dword [ebp + 0x10], 0x40000
jmp 0x13049423
mov eax, dword [0x13169190]
cmp eax, dword [ebp - 8]
je 0x13049423
push eax
call fcn.13037aa4
cmp eax, ebx
pop ecx
je 0x13049423
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x13049423
mov eax, dword [0x13169194]
cmp eax, dword [ebp - 8]
je 0x13049423
push eax
call fcn.13037aa4
cmp eax, ebx
pop ecx
je 0x13049423
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1316918c]
call fcn.13037aa4
cmp eax, ebx
pop ecx
je 0x13049443
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x13049445
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1304b650
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1315d264]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1304b6a0
mov ax, word [esp]
cmp al, 2
jne 0x1304b69a
cmp ah, al
jne 0x1304b69a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1303468b
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.1303468b
add esp, 0x194
ret
Function at 0x13056d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x13056d82
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 0x13056ec0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x13056edb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x13056f0f
cmp eax, 2
jg 0x13056f0f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x13116518]
push 2
push edx
call fcn.13033484
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.13033484
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x1305729d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x13057274
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.1304c980
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.130570a0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x858c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x13058d50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x408], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x13058d8e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.13057010
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x40c]
push edx
mov dword [esp + 0xc], 1
call fcn.13075c00
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x410]
push eax
call fcn.13075c00
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x13058e07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.13057010
add esp, 0x10
add esp, 0x14
ret