joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a504
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x48a530
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404a4c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48a555
call fcn.0040d92c
xor eax, eax
push ebp
push 0x48a58c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x48a575
call fcn.0040d92c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a593
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x48ad50
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a3c
xor eax, eax
push ebp
push 0x48ae5d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48ae47
mov eax, dword [0x48f050]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0045bcf4
xor eax, eax
push ebp
push 0x48ae40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404a4c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48adcf
call fcn.00404008
jmp 0x48ae47
xor eax, eax
push ebp
push 0x48ae14
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x3e8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ae1b
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ae64
lea eax, [ebp - 4]
call fcn.0040459c
ret
Function at 0x48ae68
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a3c
xor eax, eax
push ebp
push 0x48af66
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48af50
mov eax, dword [0x48f050]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0045bcf4
xor eax, eax
push ebp
push 0x48af49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404a4c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48aee7
call fcn.00404008
jmp 0x48af50
xor eax, eax
push ebp
push 0x48af1d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48af24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48af6d
lea eax, [ebp - 4]
call fcn.0040459c
ret

Function at 0x48b7d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x48b8b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040459c
xor eax, eax
push ebp
push 0x48b891
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.004093a0
lea eax, [ebp - 4]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404aac
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.004093a0
lea eax, [ebp - 4]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404aac
mov eax, ebx
mov ecx, 0x48b8c8
mov edx, dword [ebp - 4]
call fcn.004048a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48b89b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b8b8
lea eax, [ebp - 4]
call fcn.0040459c
ret
Function at 0x48b8e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a3c
lea edi, [ebp - 0x134]
xor eax, eax
push ebp
push 0x48ba29
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.0045fbb0
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0045fbd0
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x48b9f6
mov eax, dword [0x48ee4c]
mov eax, dword [eax]
call fcn.0045dabc
mov esi, dword [edi + 8]
lea eax, [ebp - 8]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404804
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 8]
call fcn.0047b79c
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.00408824
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.0047b79c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408824
mov edx, dword [ebp - 0x140]
pop eax
call fcn.00404998
jne 0x48b9e7
push esi
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_TerminateProcess
test eax, eax
mov edx, edi
mov eax, ebx
call fcn.0045fbf0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x48b950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ba30
lea eax, [ebp - 0x144]
mov edx, 4
call fcn.004045c0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045c0
ret
Function at 0xc643f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0xc69494]
cmp dword [eax + 0x28], 0
jne 0xc64408
xor eax, eax
jmp 0xc64537
mov ecx, dword [0xc69414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0xc69408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0xc69404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0xc69408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0xc69404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0xc6948c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0xc68604
push 0xc68620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0xc69400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00c64330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0xc643c0
mov edx, dword [0xc69494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0xc6940c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0xc64537
cmp dword [ebp - 0x38], 0x12
jne 0xc6452b
mov dword [0xc6941c], 0
call fcn.00c64540
xor eax, eax
jmp 0xc64537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0xc644fc
mov esp, ebp
pop ebp
ret 4

Function at 0xc65840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0xc6620c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0xc68118
sub eax, eax
test esi, esi
je 0xc662e4
sub eax, 1
test ecx, ecx
je 0xc662e2
test esi, 3
je 0xc6624a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0xc6622f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0xc662c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0xc66254
mov ecx, edx
test ecx, ecx
je 0xc662e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0xc662cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0xc662ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00c6636f
jae 0xc662fa
xor ecx, ecx
call fcn.00c6636f
jae 0xc66329
xor eax, eax
call fcn.00c6636f
jae 0xc66339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00c6636f
adc al, al
jae 0xc6631b
jne 0xc66365
stosb byte es:[edi], al
jmp 0xc662fd
call fcn.00c6637b
sub ecx, ebx
jne 0xc66342
call fcn.00c66379
jmp 0xc66361
lodsb al, byte [esi]
shr eax, 1
je 0xc6638b
adc ecx, ecx
jmp 0xc6635e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00c66379
cmp eax, 0x7d00
jae 0xc6635e
cmp ah, 5
jae 0xc6635f
cmp eax, 0x7f
ja 0xc66360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc662fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0xc66c7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xc69000]
jne 0xc66c86
repz ret
jmp fcn.00c66f2d
Function at 0x404640
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
sub esp, 0x214
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.004c16f0
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [esp + 8]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x404690
mov ecx, dword [str.Download_]
mov edx, dword [0x519cd4]
mov dword [eax], ecx
mov ecx, dword [0x519cd8]
mov dword [eax + 4], edx
mov edx, dword [0x519cdc]
mov dword [eax + 8], ecx
mov ecx, dword [0x519ce0]
mov dword [eax + 0xc], edx
lea edx, [esp + 8]
push edx
mov dword [eax + 0x10], ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
lea eax, [esp + 8]
jne 0x404707
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x404730
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4046f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
jmp 0x404725
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404710
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x96]
call fcn.00406c90
lea ebx, [esi + 0x96]
add esi, 0x8b2
call fcn.00407980
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
xor ecx, esp
call fcn.004bfdfd
add esp, 0x214
ret
Function at 0x4055d0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4eee28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 0x44], 0
call fcn.004b978a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405619
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov bl, 1
mov byte [esp + 0x44], bl
mov edi, dword [esp + 0x4c]
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x40563f
or eax, 0xffffffff
jmp 0x40565a
push 0x519ff0
push edi
call fcn.004c02c4
add esp, 8
test eax, eax
jne 0x405656
or eax, 0xffffffff
jmp 0x40565a
sub eax, edi
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x54]
call fcn.00406390
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 2
call fcn.00407450
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40569f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov edx, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4

Function at 0x4070b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4070c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407100
lea ebx, [ebx]
cmp esi, eax
jae 0x407104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4070f0
cmp esi, eax
jb 0x40710a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ca60
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40ca8d
cmp dword [esi + 8], 3
je 0x40ca8d
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 8], 1
pop esi
ret 4

Function at 0x40cac0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
push edi
je 0x40cbbc
cmp dword [esi + 8], 1
jne 0x40cbbc
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esp + 0x50], 0
je 0x40cba6
push 0
lea ecx, [esp + 0x24]
call fcn.00411700
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004113f0
fild dword [esp + 0x4c]
lea edx, [esp + 0x10]
push edx
fdiv qword [0x4f5e48]
lea ecx, [esp + 0x24]
fstp qword [esp + 0x1c]
call fcn.00411460
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40cb8e
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call edi
test eax, eax
jle 0x40cb69
lea ecx, [esp + 0x2c]
push ecx
call ebp
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esi + 0x34]
push 0
push eax
call ebx
test eax, eax
je 0x40cbbc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00411460
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jnp 0x40cb44
mov edx, dword [esi + 0x2c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40cb8e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x38
ret 8
Function at 0x40cce0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4e4761
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea eax, [esi + 0x14]
push eax
mov dword [esi], vtable.Clunet::CCluThread.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call ebp
push ebx
push 4
push esi
push 0x40cc60
push ebx
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x2c], eax
je 0x40cd4d
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x30], eax
call edi
push 0x673194
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x673190]
add eax, 1
mov dword [0x673190], eax
push 0x673194
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x44
call fcn.004aef0e
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40cdc4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea eax, [edi + 0x28]
push eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
call ebp
mov dword [edi + 0x40], 0xffffffff
jmp 0x40cdc6
xor edi, edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x38], edi
mov dword [edi + 0x40], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x411770
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4be9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x670f1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x30]
call fcn.004064f0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x3e], 0xffffffff
jne 0x4117e2
push 0
call fcn.004118c0
add esp, 4
push eax
call fcn.004c1658
add esp, 4
call fcn.004c1665
cdq
mov ecx, 5
idiv ecx
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x3e], edx
jmp 0x4117f1
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x3e]
add edx, 1
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x3e], edx
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x3e], 5
jge 0x411803
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x3e], 0
jge 0x41180d
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x3e], 0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x3e]
imul edx, edx, 0x1c
add edx, 0x6731d8
push edx
lea ecx, [ebp - 0x30]
call fcn.0040b900
push 0x4f67da
lea ecx, [ebp - 0x10]
call fcn.00415b50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x3e]
push ecx
push str.__BIZ___BBS_IP_NUM__random__:___d___r_n
lea edx, [ebp - 0x10]
push edx
call fcn.00416bc0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.004017b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4f699c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406510
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00415bd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401470
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bfdfd
mov esp, ebp
pop ebp
ret 4
Function at 0x413ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4e43
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x670f1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x690], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
push 0x228
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004c16f0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x414098
mov dword [ebp - 0x680], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406960
mov eax, dword [ebp - 0x680]
jmp 0x4141a1
mov dword [ebp - 0x244], 0x22c
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x248]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x414175
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x67c], 0
push 0x424
push 0
lea eax, [ebp - 0x678]
push eax
call fcn.004c16f0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x684], esp
lea edx, [ebp + 8]
push edx
call fcn.004069d0
mov dword [ebp - 0x694], eax
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x690]
call fcn.004141c0
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x698]
mov dword [ebp - 0x250], ecx
cmp dword [ebp - 0x250], 0
je 0x41415a
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x688], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406960
mov eax, dword [ebp - 0x688]
jmp 0x4141a1
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4140e7
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406960
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bfdfd
mov esp, ebp
pop ebp
ret 4