joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x402b73
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x402b88
cmp edx, 0xffffd8f0
jge 0x402b8d
mov dword [eax + 0x54], ecx
jmp 0x402b91
test edx, edx
js 0x402bac
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x402ba7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.00402570
ret

Function at 0x402cc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
xor ecx, ebp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
pop edi
call fcn.0041fcee
mov esp, ebp
pop ebp
ret

Function at 0x402de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40004
call fcn.0042dad0
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
test edx, edx
jle 0x402e09
xor byte [eax + ecx], 0x64
inc ecx
cmp ecx, edx
jl 0x402e00
push esi
mov ecx, eax
push edi
mov esi, ecx
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402e10
sub ecx, esi
lea edi, [ebp - 0x40004]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402e22
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x40004]
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402e40
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
Function at 0x403860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x4038bd
jmp 0x403880
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4038a1
inc edi
cmp edi, 0xf
jl 0x403882
cmp edi, 0xf
je 0x4038ee
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x403880
test ebx, ebx
jle 0x4038e6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4038de
inc edi
cmp edi, 0xf
jl 0x4038c3
cmp edi, 0xf
je 0x4038ee
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x4038f1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403b30
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x403b52
mov dword [esi + 0x1b8], 0x598
jmp 0x403b69
cmp eax, 0x598
jbe 0x403b63
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.00403c90
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x454c64
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x403ba8
push 0x454c64
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403d50
test eax, eax
je 0x403c39
lea edx, [esi + 0x58]
push edx
push 0
push esi
push 0x403ee0
push 0
push 0
call fcn.0042085e
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x403c2b
mov eax, dword [esi + 0x2c]
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x403c47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.004045d0
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403d50
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x11
push 2
xor ebx, ebx
push 2
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x403d8d
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 4
push edi
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], ebx
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 ebx
push ebx
push ebx
push ebx
push 0x4539e8
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x4539e8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.0041e128
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0x4539e8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x4539e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov byte [edi + ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.0041fce3
add esp, 4
pop edi
test ebx, ebx
je 0x403d7a
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x14], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push 0x30
push ecx
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x403ecb
mov ecx, dword [esi + 0x40]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403ec4
cmp eax, 0xffffffff
jne 0x403ea9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403ec4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop ebx
call fcn.0041fcee
mov esp, ebp
pop ebp
ret 4
Function at 0x404260
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push ebx
test eax, eax
jne 0x404283
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 0x40429c
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.004057f0
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 0x4042e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4042e5
xor edi, edi
mov eax, dword [esi + 0x48]
push eax
call fcn.00402cb0
add esp, 4
test edi, edi
pop edi
je 0x404300
push 0x80004005
call fcn.00401300
mov eax, ebx
pop ebx
ret

Function at 0x404310
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 0x4043e2
cmp edi, 0x10
jne 0x404368
mov edx, dword [ebx + 0x70]
mov ecx, eax
mov eax, 0x43e948
sub edx, eax
cmp ecx, 4
jb 0x40441a
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x404368
sub ecx, 4
add eax, 4
jmp 0x404350
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 0x404396
push ecx
push edi
push eax
mov edi, edx
call fcn.00405d70
jmp 0x4043a0
cmp edi, 0xc
jne 0x404410
call fcn.00405c20
cmp eax, 2
jne 0x404320
mov edx, dword [ebx + 0x48]
push edx
call fcn.00402cb0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4043c4
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 0x404320
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x404437
cmp eax, 0x2744
je 0x404320
cmp eax, 0x2746
je 0x404320
jmp 0x4043c4
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4043a9
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 0x404450
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push edi
jmp 0x404460
mov eax, dword [esi + 0x194]
test eax, eax
jle 0x40458a
lea edi, [esi + 0x160]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x17c]
cmp ebx, dword [esi + 0x180]
je 0x40449b
mov eax, dword [ebx + 4]
mov dword [esi + 0x17c], eax
mov dword [eax + 8], 0
jmp 0x4044ad
test ebx, ebx
je 0x4044ad
xor eax, eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
xor eax, eax
cmp ebx, eax
je 0x4044bf
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 0x40458a
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 0x40450c
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 0x404511
cmp edi, 0xffffffff
je 0x404537
push ebx
lea edi, [esi + 0x98]
call fcn.00401500
test eax, eax
jne 0x404460
mov edx, dword [ebx]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x404460
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x404595
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 0x40456b
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x17c]
mov dword [ebx + 4], ecx
jmp 0x404577
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.00401500
test eax, eax
jne 0x4045c7
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 0x4045d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [edi + 0x64]
cmp eax, 3
je 0x4046b7
lea esi, [edi + 0x15c]
push esi
call fcn.00402c60
mov ecx, dword [edi + 0x64]
cmp ecx, 1
je 0x404608
mov edx, dword [edi + 0x64]
test edx, edx
jne 0x4046b1
mov dword [edi + 0x64], 2
mov dword [esi], 0
push edi
mov eax, ebx
call fcn.004047d0
mov eax, dword [edi + 0x60]
test eax, eax
je 0x404644
cmp dword [edi + 0x3c], 0
je 0x40463d
mov ecx, dword [edi + 0x40]
push 0
push 0x10
push 0x43e948
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [edi + 0x60], 0
cmp dword [edi + 0x30], 0
je 0x40466c
mov edx, dword [edi + 0x48]
push edx
call fcn.00402cb0
mov eax, dword [edi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [edi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [edi + 0x44]
test eax, eax
je 0x404681
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 0x44], 0
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
je 0x4046a3
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [edi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x40], 0xffffffff
call fcn.004046d0
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [esi], 0
push 0x139f
mov dword [edi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x405fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405fdd
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406012
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40600e
lea ecx, [ecx]
cmp esi, eax
jae 0x406012
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406000
cmp esi, eax
jb 0x406019
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406398
push 1
call fcn.004221f2
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4063fd
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
mov eax, edi
jmp 0x4063c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4063e6
test dx, dx
je 0x4063e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4063e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4063c0
xor eax, eax
jmp 0x4063eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406436
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x4063b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406452
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
Function at 0x406470
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4064cd
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x228], ebx
je 0x4064e7
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x4064b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041fcee
mov esp, ebp
pop ebp
ret

Function at 0x406740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40004
call fcn.0042dad0
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
test edx, edx
jle 0x406769
xor byte [eax + ecx], 0xef
inc ecx
cmp ecx, edx
jl 0x406760
push esi
mov ecx, eax
push edi
mov esi, ecx
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406770
sub ecx, esi
lea edi, [ebp - 0x40004]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406782
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x40004]
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4067a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
Function at 0x409ec0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0
call fcn.00423160
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409f16
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409f85
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
mov ecx, edi
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409f6e
test dx, dx
je 0x409f6a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409f6e
add eax, 4
add ecx, 4
test dx, dx
jne 0x409f48
xor eax, eax
jmp 0x409f73
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409f9e
lea edx, [ebp - 0x230]
push edx
push esi
call ebx
test eax, eax
jne 0x409f40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop ebx
xor ecx, ebp
pop esi
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
Function at 0x409fc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x1fe
push ebx
push 0x454e68
mov dword [ebp - 0x238], ebx
call fcn.00423160
mov eax, dword [str.ZhuDongFangYu.exe]
push 0x44036c
push eax
call fcn.00421515
add esp, 0x14
test eax, eax
jne 0x40a135
push esi
push edi
mov esi, 0x44d5c0
mov dword [ebp - 0x234], ebx
jmp 0x40a020
mov esi, dword [esi]
push 0x228
lea ecx, [ebp - 0x22c]
push ebx
push ecx
mov dword [ebp - 0x230], ebx
call fcn.00423160
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a0f7
lea edx, [ebp - 0x230]
push edx
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a0b9
lea ecx, [ecx]
mov ecx, esi
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a09e
cmp dx, bx
je 0x40a09a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a09e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40a078
xor eax, eax
jmp 0x40a0a3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40a0c2
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a070
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a0f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x228], ebx
je 0x40a0f7
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx + 0x44d5c4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edx
push 0x454e68
call esi
push 0x440370
push 0x454e68
call esi
mov eax, dword [ebp - 0x238]
inc eax
lea esi, [eax*8]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x44d5c0]
lea esi, [esi + 0x44d5c0]
push 0x44036c
push eax
call fcn.00421515
add esp, 8
test eax, eax
je 0x40a020
pop edi
pop esi
push 0x454e68
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ebx
test eax, eax
jne 0x40a155
push str.gb0R
push 0x454e68
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x454e68
call fcn.0041fcee
mov esp, ebp
pop ebp
ret