joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4929b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5c5c18]
cmp dword [eax + 0x30], 0
je 0x492a5a
cmp dword [ebx + 0x94], 0
jne 0x492a54
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x492940
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x492a54
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x492a1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x492a54
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e504
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x492a29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4935bc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4935f1
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040469c
jmp 0x4935fe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404600
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x494708
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x494749
mov eax, esi
call fcn.0047a3f4
test al, al
je 0x494749
mov eax, dword [ebx + 0x84]
call fcn.0047a0f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x494749
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047a0f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x498198
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4981c6
mov eax, ebx
call fcn.00498c4c
cmp dword [ebx + 0x40], 0
je 0x4981bf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x498237
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x498229
cmp dword [ebx + 8], 0
je 0x4981e8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4981fa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x498229
cmp dword [ebx + 8], 0
je 0x4981db
cmp eax, 3
je 0x49820d
dec eax
jne 0x4981db
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4981db
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4981db
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x498255
cmp dword [ebx + 0x14], 0xcc
je 0x498255
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00498260
pop ebx
ret
Function at 0x4ab78c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ab9ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4ab7ef
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004ab254
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e064
cmp al, 1
jne 0x4ab7ef
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004ab56c
test al, al
je 0x4ab97b
cmp dword [ebp - 8], 0
jge 0x4ab80d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004ab254
mov eax, dword [ebp - 0x210]
call fcn.0040486c
cmp ebx, eax
jge 0x4ab857
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004ab254
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5c4814]
and eax, 0xff
bt dword [edx], eax
jae 0x4ab857
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4ab86b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004ab768
cmp ebx, dword [ebp - 8]
je 0x4ab96d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4ab897
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x5c2e44]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4ab95a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x5c2e44]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.0047a0f0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x5c2e44]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0047a0f0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab961
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4ab9ce
cmp dword [ebp - 8], 0
jge 0x4ab986
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004ab254
mov eax, dword [ebp - 0x218]
call fcn.0040486c
cmp eax, dword [ebp - 8]
jg 0x4ab9c0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004ab254
mov eax, dword [ebp - 0x21c]
call fcn.0040486c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ab768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab9f3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004045d0
ret
Function at 0x4b9ee8
Capabilities:
Get geographical location

Disassembly:
push ecx
mov dl, byte [eax + 0x251]
cmp dl, 7
jne 0x4b9f14
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
xor eax, eax
mov al, byte [esp]
sub eax, 0x30
pop edx
ret
xor eax, eax
mov al, dl
pop edx
ret

Function at 0x4d0680
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b198]
call fcn.0040508c
xor eax, eax
push ebp
push 0x4d07c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5c2eec], 0
jne 0x4d06d3
mov ecx, dword [0x5c4008]
mov dl, 1
mov eax, dword [0x408100]
call fcn.0040d71c
call fcn.00403f48
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fd8
mov eax, ebx
call fcn.00404e44
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4d07d4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406480
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e54
test eax, eax
jle 0x4d076b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4d0764
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404834
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040481c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040903c
test eax, eax
jne 0x4d0764
mov ebx, 0x15
jmp 0x4d0770
mov ebx, 0x10
jmp 0x4d0770
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x5c2eec]
call fcn.004d057c
mov eax, dword [ebp - 8]
call fcn.004d057c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d07cb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045d0
lea eax, [ebp - 0x10]
mov edx, dword [0x41b198]
call fcn.0040515c
ret

Function at 0x4d3a14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d3a85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x5c2f1c]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4d3a6f
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004d3a04
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d1720]
call fcn.004d49a8
mov dword [0x5c2f84], eax
mov eax, dword [ebp - 4]
call fcn.004d3858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3a8c
lea eax, [ebp - 8]
call fcn.00406480
ret
Function at 0x4d3b24
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x4d3b37
or esi, 2
test dl, dl
je 0x4d3b40
or esi, 0
jmp 0x4d3b43
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret

Function at 0x4d4830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404a5c
xor eax, eax
push ebp
push 0x4d4970
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x4d1498]
call fcn.0041a244
test eax, eax
jl 0x4d4894
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.004d3b08
and eax, 0x7f
mov eax, dword [eax*4 + 0x5c2f1c]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x4d48f7
mov eax, dword [ebx]
call fcn.0040486c
test eax, eax
jle 0x4d48f7
mov eax, dword [ebx]
call fcn.0040486c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x4d48bb
mov eax, ebx
mov edx, 0x4d4988
call fcn.00404874
mov eax, dword [ebx]
call fcn.0040486c
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.00405624
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.004d3a04
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4d4935
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x4d4994
call fcn.0040a6ac
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404600
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x408100]
call fcn.0040d660
call fcn.00403f48
mov eax, dword [ebp - 8]
call fcn.004d47a8
mov ebx, eax
test edi, edi
je 0x4d494a
mov eax, edi
call fcn.004036b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4977
lea eax, [ebp - 0x18]
call fcn.00406480
lea eax, [ebp - 0x14]
call fcn.004045ac
lea eax, [ebp - 4]
call fcn.004045ac
ret
Function at 0x4d60dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6262
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5c47f0]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x5c47f0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00491a18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.004524bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
call fcn.005240a0
xor edx, edx
push ebp
push 0x4d6245
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4d61a7
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00406480
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x35c]
call fcn.004d41f0
push eax
mov eax, dword [0x5c4538]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4d619d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403ff4
jmp 0x4d624c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d61e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0045209c
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004d5f68
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4d61bf
push 0
mov edx, 0x4d5f00
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00451c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d624c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
call fcn.00524240
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00452508
mov eax, dword [0x5c47f0]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.00491a18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6269
lea eax, [ebp - 0x10]
call fcn.00406480
ret
Function at 0x523660
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a5c
xor eax, eax
push ebp
push 0x52371f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00409a30
test al, al
je 0x523709
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.00402fd8
or ebx, 0x100
test ebx, ebx
jns 0x5236b7
call fcn.004035f8
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404a6c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x523709
mov dl, 1
mov eax, dword [0x429a88]
call fcn.004320a0
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 8]
call fcn.00432470
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x523709
lea eax, [ebp - 8]
call fcn.0040f394
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523726
lea eax, [ebp - 4]
call fcn.004045ac
ret

Function at 0x54ca28
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x54ca4d
cmp dword [esp + 4], 5
jb 0x54ca4d
mov al, 1
jmp 0x54ca4f
xor eax, eax
add esp, 0x94
ret
Function at 0x55eb9c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x55ebed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x55ebd4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x55ebc4
jmp 0x55ebed
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x55ebd5
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58ee48
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x58eed1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5c7d04
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x58eebb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ce28
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x58eee8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x5c465c]
mov dl, 1
mov eax, dword [0x58e64c]
call fcn.0040d758
call fcn.00403f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58eed8
lea eax, [ebp - 0x1c]
call fcn.004045ac
ret

Function at 0x58f578
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0058f49c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004038b4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x58f5dc
call fcn.0058ed90
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x58f5ce
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004038b4
pop esi
pop ebx
ret

Function at 0x58f600
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404a6c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402fd8
test ebx, ebx
je 0x58f64b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x58f728
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x58f759
mov ecx, dword [0x5c44c4]
mov dl, 1
mov eax, dword [0x58e64c]
call fcn.0040d71c
call fcn.00403f48
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x58f786
mov ecx, dword [0x5c43ec]
mov dl, 1
mov eax, dword [0x58e64c]
call fcn.0040d71c
call fcn.00403f48
xor eax, eax
push ebp
push 0x58f802
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004038b4
cmp byte [ebp + 8], 0
je 0x58f7de
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0058f690
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0058f578
jmp 0x58f7f8
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0058f07c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58f81f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x58f9e4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0058f338
xor eax, eax
push ebp
push 0x58fb55
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x58fb3f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x58fa2f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x58fa39
call fcn.00403ff4
jmp 0x58fb5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420e08
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x58fb34
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x58fae7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x58fad4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0058f99c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x58fb68]
cmp dl, byte [eax + 0x28]
je 0x58fb3b
call fcn.0040d634
jmp 0x58fb3b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420e28
jmp 0x58fb3b
cmp ecx, ebx
jge 0x58fb03
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420e28
jmp 0x58fa39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00420e08
cmp edx, dword [esp + 4]
jne 0x58fb23
cmp eax, dword [esp]
pop edx
pop eax
jne 0x58fa39
push ebp
call fcn.0058f99c
pop ecx
jmp 0x58fb3b
push ebp
call fcn.0058f99c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fb5c
mov eax, dword [ebp - 4]
call fcn.0058f344
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58fb6c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58fc8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0058f338
xor eax, eax
push ebp
push 0x58fc71
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x58fbbc
call fcn.00403ff4
jmp 0x58fc78
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x58fc5b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x58fc5b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004038b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x58fc5b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ce28
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x58fca8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x5c465c]
mov dl, 1
mov eax, dword [0x58e64c]
call fcn.0040d758
call fcn.00403f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fc78
mov eax, dword [ebp - 4]
call fcn.0058f344
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fc95
lea eax, [ebp - 0x28]
call fcn.004045ac
ret