joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61405
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 6
xor esi, esi
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
push esi
push 1
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x619fc
push ebx
push dword [ebp + 0x14]
push edi
call fcn.0006360c
push eax
push dword [ebp + 8]
call fcn.00061e66
test eax, eax
je 0x61a12
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x617bb
push esi
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
je 0x619e5
cmp dword [ebp - 0x18], 0x50
je 0x64d35
mov eax, dword [0x6cce8]
cmp eax, esi
jne 0x64d4d
lea eax, [ebp - 0x1c]
push eax
push dword [0x6c080]
push dword [0x6c020]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x61481
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x61481
call fcn.00061a1c
cmp ebx, esi
je 0x619f5
push ebx
call dword [sym.imp.USER32.dll_UnhookWinEvent]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 0x10
test eax, eax
je 0x614a9
jmp 0x61481
mov dword [ebp - 0x14], esi
jmp 0x619f5
push esi
push esi
push 0x8001
push dword [0x6c020]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x6149c
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
jmp 0x61a05
Function at 0x61aa5
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [0x6c020]
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [0x6c028]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
push eax
push 0x300
push 1
push ebx
mov dword [ebp - 4], eax
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
push dword [ebp - 4]
push 0x301
push 1
push ebx
call esi
push eax
call edi
push dword [ebp - 4]
push 0x303
push 1
push ebx
call esi
push eax
call edi
push 0
push 0x19
push 1
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 1
je 0x61c71
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x61b5a
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
cmp dword [ebp - 8], eax
sete al
push eax
push 0x302
push 1
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xe
push dword [0x6c028]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x61b91
and dword [ebp - 4], 0
push dword [ebp - 4]
push 0x15
push 1
push ebx
call esi
push eax
call edi
push dword [ebp - 4]
push 0x16
push 1
push ebx
call esi
push eax
call edi
xor eax, eax
cmp dword [0x6c034], eax
setne al
push eax
push 0x18
push 1
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xc6
push dword [0x6c028]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x10
push 1
push ebx
call esi
push eax
call edi
mov eax, dword [0x6c034]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x20
push 2
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push eax
call edi
mov eax, dword [0x6c02c]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x1b
push 3
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 4], eax
jne 0x61b3c
push 0
push 0x19
push eax
push ebx
call esi
push eax
call edi
jmp 0x61b3c
Function at 0x62f8b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0xd
push 0x400
mov dword [0x6c184], 0x64240
mov dword [0x6c18c], 0xc
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x31
jne 0x64a14
mov eax, 0x3e8
mov dword [0x6c170], eax
mov dword [0x6c178], eax
mov dword [0x6c150], 0xa006
mov eax, 0x2ee
mov dword [0x6c174], eax
mov dword [0x6c16c], eax
leave
ret
mov eax, 0x9c4
mov dword [0x6c170], eax
mov dword [0x6c178], eax
mov dword [0x6c150], 0xa00a
mov eax, 0x7d0
jmp 0x62fe1

Function at 0x6355b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
je 0x635a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x635a6
cmp dword [ebp - 4], 4
jne 0x635a6
mov eax, dword [ebp - 8]
leave
ret 0xc
mov eax, dword [ebp + 0x10]
jmp 0x635a2

