joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eaf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bc838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004b477f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046e450
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004b46ad
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004b0f6d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004b0f6d
push 1
push 0
push 0
mov ecx, esi
call fcn.004b0f15
push 1
push 0
push 1
mov ecx, esi
call fcn.004b0f15
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b47f1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46ec70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bc858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004b477f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046e450
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004b46ad
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46ed34
cmp dword [esp + 0x40], 1
jne 0x46ed32
cmp ecx, eax
jge 0x46ed34
mov eax, ecx
cmp eax, 0xc8
jge 0x46ed40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046eaf0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b47f1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46f540
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bc903
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004af389
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004b4a27
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b5f43
test eax, eax
je 0x46f65c
mov ecx, dword [esp + 0x3c]
call fcn.004b4a54
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46f620
push edi
mov ecx, esi
call fcn.004b20b4
mov ecx, esi
call fcn.0046f800
cmp dword [esp + 0x38], 1
jne 0x46f655
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004b21ef
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x471840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x471873
push esi
call fcn.0047fc00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47186c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4718f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4718e2
mov eax, dword [esi + 8]
test eax, eax
je 0x471897
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4718de
cmp eax, 2
je 0x4718e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47188a
cmp eax, 3
je 0x4718bd
cmp eax, 1
jne 0x47188a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47188a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47188a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00471920
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x471908
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00471920
add esp, 4
pop esi
ret

Function at 0x4721a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4721c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4721c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4721c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x48d050
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x48d0f3
test eax, eax
jbe 0x48d0f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48d0f3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48d09e
xor esi, esi
jmp 0x48d0a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48d0cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00429490
add esi, eax
push esi
mov ebx, esi
call fcn.00429490
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48d0b0
pop ebp
test edi, edi
pop edi
jne 0x48d0f3
test ebx, ebx
je 0x48d0f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0049dc50
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x48d255
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48d36d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48d36d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004af7db
mov esi, eax
test esi, esi
je 0x48d36d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48d36d
mov ecx, esi
call fcn.0048d1e0
cmp edi, eax
jge 0x48d36d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x48d2f3
mov dword [esp + 0x34], 1
jmp 0x48d34e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48d36d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0048c750
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x492b20
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x492b6a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x492b99
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x492bdb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4985e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x498629
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x498aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd2d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00498650
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004986d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004986d0
lea ecx, [esi + 0xc]
call fcn.004add3b
lea ecx, [esi + 0x10]
call fcn.004add3b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00499c60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00499c60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00499c60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004addb0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004addb0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x499e50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x499eb6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x499eb6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x499e97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4b017e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b01b6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ae20b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ae1e3
jmp 0x4b01c2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b1871
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b18b3
call fcn.004b73e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b18b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b18aa
xor eax, eax
jmp 0x4b18bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b18c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b7918
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 0x4b7946
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b7964
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b787e
jmp 0x4b7964
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b7964
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b787e
test edi, edi
mov eax, edi
jne 0x4b794e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x406873
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x4068aa
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406884
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x40687f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068db
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x4068bd
pop edi
not eax
pop esi
ret 0xc
Function at 0x401960
Capabilities:
Create thread

Disassembly:
mov eax, 0x1003c
call fcn.00403760
mov eax, dword [0x40b11c]
xor eax, esp
push esi
push edi
mov edi, dword [esp + 0x10048]
mov dword [esp + 0x10040], eax
mov esi, ecx
call fcn.004018e0
test al, al
jne 0x40199e
push edi
mov ecx, 0x40b3f0
call fcn.00401e80
xor eax, eax
jmp 0x401ab2
mov eax, dword [esi]
push ebx
push 0
push 0
push eax
push 0x401ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov ecx, esi
call fcn.00401830
push 4
push esi
mov ecx, 0x40b3b0
call fcn.00402430
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
je 0x401a27
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, edi
cmp dword [esp + 0x18], 0x8531
je 0x401a1b
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x14]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x4019f0
jmp 0x401a26
mov eax, dword [esp + 0x1c]
test eax, eax
setne byte [esp + 0x13]
pop ebp
mov ecx, 0x40b3b0
call fcn.00402310
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [esp + 0xf]
test al, al
mov dword [esi], 0
mov ebx, 1
je 0x401aaf
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
test eax, eax
jbe 0x401aaf
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, eax
mov eax, dword [ecx]
cmp eax, ecx
je 0x401a86
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push eax
mov dword [edx + 4], ecx
call fcn.0040310d
mov eax, dword [esi + 0xc]
add esp, 4
dec eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x2c]
test edx, edx
je 0x401a9c
push edi
push 0x800c
mov eax, edx
push eax
call fcn.00401000
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x40b3f0
call fcn.004020b0
and ebx, eax
jmp 0x401a50
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x10040]
pop edi
pop esi
xor ecx, esp
call fcn.00403750
add esp, 0x1003c
ret 4

Function at 0x401bc0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
push 0
push 0x100000
mov edi, 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x401c0b
mov ecx, dword [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401c04
cmp eax, 0x80
je 0x401c04
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401c50
Capabilities:
Set environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4083c8
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.00403709
add esp, 4
test eax, eax
je 0x401d46
add esi, 2
mov word [esi + eax*2 - 4], 0
je 0x401d46
cmp word [esi], 0
je 0x401d46
push esi
push str.EDIT_LINK_TEXT
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x64
mov ecx, 0x40b3f0
call fcn.00401e00
test eax, eax
je 0x401cce
push esi
mov ecx, 0x40b3f0
call fcn.004020b0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
mov ecx, 0x40b3b0
call fcn.004023f0
test eax, eax
je 0x401d04
push esi
call fcn.004015f0
mov ecx, eax
call fcn.00401960
mov esi, eax
call fcn.00401810
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
lea ecx, [esp + 0x1c]
call fcn.004021b0
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0
call fcn.004022d0
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call fcn.00401d80
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10

Function at 0x401e00
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
xor edi, edi
call fcn.00401d90
push eax
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x401e46
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401e33
cmp eax, 0x80
jne 0x401e3f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x401e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40b11c]
xor eax, esp
push esi
mov esi, dword [esp + 0x214]
test esi, esi
mov dword [esp + 0x20c], eax
je 0x401f1a
push 0x208
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.00403859
add esp, 8
test eax, eax
je 0x401eca
mov word [eax], 0
mov ecx, 0x104
lea eax, [esp + 4]
cmp word [eax], 0
je 0x401ee1
add eax, 2
dec ecx
jne 0x401ed3
jmp 0x401f03
test ecx, ecx
je 0x401f03
mov eax, 0x104
sub eax, ecx
push str.eMule.exe
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax*2 + 0xc]
push eax
call fcn.00401000
push 5
push 0
push esi
lea ecx, [esp + 0x10]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00403750
add esp, 0x20c
ret 4
Function at 0x401f40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40b11c]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x208
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push 0x5c
push ecx
call fcn.00403859
add esp, 8
test eax, eax
je 0x401f7d
mov word [eax], 0
mov ecx, 0x104
lea eax, [esp]
cmp word [eax], 0
je 0x401f93
add eax, 2
dec ecx
jne 0x401f85
jmp 0x401fb5
test ecx, ecx
je 0x401fb5
mov eax, 0x104
sub eax, ecx
push str.eMule.exe
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax*2 + 8]
push eax
call fcn.00401000
push 5
push 0
push str._AutoStart
lea ecx, [esp + 0xc]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00403750
add esp, 0x20c
ret

Function at 0x402060
Capabilities:
Read file via mapping

Disassembly:
push esi
call fcn.00401ff0
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
je 0x4020a1
cmp esi, 0xffffffff
je 0x4020a1
push edi
push 4
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4023f0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 8
jb 0x4023fe
mov eax, dword [esi + 4]
jmp 0x402401
lea eax, [esi + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x38], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x40242c
call esi
cmp eax, 5
je 0x40242c
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4024c0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4024e1
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4024e7
cmp eax, 0x80
je 0x4024e7
xor eax, eax
pop esi
ret 0xc
mov edx, dword [esi + 0x38]
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40256b
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x40256b
cmp dword [esi + 0x34], 8
jb 0x40250e
mov esi, dword [esi + 0x20]
jmp 0x402511
add esi, 0x20
push ebx
push esi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x402562
cmp ebx, 0xffffffff
je 0x402562
push ebp
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
ret 0xc
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
ret 0xc
pop edi
pop ebp
mov eax, 1
pop esi
ret 0xc