joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6d9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 1
lea eax, [ebp - 1]
mov byte [ebp - 1], bl
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
call fcn.004028bc
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
mov dl, 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040e503
cmp dword [ebp - 0x1c], 0x40
jne 0x40e735
push 0x2746
jmp 0x40e743
cmp dword [ebp - 0x1c], 0x4d2
jne 0x40e74b
push 0x274d
lea ecx, [ebp - 0x1c]
call fcn.0040f208
test esi, esi
pop esi
pop ebx
jne 0x40e75b
mov edx, dword [ebp - 0x14]
xor ecx, ecx
call fcn.00402789
mov esp, ebp
pop ebp
ret

Function at 0x410a9f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x4106fb
sub eax, 1
jne 0x410721
sub esp, 0x14
mov dword [edi + 0xc], 2
mov esi, esp
lea eax, [ebp - 8]
add edi, 0x10
push edi
push eax
call fcn.00560480
lea eax, [ebp - 8]
mov dword [esi], 0x5de0b0
and dword [esi + 4], 0
and dword [esi + 8], 0
push eax
lea eax, [esi + 0xc]
mov dword [esi], 0x5efd84
push eax
call fcn.00560480
lea eax, [ebp - 8]
push eax
call fcn.0056050d
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.00412e36
push eax
push edi
call fcn.00560470
lea eax, [ebp - 0x10]
push eax
call fcn.0056050d
add esp, 0x20
jmp 0x410721
lea eax, [ebp - 0x10]
mov dword [edi + 0xc], 1
push eax
call fcn.004105d2
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00560470
lea eax, [ebp - 0x10]
push eax
call fcn.0056050d
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [0x629654]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x410ac0
cmp dword [eax], esi
je 0x410ad0
mov eax, dword [eax + 8]
test eax, eax
jne 0x410ab9
xor ecx, ecx
pop esi
test ecx, ecx
jne 0x41067d
ret
mov ecx, dword [eax + 4]
jmp 0x410ac6

Function at 0x419656
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, edx
cmp ecx, 0xffffffff
jne 0x419676
mov ecx, dword [ebp + 0xc]
push 0x2719
call fcn.0040f208
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
sets dl
call fcn.0040e503
test esi, esi
pop esi
js 0x41966f
or byte [edi], 2
mov al, 1
jmp 0x419671

Function at 0x4196a9
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp ecx, 0xffffffff
jne 0x4196c3
mov ecx, dword [ebp + 0xc]
push 0x2719
call fcn.0040f208
or eax, 0xffffffff
pop ebp
ret
push esi
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.0040e503
mov eax, esi
pop esi
pop ebp
ret
Function at 0x419751
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x616fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
xor ebx, ebx
push esi
inc eax
mov dword [ebp - 0x21c], ebx
push edi
mov dword [ebp - 0x20c], eax
mov esi, ecx
mov dword [ebp - 0x108], eax
mov edi, edx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x208], esi
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x104], esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], ebx
push eax
push ebx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x4197bf
xor al, al
jmp 0x419841
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 4
push eax
push 0x1007
push ecx
mov ecx, esi
call fcn.00415c97
add esp, 0x14
test eax, eax
jne 0x41983f
cmp dword [ebp - 0x210], ebx
je 0x41982b
call fcn.004028bc
mov ecx, dword [ebp - 0x210]
mov esi, eax
mov edx, esi
mov dword [ebp - 0x228], ecx
call fcn.00402789
mov dword [ebp - 0x220], esi
lea esi, [ebp - 0x228]
mov byte [ebp - 0x224], al
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x41983f
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, esi
mov dword [edi], ebx
call fcn.00402789
mov byte [edi + 4], al
mov dword [edi + 8], esi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d244
mov esp, ebp
pop ebp
ret