Function at 0x635b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
add esi, esi
cmp dword [ebp + 8], 0
mov dword [ebp + 0x18], esi
je 0x635ec
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x635ec
cmp dword [ebp + 8], 1
jne 0x635ec
pop esi
pop ebp
ret 0x14
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x635e7
Function at 0x63689
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x3c], 1
jne 0x64368
push 0xa
pop eax
push eax
push esi
push 0
push 0x60000
call fcn.00061405
mov dword [0x6c070], eax
cmp dword [0x6c064], 0
jne 0x66c97
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
call fcn.00063053
push 0x58
push 0x637a0
call fcn.00063b0c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x6c25c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x66c10
xor esi, esi
inc esi
mov eax, dword [0x6c0a4]
cmp eax, esi
je 0x66c2e
mov eax, dword [0x6c0a4]
test eax, eax
jne 0x64371
mov dword [0x6c0a4], esi
push 0x6379c
push 0x63790
call fcn.00063660
pop ecx
pop ecx
test eax, eax
jne 0x66cbb
mov eax, dword [0x6c0a4]
cmp eax, esi
jne 0x6373a
push 0x6378c
push 0x63784
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x6c0a4], 2
test ebx, ebx
jne 0x63746
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x6cd0c], 0
jne 0x66c3b
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x637c8
cmp al, 0x22
je 0x6437c
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x66c5f
inc esi
jmp 0x6375a
test al, al
je 0x637d2
cmp dword [ebp - 0x1c], 0
jne 0x63763
mov al, byte [esi]
test al, al
je 0x616d1
cmp al, 0x20
ja 0x616d1
inc esi
mov dword [ebp - 0x20], esi
jmp 0x637d2
movzx eax, word [ebp - 0x38]
jmp 0x616de
mov dword [0x6d7a8], esi
jmp 0x63716
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x6376b
cmp eax, esi
jne 0x66c1e
xor esi, esi
inc esi
mov ebx, esi
jmp 0x636dd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x636c8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x63716
push 0x6cd0c
call fcn.00069e73
pop ecx
test eax, eax
je 0x63753
push 0
push 2
push 0
call dword [0x6cd0c]
jmp 0x63753
inc esi
mov dword [ebp - 0x20], esi
jmp 0x6377e
cmp dword [0x6d7a8], 0
jne 0x66ca6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x6c070]
jmp 0x66cc7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.000623d0
ret
Function at 0x66e32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push 0x6d170
push ebx
mov dword [ebp - 0x408], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x66f46
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x410], eax
cmp eax, 0xffffffff
je 0x66f3d
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jle 0x66f31
cmp dword [ebp - 0x40c], 0
je 0x66f31
push dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push eax
call fcn.000671c2
mov dword [0x6c00c], eax
cmp eax, 0xffffffff
je 0x66f21
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
lea edx, [ebp - 0x408]
push edx
push 0x63c74
push eax
call dword [ecx]
test eax, eax
jl 0x66f21
push dword [0x6c00c]
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 0x104
push 0x6d170
call fcn.00062558
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x414]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00061564
leave
ret 8

Function at 0x67a58
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
jbe 0x67a87
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
movzx si, byte [eax + 1]
mov di, word [eax]
shl di, 8
xor si, di
mov word [ecx], si
inc ecx
inc ecx
inc eax
inc eax
dec edx
jne 0x67a6c
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x67a90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x67aa8
xor eax, eax
inc eax
jmp 0x67b36
cmp dword [ebp + 0xc], 0xfde9
mov dword [ebp - 4], ebx
je 0x67aba
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
je 0x67af7
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x67afb
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x67b34
push dword [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, ebx
je 0x67b29
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x6973a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, 0x400
push esi
mov dword [ebp - 4], 1
call fcn.000696ae
test eax, eax
je 0x69780
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 4]
call fcn.000696f8
test eax, eax
mov eax, dword [ebp + 8]
je 0x6977d
or dword [eax], 0x20
jmp 0x69780
or dword [eax], 0x10
pop esi
leave
ret 4
Function at 0x401990
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0x2000
push 0x2000
push 0
push 0x4609d8
call fcn.00433610
add esp, 0xc
push 0x2000
push 0
push 0x4629d8
call fcn.00433610
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov al, byte [edx]
mov byte [ebp - 0x2d], al
add dword [ebp - 0x28], 1
cmp byte [ebp - 0x2d], 0
jne 0x4019d4
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4609d8
call fcn.004369a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x38]
mov cl, byte [eax]
mov byte [ebp - 0x3d], cl
add dword [ebp - 0x38], 1
cmp byte [ebp - 0x3d], 0
jne 0x401a13
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4629d8
call fcn.004369a0
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov word [ebp - 8], dx
mov eax, 0x694
mov word [ebp - 0x14], ax
mov dword [ebp - 0xe], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xa], 0
mov dword [ebp - 0x1c], 0x4609d8
mov dword [ebp - 0x18], 0x4629d8
mov dword [ebp - 0x20], 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00433610
add esp, 0xc
mov dword [ebp - 0x48], 0x44
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401afa
xor al, al
jmp 0x401afc
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4051c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x45c510]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x135], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x4051f9
xor al, al
jmp 0x4052c0
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4052ad
push 0x400
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004315df
add esp, 0xc
test eax, eax
jne 0x405292
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
je 0x405292
push 0
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x135], 1
cmp dword [ebp + 0xc], 0
je 0x405292
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x134]
push eax
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 4], eax
jmp 0x405219
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x135]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00430e59
mov esp, ebp
pop ebp
ret
Function at 0x411550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x45c510]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41159a
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4115b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00430e59
mov esp, ebp
pop ebp
ret
xor bl, bl
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4115c2
cmp eax, dword [0x464a30]
je 0x4115d3
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4115b2
jmp 0x4115d5
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00430e59
mov esp, ebp
pop ebp
ret

Function at 0x411600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449666
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
mov eax, dword [0x45c510]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
cmp dword [0x464a38], 0
je 0x4116d3
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.004095e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0xc0], 0
call fcn.0040d080
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00411e60
mov ecx, esi
call fcn.00408fb0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
call fcn.00409710
mov byte [esp + 0xb8], 1
mov ecx, dword [0x464a38]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x10]
mov bl, al
call fcn.00402670
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004083a0
mov al, bl
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4135a0
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x4135af
xor al, al
pop edi
ret 4
push esi
mov esi, dword [esp + 0xc]
push 0
mov ecx, esi
call fcn.00402800
push eax
mov ecx, esi
call fcn.004027e0
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, esi
mov edi, eax
call fcn.00402800
cmp edi, eax
pop esi
sete al
pop edi
ret 4

Function at 0x413640
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x45c510]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
push 0
mov edi, eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov ebp, dword [sym.imp.WS2_32.dll_bind]
mov ecx, 2
mov dword [esp + 0x18], eax
mov word [esp + 0x14], cx
lea ebx, [ebx]
call fcn.00431c29
cdq
mov ecx, 0xd8f0
idiv ecx
add edx, 0x2710
movzx esi, dx
push esi
call ebx
push 0x10
lea edx, [esp + 0x18]
push edx
push edi
mov word [esp + 0x22], ax
call ebp
cmp eax, 0xffffffff
je 0x413690
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4136e9
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00430e59
add esp, 0x18
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edi
pop edi
mov word [eax + 0xc], si
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00430e59
add esp, 0x18
ret 4

Function at 0x413710
Capabilities:
Get socket status

Disassembly:
sub esp, 0x124
mov eax, dword [0x45c510]
xor eax, esp
mov dword [esp + 0x120], eax
cmp dword [esi + 8], 0xffffffff
jne 0x413785
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41379c
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x14], eax
xor eax, eax
push eax
push eax
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x41379c
mov edx, dword [esi + 4]
lea eax, [esp]
push eax
lea ecx, [esp + 0x114]
push ecx
push edx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
je 0x41379c
mov dword [esi + 8], eax
mov al, 1
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00430e59
add esp, 0x124
ret
mov ecx, dword [esp + 0x120]
xor ecx, esp
xor al, al
call fcn.00430e59
add esp, 0x124
ret
Function at 0x4137c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x45c510]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x413834
mov eax, 2
push 0x450f64
mov word [esp + 8], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 8]
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x413834
mov dword [edi + 8], esi
mov al, 1
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00430e59
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
xor al, al
call fcn.00430e59
add esp, 0x14
ret 4

Function at 0x413850
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x448ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x45c510]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c510]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x570]
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
lea edx, [esp + 0x64]
push edx
push ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x413933
push 0x3ff
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.00433610
mov edx, dword [esi + 8]
add esp, 0xc
push ebx
push 0x400
lea ecx, [esp + 0x164]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x413933
push eax
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x28]
call fcn.0040b860
push eax
lea ecx, [esi + 0x10]
mov dword [esp + 0x56c], ebx
call fcn.004026d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x568], 0xffffffff
call fcn.00402670
push 1
push ebx
lea ecx, [esp + 0x1c]
add esi, 0x10
push ecx
mov ecx, esi
mov byte [esp + 0x20], 0xa
call fcn.00402be0
mov edi, eax
cmp edi, 0xffffffff
je 0x4139b6
push edi
push ebx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.004028b0
push eax
mov ecx, ebp
mov dword [esp + 0x56c], 1
call fcn.00402690
lea ecx, [esp + 0x20]
mov dword [esp + 0x568], 0xffffffff
call fcn.00402670
push 0xffffffffffffffff
inc edi
push edi
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.004028b0
push eax
mov ecx, esi
mov dword [esp + 0x56c], 2
call fcn.00402690
lea ecx, [esp + 0x3c]
call fcn.00402670
mov al, 1
jmp 0x4139b8
xor al, al
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.00430e59
add esp, 0x558
ret 4