joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1000]
push edi
jmp 0x4e3eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e3ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3ee0
mov eax, 1
add ebx, ebx
jne 0x4e3f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e3f14
jne 0x4e3f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3f33
dec eax
add ebx, ebx
jne 0x4e3f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e3ef8
add ebx, ebx
jne 0x4e3f2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e3f85
xor ecx, ecx
sub eax, 3
jb 0x4e3f4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e3fba
sar eax, 1
mov ebp, eax
jmp 0x4e3f56
add ebx, ebx
jne 0x4e3f56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3f24
inc ecx
add ebx, ebx
jne 0x4e3f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3f24
add ebx, ebx
jne 0x4e3f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e3f66
jne 0x4e3f82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e3f66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e3fa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e3f96
jmp 0x4e3ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e3fa4
add edi, ecx
jmp 0x4e3ee6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e3fc2
cmp byte [edi], 0x13
jne 0x4e3fc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e3fc7
lea edi, [esi + 0xdf000]
mov eax, dword [edi]
or eax, eax
je 0x4e403f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x116140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x116294]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e3ff4
mov ecx, edi
jns 0x4e4023
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x116298]
or eax, eax
je 0x4e4039
mov dword [ebx], eax
add ebx, 4
jmp 0x4e4011
call dword [esi + 0x1162a8]
mov ebp, dword [esi + 0x11629c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e4073
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x407850
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41434b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x41b1dc]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x41b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x150]
mov ecx, edi
call fcn.00407230
push 0xf
push 0x417140
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00401c30
cmp dword [esp + 0x14c], 0
mov dword [esp + 0x144], 0
mov edx, 0x417130
jne 0x4078db
mov edx, str.Adobe_Acrobat
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4078e0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00406f40
push 1
push 0x41711c
lea ecx, [esp + 0x20]
call fcn.00406f40
push 3
push 0x4170f8
lea ecx, [esp + 0x20]
call fcn.00406f40
push 0xa
push str.Installer
lea ecx, [esp + 0x20]
call fcn.00406f40
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x407935
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4079a8
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.ENU_GUID
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4079a8
cmp dword [esp + 0xc], 1
jbe 0x4079a8
lea eax, [esp + 0x34]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407990
sub eax, edx
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.00401c30
xor ecx, ecx
cmp dword [edi + 0x14], ecx
setne cl
cmp dword [esp + 0x30], 0x10
mov esi, ecx
jb 0x4079c6
mov edx, dword [esp + 0x1c]
push edx
call fcn.00409a3b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0040a0e4
add esp, 0x13c
ret
Function at 0x4079f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x414388
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41b1dc]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov eax, dword [0x41b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
push 0xf
xor ebx, ebx
push 0x417140
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401c30
cmp dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov edx, 0x417130
jne 0x407a56
mov edx, str.Adobe_Acrobat
mov eax, edx
lea esi, [eax + 1]
jmp 0x407a60
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407a60
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00406f40
push 1
push 0x41711c
lea ecx, [esp + 0x24]
call fcn.00406f40
push 3
push 0x4170f8
lea ecx, [esp + 0x24]
call fcn.00406f40
push 8
push str.Updater
lea ecx, [esp + 0x24]
call fcn.00406f40
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x407ab5
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407b04
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.bPreviewUpdatesEnabled
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407b04
cmp dword [esp + 0xc], 1
jbe 0x407b04
mov ebx, dword [esp + 0x10]
xor eax, eax
cmp ebx, 1
sete al
cmp dword [esp + 0x34], 0x10
mov esi, eax
jb 0x407b22
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409a3b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040a0e4
add esp, 0x3c
ret
Function at 0x407b50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x414388
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41b1dc]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
push esi
mov eax, dword [0x41b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
push 0x18
push str.SoftwarePoliciesAdobe_
lea ecx, [esp + 0x24]
mov ebp, 1
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00401c30
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov edx, 0x417130
jne 0x407bc3
mov edx, str.Adobe_Acrobat
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407bc8
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00406f40
push ebp
push 0x41711c
lea ecx, [esp + 0x24]
call fcn.00406f40
push 3
push 0x4170f8
lea ecx, [esp + 0x24]
call fcn.00406f40
push 0x10
push str.FeatureLockDown
lea ecx, [esp + 0x24]
call fcn.00406f40
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x407c1c
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407c6b
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.bUpdater
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407c6b
cmp dword [esp + 0xc], ebp
jbe 0x407c6b
mov ebp, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
sete al
cmp dword [esp + 0x34], 0x10
mov esi, eax
jb 0x407c88
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409a3b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040a0e4
add esp, 0x3c
ret
Function at 0x408220
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x414466
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x41b1dc]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebp
push esi
push edi
mov eax, dword [0x41b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x274]
mov ecx, ebp
call fcn.00401d40
push 0xf
xor edi, edi
push str.SoftwareAdobe_
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
call fcn.00407470
cmp dword [esp + 0x270], edi
mov dword [esp + 0x268], edi
mov edx, str.Acrobat_Reader
jne 0x4082a5
mov edx, 0x4171d0
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4082b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.00407370
push 1
push 0x4171cc
lea ecx, [esp + 0x40]
call fcn.00407370
push 3
push 0x4170fc
lea ecx, [esp + 0x40]
call fcn.00407370
push 0xc
push str.InstallPath
lea ecx, [esp + 0x40]
call fcn.00407370
mov eax, dword [esp + 0x3c]
mov edi, 8
cmp dword [esp + 0x50], edi
jae 0x40830d
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40838e
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40838e
cmp dword [esp + 0x10], 1
jbe 0x40838e
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
call fcn.00407cb0
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov byte [esp + 0x270], 1
call fcn.00407f80
add esp, 8
cmp dword [esp + 0x34], edi
jb 0x40838e
mov edx, dword [esp + 0x20]
push edx
call fcn.00409a3b
add esp, 4
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
cmp dword [esp + 0x50], edi
mov esi, eax
jb 0x4083ab
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00409a3b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0040a0e4
add esp, 0x25c
ret

Function at 0x40a0e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b1dc]
jne 0x40a0ee
repz ret
jmp fcn.0040c45c
Function at 0x410e94
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b140
xor ebx, ebx
cmp dword [0x41cc4c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x410f69
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x410ed4
xor eax, eax
jmp 0x41102d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4185b0
push edi
call esi
cmp eax, ebx
je 0x410ecd
push eax
call fcn.0040b0dd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41cc4c], eax
call esi
push eax
call fcn.0040b0dd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41cc50], eax
call esi
push eax
call fcn.0040b0dd
mov dword [0x41cc54], eax
lea eax, [ebp - 8]
push eax
call fcn.0040c7cf
test eax, eax
pop ecx
pop ecx
je 0x410f37
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409b20
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x410f69
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b0dd
cmp eax, ebx
pop ecx
mov dword [0x41cc5c], eax
je 0x410f69
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b0dd
pop ecx
mov dword [0x41cc58], eax
mov eax, dword [0x41cc58]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x410fe2
cmp dword [0x41cc5c], esi
je 0x410fe2
push eax
call fcn.0040b149
pop ecx
call eax
cmp eax, ebx
je 0x410faf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41cc5c]
call fcn.0040b149
pop ecx
call eax
test eax, eax
je 0x410faf
test byte [ebp - 0x18], 1
jne 0x410fe2
lea eax, [ebp - 0xc]
push eax
call fcn.0040c806
test eax, eax
pop ecx
je 0x410fca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409b20
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x410fd9
or dword [ebp + 0x10], 0x200000
jmp 0x411013
or dword [ebp + 0x10], 0x40000
jmp 0x411013
mov eax, dword [0x41cc50]
cmp eax, esi
je 0x411013
push eax
call fcn.0040b149
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x411013
mov eax, dword [0x41cc54]
cmp eax, esi
je 0x411013
push dword [ebp - 4]
push eax
call fcn.0040b149
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41cc4c]
call fcn.0040b149
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b008]
jne 0x40100a
repz ret
jmp fcn.00401828

Function at 0x406403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403380
and dword [ebp - 4], 0
cmp dword [0x41d250], 0
mov ebx, eax
jne 0x4064b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406565
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406565
push eax
call fcn.0040330e
mov dword [esp], 0x4189a8
push edi
mov dword [0x41d250], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d254], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d258], eax
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x41d260], eax
test eax, eax
je 0x4064b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x41d25c], eax
mov eax, dword [0x41d25c]
cmp eax, ebx
je 0x40650c
cmp dword [0x41d260], ebx
je 0x40650c
push eax
call fcn.00403389
push dword [0x41d260]
mov esi, eax
call fcn.00403389
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40650c
test edi, edi
je 0x40650c
call esi
test eax, eax
je 0x406503
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406503
test byte [ebp - 0xc], 1
jne 0x40650c
or dword [ebp + 0x10], 0x200000
jmp 0x406545
mov eax, dword [0x41d254]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406545
mov eax, dword [0x41d258]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d250]
call fcn.00403389
pop ecx
test eax, eax
je 0x406565
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406567
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x512dfc]
push ebx
push esi
mov esi, dword [0x512c44]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4174ad
push 0
lea eax, [ebp - 0x404]
push eax
push str.berajowototadosacirokavedevaparezeguvicaxajabaxiwosuf
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41c000]
call fcn.00417350
cmp dword [0x512dfc], 0x2f
jne 0x4174c8
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00417390
add esp, 4
cmp dword [0x512dfc], 0x568
pop esi
pop ebx
jne 0x4174fa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x40b380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5837a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e8e00]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x40b3c0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40b3cc
mov al, 1
jmp 0x40b56f
mov dword [ebp - 0x10], 8
call fcn.00406460
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00406460
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00406410
add esp, 8
movzx eax, al
test eax, eax
je 0x40b40f
xor al, al
jmp 0x40b56f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040ac30
mov ecx, eax
call fcn.0042fa80
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.0040b830
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040ac30
mov ecx, eax
call fcn.0042fa80
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.0040c120
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40b48a
cmp dword [ebp - 0x5c], 1
je 0x40b491
cmp dword [ebp - 0x5c], 3
je 0x40b52b
jmp 0x40b543
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040ac30
mov ecx, eax
call fcn.0042fa80
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40b4f4
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040ac30
mov ecx, eax
call fcn.0042fa80
push eax
call fcn.005576a7
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40b4f4
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409220
mov al, byte [ebp - 0x51]
jmp 0x40b56f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40b517
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409220
mov al, byte [ebp - 0x52]
jmp 0x40b56f
cmp dword [ebp - 0x38], 0
jne 0x40b529
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040aaf0
jmp 0x40b55b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409220
mov al, byte [ebp - 0x53]
jmp 0x40b56f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00409220
mov al, byte [ebp - 0x54]
jmp 0x40b56f
jmp 0x40b422
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0055509d
mov esp, ebp
pop ebp
ret
Function at 0x40e810
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5832d0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5e8e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40e85d
mov eax, 1
jmp 0x40e9e7
push str.GetAdaptersInfo
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40e87f
mov eax, 2
jmp 0x40e9e7
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x54]
push eax
call dword [ebp - 0x1c]
cmp eax, 0x6f
jne 0x40e8cf
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00453c50
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00453c5b
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x54], eax
jmp 0x40e88d
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x24], edx
jmp 0x40e8e9
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x40e9cb
mov edx, dword [ebp - 0x24]
add edx, 0x1ac
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x40e9c6
mov eax, dword [ebp - 0x28]
add eax, 4
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00445110
add esp, 4
test eax, eax
je 0x40e995
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0x28
call fcn.00453c21
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov edx, dword [ebp - 0x30]
add edx, 4
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x28]
add eax, 4
mov ecx, dword [ebp - 0x30]
add ecx, 4
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x58]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x58], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x40e9ba
mov dword [ebp - 4], 0xffffffff
jmp 0x40e8ff
jmp 0x40e8e1
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x18], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret