joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454c50
Capabilities:
Check os version

Disassembly:
sub esp, 0x158
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_MapWindowPoints]
push esi
push edi
mov edi, dword [esp + 0x16c]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ebx, ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0x24]
push 1
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov dword [esp + 0x24], edx
call ebp
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x24]
push 2
lea eax, [esp + 0x1c]
push eax
push 0
push esi
mov dword [esp + 0x34], edx
call ebp
push 0x110
lea ecx, [esp + 0x5c]
push 0
push ecx
mov dword [esp + 0x60], 0x114
call fcn.0049e6e0
add esp, 0xc
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x454cf7
mov eax, dword [esp + 0x58]
cmp eax, 5
jae 0x454cf3
cmp eax, 4
jne 0x454cf7
cmp dword [esp + 0x5c], 0x5a
jb 0x454cf7
xor eax, eax
jmp 0x454cfc
mov eax, 1
mov edx, dword [esp + 0x18]
xor ecx, ecx
test al, al
setne cl
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
lea esi, [ecx - 1]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x2c]
push 0x52d
and esi, 0x1000
push eax
or esi, 0x40
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov eax, dword [esp + 0x14]
je 0x454db3
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x3c]
push edx
push 0
mov dword [esp + 0x48], ecx
push 0x52f
lea ecx, [esp + 0x34]
push ebp
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 4
mov edi, dword [edi]
mov ebx, dword [ebx + 4]
push eax
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0044cd50
add esp, 8
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebp
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 4
Function at 0x455d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc463
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esi + 0x84], ebx
push 0x54
lea edi, [esi + 0x24]
push ebx
push edi
mov byte [esp + 0x24], 1
call fcn.0049e6e0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
or edx, 0x42000
add esp, 0xc
mov dword [edi], 0x54
mov dword [esi + 0x28], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x68], 0x447d90
cmp dword [esi + 0x84], ebx
jne 0x455e1b
call fcn.0049bff7
mov dword [esi + 0x84], eax
cmp eax, ebx
je 0x455e4b
mov eax, dword [esi + 0x84]
mov ecx, 0x452710
sub ecx, eax
push 0xd
sub ecx, 0xd
push eax
mov dword [eax], 0x42444c7
mov dword [eax + 4], esi
mov byte [eax + 8], 0xe9
mov dword [eax + 9], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esi + 0x84]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x6c], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x456ec0
Capabilities:
Check os version

Disassembly:
sub esp, 0x170
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ecx, [edi + 4]
call fcn.00456d00
push 0x110
lea ecx, [esp + 0x70]
push 0
push ecx
mov dword [esp + 0x74], 0x114
call fcn.0049e6e0
add esp, 0xc
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x456f14
cmp dword [esp + 0x6c], 6
jae 0x456fe7
push 0x5c
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0049e6e0
add esp, 0xc
push 0
mov dword [esp + 0x20], 0x190
call dword [sym.imp.USER32.dll_GetDC]
push 0x48
mov ebx, eax
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
neg eax
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x4be030
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call fcn.0049e538
add esp, 0xc
cmp eax, 0x50
ja case.0x456f7e.1
movzx edx, byte [eax + 0x457014]
jmp dword [edx*4 + 0x457004]
push 0x8007000e
call fcn.004413b0
push 0x80070057
call fcn.004413b0
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
mov dword [edi + 0x20], eax
mov edx, dword [edi + 4]
push 0x30
push edx
call ebx
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call ebp
mov esi, eax
test esi, esi
je 0x456fe6
lea ecx, [ecx]
mov ecx, dword [edi + 0x20]
push 1
push ecx
push 0x30
push esi
call ebx
push 2
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x456fd0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x170
ret 0x10
push 0x80004005
call fcn.004413b0
mov edi, edi
cdq
outsd dx, dword [esi]
inc ebp
add byte [ebp - 0x70ffba91], al
outsd dx, dword [esi]
inc ebp
add al, bh
outsd dx, dword [esi]
inc ebp
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x4573a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bc528
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
sub esp, 8
push esi
push edi
mov edi, dword [0x4de188]
push 0xf1
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4573ec
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4573d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4573d7
movzx ecx, word [edi + 4]
movzx edx, word [edi + 2]
push ebx
push ebp
movzx ebp, word [edi + 6]
push ecx
push edx
mov ecx, esi
lea ebx, [edi + 8]
call fcn.00442030
cmp dword [esi + 0x48], 0
jne 0x457457
mov eax, dword [esp + 0x28]
push eax
call fcn.00452400
shl al, 5
xor al, byte [esi + 0x85]
add esp, 4
and al, 0x20
xor byte [esi + 0x85], al
movzx ecx, word [edi + 6]
push ecx
mov ecx, esi
call fcn.00452d30
test al, al
je 0x457555
mov edx, dword [esi + 0x48]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
cmp byte [esp + 0x2c], 0
mov dword [esp + 0x20], edi
je 0x45749b
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
movsx eax, word [esp + 0x28]
push ecx
movzx ecx, word [esp + 0x34]
push edx
mov edx, dword [0x4de188]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
jmp 0x4574db
test byte [esi + 0x85], 0x20
je 0x4574ca
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4de188]
push 0x2040
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
lea ecx, [esp + 0x14]
call fcn.004466f0
jmp 0x4574df
mov edx, dword [esp + 0x28]
mov eax, dword [0x4de188]
push edx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x457555
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x48]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
jne 0x45751e
lea ecx, [esp + 0x10]
call fcn.004425c0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
cmp ebp, edi
jle 0x457539
mov edi, ebx
cmp word [edi], 0
je 0x457533
push edi
lea ecx, [esi + 0x4c]
call fcn.00454510
add edi, 2
dec ebp
jne 0x457524
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov edi, eax
cmp edi, dword [esi + 0x50]
je 0x45756c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
call fcn.004416b0
test al, al
je 0x457584
mov eax, dword [esp + 0x14]
sub edi, eax
push edi
push eax
mov ecx, esi
call fcn.004564d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x458090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 4], vtable.CAboutDlg.0
mov dword [esp + 0x24], esi
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0xc]
call fcn.00457180
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0xffffffff
cmp eax, esi
je 0x4580fb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4580fb
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
cmp eax, esi
pop esi
je 0x45810a
push eax
call fcn.0049bf47
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10

Function at 0x458f80
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x78], 0
push edi
je 0x458f97
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 1
push eax
call edx
mov eax, dword [esi + 0x5f4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x650]
push 5
push eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 1
push 0x423
push ecx
call edi
mov edx, dword [esi + 0x24]
push 0
push 2
push 0x423
push edx
call edi
push 1
mov ecx, esi
call fcn.0044b570
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x459190
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00443f00
test al, al
jne 0x4591a0
pop esi
ret 0xc
push ebx
mov bl, byte [esp + 0xc]
cmp byte [esi + 0x78], bl
jne 0x4591b1
mov al, bl
pop ebx
pop esi
ret 0xc
mov eax, dword [esi + 4]
push ebp
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
setne al
mov byte [esp + 0x14], al
test al, al
je 0x4591e6
test bl, bl
jne 0x4591ea
mov ecx, dword [esi + 4]
push 0
push 0
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x459209
test bl, bl
je 0x45920b
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459209
mov eax, dword [esi + 0x24]
push 0
push eax
call ebp
push 1
mov ecx, esi
call fcn.0044b570
test bl, bl
sete cl
mov byte [esi + 0x7d], cl
lea ecx, [esi + 0x34]
test bl, bl
je 0x459224
mov edx, dword [esp + 0x1c]
push edx
call fcn.00453cd0
jmp 0x459229
call fcn.00453d20
mov edi, eax
test edi, edi
js 0x45923a
test bl, bl
jne 0x45923a
mov eax, 1
jmp 0x45923c
xor eax, eax
mov byte [esi + 0x7d], al
test edi, edi
js 0x45928c
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459268
test bl, bl
jne 0x45926c
mov ecx, dword [esi + 0x24]
push 8
push ecx
call ebp
push 1
mov ecx, esi
call fcn.0044b570
jmp 0x45928c
test bl, bl
je 0x45928c
mov edx, dword [esi + 4]
push 0
push 0
push 5
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
cmp byte [esp + 0x14], 0
je 0x4592ba
test bl, bl
jne 0x4592ba
mov ecx, dword [esi + 4]
push 0
push 1
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 4]
push 0x585
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
test edi, edi
pop edi
pop ebp
js 0x4592c8
movzx eax, bl
pop ebx
pop esi
ret 0xc
xor eax, eax
test bl, bl
pop ebx
sete al
pop esi
ret 0xc

Function at 0x45aee0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0x3f
jne 0x45af04
push 0
push str.MTPad
push str.ERROR:_Cannot_create_ANY_MORE_threads___
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
pop ecx
ret 8
push 8
call fcn.0049eddd
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [eax], ecx
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x45adb0
push 0
push 0
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x45af4f
push eax
push str.MTPad
push str.Cannot_create_thread___
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
pop ecx
ret 8
mov edx, dword [esi]
mov dword [esi + edx*4 + 4], eax
inc dword [esi]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x4632c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4632e4
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp + 8]
mov edi, eax
push 0x4bf784
push ebx
mov dword [ebp - 8], edi
call fcn.004a188f
add esp, 8
test eax, eax
je 0x463332
test edi, edi
je 0x463321
push 8
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x46335a
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46335a
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x4633f6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x463373
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x4db924]
mov esi, eax
add esp, 4
test esi, esi
je 0x4633ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4633ec
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4633a1
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4633b8
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4633c8
mov eax, dword [ebp - 8]
test eax, eax
je 0x4633e2
push 8
push 0
push esi
call eax
jmp 0x4633e9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x4db928]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x463400
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4dbfb4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x463459
lea eax, [ebp - 0x230]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x463446
mov eax, dword [ebp - 0x230]
cmp al, 2
jne 0x463440
shr eax, 8
cmp al, 2
je 0x463459
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.004632c0
add esp, 4
mov dword [0x4de144], eax
test eax, eax
je 0x463484
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x463484
mov dword [0x4de148], eax
push esi
push 0x9c
lea ecx, [ebp - 0xa0]
push 0
push ecx
call fcn.0049e6e0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
neg eax
sbb eax, eax
neg eax
push 0x4df2a8
mov dword [0x4df2b0], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a1682
mov esp, ebp
pop ebp
ret
Function at 0x46acd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x46ad13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x46ad90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x620], edi
je 0x46add9
push 1
push esi
call fcn.00468be0
mov eax, dword [esi + 0x5b4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00468be0
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x46ae16
cmp eax, 2
jg 0x46ae16
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x4c0154]
push 2
push eax
call fcn.004a1608
mov ecx, dword [esi + 0x5b0]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push 1
push edx
push eax
call fcn.004a1608
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x46ae20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4dbfb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46af31
cmp dword [esi + 0xbb4], 0
je 0x46af31
mov ecx, dword [ebp + 0xc]
push edi
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x808]
push 0x801
push edx
call fcn.00473120
add esp, 0x10
cmp eax, 0x801
jb 0x46aea8
mov edx, dword [ebp + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ae78
sub eax, edi
cmp byte [eax + edx - 1], 0xa
jne 0x46ae95
push str...._n
push 5
lea eax, [ebp - 0xc]
push eax
jmp 0x46aea0
push 0x4c016c
push 4
lea ecx, [ebp - 0xb]
push ecx
call fcn.00473180
add esp, 0xc
lea eax, [ebp - 0x808]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46aeb1
sub eax, edx
cmp dword [esi + 0x620], 0
mov edi, eax
je 0x46af02
push 1
push esi
call fcn.00468be0
mov edx, dword [esi + 0x5b4]
mov ecx, dword [esi + 0x620]
push edx
push edi
lea eax, [ebp - 0x808]
push eax
push 0
push esi
call ecx
push 0
push esi
call fcn.00468be0
add esp, 0x24
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x5b0]
push edx
push 1
push 2
push 0x4c0154
call fcn.004a1608
mov eax, dword [esi + 0x5b0]
push eax
push 1
lea ecx, [ebp - 0x808]
push edi
push ecx
call fcn.004a1608
add esp, 0x20
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a1682
mov esp, ebp
pop ebp
ret
Function at 0x46af40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4dbfb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xbb4], 0
jne 0x46af6d
cmp dword [esi + 0x5b8], 0
je 0x46b05e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x108]
push pe_nt_image_headers32
push edx
call fcn.00473120
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46af92
sub eax, edx
mov edx, dword [esi + 0x5b8]
push edi
mov edi, eax
test edx, edx
je 0x46afcb
cmp dword [esi + 0x1180], 0
jne 0x46afcb
lea ecx, [ebp - 0x108]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46afb7
mov dword [esi + 0x1180], 1
cmp dword [esi + 0xbb4], 0
je 0x46b05d
mov byte [ebp + edi - 0x108], 0xa
inc edi
cmp dword [esi + 0x620], 0
mov byte [ebp + edi - 0x108], 0
je 0x46b02f
push 1
push esi
call fcn.00468be0
mov eax, dword [esi + 0x5b4]
mov edx, dword [esi + 0x620]
push eax
push edi
lea ecx, [ebp - 0x108]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.00468be0
add esp, 0x24
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x5b0]
push eax
push 1
push 2
push 0x4c0154
call fcn.004a1608
mov ecx, dword [esi + 0x5b0]
push ecx
push 1
lea edx, [ebp - 0x108]
push edi
push edx
call fcn.004a1608
add esp, 0x20
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a1682
mov esp, ebp
pop ebp
ret

Function at 0x46b460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x5b0]
mov ecx, dword [ebx + eax*4 + 0x420]
push esi
lea esi, [eax + 0x44]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
mov dword [ebp - 4], ecx
je 0x46b50e
cmp dword [ebx + eax*4 + 0x430], 0x46b170
jne 0x46b50e
cmp dword [esi], 0
je 0x46b4a4
test edi, edi
je 0x46b50e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.0048aa10
add esp, 0x14
cmp eax, 0xffffffff
je 0x46b50e
test al, 1
je 0x46b50e
cmp dword [esi], 0
jne 0x46b4eb
mov eax, dword [ebx]
mov eax, dword [eax + 0x954]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4db924]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x46b50b
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46b50e
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret