joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47553c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4756e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4756c8
mov dl, 1
mov eax, dword [0x41acc0]
call fcn.004043ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004053e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4756b7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004676cc
test al, al
je 0x4756aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4756f8
lea eax, [ebp - 0x254]
call fcn.0040c1c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4756aa
xor eax, eax
push ebp
push 0x4756a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x475730
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47568c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405650
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x47568c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4756aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4755ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00420164
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4756ee
lea eax, [ebp - 0x260]
call fcn.004053e0
ret

Function at 0x476060
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x639ce0]
cmp byte [eax + 0xad], 0
jne 0x4760d1
cmp dword [0x639cfc], 0
jne 0x476092
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47601c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x639cfc], eax
cmp dword [0x639cf8], 0
jne 0x4760ad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x639cf8], eax
cmp dword [0x639d00], 0
jne 0x4760d1
push esp
push 0
push 0
push 0x475fc0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x639d00], eax
pop edx
ret
Function at 0x4762a4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4762bb
add esp, 0xfffffff0
call fcn.00404700
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424bbc
mov eax, dword [0x633fec]
cmp word [eax + 2], 0
jne 0x4762e3
mov eax, dword [0x633fec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00477f14
mov eax, dword [0x6341b4]
cmp word [eax + 2], 0
jne 0x4762fd
mov eax, dword [0x6341b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00478120
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a4a8]
call fcn.004043ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a4a8]
call fcn.004043ac
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41a4a8]
call fcn.004043ac
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42b7cc]
call fcn.00433e08
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4764b4
mov eax, dword [0x633dc8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004341dc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4787f4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x633dc8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00410580
test eax, eax
je 0x476404
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b7a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004105b4
test eax, eax
je 0x476418
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405650
mov byte [ebx + 0xd4], 0
push ebx
push 0x477a24
call fcn.00425d38
mov dword [ebx + 0xc8], eax
mov eax, dword [0x633ab4]
cmp byte [eax], 0
jne 0x476469
mov eax, ebx
call fcn.004765f8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004789cc
mov eax, ebx
call fcn.00479530
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4764a9
call fcn.00404758
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476878
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x476917
cmp dword [ebx + 0x94], 0
jne 0x476911
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x476800
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x476911
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 0x4768d7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x476911
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.0041ce40
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4768e6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x476b30
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x639ce0]
cmp dword [eax + 0x30], 0
je 0x476c8d
test bl, bl
jne 0x476bde
cmp dword [esi + 0x9c], 0
jne 0x476bd3
mov eax, esi
call fcn.004793ac
push eax
push 0x476a5c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x476ba4
mov eax, dword [0x639ce0]
call fcn.00479a8c
test al, al
je 0x476ba4
mov eax, dword [0x639d04]
call fcn.00406aa0
mov edi, eax
cmp edi, 0
jl 0x476ba4
push 0
mov eax, dword [0x639d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x476b8e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x476bd3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041ce40
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x476bb3
inc dword [esi + 0x9c]
jmp 0x476c8d
cmp dword [esi + 0x9c], 0
jle 0x476c8d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x476c8d
cmp dword [esi + 0x44], 0
je 0x476c39
mov eax, dword [0x639ce0]
call fcn.00479a8c
test al, al
je 0x476c39
mov eax, dword [0x639d04]
call fcn.00406aa0
mov edi, eax
cmp edi, 0
jl 0x476c39
push 5
mov eax, dword [0x639d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x476c23
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x476c68
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041ce40
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x476c48
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x639d04
mov ecx, 1
mov edx, dword [0x476a3c]
call fcn.00406c54
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x477720
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x47778a
mov eax, ebx
call fcn.00479a8c
test al, al
jne 0x47778a
push pe_nt_image_headers32
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.004054d0
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x477777
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x477797
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405434
jmp 0x477797
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405434
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x478bb0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x478c1e
mov eax, esi
call fcn.00462304
test al, al
je 0x478c1e
mov eax, dword [ebx + 0x84]
call fcn.00461f54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x478c1e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x478c12
push 0
mov eax, dword [ebx + 0x84]
call fcn.00461f54
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00459dfc
jmp 0x478c1e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004789ec
pop esi
pop ebx
ret
Function at 0x47a2cc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408b7c]
call fcn.00406098
xor eax, eax
push ebp
push 0x47a46d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b6cac], 0
jne 0x47a327
mov ecx, dword [0x633afc]
mov dl, 1
mov eax, dword [0x409234]
call fcn.0040f608
call fcn.00404d14
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b7c
mov eax, ebx
call fcn.00405d50
mov dword [ebp - 0x24], eax
mov esi, 0x47a47c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040746c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405d60
test eax, eax
jle 0x47a410
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47a3fc
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405650
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x47a3a2
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405668
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x47a3b8
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405668
mov eax, dword [ebp - 0x54]
call fcn.00405870
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405650
mov eax, dword [ebp - 0x58]
call fcn.00405870
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x47a3fe
xor eax, eax
test al, al
je 0x47a409
mov ebx, 0x15
jmp 0x47a415
mov ebx, 0x10
jmp 0x47a415
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x5b6cac]
call fcn.0047a14c
mov eax, dword [ebp - 4]
call fcn.0047a14c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407484
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a474
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405404
lea eax, [ebp - 0xc]
mov edx, dword [0x408b7c]
call fcn.00406168
ret
Function at 0x4809a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405860
mov eax, dword [ebp - 8]
call fcn.00405860
xor eax, eax
push ebp
push 0x480b39
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x480ae4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [0x633f7c]
call fcn.0047a1b4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x480b48
call fcn.004074b0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x480b58
call fcn.004074b0
mov eax, dword [ebp - 4]
call fcn.00405870
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.0040b434
mov eax, dword [ebp - 0x12c]
call fcn.00405870
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x20]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x125]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
push 0x480b70
push dword [ebp - 8]
push 0x480b7c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405774
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.00405650
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0xc]
call fcn.004056ac
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x1c]
call fcn.00405d40
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00405d50
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x480aee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480b40
lea eax, [ebp - 0x130]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 0x1c]
call fcn.00405be8
lea eax, [ebp - 0x18]
call fcn.0040746c
lea eax, [ebp - 0x14]
call fcn.0040746c
lea eax, [ebp - 0x10]
call fcn.0040746c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405404
ret
Function at 0x49d24c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405860
xor eax, eax
push ebp
push 0x49d3fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
test ebx, ebx
je 0x49d3d9
mov eax, ebx
xor ecx, ecx
mov edx, 0x21
call fcn.00403b7c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00405870
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49d3d9
mov eax, dword [ebp - 0x14]
call fcn.00402f9c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49d3d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49d3bc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49d40c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49d3bc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebx + 0x19], ax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 8]
mov word [ebx + 0x1b], ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebx + 0x1d], ax
mov eax, dword [ebp - 0x10]
movzx esi, word [eax + 0xc]
mov word [ebx + 0x1f], si
lea eax, [ebp - 0x118]
push eax
movzx eax, word [ebx + 0x19]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0
movzx eax, word [ebx + 0x1b]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0
movzx eax, word [ebx + 0x1d]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0
movzx eax, si
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0
lea edx, [ebp - 0x138]
mov ecx, 3
mov eax, 0x49d418
call fcn.0040c244
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov ecx, 0xff
call fcn.0040567c
lea edx, [ebp - 0x114]
mov eax, ebx
mov cl, 0x18
call fcn.00403a6c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d3d9
mov eax, dword [ebp - 0xc]
call fcn.00402fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d401
lea eax, [ebp - 0x118]
call fcn.004053e0
lea eax, [ebp - 4]
call fcn.004053e0
ret
Function at 0x4af458
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 0x4af4e1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x63c108
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4af4cb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ed08
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, 0x4af4f8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x6342c8]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f644
call fcn.00404d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af4e8
lea eax, [ebp - 0x1c]
call fcn.004053e0
ret

Function at 0x4afad8
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x4afb34]
cmp al, byte [ebx + 0x28]
je 0x4afafc
mov esi, 0x401
mov eax, ebx
call fcn.004afc30
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x4afb34]
cmp al, byte [ebx + 0x28]
jne 0x4afb2c
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4afbc0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004afad8
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004045d8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x4afc28
mov eax, ebx
call fcn.004af39c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4afc1a
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.004045d8
pop esi
pop ebx
ret

Function at 0x4afda0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405870
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403b7c
test ebx, ebx
je 0x4afdef
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, 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 0x4afecc
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 0x4afefd
mov ecx, dword [0x6344f0]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f608
call fcn.00404d14
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 0x4aff2a
mov ecx, dword [0x633fd8]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f608
call fcn.00404d14
xor eax, eax
push ebp
push 0x4affab
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.004045d8
cmp byte [ebp + 8], 0
je 0x4aff85
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004afe34
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 edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004afb38
jmp 0x4affa1
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004af690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4affc8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4affd4
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 0x4b0005
mov ecx, dword [0x6340c0]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f608
call fcn.00404d14
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 0x4b0032
mov ecx, dword [0x633fd8]
mov dl, 1
mov eax, dword [0x4ae444]
call fcn.0040f608
call fcn.00404d14
xor eax, eax
push ebp
push 0x4b00ae
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.004045d8
cmp byte [ebp + 8], 0
je 0x4b008a
mov eax, dword [ebp + 0x10]
push eax
movzx eax, 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.004afe34
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.004afbc0
jmp 0x4b00a4
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004af690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b00cb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc