joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b33b
Capabilities:
Create thread

Disassembly:
mov eax, 0x45af40
call fcn.0045aa0c
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push dword [esi + 0x134]
push 0x11
call fcn.00404587
mov eax, dword [esi + 0xf4]
mov dword [0x47797c], eax
mov eax, dword [esi + 0x134]
add esp, 0x10
test byte [eax + 0x904e], 1
je 0x40b380
mov dword [0x477980], 1
mov eax, dword [esi + 0x134]
test byte [eax + 0x904e], 2
je 0x40b399
mov dword [0x477980], 2
push 0x928
call fcn.00445998
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40b3c2
push dword [esi + 0x134]
mov eax, dword [0x477980]
call fcn.004091a9
mov edi, eax
or dword [ebp - 4], 0xffffffff
call fcn.00406ecb
mov ebx, 0x477658
mov edx, ebx
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40b3d6
lea eax, [edi + 0x208]
mov edx, 0x477860
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b3f1
lea eax, [edi + 0x410]
mov edx, 0x477964
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40b408
test edi, edi
je 0x40b421
push edi
call fcn.00445940
pop ecx
xor eax, eax
push eax
push eax
push ebx
push 0x40b447
push eax
push eax
call fcn.004463e3
mov ecx, dword [ebp - 0xc]
add esp, 0x18
pop edi
mov byte [esi + 0xd], 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c5a3
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 5
lea edi, [esi + 0xf4]
push dword [edi]
call ebx
push 1
push dword [edi]
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x100]
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
mov byte [esi + 0x132], 0
pop ebx
ret

Function at 0x40cc75
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [ebp + 8], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push edi
jne 0x40cd25
push 0
push dword [esi + 0xe8]
call ebx
lea edi, [esi + 0xb0]
mov ecx, dword [edi]
mov eax, dword [ecx]
push 1
call dword [eax + 0x2c]
mov eax, dword [edi]
mov dword [eax + 0x24], 1
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x18]
push 5
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40cd25
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [0x477654]
mov edi, eax
test eax, eax
je 0x40ccfd
test edi, edi
je 0x40ccf6
mov ecx, dword [edi]
test ecx, ecx
je 0x40ccf6
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
call dword [eax]
test eax, eax
je 0x40cd25
mov edi, dword [edi + 4]
test edi, edi
jne 0x40cce4
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40cd25
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0xe0], 0
jge 0x40ccc6
push 0
lea edi, [esi + 0xf4]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 1
push dword [esi + 0xe8]
call ebx
push dword [edi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x10c]
pop edi
pop ebx
leave
ret 4
Function at 0x40d0be
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSecurityInfo
push esi
mov dword [ebp - 0x24], esi
call edi
push str.SetSecurityInfo
push esi
mov dword [ebp - 0xc], eax
call edi
push str.SetEntriesInAclA
push esi
mov dword [ebp - 0x18], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [ebp - 0x14], eax
call edi
mov edi, eax
cmp dword [ebp - 0xc], ebx
je 0x40d23c
cmp dword [ebp - 0x18], ebx
je 0x40d23c
cmp dword [ebp - 0x14], ebx
je 0x40d23c
cmp edi, ebx
je 0x40d23c
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x40d23c
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x1c], ebx
call dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jne 0x40d184
cmp dword [ebp - 0x10], ebx
jne 0x40d216
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], 5
call edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], 0x10000000
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ebx
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x40d204
push ebx
push dword [ebp - 8]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x20]
call dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40d246
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d512
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x4605a4
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40d607
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40d607
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call edi
mov dword [ebp - 4], eax
push ebx
cmp eax, 0xffffffff
jne 0x40d60b
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..VWIN32
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40d607
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], eax
push 0x1c
xor eax, eax
inc eax
push ecx
push eax
push dword [ebp - 4]
mov byte [ebp - 0x58], bl
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], 0x860
mov dword [ebp - 0x24], 0x440d
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d5fe
test byte [ebp - 0x18], 1
jne 0x40d5fe
movzx edx, word [ebp - 0x44]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebp - 0x51]
mov ecx, edx
mov edi, eax
not ecx
shl edi, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
xor edi, ecx
shl edx, 2
not eax
not ecx
xor edx, eax
xor edx, ecx
mov dword [esi + 4], edx
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d5fe
cmp dword [ebp - 0xc], ebx
jbe 0x40d5fe
mov edx, dword [ebp - 0x20]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
jmp 0x40d5de

Function at 0x40d899
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea ecx, [eax + 2]
xor ebx, ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40d8a7
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword [ebp + 8]
call fcn.0040d681
mov edi, eax
cmp edi, ebx
je 0x40d8f6
push esi
push dword [ebp + 0x10]
push 1
push ebx
cmp dword [ebp + 0xc], ebx
je 0x40d8df
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40d8e6
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor ecx, ecx
cmp eax, ebx
sete cl
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x40db5e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x114]
cmp eax, 0xffffffff
je 0x40db97
xor esi, esi
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40db93
cmp dword [ebp - 4], esi
je 0x40db93
xor eax, eax
inc eax
jmp 0x40dbbc
xor eax, eax
jmp 0x40dbbc
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x118]
jb 0x40dba6
xor al, al
jmp 0x40dbbc
mov ecx, dword [esi]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.0044ce90
add esp, 0xc
add dword [esi + 4], edi
mov al, 1
pop esi
leave
ret 4

Function at 0x40dd69
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40ddde
cmp word [ebx + 8], 2
jne 0x40ddbe
cmp word [ebx + 0xa], 4
jne 0x40ddbe
mov edi, dword [ebx + 0xc]
jmp 0x40ddb8
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dd02
mov dword [esi], eax
test eax, eax
je 0x40ddd9
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40dd9c
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.00446e90
add esp, 0x10
xor eax, eax
jmp 0x40de04
push 8
pop eax
jmp 0x40de04
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x40de04
dec ecx
je 0x40ddff
dec ecx
je 0x40ddf8
dec ecx
jmp 0x40de04
mov eax, 0x2afb
jmp 0x40de04
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40e3dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4779dc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40df61
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40e222
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040df28
jne 0x40e537
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e52d
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00446ba2
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00445f7f
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40e49a
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e496
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x40e4ef
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00446ba2
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.00445f7f
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40e52d
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e4eb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40e52d
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x40e50c
inc esi
cmp esi, 3
jl 0x40e4f1
jmp 0x40e515
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40e52d
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4751f4], ecx
add eax, 8
cmp eax, 0x18
jl 0x40e51b
mov dword [0x4779dc], 1
mov eax, dword [0x4751f4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e541
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push dword [ebp + 0xc]
and dword [esp + 0x20], 0
and dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00412cfc
pop ecx
push 8
pop edx
lea eax, [esp + 0x18]
lea ecx, [esp]
call fcn.0041343c
mov ecx, dword [esp + 0x18]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x40e5a4
push 0x78
pop eax
sub eax, ecx
push 0x469a20
lea ecx, [esp + 0xc]
call fcn.00412cfc
lea eax, [esp + 4]
push eax
push 8
pop eax
lea ecx, [esp + 0x10]
call fcn.00412cfc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x10
pop edx
lea eax, [esp + 8]
call fcn.0041343c
mov esp, ebp
pop ebp
ret
Function at 0x40e5da
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push esi
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40e618
mov eax, 0x4779e8
jmp 0x40e6a5
push edi
push esi
call fcn.00445998
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x45eca8
push ecx
push eax
lea eax, [ebp - 0x514]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x514]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0xc]
mov esi, 0x4779e8
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e691
push edi
call fcn.00445940
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40e6a8
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x186c
call fcn.00454b50
push ebx
push esi
push edi
push 0x2e
pop eax
push eax
mov dword [esp + 0x18], eax
call fcn.00445998
pop ecx
push dword [esp + 0x14]
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.0044f6b0
add esp, 0xc
mov esi, 0x3ff
push esi
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.0044f6b0
add esp, 0xc
push esi
lea eax, [esp + 0x87d]
push ebx
push eax
mov byte [esp + 0x884], bl
call fcn.0044f6b0
add esp, 0xc
push esi
lea eax, [esp + 0x107d]
push ebx
push eax
mov byte [esp + 0x1084], bl
call fcn.0044f6b0
add esp, 0xc
push esi
lea eax, [esp + 0x47d]
push ebx
push eax
mov byte [esp + 0x484], bl
call fcn.0044f6b0
add esp, 0xc
push esi
lea eax, [esp + 0xc7d]
push ebx
push eax
mov byte [esp + 0xc84], bl
call fcn.0044f6b0
add esp, 0xc
push esi
lea eax, [esp + 0x147d]
push ebx
push eax
mov byte [esp + 0x1484], bl
call fcn.0044f6b0
lea eax, [esp + 0x84]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x884]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1084]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x484]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc84]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x1484]
mov dword [esp + 0x44], eax
lea eax, [esi + 1]
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e7e0
lea ecx, [esp + 0x1c]
push ecx
push ebx
sub eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov esi, dword [esp + 0x2c]
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [0x4779e0]
push 2
pop edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 6
cmp eax, ebx
jne 0x40e83e
call fcn.0040e3dd
mov dword [0x4779e0], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
push ecx
push ebx
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
cmp esi, ebx
jne 0x40e8b9
mov esi, dword [esp + 0x18]
jmp 0x40e8b5
mov eax, dword [esi + 4]
sub eax, ebx
je 0x40e8ac
sub eax, edi
je 0x40e890
sub eax, 0x15
jne 0x40e8b2
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x14]
mov dword [esp + 0x1c], 0x2e
push ebx
push dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
jmp 0x40e8b2
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov edx, dword [esp + 0x10]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40e8a0
jmp 0x40e8b2
mov eax, dword [esp + 0x10]
mov byte [eax], bl
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x40e85f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e97b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea edx, [ebp - 0x108]
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e98e
xor edi, edi
cmp byte [ebp - 0x108], 0
je 0x40e9d2
lea esi, [ebp + edi - 0x108]
cmp byte [esi], 0x5c
jne 0x40e9c7
cmp edi, 2
jle 0x40e9c7
lea eax, [ebp - 0x108]
push eax
mov byte [esi], 0
call fcn.0040d0be
pop ecx
mov byte [esi], 0x5c
inc edi
cmp byte [ebp + edi - 0x108], 0
jne 0x40e9a3
lea eax, [ebp - 0x108]
push eax
call fcn.0040d0be
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret

Function at 0x40ea15
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x357]
push ebx
push eax
mov byte [ebp - 0x358], bl
call fcn.0044f6b0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push str._s.
push eax
call edi
add esp, 0xc
push 0x13c
lea eax, [ebp - 0x144]
push ebx
push eax
mov dword [ebp - 0x148], ebx
call fcn.0044f6b0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40eb6a
cmp byte [ebp - 0x11c], 0x2e
je 0x40eb3f
test byte [ebp - 0x148], 0x10
je 0x40eb00
cmp byte [ebp + 0xc], bl
je 0x40eb00
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.0044f6b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x250]
add esp, 0xc
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp dl, bl
jne 0x40ead1
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call fcn.0040ea15
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x45f]
push ebx
push eax
mov byte [ebp - 0x460], bl
call fcn.0044f6b0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push 0x45f430
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eb60
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x40ea94
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eb78
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push ebx
push esi
push edi
mov edi, 0x103
push edi
xor esi, esi
lea eax, [ebp - 0x45f]
push esi
push eax
mov byte [ebp - 0x460], 0
call fcn.0044f6b0
push edi
lea eax, [ebp - 0x24f]
push esi
push eax
mov byte [ebp - 0x250], 0
call fcn.0044f6b0
push edi
lea eax, [ebp - 0x357]
push esi
push eax
mov byte [ebp - 0x358], 0
call fcn.0044f6b0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esp, 0x24
lea esi, [edi + 1]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push eax
call ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push eax
call ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call ebx
and dword [ebp - 0x148], 0
push 0x13c
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0044f6b0
push 0x46066c
lea ebx, [ebp - 0x358]
call fcn.0040efa1
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ec7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x567]
push ebx
push eax
mov byte [ebp - 0x568], bl
call fcn.0044f6b0
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x568]
push eax
push ebx
push dword [ebp - 4]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x40ecf5
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._s_s
cmp byte [ebp - 0x11c], 0x2e
je 0x40ecd3
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push edi
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push edi
push eax
call esi
add esp, 0x20
push 1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ec89
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret