joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f251
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x4ac]
xor ebx, ebx
call fcn.004857bc
test eax, eax
jle 0x43f2a6
push ebx
lea ecx, [esi + 0x4ac]
mov byte [ebp - 1], 0
call fcn.0043a466
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x43f30a
lea ecx, [esi + 0x4ac]
inc ebx
call fcn.004857bc
cmp ebx, eax
jl 0x43f26d
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x43f36f
sub eax, 4
je 0x43f30e
dec eax
dec eax
jne 0x43f366
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004d9e00
pop ecx
mov ecx, dword [esi + 0x108]
push reloc.WS2_32.dll_select
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x43ca3a
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x43f366
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x43f368
cmp dword [esi + 0x10c], 0
je 0x43f366
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0043afda
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x43f366
cmp dword [esi + 0x10c], 0
je 0x43f41e
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x43f3d1
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x43f3d1
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push 0x50ab2c
call dword [eax + 0xc]
push eax
call fcn.004d650d
pop ecx
pop ecx
test eax, eax
je 0x43f3d1
mov ecx, dword [esi + 0x10c]
call fcn.00468a17
test al, al
jne 0x43f366
cmp dword [esi + 0x10c], 0
je 0x43f41e
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x43f41e
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x43f41e
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push str.WkeWebkitUI
call dword [eax + 0xc]
push eax
call fcn.004d650d
pop ecx
pop ecx
test eax, eax
jne 0x43f366
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0043f171
jmp 0x43f30a
Function at 0x44907b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x449107
cmp dword [esi + 0x10], ebx
je 0x449107
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004d9230
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x449107
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1cc
call fcn.0043a623
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043ef04
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043b52a
test al, al
je 0x449107
mov ecx, dword [esi + 0x10]
call fcn.00446555
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d574b
leave
ret 0x10
Function at 0x44e5e3
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x5055f6
call fcn.004d9926
mov esi, ecx
lea eax, [esi + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.00427a54
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.004d87d8
add esp, 0x18
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x44e634
cmp byte [ebp - 0x10], bl
je 0x44e630
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x44e651
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00427b98
cmp byte [ebp - 0x10], bl
je 0x44e64f
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
call fcn.004d99fe
ret 8
Function at 0x454601
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x454626
cmp eax, esi
jge 0x45461e
mov eax, edi
call fcn.00454055
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x454653
mov eax, dword [edi + 0xc]
push ebx
mov dl, byte [edi + 0xc]
sub esi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, esi
inc ecx
mov dword [edi + 0xc], eax
test ebx, ebx
jg 0x454633
mov dword [edi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x45466f
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x454660
xor dl, dl
jmp 0x454665
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x454656
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x4546a2
push str.zlib_corrupt
call fcn.0044f1aa
pop ecx
jmp 0x4546de
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x4546b2
push str.read_past_buffer
jmp 0x45469a
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x4546c8
push esi
call fcn.00454132
pop ecx
test eax, eax
je 0x4546de
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.004d8d80
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x4639f9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x463a07
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x463ac2
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x50f278]
add edx, 8
sub edi, 8
dec esi
jne 0x463a25
pop ebx
test edi, edi
je 0x463adb
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x50f278]
inc edx
dec edi
jne 0x463ac6
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x463ae1
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x50f278]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x50f278]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x463fa8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x463fdc
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x463fd7
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x464004
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x463fed
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004d8d80
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x465018
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x46504c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46504c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x4650f6
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x465068
cmp cx, 0x5c
jne 0x46506a
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x46505c
cmp eax, esi
je 0x4650aa
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004d8d80
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00465018
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x4650c6
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d912d
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004d90fc
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4650f6
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret

Function at 0x466693
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46673e
cmp dword [esi + 4], 0xffffffff
jne 0x46673e
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004d90e1
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x4666e5
cmp eax, 0x2f
je 0x4666e5
push 0x50ab24
push edi
call fcn.004d90fc
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x466707
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x466707
mov eax, 0x2000000
jmp 0x466743
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00463dcd
add esp, 0x10
test eax, eax
jne 0x466725
mov eax, dword [ebp + 0x10]
jmp 0x466743
push eax
call fcn.00466168
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x466743
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x468d6a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x69c], ebx
je 0x468dd2
cmp dword [ebp + 8], 0x100
jne 0x468dc1
cmp word [ebp + 0xc], 0xd
jne 0x468dc1
cmp byte [esi + 0x6a2], bl
je 0x468da8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x468dc1
cmp byte [esi + 0x6a3], bl
jne 0x468dc1
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x468dbd
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0043ef04
xor eax, eax
jmp 0x468dd5
mov eax, dword [esi + 0x69c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x473137
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp ebx, 0x21
jb 0x473187
cmp ebx, 0x28
jbe 0x473181
cmp ebx, 0x2c
jbe 0x473187
cmp ebx, 0x2e
ja 0x473187
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x473193
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004d8c50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
shl esi, 0x10
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0043a8bb
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret 0xc

Function at 0x47edd1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482453

Function at 0x47feeb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0x774], 0
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x770], eax
mov dword [ebx + 0x778], ecx
test eax, eax
jne 0x47ff53
call fcn.0047fde9
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xc]
test esi, esi
je 0x47ff53
call fcn.0047fde9
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.0047fde9
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
mov ecx, dword [ebx + 0x770]
test ecx, ecx
jne 0x47ff70
mov ecx, edi
jmp 0x47ff77
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043b313
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0043a186
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push SysReAllocString
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00442db1
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x47ffba
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x47ffb5
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret 0x1c
Function at 0x487d7e
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x487daa
xor eax, eax
jmp 0x487e29
push 0xfe
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004d8c50
add esp, 0xc
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x487da6
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.004d8d80
movzx eax, byte [ebp - 0x298]
movzx ecx, byte [ebp - 0x297]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add esp, 0xc
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d574b
leave
ret
Function at 0x48fea0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x518c30
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x48feba
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x518c1c
push ebx
mov dword [esp + 0x18], edi
call fcn.004dd550
add esp, 8
test eax, eax
je 0x48ff06
test edi, edi
je 0x48fef7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x48ff2c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48ff2c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x48ffe0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48ff45
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x54ae68]
mov esi, eax
add esp, 4
test esi, esi
je 0x48ffd6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x48ffd6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48ff73
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48ff90
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 0x48ffa0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48ffcd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x54ae6c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x54ae6c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x48fff0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x490033
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x490027
mov eax, dword [esp]
cmp al, 2
jne 0x490021
shr eax, 8
cmp al, 2
je 0x490033
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.004a46e0
test eax, eax
jne 0x49008f
push str.iphlpapi.dll
call fcn.0048fea0
add esp, 4
mov dword [0x54ed68], eax
test eax, eax
je 0x490067
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x490067
mov dword [0x54ed6c], eax
push 3
push 2
push 0
push 6
call fcn.004a48b0
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x550ee8
mov dword [0x550ef0], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
Function at 0x497060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x78]
push edi
mov dword [esp + 0x34], eax
test eax, eax
je 0x497235
lea eax, [esp + 0x20]
push eax
call fcn.004a44d0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
add esp, 4
push 0
push 0x3e8
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
call fcn.004dca40
add ebp, eax
adc dword [esp + 0x14], edx
imul eax, eax, 0x3e8
sub edi, eax
imul edi, edi, 0x3e8
add ebx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
cmp ebx, 0xf4240
jl 0x4970ec
add ebp, 1
adc dword [esp + 0x14], 0
sub ebx, 0xf4240
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0xf60]
mov edi, dword [esp + 0x40]
lea ecx, [esi + 0xf60]
test eax, eax
je 0x49711c
mov edx, dword [eax]
cmp dword [edx + 0x20], edi
je 0x497110
mov eax, dword [eax + 8]
test eax, eax
jne 0x497100
jmp 0x49711c
push 0
push eax
push ecx
call fcn.004c09d0
add esp, 0xc
mov ecx, edi
lea eax, [esp + 0x10]
mov edx, esi
call fcn.00496fb0
mov eax, dword [esi + 0xf28]
or eax, dword [esi + 0xf2c]
jne 0x497143
cmp dword [esi + 0xf30], eax
je 0x4971cd
mov ecx, dword [esi + 0xf28]
mov edx, dword [esi + 0xf2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf30]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
call fcn.004a4570
add esp, 0x20
test edx, edx
jg 0x497235
jl 0x49719d
test eax, eax
jne 0x497235
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x5c]
lea eax, [edi + 0x5c]
push eax
lea ecx, [esi + 0xf38]
push ecx
push edx
call fcn.004c7390
add esp, 0xc
test eax, eax
je 0x4971d1
push eax
push str.Internal_error_removing_splay_node___d_n
push esi
call fcn.004996c0
add esp, 0xc
jmp 0x4971d1
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xf28], ebp
mov dword [esi + 0xf2c], eax
mov dword [esi + 0xf30], ebx
mov dword [esi + 0xf34], ecx
mov dword [esi + 0xf58], esi
mov eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0xf28]
lea edx, [esi + 0xf38]
push edx
mov edx, dword [esi + 0xf2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf30]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004c7170
add esp, 0x18
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret