joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fcfc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp ecx, esi
jne 0x40fd19
push 0x2719
mov ecx, dword [ebp + 0x18]
call fcn.004122ae
jmp 0x40fd9d
cmp dword [ebp + 8], 0xa5100000
mov eax, dword [ebp + 0xc]
jne 0x40fd6a
cmp eax, 2
jne 0x40fd31
push 0x2726
jmp 0x40fd0c
cmp eax, 1
jne 0x40fd7d
cmp dword [ebp + 0x14], 4
jne 0x40fd2a
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x40fd49
or byte [edx], 4
jmp 0x40fd4c
and byte [edx], 0xfb
push edi
mov edi, dword [ebp + 0x18]
xor ecx, ecx
mov esi, dword [edi + 8]
mov edx, esi
and dword [edi], 0
call fcn.00402727
mov byte [edi + 4], al
xor eax, eax
mov dword [edi + 8], esi
pop edi
jmp 0x40fd9f
cmp dword [ebp + 8], 0xffff
jne 0x40fd7d
cmp eax, 0x80
jne 0x40fd7d
or byte [edx], 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x18]
mov esi, eax
test esi, esi
setne dl
call fcn.0040fa4c
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40ff44
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.0040286e
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.0040fa4c
cmp dword [ebp - 0x1c], 0x40
jne 0x40ffa0
push 0x2746
jmp 0x40ffae
cmp dword [ebp - 0x1c], 0x4d2
jne 0x40ffb6
push 0x274d
lea ecx, [ebp - 0x1c]
call fcn.004122ae
test esi, esi
pop esi
pop ebx
jne 0x40ffc6
mov edx, dword [ebp - 0x14]
xor ecx, ecx
call fcn.00402727
mov esp, ebp
pop ebp
ret

Function at 0x418a08
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, edx
cmp ecx, 0xffffffff
jne 0x418a28
mov ecx, dword [ebp + 0xc]
push 0x2719
call fcn.004122ae
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.0040fa4c
test esi, esi
pop esi
js 0x418a21
or byte [edi], 2
mov al, 1
jmp 0x418a23

Function at 0x418a5b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp ecx, 0xffffffff
jne 0x418a75
mov ecx, dword [ebp + 0xc]
push 0x2719
call fcn.004122ae
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.0040fa4c
mov eax, esi
pop esi
pop ebp
ret
Function at 0x418b03
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x630fe8]
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 0x418b71
xor al, al
jmp 0x418bf3
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.00415053
add esp, 0x14
test eax, eax
jne 0x418bf1
cmp dword [ebp - 0x210], ebx
je 0x418bdd
call fcn.0040286e
mov ecx, dword [ebp - 0x210]
mov esi, eax
mov edx, esi
mov dword [ebp - 0x228], ecx
call fcn.00402727
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 0x418bf1
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, esi
mov dword [edi], ebx
call fcn.00402727
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.0055b830
mov esp, ebp
pop ebp
ret

Function at 0x418da5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
push esi
test edx, edx
jne 0x418dfe
cmp dword [ebp + 8], edx
jne 0x418dfe
cmp dword [ebp + 0xc], edx
jne 0x418dfe
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418e1d
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.00402727
mov byte [edi + 4], al
xor eax, eax
mov dword [edi + 8], esi
pop edi
jmp 0x418e3d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418e1d
cmp dword [ecx], 0
jne 0x418e1d
cmp dword [ecx + 4], 0
jle 0x418e1d
mov esi, 0x3e8
cmp dword [ecx + 4], esi
jge 0x418e1d
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.0040fa4c
mov eax, esi
pop esi
pop ebp
ret
Function at 0x419a25
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 0x419a44
push 0
push 0
jmp 0x419a9a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x419a57
push 0
push 0x2719
jmp 0x419a9a
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 0x419aa7
cmp eax, 0x3e5
je 0x419aa7
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.0040f876
jmp 0x419ab2
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.0040f819
pop edi
pop ebp
ret 0x18

Function at 0x419ab7
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 0x419ad6
push 0
push 0
jmp 0x419b3f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x419ae9
push 0
push 0x2719
jmp 0x419b3f
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 0x419b22
mov eax, 0x2746
jmp 0x419b2f
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x419b4c
cmp eax, 0x3e5
je 0x419b4c
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.0040f876
jmp 0x419b57
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.0040f819
pop esi
pop ebp
ret 0x18
Function at 0x41bc2b
Capabilities:
Resolve dns

Disassembly:
push 0x84
mov eax, 0x5b8a3e
call fcn.0055bed3
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.0041c926
mov edi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
mov ecx, ebx
call fcn.0041c943
cmp dword [edi + 0x14], 0x10
mov esi, eax
jb 0x41bc76
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x41bc7e
mov esi, dword [esi]
test esi, esi
je 0x41bc87
cmp byte [esi], 0
jne 0x41bc89
xor esi, esi
test edi, edi
je 0x41bc92
cmp byte [edi], 0
jne 0x41bc94
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.00418e40
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.004039b3
push 0
push edi
lea ecx, [ebp - 0x40]
call fcn.004039b3
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 0x41bcff
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 0x41bd4c
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0041c926
mov edi, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 3
push eax
mov ecx, ebx
mov dword [ebp - 0x78], 2
call fcn.0041c943
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.0041c724
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 0x41bd8d
and ebx, 0xfffffff7
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x41bd8d
call fcn.004060b8
xor edx, edx
test bl, 4
je 0x41bda0
push edx
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffb
call fcn.004039b3
test bl, 2
je 0x41bdb4
push 0
push 1
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffd
call fcn.004039b3
mov dword [ebp - 4], 1
test bl, 1
je 0x41bdd0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41bdd0
call fcn.004060b8
test esi, esi
je 0x41bddb
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
call fcn.0055be7d
ret 0x10
Function at 0x420d47
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x630fe8]
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 0x607f50
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 0x420e06
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x420e06
cmp dword [ebp - 0x18], esi
je 0x420e06
push dword [ebp - 0x18]
call fcn.0057e591
mov edi, eax
pop ecx
test edi, edi
je 0x420e06
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x420dff
mov ecx, dword [ebp - 0x1c]
mov eax, edi
cmp dword [eax + 0x19c], ecx
je 0x420de6
mov eax, dword [eax]
test eax, eax
jne 0x420dd6
jmp 0x420dff
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.0057a577
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055b830
mov esp, ebp
pop ebp
ret

Function at 0x421004
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x630fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x607e94
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
push 0x607e58
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 0x607fb8
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 0x4210d1
push edi
push 0x828
call fcn.00425747
mov edi, eax
pop ecx
test edi, edi
je 0x4210d0
push 0x828
push ebx
push edi
call fcn.00577630
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 0x4210c6
cmp dword [ebp - 0x14], ebx
jbe 0x4210c6
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4210c6
cmp eax, 0xffffffff
je 0x4210c6
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 0x4210b9
xor ebx, ebx
inc ebx
push 0x28
push edi
call fcn.0055bce1
pop ecx
pop ecx
pop edi
test esi, esi
je 0x4210e1
cmp esi, 0xffffffff
je 0x4210e1
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.0055b830
mov esp, ebp
pop ebp
ret
Function at 0x4211c2
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push 0x188
mov eax, 0x5b9569
call fcn.0055bf41
mov esi, ecx
mov edi, 0x114
lea eax, [ebp - 0x168]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.00577630
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.00577630
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 0x42123e
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.00577630
add esp, 0xc
mov dword [ebp - 0x168], edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x607e74
push 0x607ebc
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x421295
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.0040355a
lea ecx, [esi + 0xa7]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.00421004
call fcn.00420e18
mov dword [esi + 0x4c], edx
lea ecx, [esi + 0x5c]
lea edx, [esi + 0x38]
mov dword [esi + 0x48], eax
call fcn.004210f3
call fcn.00420b90
test eax, eax
je 0x4212e9
or dword [esi + 0x50], 1
call fcn.00420c24
test eax, eax
je 0x4212f6
or dword [esi + 0x50], 0x20
push 0x607ee0
push 0x607e58
call edi
push eax
call ebx
test eax, eax
je 0x421313
call eax
test eax, eax
je 0x421313
or dword [esi + 0x50], 0x40
and dword [ebp - 0x16c], 0
push 0x607e84
push 0x607e58
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x42133f
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x16c], 0
je 0x42134f
or dword [esi + 0x50], 0x800
call fcn.00420cd8
test al, al
je 0x42135f
or dword [esi + 0x50], 0x8000
xor eax, eax
call fcn.0055be8e
ret

Function at 0x42136d
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 0x4213c8
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4213c8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x42139b
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
je 0x4213c8
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, si
jne 0x4213b5
mov eax, dword [0x607fe0]
mov dword [edi], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4213ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x630fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, 0x104
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00577630
mov ax, word [esi + 0x607f94]
push 0x607fb0
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0057e8b0
push 0x608124
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0057e8b0
add esp, 0x24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42144b
test al, 0x10
jne 0x421466
add esi, 2
cmp esi, 0x18
jb 0x4213ed
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055b830
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call fcn.0057fc53
add esp, 0xc
mov al, 1
jmp 0x421455

Function at 0x42147b
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x630fe8]
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.00577630
mov ax, word [esi + 0x607f94]
push 0x607fb0
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0057e8b0
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42155b
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 0x42155b
cmp dword [ebp - 0x214], edi
jb 0x42155b
ja 0x421535
cmp dword [ebp - 0x218], ebx
jbe 0x42155b
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
mov edi, dword [ebp - 0x214]
push eax
push 0x104
push dword [ebp - 0x21c]
call fcn.0057fc53
add esp, 0xc
add esi, 2
push 0
pop eax
cmp esi, 0x18
jb 0x4214b7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055b830
mov esp, ebp
pop ebp
ret
Function at 0x42157b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x14
push 0x61a320
call fcn.0055bfb0
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 0x421594
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call fcn.0057e591
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4216f1
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, ebx
cmp ax, word [ebp - 4]
jne 0x4215c2
sub edx, ecx
sar edx, 1
push esi
inc edx
mov ecx, edi
call fcn.00420b2c
mov esi, edi
mov dword [ebp - 0x1c], esi
push 0x5c
pop ecx
cmp word [edi], cx
jne 0x421643
cmp word [edi + 2], cx
jne 0x421643
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 0x421613
cmp ax, cx
je 0x421613
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
push 0x5c
pop ecx
jmp 0x4215f5
xor edx, edx
cmp word [esi], dx
je 0x42161f
add esi, ebx
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x42163a
cmp ax, cx
je 0x42163a
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
push 0x5c
pop ecx
jmp 0x42161c
xor eax, eax
cmp word [esi], ax
je 0x421667
jmp 0x421662
cmp word [edi + 2], 0x3a
jne 0x421667
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 0x421667
cmp ax, cx
jne 0x421667
add esi, ebx
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x4216bb
cmp ax, cx
jne 0x4216ad
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4216a3
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4216a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4216a7
push edi
jmp 0x4216eb
test al, 0x10
je 0x4216a0
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 0x421664
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.0057a577
pop ecx
xor eax, eax
inc eax
jmp 0x4216fa
call fcn.0057a577
pop ecx
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.0055bff6
ret
Function at 0x421700
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 0x42172e
xor eax, eax
jmp 0x42178f
push edi
push dword [ebp - 8]
call fcn.00425747
mov edi, eax
pop ecx
test edi, edi
je 0x42178e
push esi
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call ebx
test eax, eax
jne 0x421785
mov ebx, esi
cmp dword [edi], esi
jbe 0x421785
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 0x42177c
mov eax, dword [ebp - 0xc]
inc ebx
add eax, 0x18
mov dword [ebp - 0xc], eax
cmp ebx, dword [edi]
jb 0x42175c
jmp 0x421785
lea eax, [ebx + 1]
imul eax, eax, 0x18
mov esi, dword [eax + edi]
push edi
call fcn.00425742
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42191f
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x630fe8]
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 0x5f4be8
push 1
push 0
push 0x5f4f08
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x4219f1
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 0x5f4eb8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4219e5
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057fc53
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.0055b830
mov esp, ebp
pop ebp
ret
Function at 0x422500
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x630fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
mov edx, 0x60801c
lea ecx, [ebp - 0x1c]
call fcn.00417787
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.004039b3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055b830
mov esp, ebp
pop ebp
ret