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

Disassembly:
mov eax, 0x450f32
call fcn.00450bbc
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push dword [esi + 0x134]
push 0x11
call fcn.004044dd
mov eax, dword [esi + 0xf4]
mov dword [0x46d8fc], eax
mov eax, dword [esi + 0x134]
add esp, 0x10
test byte [eax + 0x904e], 1
je 0x40adc3
mov dword [0x46d900], 1
mov eax, dword [esi + 0x134]
test byte [eax + 0x904e], 2
je 0x40addc
mov dword [0x46d900], 2
push 0x928
call fcn.0043b7d8
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40ae05
push dword [esi + 0x134]
mov eax, dword [0x46d900]
call fcn.00408c46
mov edi, eax
or dword [ebp - 4], 0xffffffff
call fcn.00406aac
mov ebx, 0x46d5d8
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 0x40ae19
lea eax, [edi + 0x208]
mov edx, 0x46d7e0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ae34
lea eax, [edi + 0x410]
mov edx, 0x46d8e4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40ae4b
test edi, edi
je 0x40ae64
push edi
call fcn.0043b780
pop ecx
xor eax, eax
push eax
push eax
push ebx
push 0x40ae8a
push eax
push eax
call fcn.0043c1d2
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 0x40aeae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [0x46ce64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x40af35
mov byte [esi + 0x131], 1
cmp dword [esi + 0x138], ebx
je 0x40af35
cmp byte [esi + 0x130], bl
je 0x40af23
mov eax, dword [esi + 0x134]
cmp byte [eax + 0xaf9d], bl
je 0x40af17
lea edi, [eax + 0x6740]
cmp edi, ebx
je 0x40af17
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40aefb
sub eax, edx
je 0x40af17
push 1
push ebx
push ebx
push edi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
push ebx
push dword [esi + 0x134]
push 0x10
jmp 0x40af2d
push ebx
push ebx
push dword [esi + 0x134]
push 0x19
call fcn.004044dd
add esp, 0x10
cmp byte [esi + 0x132], bl
je 0x40af61
cmp dword [ebp + 8], 1
jne 0x40af61
push ebx
push ebx
push dword [esi + 0x134]
cmp byte [esi + 0x12e], bl
je 0x40af57
push 0x14
jmp 0x40af59
push 0x13
call fcn.004044dd
add esp, 0x10
mov eax, dword [esi + 0x100]
cmp eax, ebx
je 0x40af82
cmp byte [esi + 0x132], bl
je 0x40af82
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov byte [esi + 0x132], bl
mov eax, dword [ebp + 8]
or dword [esi + 0xe0], 0xffffffff
push eax
push ebx
push dword [esi + 0xf4]
mov dword [esi + 0x10c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop edi
pop ebx
leave
ret 4
Function at 0x40be48
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 0x40c4ac
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 0x40c55c
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 0x40c55c
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 [0x46d5d4]
mov edi, eax
test eax, eax
je 0x40c534
test edi, edi
je 0x40c52d
mov ecx, dword [edi]
test ecx, ecx
je 0x40c52d
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
call dword [eax]
test eax, eax
je 0x40c55c
mov edi, dword [edi + 4]
test edi, edi
jne 0x40c51b
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40c55c
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 0x40c4fd
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 0x40c8f5
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 0x40ca73
cmp dword [ebp - 0x18], ebx
je 0x40ca73
cmp dword [ebp - 0x14], ebx
je 0x40ca73
cmp edi, ebx
je 0x40ca73
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 0x40ca73
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 0x40c9bb
cmp dword [ebp - 0x10], ebx
jne 0x40ca4d
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 0x40ca3b
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 0x40ca7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cd9f
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, 0x456464
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40ce94
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 0x40ce94
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 0x40ce98
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..VWIN32
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40ce94
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 0x40ce8b
test byte [ebp - 0x18], 1
jne 0x40ce8b
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 0x40ce8b
cmp dword [ebp - 0xc], ebx
jbe 0x40ce8b
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 0x40ce6b

Function at 0x40d12b
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 0x40d139
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword [ebp + 8]
call fcn.0040cf0e
mov edi, eax
cmp edi, ebx
je 0x40d188
push esi
push dword [ebp + 0x10]
push 1
push ebx
cmp dword [ebp + 0xc], ebx
je 0x40d171
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40d178
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 0x40d3f0
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 0x40d429
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 0x40d425
cmp dword [ebp - 4], esi
je 0x40d425
xor eax, eax
inc eax
jmp 0x40d44e
xor eax, eax
jmp 0x40d44e
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x118]
jb 0x40d438
xor al, al
jmp 0x40d44e
mov ecx, dword [esi]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.00442cb0
add esp, 0xc
add dword [esi + 4], edi
mov al, 1
pop esi
leave
ret 4

Function at 0x40d5fb
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 0x40d670
cmp word [ebx + 8], 2
jne 0x40d650
cmp word [ebx + 0xa], 4
jne 0x40d650
mov edi, dword [ebx + 0xc]
jmp 0x40d64a
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040d594
mov dword [esi], eax
test eax, eax
je 0x40d66b
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40d62e
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0043cc7f
add esp, 0x10
xor eax, eax
jmp 0x40d696
push 8
pop eax
jmp 0x40d696
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x40d696
dec ecx
je 0x40d691
dec ecx
je 0x40d68a
dec ecx
jmp 0x40d696
mov eax, 0x2afb
jmp 0x40d696
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40dc6f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x46d95c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40d7f3
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40dab4
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040d7ba
jne 0x40ddc9
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40ddbf
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043c991
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043bdbf
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 0x40dd2c
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40dd28
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x40dd81
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043c991
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043bdbf
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40ddbf
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40dd7d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40ddbf
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 0x40dd9e
inc esi
cmp esi, 3
jl 0x40dd83
jmp 0x40dda7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40ddbf
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x46b174], ecx
add eax, 8
cmp eax, 0x18
jl 0x40ddad
mov dword [0x46d95c], 1
mov eax, dword [0x46b174]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ddd3
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push dword [ebp + 0xc]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.004124f7
pop ecx
push 8
pop edx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 8]
call fcn.00412c37
mov ecx, dword [ebp - 0x50]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x40de2a
push 0x78
pop eax
sub eax, ecx
push 0x45f9a0
lea ecx, [ebp - 0x60]
call fcn.004124f7
lea eax, [ebp - 8]
push eax
push 8
pop eax
lea ecx, [ebp - 0x60]
call fcn.004124f7
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x10
pop edx
lea eax, [ebp - 0x60]
call fcn.00412c37
leave
ret
Function at 0x40de5a
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 0x40de98
mov eax, 0x46d968
jmp 0x40df25
push edi
push esi
call fcn.0043b7d8
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 0x454c88
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, 0x46d968
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40df11
push edi
call fcn.0043b780
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40df28
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x186c
call fcn.0044b550
push ebx
push esi
push edi
push 0x2e
pop eax
push eax
mov dword [esp + 0x18], eax
call fcn.0043b7d8
pop ecx
push dword [esp + 0x14]
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.004454d0
add esp, 0xc
mov esi, 0x3ff
push esi
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.004454d0
add esp, 0xc
push esi
lea eax, [esp + 0x87d]
push ebx
push eax
mov byte [esp + 0x884], bl
call fcn.004454d0
add esp, 0xc
push esi
lea eax, [esp + 0x107d]
push ebx
push eax
mov byte [esp + 0x1084], bl
call fcn.004454d0
add esp, 0xc
push esi
lea eax, [esp + 0x47d]
push ebx
push eax
mov byte [esp + 0x484], bl
call fcn.004454d0
add esp, 0xc
push esi
lea eax, [esp + 0xc7d]
push ebx
push eax
mov byte [esp + 0xc84], bl
call fcn.004454d0
add esp, 0xc
push esi
lea eax, [esp + 0x147d]
push ebx
push eax
mov byte [esp + 0x1484], bl
call fcn.004454d0
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 0x40e060
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 [0x46d960]
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 0x40e0be
call fcn.0040dc6f
mov dword [0x46d960], 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 0x40e139
mov esi, dword [esp + 0x18]
jmp 0x40e135
mov eax, dword [esi + 4]
sub eax, ebx
je 0x40e12c
sub eax, edi
je 0x40e110
sub eax, 0x15
jne 0x40e132
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 0x40e132
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 0x40e120
jmp 0x40e132
mov eax, dword [esp + 0x10]
mov byte [eax], bl
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x40e0df
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e1fb
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 0x40e20e
xor edi, edi
cmp byte [ebp - 0x108], 0
je 0x40e252
lea esi, [ebp + edi - 0x108]
cmp byte [esi], 0x5c
jne 0x40e247
cmp edi, 2
jle 0x40e247
lea eax, [ebp - 0x108]
push eax
mov byte [esi], 0
call fcn.0040c8f5
pop ecx
mov byte [esi], 0x5c
inc edi
cmp byte [ebp + edi - 0x108], 0
jne 0x40e223
lea eax, [ebp - 0x108]
push eax
call fcn.0040c8f5
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 0x40e295
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.004454d0
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.004454d0
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 0x40e3ea
cmp byte [ebp - 0x11c], 0x2e
je 0x40e3bf
test byte [ebp - 0x148], 0x10
je 0x40e380
cmp byte [ebp + 0xc], bl
je 0x40e380
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.004454d0
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 0x40e351
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.0040e295
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x45f]
push ebx
push eax
mov byte [ebp - 0x460], bl
call fcn.004454d0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push 0x4556fc
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 0x40e3e0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0xffffffff
jne 0x40e314
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e3f8
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.004454d0
push edi
lea eax, [ebp - 0x24f]
push esi
push eax
mov byte [ebp - 0x250], 0
call fcn.004454d0
push edi
lea eax, [ebp - 0x357]
push esi
push eax
mov byte [ebp - 0x358], 0
call fcn.004454d0
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.004454d0
push 0x45652c
lea ebx, [ebp - 0x358]
call fcn.0040e821
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 0x40e4fe
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.004454d0
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 0x40e575
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, str._s_s
cmp byte [ebp - 0x11c], 0x2e
je 0x40e553
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 0x40e509
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