joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037c0
Capabilities:
Check internet connectivity via wininet
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x442222
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, dword [0x4504f4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [esp + 0x94], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov eax, dword [esp + 0x10]
je 0x403833
cmp eax, ebx
je 0x40382c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x403987
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.ProxyEnable
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x403868
push eax
call ebp
push ebx
push 0x445452
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00402040
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x84], 1
call fcn.004014d0
mov byte [esp + 0x80], 2
xor edx, edx
push 0x15
mov eax, str.http:__www.google.com
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00402430
mov eax, esi
push eax
lea ebx, [esp + 0x3c]
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 3
call fcn.00401330
cmp dword [esp + 0x34], 8
mov esi, eax
jb 0x4038f6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00427d72
add esp, 4
mov ebx, 1
cmp dword [esp + 0x14], ebx
jne 0x403940
push 0
push ebx
push str.www.google.com
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x403940
test esi, esi
jne 0x403940
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x84], bl
call fcn.00401560
lea ecx, [esp + 0x38]
call fcn.00401980
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40393c
push eax
call ebp
xor al, al
jmp 0x403987
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x84], bl
call fcn.00401560
cmp dword [esp + 0x50], 0x10
jb 0x403965
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00427d72
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
test eax, eax
je 0x403985
push eax
call ebp
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00427d7d
add esp, 0x74
ret
Function at 0x4059a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
mov ebx, dword [esi + 0x10]
push edi
cmp dword [esi + 0xc], ebx
jbe 0x4059b6
call fcn.00428335
mov edi, dword [esi + 0xc]
mov ebp, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x4059c5
call fcn.00428335
mov eax, dword [esi]
push ebx
push ebp
push edi
push eax
lea ebx, [esp + 0x28]
call fcn.00406bc0
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push str.DefaultConnectionSettings
push ecx
call edi
test eax, eax
jne 0x405a2b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x405a2b
push ecx
mov eax, esi
call fcn.004060f0
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
jne 0x405a14
call fcn.00428335
mov esi, dword [esi + 0xc]
mov ecx, dword [ebx]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push str.DefaultConnectionSettings
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x405a40
Capabilities:
Set registry value

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x405a60
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
push esi
mov esi, ecx
jae 0x405a72
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
add eax, eax
cmp dword [esp + 0x20], 8
jae 0x405a8a
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x405ab0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00427d72
add esp, 4
mov eax, esi
pop esi
ret 0x1c
Function at 0x4076b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x441bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4504f4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401ef0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407706
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004022f0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401ef0
cmp dword [esp + 0x24], 8
jb 0x40774f
mov edx, dword [esp + 0x10]
push edx
call fcn.00427d72
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x409660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [0x451b14]
push 0xa
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esi], eax
test eax, eax
jne 0x409679
xor eax, eax
ret
mov edx, dword [0x451b14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x409676
mov eax, dword [esi]
mov ecx, dword [0x451b14]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4096bf
mov edx, dword [esi + 4]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
jne 0x4096c3
xor eax, eax
pop edi
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 4]
push ecx
push edi
push eax
call fcn.0042d530
mov edx, dword [esi + 8]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
push eax
push 0
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
neg eax
sbb eax, eax
inc eax
pop edi
ret
Function at 0x409700
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x441b83
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4504f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebp, ebp
mov dword [edi + 4], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
mov dword [esp + 0x34], ebp
fldz
lea esi, [edi + 0x48]
fstp dword [edi + 0x3c]
fld dword [0x44b6f0]
push esi
push ebp
fstp dword [edi + 0x40]
mov ebx, 1
mov dword [edi], vtable.CProgressBarEx.0
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], 0x64
mov dword [edi + 0x34], ebp
mov dword [edi + 0x38], ebp
mov dword [edi + 0x44], ebx
push ebp
mov dword [esi], ebp
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esi + 4], eax
mov byte [esp + 0x34], bl
mov ecx, dword [esi]
push ebx
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x40979b
mov dword [esi + 4], eax
mov edx, dword [esi]
push ebx
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x4097ab
mov dword [esi + 4], eax
mov eax, 0x82
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00409660
mov ebx, dword [esp + 0x24]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x4097fb
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x4097fd
xor esi, esi
mov dword [edi + 0x2c], esi
mov eax, 0x83
lea esi, [esp + 0x18]
call fcn.00409660
mov ebx, dword [esp + 0x24]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x409840
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x409842
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [edi + 0x28], esi
cmp eax, ebp
je 0x409855
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x409864
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x40a850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40a860
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40a870
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40a8a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40a91a
xor eax, eax
cmp ecx, ebp
je 0x40a902
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40a928
cmp ecx, ebp
je 0x40a9bb
push ecx
jmp 0x40a9b5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40a98a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a8a0
mov ebx, eax
cmp ebx, ebp
jne 0x40a9d8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40a950
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40a99d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040a790
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40a9bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427d7d
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40a9e7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40a9bd
Function at 0x40aeb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x441ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4504f4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40af2f
call fcn.00402a20
mov esi, eax
jmp 0x40b011
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40af4b
call fcn.00402a20
jmp 0x40b008
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40af64
call fcn.00402a20
jmp 0x40b008
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40af98
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40af86
lea eax, [ebp]
call fcn.0040dfb0
lea esi, [ebp - 0x1c]
call fcn.0040dbd0
mov eax, 0x8007000e
jmp 0x40b023
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040dc40
mov dword [ebp - 4], 1
jmp 0x40afc1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40afcf
mov esi, 0x8007000e
jmp 0x40b00a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40afed
call fcn.00402a20
jmp 0x40b008
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040bd20
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40b021
lea eax, [ebp]
call fcn.0040dfb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00427d7d
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d080
Capabilities:
Check for peb beingdebugged flag
Get disk information
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x441ad6
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push esi
mov eax, dword [0x4504f4]
xor eax, esp
push eax
lea eax, [esp + 0x664]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x4e]
xor eax, eax
push ebx
mov dword [esp + 0x14], ebx
push ecx
mov word [esp + 0x54], ax
call fcn.00429240
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x48]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
jmp 0x40d110
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d110
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
lea esi, [esp + 0x30]
call fcn.00402430
mov ecx, esi
push ecx
mov ecx, 3
xor edx, edx
lea esi, [esp + 0x14]
mov dword [esp + 0x670], ebx
call fcn.0040de60
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x674], 1
call fcn.00401ef0
mov byte [esp + 0x66c], bl
cmp dword [esp + 0x28], 8
jb 0x40d176
mov edx, dword [esp + 0x14]
push edx
call fcn.00427d72
add esp, 4
push 0x206
lea ecx, [esp + 0x45e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x464], ax
call fcn.00429240
push 0x206
lea eax, [esp + 0x262]
xor edx, edx
push ebx
push eax
mov word [esp + 0x268], dx
call fcn.00429240
mov eax, dword [esp + 0x48]
add esp, 0x18
cmp dword [esp + 0x44], 8
jae 0x40d1c2
lea eax, [esp + 0x30]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x464]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40d200
mov eax, dword [esp + 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea edx, [esp + 0x258]
push str._04X__04X
push edx
call fcn.00427fa3
add esp, 0x10
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], ax
lea eax, [esp + 0x250]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d220
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x254]
mov esi, edi
call fcn.00402430
cmp dword [esp + 0x44], 8
jb 0x40d252
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00427d72
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x664]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.00427d7d
add esp, 0x664
ret
Function at 0x40d280
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x288
mov esi, ecx
mov dword [esp + 0xc], 0
call fcn.00428d68
mov edi, eax
add esp, 4
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40d2dc
push edi
call fcn.00428c8b
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00428d68
add esp, 8
mov edi, eax
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.00429240
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40d364
mov eax, edi
test edi, edi
je 0x40d364
jmp 0x40d310
lea edx, [eax + 0x194]
test edx, edx
jne 0x40d322
mov eax, dword [eax]
test eax, eax
jne 0x40d310
jmp 0x40d364
movzx ecx, byte [eax + 0x199]
movzx edx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push edx
movzx edx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
push edx
movzx edx, byte [eax + 0x194]
push ecx
push edx
lea eax, [esp + 0x24]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00427fa3
add esp, 0x20
push edi
call fcn.00428c8b
add esp, 4
xor ecx, ecx
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
lea edx, [eax + 2]
jmp 0x40d390
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d390
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00402430
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00427d7d
add esp, 0x210
ret
Function at 0x40d3d0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x441a92
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebp
push esi
push edi
mov eax, dword [0x4504f4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
xor eax, eax
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x18], ebx
mov byte [esp + 0x7c], al
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov edi, 0x1000
cmp ebp, eax
jbe 0x40d49b
mov eax, ebp
sub eax, esi
cmp eax, 0x1000
jae 0x40d47f
mov edi, ebp
sub edi, esi
mov ecx, dword [esp + 0xa0]
lea edx, [esi + ecx]
push edx
mov eax, edi
lea ecx, [esp + 0x20]
call fcn.00408ae0
add esi, edi
cmp esi, ebp
jb 0x40d470
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x7c]
call fcn.00408ba0
xor edi, edi
xor eax, eax
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], edi
mov word [ebx + 4], ax
mov dword [esp + 0x98], edi
mov dword [esp + 0x14], 1
xor esi, esi
jmp 0x40d4d0
movzx edx, byte [esp + esi + 0x7c]
push edx
xor eax, eax
push 0x4454a4
mov dword [esp + 0x7e], eax
mov word [esp + 0x82], ax
lea eax, [esp + 0x7c]
xor ecx, ecx
push 4
push eax
mov word [esp + 0x84], cx
call fcn.0042803b
lea eax, [esp + 0x84]
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40d510
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
mov ecx, ebx
call fcn.004022f0
inc esi
cmp esi, 0x10
jl 0x40d4d0
mov eax, ebx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00427d7d
add esp, 0x8c
ret
Function at 0x40f830
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f882
mov eax, dword [esp]
cmp al, 2
jne 0x40f87c
shr eax, 8
cmp al, 2
jne 0x40f87c
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00427d7d
add esp, 0x19c
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.00427d7d
add esp, 0x19c
ret

Function at 0x412130
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
push ebx
push ebp
xor ebx, ebx
push esi
cmp edi, 0xffffffff
je 0x4121ec
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov eax, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], eax
mov dword [esp + 0x228], ebx
lea esi, [edi + 1]
nop
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x4121b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, ebx
je 0x412170
cmp eax, 0x2714
je 0x412170
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
cmp eax, ebx
jl 0x4121ab
je 0x4121ec
lea ecx, [esp + 0x18]
push ecx
push edi
xor esi, esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4121d3
mov esi, 1
lea edx, [esp + 0x120]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4121e8
or esi, 4
cmp esi, ebx
jne 0x4121ab
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x328
ret
Function at 0x414da0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 4
mov edi, eax
mov esi, dword [edi]
movzx eax, byte [esi + 0x28e]
lea ecx, [esp + 0xc]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x414dea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.004248a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov ecx, esi
call fcn.00415780
add esp, 0xc
pop edi
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
mov ecx, esi
call fcn.00415780
add esp, 4
pop edi
pop esi
pop ecx
ret

Function at 0x414e00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x18], 0x4020
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x414e43
mov edx, dword [esp]
cmp edx, dword [esp + 4]
jg 0x414e5b
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret