joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401550
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00415580
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40159e
cmp dword [ebp + 0xc], 0
jne 0x4015a8
jmp 0x401690
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x40161b
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
add eax, 2
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x21c]
mov dx, word [ecx]
mov word [ebp - 0x222], dx
add dword [ebp - 0x21c], 2
cmp word [ebp - 0x222], 0
jne 0x4015cd
mov eax, dword [ebp - 0x21c]
sub eax, dword [ebp - 0x220]
sar eax, 1
mov dword [ebp - 0x228], eax
je 0x40161b
push 0x42e45c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004132a9
add esp, 0xc
jmp 0x40165e
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42e464
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00413166
add esp, 0xc
push 0x42e480
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.004132a9
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x401686
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041380e
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00413630
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413157
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x2e4], 0
xor eax, eax
mov word [ebp - 0x2e0], ax
push 0xc6
push 0
lea ecx, [ebp - 0x2de]
push ecx
call fcn.00415580
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00415580
add esp, 0xc
push 0x42e49c
push 0x64
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.00413890
add esp, 0xc
push 0x42e4b0
push 0x64
lea edx, [ebp - 0x2e0]
push edx
call fcn.00413166
add esp, 0xc
push 0x42e4c8
push 0x64
lea eax, [ebp - 0x2e0]
push eax
call fcn.00413166
add esp, 0xc
push 0x42e4e0
push 0x64
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.00413166
add esp, 0xc
push 0x42e500
push 0x64
lea edx, [ebp - 0x2e0]
push edx
call fcn.00413166
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00413890
add esp, 0xc
lea edx, [ebp - 0x2e4]
push edx
push 3
push 0
lea eax, [ebp - 0x2e0]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4018cf
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x2ec], ecx
mov edx, dword [ebp - 0x2ec]
add edx, 2
mov dword [ebp - 0x2f0], edx
mov eax, dword [ebp - 0x2ec]
mov cx, word [eax]
mov word [ebp - 0x2f2], cx
add dword [ebp - 0x2ec], 2
cmp word [ebp - 0x2f2], 0
jne 0x401861
mov edx, dword [ebp - 0x2ec]
sub edx, dword [ebp - 0x2f0]
sar edx, 1
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push 0x42e510
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4018cf
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413157
mov esp, ebp
pop ebp
ret 4
Function at 0x402d00
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push edi
push 0x64
push 0x437bf0
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x437b28
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 8]
push edx
call fcn.00402f80
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403000
add esp, 8
test eax, eax
jne 0x402d62
xor eax, eax
jmp 0x402f63
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 8], eax
mov esi, 0x434fa0
call fcn.00403967
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xa08]
call fcn.00401000
lea ecx, [ebp - 0xa08]
call fcn.004018f0
test eax, eax
je 0x402dad
call fcn.004041b8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00403530
test eax, eax
jne 0x402dd6
mov dword [ebp - 0xc14], 0
lea ecx, [ebp - 0xa08]
call fcn.00401100
mov eax, dword [ebp - 0xc14]
jmp 0x402f63
cmp dword [0x438340], 0
jbe 0x402e08
movzx eax, word [0x438344]
test eax, eax
jle 0x402e08
mov esi, 0x434fac
mov ecx, dword [0x438340]
call fcn.004048db
mov cx, word [0x438344]
mov word [0x434fbc], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
push edx
push 0x42e15c
push 0x4388b8
call fcn.00403940
add esp, 0xc
call fcn.00404999
xor eax, eax
mov word [ebp - 0xc10], ax
push 0x206
push 0
lea ecx, [ebp - 0xc0e]
push ecx
call fcn.00415580
add esp, 0xc
lea edi, [ebp - 0xc10]
call fcn.0040493f
push 0x42e174
push 0x104
lea edx, [ebp - 0xc10]
push edx
call fcn.00413166
add esp, 0xc
push 0x4388b8
push 0x104
lea eax, [ebp - 0xc10]
push eax
call fcn.00413166
add esp, 0xc
lea ecx, [ebp - 0xc10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402ed1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x42e178
lea edx, [ebp - 0xc10]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x43823c]
and eax, 1
mov ecx, dword [0x43823c]
and ecx, 2
or eax, ecx
mov edx, dword [0x43823c]
and edx, 4
or eax, edx
je 0x402f01
call fcn.00402880
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00413157
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00415580
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00415580
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edx, edx
mov word [ebp - 0x414], dx
push 0x42e180
lea eax, [ebp - 0x418]
push eax
push 0x42e1c4
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403118
mov eax, dword [ebp - 0x41c]
or eax, 1
mov dword [ebp - 0x41c], eax
push 0x42e1d0
lea ecx, [ebp - 0x418]
push ecx
push 0x42e218
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40315a
mov ecx, dword [ebp - 0x41c]
or ecx, 2
mov dword [ebp - 0x41c], ecx
push 0x42e228
lea edx, [ebp - 0x418]
push edx
push 0x42e274
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40319c
mov edx, dword [ebp - 0x41c]
or edx, 4
mov dword [ebp - 0x41c], edx
push 0x42e280
lea eax, [ebp - 0x418]
push eax
push 0x42e2d4
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4031e0
mov eax, dword [ebp - 0x41c]
or eax, 0x100
mov dword [ebp - 0x41c], eax
push 0x42e2e0
lea ecx, [ebp - 0x418]
push ecx
push 0x42e334
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403225
mov ecx, dword [ebp - 0x41c]
or ecx, 0x200
mov dword [ebp - 0x41c], ecx
push 0x42e340
lea edx, [ebp - 0x418]
push edx
push 0x42e3a0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40326a
mov edx, dword [ebp - 0x41c]
or edx, 0x400
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
or eax, 0x2000000
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413157
mov esp, ebp
pop ebp
ret
Function at 0x403967
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [esi], 0
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00415580
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4039fa
mov ecx, dword [ebp - 0x78]
xor edx, edx
inc edx
cmp dword [ebp - 0x7c], 5
jne 0x4039de
test ecx, ecx
jne 0x4039c9
cmp word [ebp + 0x94], 4
jb 0x4039fa
mov dword [esi], edx
push 2
pop eax
cmp ecx, eax
jne 0x4039d2
mov dword [esi], eax
jae 0x4039d8
cmp ecx, edx
jne 0x4039fa
mov dword [esi], 3
cmp dword [ebp - 0x7c], 6
jne 0x4039fa
test ecx, ecx
jne 0x4039f0
mov dword [esi], 4
jmp 0x4039fa
cmp ecx, edx
jne 0x4039fa
mov dword [esi], 5
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00413157
add ebp, 0xa0
leave
ret

Function at 0x403a9d
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00415580
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x403b4f
push edi
mov edi, 0x42e680
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x403ae8
sub eax, edx
sar eax, 1
je 0x403b4e
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413166
push 0x42e6b4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004132a9
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x403b4e
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041359c
push dword [ebp - 0x78]
call fcn.00413630
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00413157
add ebp, 0x198
leave
ret
Function at 0x403b68
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00415580
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x403c43
push edi
mov edi, 0x42e69c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x403bb7
sub eax, edx
sar eax, 1
je 0x403c42
cmp dword [0x434fa0], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x403bf4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42e6bc
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413166
add esp, 0xc
jmp 0x403bfc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00413166
push 0x42e6b4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004132a9
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x403c42
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041359c
push dword [ebp - 0x78]
call fcn.00413630
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00413157
add ebp, 0x198
leave
ret

Function at 0x403d2b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x18c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00415580
and dword [ebp - 0x80], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x80]
push eax
movzx eax, word [ebp - 0x7c]
sub eax, 0x41
push eax
call fcn.00403eb9
push dword [ebp - 0x80]
call fcn.00403fa6
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403d96
xor eax, eax
jmp 0x403d9d
push esi
call fcn.00403c5c
pop ecx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.00413157
add ebp, 0x190
leave
ret
Function at 0x403db2
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x403e5b
mov ebx, 0xc00
push ebx
call fcn.00408cf9
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403e4c
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x403e2e
jg 0x403e22
cmp ecx, dword [ebp - 0x18]
jbe 0x403e2e
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x403e11
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00417390
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x403e5b
push dword [ebp - 4]
call fcn.00408d28
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403e6b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x403eb4
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

Function at 0x4040c5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x42e6b4
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004132a9
add esp, 0xc
test eax, eax
je 0x4040f2
xor eax, eax
jmp 0x404172
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0041424b
push dword [ebp - 4]
call fcn.0041446d
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0041424b
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0041452a
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0041359c
push dword [ebp - 4]
call fcn.00413630
push ebx
lea ebx, [edi + esi]
call fcn.00404176
push 0x42e720
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004132a9
add esp, 0x44
pop esi
test eax, eax
jne 0x4040eb
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.0041380e
push dword [ebp - 4]
call fcn.00413630
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret
Function at 0x404672
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4046f1
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x4046c7
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x4046f6
cmp dword [ebp - 8], 3
jb 0x40468d
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4046ea
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x4046ea
cmp edi, esi
jne 0x4046d5
mov eax, dword [ebp - 4]
jmp 0x40470d
cmp dword [eax + 0x34], 6
jne 0x40470a
cmp dword [eax + 0x1c], esi
jne 0x404713
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4046ff
jmp 0x404750
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x4046d8
Function at 0x404a37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x398], eax
push dword [ebp + 0x3a4]
mov dword [ebp - 0x80], ecx
call fcn.00404b64
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x404b4f
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.00415580
xor eax, eax
push esi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00415580
lea edi, [ebp + 0x190]
call fcn.0040493f
push 0x42e6bc
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00413166
mov edi, 0x437cc0
add esp, 0x24
mov ebx, edi
cmp word [ebx], 0
je 0x404ae7
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413890
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413166
add esp, 0x18
add ebx, 0x118
cmp ebx, 0x438238
jl 0x404ac2
cmp word [edi], 0
je 0x404b0d
push dword [ebp + 0x3a4]
mov ecx, edi
push dword [ebp - 0x80]
call fcn.004052e6
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x438238
jl 0x404af5
push 0x4388b8
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00413166
add esp, 0xc
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x404b4c
mov dword [ebp - 0x7c], 2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.00413157
add ebp, 0x39c
leave
ret

Function at 0x404d3b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9ac
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
xor ebx, ebx
lea eax, [esp + 0x1a8]
cmp ecx, ebx
je 0x404d65
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x18]
push eax
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404d89
xor eax, eax
jmp 0x404e0f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x404d82
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404dc5
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 8], eax
push 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x404dfe
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [esp + 0x10], eax
pop eax
push dword [ebp + 8]
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404dfe
xor ebx, ebx
inc ebx
jmp 0x404e0d
mov eax, dword [esi]
test eax, eax
je 0x404e0d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [esp + 0x9ac]
pop ebx
xor ecx, esp
call fcn.00413157
mov esp, ebp
pop ebp
ret