joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443cfa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x443d28
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x443d46
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00443c60
jmp 0x443d46
mov eax, dword [esi + 0x14]
test eax, eax
je 0x443d46
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00443c60
test edi, edi
mov eax, edi
jne 0x443d30
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4050ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4151f0]
jne 0x4050c4
repz ret
jmp fcn.0040760c

Function at 0x40bd03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4151f0]
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.004070ac
and dword [ebp - 0x14], 0
cmp dword [0x4172e8], 0
mov dword [ebp - 0x18], eax
jne 0x40bdb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40be5e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40be5e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4172e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4172ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4172f0], eax
call edi
push eax
call esi
mov dword [0x4172f8], eax
test eax, eax
je 0x40bdb6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4172f4], eax
mov eax, dword [0x4172f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40be0f
cmp dword [0x4172f8], ecx
je 0x40be0f
push eax
call esi
push dword [0x4172f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40be0f
test ebx, ebx
je 0x40be0f
call edi
test eax, eax
je 0x40be06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40be06
test byte [ebp - 8], 1
jne 0x40be0f
or dword [ebp + 0x10], 0x200000
jmp 0x40be42
mov eax, dword [0x4172ec]
cmp eax, dword [ebp - 0x18]
je 0x40be42
push eax
call esi
test eax, eax
je 0x40be42
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40be42
mov eax, dword [0x4172f0]
cmp eax, dword [ebp - 0x18]
je 0x40be42
push eax
call esi
test eax, eax
je 0x40be42
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4172e8]
call esi
test eax, eax
je 0x40be5e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40be60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004050ba
leave
ret
Function at 0x42b4c6
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0042b545
jae 0x42b4d2
xor ecx, ecx
call fcn.0042b545
jae 0x42b4fc
xor eax, eax
call fcn.0042b545
jae 0x42b50d
mov al, 0x10
call fcn.0042b545
adc al, al
jae 0x42b4ee
jne 0x42b53a
stosb byte es:[edi], al
jmp 0x42b4d3
call fcn.0042b551
dec ecx
loop 0x42b519
mov eax, ebp
call fcn.0042b54f
jmp 0x42b53b
lodsb al, byte [esi]
shr eax, 1
je 0x42b561
adc ecx, 2
mov ebp, eax
jmp 0x42b53b
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0042b54f
cmp eax, 0x7d00
jae 0x42b539
cmp eax, 0x500
jae 0x42b53a
cmp eax, 0x7f
ja 0x42b53b
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x42b4d3
pop ebp
ret 8

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x649214a4
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x75326f29
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x25305e6e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0xf3777b5
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x392766dd
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x542721f8
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10004c30
Capabilities:
Create directory

Disassembly:
sub esp, 0x3c
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [esp + 0x44]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10004c60
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x3c
ret
push edi
push 0
push 0x2000000
push 3
push 0
push 0
push 0x60000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004c94
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x3c
ret
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 4
push 1
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x221
push 0x20
push 2
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x64], 0
mov word [esp + 0x68], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov eax, dword [esp + 8]
mov dword [esp + 0x34], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
xorps xmm0, xmm0
lea eax, [esp + 0x20]
push eax
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x38], xmm0
push 1
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x10000000
mov dword [esp + 0x30], 3
mov dword [esp + 0x40], 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004d78
push 0
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.1000f4a5
add esp, 0x3c
ret
Function at 0x10004dc0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x654
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
mov ebx, dword [esp + 0x65c]
push esi
xor eax, eax
push 0x3fe
push eax
mov word [esp + 0x260], ax
lea eax, [esp + 0x262]
push eax
call fcn.10010030
push ebx
push str._s.
push 0xffffffffffffffff
lea eax, [esp + 0x270]
push 0x200
push eax
call fcn.1000e918
add esp, 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004ea0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test byte [esp + 0xc], 0x10
je 0x10004e88
cmp word [esp + 0x38], 0x2e
je 0x10004e88
cmp word [esp + 0x3a], 0x2e
je 0x10004e88
lea eax, [esp + 0x38]
push eax
push ebx
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x26c]
push 0x200
push eax
call fcn.1000e918
lea eax, [esp + 0x274]
push eax
call fcn.10004ee0
add esp, 0x1c
lea eax, [esp + 0x25c]
push eax
call edi
lea eax, [esp + 0xc]
push eax
push esi
call dword [0x1006c8c4]
test eax, eax
jne 0x10004e38
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [esp + 0x658]
pop esi
pop ebx
xor ecx, esp
call fcn.1000f4a5
add esp, 0x654
ret

Function at 0x10005040
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10005181
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1000517a
push edi
mov edi, eax
jmp 0x10005090
lea eax, [esp + 0x30]
push eax
push str.avgcsrvx.exe
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x38]
movzx ebx, bl
push eax
push str.avgemcx.exe
cmove ebx, edi
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x40]
movzx ebx, bl
push eax
push str.avgidsagent.exe
cmove ebx, edi
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x48]
movzx ebx, bl
push eax
push str.avgnsx.exe
cmove ebx, edi
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x50]
movzx ebx, bl
push eax
push str.avgrsx.exe
cmove ebx, edi
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x58]
movzx ebx, bl
push eax
push str.avgsvcx.exe
cmove ebx, edi
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x60]
movzx ebx, bl
push eax
push str.avgui.exe
cmove ebx, edi
call fcn.1000e191
test eax, eax
lea eax, [esp + 0x68]
movzx ebx, bl
push eax
push str.avguix.exe
cmove ebx, edi
call fcn.1000e191
add esp, 0x40
test eax, eax
lea eax, [esp + 0x30]
movzx ebx, bl
push eax
push str.avgwdsvcx.exe
cmove ebx, edi
call fcn.1000e191
add esp, 8
test eax, eax
lea eax, [esp + 0xc]
movzx ebx, bl
push eax
push esi
cmove ebx, edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x10005090
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.1000f4a5
add esp, 0x230
ret
Function at 0x10005200
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x1003aedb
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x448], eax
push esi
push edi
mov eax, dword [0x1004c258]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x468]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1000531c
jmp 0x10005270
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x24c], ax
je 0x100052af
lea eax, [esp + 0x24c]
lea edx, [eax + 2]
jmp 0x100052a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100052a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x14]
call fcn.100096f0
movzx eax, byte [0x1006c890]
push eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [edi + 0x40d0]
mov dword [esp + 0x470], 0
call fcn.10001880
cmp dword [esp + 0x20], 8
mov dword [esp + 0x460], 0xffffffff
jb 0x10005309
push dword [esp + 0xc]
call fcn.1000cef3
add esp, 4
lea eax, [esp + 0x2c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10005270
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x458
ret 4
Function at 0x10006520
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x1003b0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov eax, dword [0x1004c258]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, dword [esp + 0x268]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
push eax
push 2
mov dword [esp + 0x268], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100065ac
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x30], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x100065f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp dword [esp + 0x24], 8
jb 0x100065c1
push dword [esp + 0x10]
call fcn.1000cef3
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x254
ret
cmp word [esp + 0x4c], 0
jne 0x100065fc
xor eax, eax
jmp 0x10006612
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10006603
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.100096f0
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.1000b510
lea eax, [esp + 0x28]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100065f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x100065ae

Function at 0x10006780
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnumWindows]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [esp + 0x14]
mov byte [0x1004e543], 0
xor esi, esi
lea ecx, [ecx]
inc esi
cmp esi, 0x1e
jg 0x100067c4
push edi
push 0x100053d0
call ebx
cmp byte [0x1004e543], 0
jne 0x100067c4
push 0x64
call ebp
cmp byte [0x1004e543], 0
je 0x100067a0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100067d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x190], eax
push edi
lea eax, [esp + 4]
push eax
push 0x101
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [0x1006c8dc]
mov dword [edi + 0x78], eax
cmp eax, 0xffffffff
je 0x10006863
push esi
lea esi, [edi + 0x40c0]
mov eax, 2
push str.127.0.0.1
mov word [esi], ax
call dword [0x1006c8e4]
mov dword [edi + 0x40c4], eax
mov eax, 0xcee
add ax, word [edi + 0x4170]
movzx eax, ax
push eax
call dword [0x1006c8e8]
mov word [edi + 0x40c2], ax
push 0x10
push esi
push dword [edi + 0x78]
call dword [0x1006c8ec]
pop esi
cmp eax, 0xffffffff
jne 0x10006881
push dword [edi + 0x78]
call dword [0x1006c8f8]
call dword [0x1006c8e0]
xor al, al
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x194
ret
mov ecx, edi
call fcn.10007120
test al, al
je 0x1000689e
push 0
push 4
push str.PING
push dword [edi + 0x78]
call dword [0x1006c8f0]
mov ecx, edi
call fcn.1000b600
mov ecx, dword [esp + 0x194]
pop edi
xor ecx, esp
mov al, 1
call fcn.1000f4a5
add esp, 0x194
ret
Function at 0x10006db0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x1003b186
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
push edi
mov eax, dword [0x1004c258]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, ecx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push str.QueryFullProcessImageNameW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [edi + 0x40d0]
lea esi, [edi + 0x40d0]
push dword [ecx + 4]
mov ecx, esi
call fcn.10008830
mov eax, dword [esi]
mov dword [esp + 0x3c], 7
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [esp + 0x38], 0
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov dword [esp + 0x40], 0x22c
mov word [esp + 0x28], ax
mov dword [esp + 0x278], eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], eax
mov word [esp + 0x10], ax
push eax
push 2
mov byte [esp + 0x280], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x40]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x10006ebb
lea eax, [esp + 0x40]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x10006ebb
lea esp, [esp]
push dword [esp + 0x48]
mov ecx, edi
call fcn.10005200
lea eax, [esp + 0x40]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x10006ea0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x26c
ret
Function at 0x10007ae0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x1003b278
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1004c258]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
push edi
mov eax, dword [0x1004c258]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x70]
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.100095d0
lea eax, [esp + 0x40]
push eax
call fcn.1000bea0
add esp, 0x1c
mov esi, eax
push 5
push str.SCAN
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.100094d0
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x74], 1
call fcn.10001070
add esp, 0xc
cmp dword [esp + 0x24], 0x10
jb 0x10007b9f
push dword [esp + 0x10]
call fcn.1000cef3
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x68], 4
jb 0x10007bcc
push dword [esp + 0x28]
call fcn.1000cef3
add esp, 4
cmp dword [edi + 0x14], 8
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x10007beb
mov eax, dword [edi]
jmp 0x10007bed
mov eax, edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007c86
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x80000
ja 0x10007c67
cmp dword [esp + 0x40], 0
jne 0x10007c67
cmp dword [esp + 0x58], 0x10
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
mov ecx, ebx
call fcn.1000bd00
test al, al
je 0x10007c7d
mov ecx, ebx
mov byte [ebx + 0x415c], 1
call fcn.1000b600
push esi
mov byte [ebx + 0x415c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007c9c
push 4
push str.:_OK
mov ecx, edi
call fcn.10009290
push edi
mov ecx, ebx
call fcn.10007cd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007c9c
push 4
push str.:_OK
mov ecx, edi
call fcn.10009290
push edi
mov ecx, ebx
call fcn.10007cd0
cmp dword [esp + 0x58], 0x10
jb 0x10007caf
push dword [esp + 0x44]
call fcn.1000cef3
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1000f4a5
add esp, 0x5c
ret 4