Function at 0x4199f3
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
push esi
test edx, edx
jne 0x419a4c
cmp dword [ebp + 8], edx
jne 0x419a4c
cmp dword [ebp + 0xc], edx
jne 0x419a4c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419a6b
mov eax, dword [ecx + 4]
mov esi, 0x3e8
cdq
idiv esi
imul ecx, dword [ecx], 0x3e8
push edi
push 1
add eax, ecx
pop ecx
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 0x14]
xor ecx, ecx
mov esi, dword [edi + 8]
mov edx, esi
and dword [edi], 0
call fcn.00402789
mov byte [edi + 4], al
xor eax, eax
mov dword [edi + 8], esi
pop edi
jmp 0x419a8b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419a6b
cmp dword [ecx], 0
jne 0x419a6b
cmp dword [ecx + 4], 0
jle 0x419a6b
mov esi, 0x3e8
cmp dword [ecx + 4], esi
jge 0x419a6b
mov dword [ecx + 4], esi
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x14]
mov esi, eax
test esi, esi
sets dl
call fcn.0040e503
mov eax, esi
pop esi
pop ebp
ret
Function at 0x41a673
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x41a692
push 0
push 0
jmp 0x41a6e8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x41a6a5
push 0
push 0x2719
jmp 0x41a6e8
and dword [ebp + 0x18], 0
lea ecx, [ebp + 0x18]
push esi
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
pop esi
je 0x41a6f5
cmp eax, 0x3e5
je 0x41a6f5
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.00410b32
jmp 0x41a700
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.00410ad5
pop edi
pop ebp
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x41a724
push 0
push 0
jmp 0x41a78d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x41a737
push 0
push 0x2719
jmp 0x41a78d
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x41a770
mov eax, 0x2746
jmp 0x41a77d
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x41a79a
cmp eax, 0x3e5
je 0x41a79a
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.00410b32
jmp 0x41a7a5
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.00410ad5
pop esi
pop ebp
ret 0x18
Function at 0x41c838
Capabilities:
Resolve dns

Disassembly:
push 0x84
mov eax, 0x5a2297
call fcn.0055d904
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x78], esi
push eax
mov dword [ebp - 0x74], esi
call fcn.0041d533
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
mov ecx, ebx
call fcn.0041d550
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x41c883
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x41c88b
mov esi, dword [esi]
test esi, esi
je 0x41c894
cmp byte [esi], 0
jne 0x41c896
xor esi, esi
test edi, edi
je 0x41c89f
cmp byte [edi], 0
jne 0x41c8a1
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x74]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00419a8e
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x28]
mov esi, eax
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push edi
call fcn.0040390d
push 0
push edi
lea ecx, [ebp - 0x40]
call fcn.0040390d
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x84], esi
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 4], edi
mov al, byte [eax + 4]
test al, al
je 0x41c90c
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x1c]
mov ebx, edi
jmp 0x41c959
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0041d533
mov edi, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
mov dword [ebp - 0x78], 2
call fcn.0041d550
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x74]
push edi
push eax
mov dword [ebp - 0x78], 6
call fcn.0041d331
pop ecx
pop ecx
push 0xe
mov ecx, eax
xor edx, edx
pop ebx
mov edi, dword [ebp - 0x80]
or ebx, 0x10
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov dword [ecx + 8], edx
test bl, 8
je 0x41c99a
and ebx, 0xfffffff7
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x41c99a
call fcn.00405fe5
xor edx, edx
test bl, 4
je 0x41c9ad
push edx
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffb
call fcn.0040390d
test bl, 2
je 0x41c9c1
push 0
push 1
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffd
call fcn.0040390d
mov dword [ebp - 4], 1
test bl, 1
je 0x41c9dd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41c9dd
call fcn.00405fe5
test esi, esi
je 0x41c9e8
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
call fcn.0055d8ae
ret 0x10
Function at 0x421f0f
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x616fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], ecx
lea edi, [ebp - 0x12]
xor esi, esi
stosd dword es:[edi], eax
push 2
mov dword [ebp - 0x1c], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop eax
push 0x5f05e8
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x5a
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterfaceEx]
test eax, eax
jne 0x421fce
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x421fce
cmp dword [ebp - 0x18], esi
je 0x421fce
push dword [ebp - 0x18]
call fcn.0056a92a
mov edi, eax
pop ecx
test edi, edi
je 0x421fce
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x421fc7
mov ecx, dword [ebp - 0x1c]
mov eax, edi
cmp dword [eax + 0x19c], ecx
je 0x421fae
mov eax, dword [eax]
test eax, eax
jne 0x421f9e
jmp 0x421fc7
push 0x104
push dword [ebp - 0x20]
add eax, 8
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
inc esi
push edi
call fcn.00566907
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055d244
mov esp, ebp
pop ebp
ret

Function at 0x4221cc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x616fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5f0590
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
push 0x5f0534
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push 0x5f05f0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422299
push edi
push 0x828
call fcn.00427165
mov edi, eax
pop ecx
test edi, edi
je 0x422298
push 0x828
push ebx
push edi
call fcn.005639e0
add esp, 0xc
lea eax, [ebp - 0x14]
push ebx
push eax
push 0x826
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push esi
call dword [ebp - 0x18]
test eax, eax
je 0x42228e
cmp dword [ebp - 0x14], ebx
jbe 0x42228e
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42228e
cmp eax, 0xffffffff
je 0x42228e
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + edi]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x422281
xor ebx, ebx
inc ebx
push 0x28
push edi
call fcn.0055d735
pop ecx
pop ecx
pop edi
test esi, esi
je 0x4222a9
cmp esi, 0xffffffff
je 0x4222a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d244
mov esp, ebp
pop ebp
ret
Function at 0x42238a
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push 0x188
mov eax, 0x5a2e53
call fcn.0055d972
mov esi, ecx
mov edi, 0x114
lea eax, [ebp - 0x168]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.005639e0
add esp, 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0xf
push eax
lea eax, [esi + 0x7a]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.005639e0
add esp, 0xc
mov dword [ebp - 0x54], 0x40
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x422406
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
shrd ecx, eax, 0x14
shr eax, 0x14
mov word [esi + 0x28], cx
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x180]
push edi
mov word [esi + 0x2a], ax
lea eax, [ebp - 0x168]
push ebx
push eax
call fcn.005639e0
add esp, 0xc
mov dword [ebp - 0x168], edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x5f0500
push 0x5f0510
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x42245d
lea ecx, [ebp - 0x168]
push ecx
call eax
mov eax, dword [ebp - 0x164]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x34], eax
call fcn.004034f2
lea ecx, [esi + 0xa7]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.004221cc
call fcn.00421fe0
mov dword [esi + 0x4c], edx
lea ecx, [esi + 0x5c]
lea edx, [esi + 0x38]
mov dword [esi + 0x48], eax
call fcn.004222bb
call fcn.00421d58
test eax, eax
je 0x4224b1
or dword [esi + 0x50], 1
call fcn.00421dec
test eax, eax
je 0x4224be
or dword [esi + 0x50], 0x20
push 0x5f05a0
push 0x5f0534
call edi
push eax
call ebx
test eax, eax
je 0x4224db
call eax
test eax, eax
je 0x4224db
or dword [esi + 0x50], 0x40
and dword [ebp - 0x16c], 0
push 0x5f0524
push 0x5f0534
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x422507
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x16c], 0
je 0x422517
or dword [esi + 0x50], 0x800
call fcn.00421ea0
test al, al
je 0x422527
or dword [esi + 0x50], 0x8000
xor eax, eax
call fcn.0055d8bf
ret

Function at 0x422535
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x1a
push esi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x422590
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x422590
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x422563
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
je 0x422590
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, si
jne 0x42257d
mov eax, dword [0x5f066c]
mov dword [edi], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422596
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x616fe8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x21c], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
mov ebx, eax
mov dword [ebp - 0x214], eax
mov edi, eax
mov dword [ebp - 0x228], eax
mov esi, eax
mov dword [ebp - 0x224], eax
push 0x206
push eax
lea eax, [ebp - 0x20e]
push eax
call fcn.005639e0
mov ax, word [esi + 0x5f0670]
push 0x5f0664
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0056ac49
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x422676
push 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x422676
cmp dword [ebp - 0x214], edi
jb 0x422676
ja 0x422650
cmp dword [ebp - 0x218], ebx
jbe 0x422676
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
mov edi, dword [ebp - 0x214]
push eax
push 0x104
push dword [ebp - 0x21c]
call fcn.0056bfe3
add esp, 0xc
add esi, 2
push 0
pop eax
cmp esi, 0x18
jb 0x4225d2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d244
mov esp, ebp
pop ebp
ret
Function at 0x422696
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x14
push 0x6010e0
call fcn.0055d9e0
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea edx, [ecx + 2]
push 2
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x4226af
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call fcn.0056a92a
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x42280c
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, ebx
cmp ax, word [ebp - 4]
jne 0x4226dd
sub edx, ecx
sar edx, 1
push esi
inc edx
mov ecx, edi
call fcn.00421cf4
mov esi, edi
mov dword [ebp - 0x1c], esi
push 0x5c
pop ecx
cmp word [edi], cx
jne 0x42275e
cmp word [edi + 2], cx
jne 0x42275e
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, ebx
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x42272e
cmp ax, cx
je 0x42272e
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
push 0x5c
pop ecx
jmp 0x422710
xor edx, edx
cmp word [esi], dx
je 0x42273a
add esi, ebx
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x422755
cmp ax, cx
je 0x422755
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
push 0x5c
pop ecx
jmp 0x422737
xor eax, eax
cmp word [esi], ax
je 0x422782
jmp 0x42277d
cmp word [edi + 2], 0x3a
jne 0x422782
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, ebx
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x422782
cmp ax, cx
jne 0x422782
add esi, ebx
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x4227d6
cmp ax, cx
jne 0x4227c8
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4227be
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4227c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4227c2
push edi
jmp 0x422806
test al, 0x10
je 0x4227bb
push 0x5c
pop eax
mov word [esi], ax
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
push 0x5c
pop ecx
jmp 0x42277f
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.00566907
pop ecx
xor eax, eax
inc eax
jmp 0x422815
call fcn.00566907
pop ecx
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.0055da26
ret
Function at 0x42281b
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 8]
push esi
xor esi, esi
mov word [ebp - 2], cx
push esi
push 5
push 2
push 1
push eax
push esi
mov dword [ebp - 8], esi
call ebx
cmp eax, 0x7a
je 0x422849
xor eax, eax
jmp 0x4228aa
push edi
push dword [ebp - 8]
call fcn.00427165
mov edi, eax
pop ecx
test edi, edi
je 0x4228a9
push esi
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
jne 0x4228a0
mov ebx, esi
cmp dword [edi], esi
jbe 0x4228a0
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x422897
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 0x18
mov dword [ebp - 0xc], eax
cmp ebx, dword [edi]
jb 0x422877
jmp 0x4228a0
lea eax, [ebx + 1]
imul eax, eax, 0x18
mov esi, dword [eax + edi]
push edi
call fcn.0042716e
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422992
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x616fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x5ddc38
push 1
push 0
push 0x5ddf58
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x422a64
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5ddf08
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x422a58
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0056bfe3
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
add esp, 0xc
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d244
mov esp, ebp
pop ebp
ret
Function at 0x423546
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x616fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
mov edx, 0x5f06c4
lea ecx, [ebp - 0x1c]
call fcn.004183cb
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040390d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d244
mov esp, ebp
pop ebp
ret