joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ebp, ebp
je 0x47e777
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
jmp 0x47e77d
mov esi, dword [0x4dc464]
test esi, esi
je 0x47e8e8
test edi, edi
jns 0x47e792
mov eax, edi
neg eax
movzx eax, ax
jmp 0x47e7c3
test edi, edi
mov dword [esp + 0x1c], ebx
mov eax, 1
mov dword [esp + 0x20], 0x4df3fc
cmovne eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x47e720
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x20]
cmp eax, 0x4df3fc
je 0x47e8bf
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47e8bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47e8bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x47e8b5
cmp dword [esp + 0x28], 0xffffffff
mov ebp, dword [esp + 0x2c]
cmovne ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x47e81d
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, eax
movzx eax, word [ebx + 4]
lea edx, [ebx + 6]
cmp eax, 1
jbe 0x47e863
add ebx, 0x14
lea edi, [eax - 1]
nop
mov al, byte [ebx]
mov cl, byte [edx]
cmp al, cl
jbe 0x47e844
movzx eax, cl
xor ecx, ecx
cmp eax, ebp
setl cl
jmp 0x47e84e
movzx eax, al
xor ecx, ecx
cmp eax, ebp
setge cl
test ecx, ecx
mov eax, ebx
cmove eax, edx
add ebx, 0xe
mov edx, eax
sub edi, 1
jne 0x47e830
mov edi, dword [esp + 0x14]
movzx eax, word [edx + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x47e8b9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47e8b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x47e8b9
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, eax
jmp 0x47e8bb
mov ebp, dword [esp + 0x10]
xor ebx, ebx
jmp 0x47e8bf
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x47e8cf
test ebx, ebx
je 0x47e8cf
mov dword [ecx], esi
jmp 0x47e8da
test ebp, ebp
je 0x47e8da
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x47e8e8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
test edi, edi
jle 0x47e901
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x47f8d0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4de7e0
push esi
mov esi, edx
call fcn.00405870
test eax, eax
jne 0x47f901
push 0x4b70dc
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4ddca0
call fcn.004302e0
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x47f989
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x47f989
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x47f989
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x47f989
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x47fa3d
test edi, edi
je 0x47f973
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x47f9d8
push edi
push ebx
push eax
call fcn.00498e20
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x47f917
cmp dword [0x4de7f8], 0
je 0x47f9cb
cmp dword [0x4de7e8], 0
je 0x47f9b1
push dword [0x4de7e0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4de7e8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4de7f8], 0
mov dword [0x4de7e0], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4de7f8], 0
je 0x47fa21
cmp dword [0x4de7e8], 0
je 0x47fa07
push dword [0x4de7e0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4de7e8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4de7f8], 0
mov dword [0x4de7e0], 0
push 0x4b70dc
push 0x4b7414
mov ecx, 0x4ddca0
call fcn.004302e0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4de7f8], 0
je 0x47fa7f
cmp dword [0x4de7e8], 0
je 0x47fa65
push dword [0x4de7e0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4de7e8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4de7f8], 0
mov dword [0x4de7e0], 0
push 0x4b70dc
push str.Out_of_memory.
mov ecx, 0x4ddca0
call fcn.004302e0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x47fed0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x47fee3
jmp dword [eax*4 + 0x480090]
call fcn.00401330
cmp dword [0x4dcd98], 0
jne 0x47ffa2
cmp dword [esi + 0xc], 0
jne 0x47ffa2
mov edi, dword [esp + 0x14]
cmp dword [0x4dfc6c], esi
jne 0x47ff16
test edi, edi
jne 0x47ff73
push 0
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47ff6f
mov dword [0x4dfc6c], 0
test edi, edi
je 0x47ff67
mov eax, dword [0x4dcda8]
test eax, eax
je 0x47ff56
push 0
push dword [esi + 0x18]
mov ecx, 0x4ddca0
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
call fcn.00430950
mov ecx, dword [esi + 0x18]
mov edx, edi
call fcn.0047de90
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x47ff93
cmp byte [esi + 0x17], 0
jne 0x47ff7e
mov eax, dword [esi + 0xc]
jmp 0x47ff80
mov eax, esi
test byte [eax + 0x15], 4
je 0x47ff8c
push esi
call fcn.00430a80
xor eax, eax
xor esi, esi
mov word [edi], ax
mov dword [0x4dfc6c], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov ebx, eax
mov edi, dword [esp + 0x14]
shr ebx, 1
test edi, edi
je 0x480022
test eax, eax
jne 0x47ffd3
cmp byte [esi + 0x17], al
cmovne eax, esi
test byte [eax + 0x15], 4
je 0x47ffc7
push esi
call fcn.00430a80
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x480022
cmp eax, 0x186a0
jae 0x480011
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x480003
nop dword [eax + eax]
mov word [edi], dx
lea ecx, [ecx + 2]
movzx eax, word [ecx]
add edi, 2
mov edx, eax
test ax, ax
jne 0x47fff0
xor eax, eax
mov word [edi], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.00498e20
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
call fcn.0047fed0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, 0x4de7e0
push esi
call fcn.004052a0
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
test esi, esi
je 0x480089
mov word [esi + eax*2], cx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x480071
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
push dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push dword [esp + 0x18]
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x480d20
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
cmp byte [esp + 4], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x480d7d
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x480d8a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x480d8a
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x480d8a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x480d8a
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x480dea
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov edx, 1
mov dword [esp + 0x14], eax
mov ecx, 0x8000012f
call fcn.004015d0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x480de3
add edi, dword [esp + 0x14]
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x480de3
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015d0
push esi
call ebp
test eax, eax
jne 0x480dc2
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x480f80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004aea90
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x480fb1
cmp eax, 0x61
jne 0x481014
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x481014
cmp word [ebx], 0
jne 0x481014
cmp word [edx], 0
jne 0x481014
cmp word [esi], 0
jne 0x481014
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x480ffb
cmp byte [edi + 0xea], 0
jne 0x480ffb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x480ff9
mov ecx, esi
call fcn.00481ca0
test al, al
je 0x480ffb
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x48100b
test esi, esi
je 0x48100b
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x481036
cmp word [ebx], ax
jne 0x481036
cmp word [edx], ax
jne 0x481036
cmp word [esi], ax
jne 0x481036
mov ecx, edi
call fcn.00481140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00431d80
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.00481df0
test eax, eax
je 0x481102
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x1839], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1848], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x184c], eax
je 0x48110b
mov esi, dword [esp + 0x102c]
cmp esi, 0xffff
je 0x4810da
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x481102
cmp byte [edi + 0xea], 0
mov esi, dword [esp + 0x102c]
jne 0x4810da
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4810bd
mov ecx, esi
call fcn.00481ca0
test al, al
je 0x4810d3
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x481102
mov esi, dword [esp + 0x102c]
cmp dword [esp + 0x1860], esi
je 0x4810f3
lea ecx, [esp + 0x10]
mov dword [esp + 0x1860], esi
call fcn.00482210
push 0
lea ecx, [esp + 0x14]
call fcn.004822d0
test eax, eax
jne 0x48111b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4811e0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1840]
je 0x481104
test eax, eax
je 0x481104
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482210
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x4822cd
mov eax, dword [esi]
test eax, eax
je 0x4822cd
push edi
test al, 1
jne 0x48223d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x482257
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x482257
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x482274
lea eax, [esi + 0x1854]
push eax
push dword [esi + 0x1850]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4822af
lea eax, [esp + 8]
push eax
push dword [esi + 0x1850]
call edi
test eax, eax
je 0x4822af
movzx eax, byte [esi + 0x1828]
lea edx, [esi + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004556d0
add esp, 8
test eax, eax
jne 0x4822af
mov word [esi + 0x11a58], ax
test byte [esi], 8
pop edi
je 0x4822cd
push 0x101
lea eax, [esi + 0x11856]
push eax
push dword [esi + 0x1850]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x482d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
cmp dword [esi + 8], 0
jne 0x482d56
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4d98d8]
mov edi, eax
mov ecx, esi
push edi
call fcn.00483260
cmp byte [esi], 0
mov ebx, eax
je 0x482d7c
test ebx, ebx
jne 0x482d84
jmp 0x482e0c
test ebx, ebx
jne 0x482e0c
test edi, edi
je 0x482e0c
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov dword [esp + 0x10], eax
mov ecx, 0x8000012f
call fcn.004015d0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x482df5
mov eax, dword [esp + 0x10]
add eax, 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, 5
jle 0x482df1
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015d0
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x482dc8
mov esi, dword [esp + 0x14]
mov eax, dword [0x4d98d8]
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
jle 0x482e0c
mov edx, 1
call fcn.004015d0
cmp byte [esi], 0
mov ecx, esi
je 0x482e27
push 0
push ebx
push dword [ebp + 8]
call fcn.00482e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call fcn.00483060
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b160
Capabilities:
Enumerate processes
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424b46
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x42d520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push 2
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2d0], ebx
cmp ebx, esi
je 0x40b303
cmp ebx, 0xffffffff
je 0x40b303
push 0x228
lea eax, [ebp - 0x2c0]
push esi
push eax
call fcn.00415110
add esp, 0xc
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
mov dword [ebp - 0x2c4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40b2f1
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x94]
push ecx
mov dword [ebp - 0x98], edx
call fcn.0040f410
lea edx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
push edx
call fcn.0040d720
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x40b245
push eax
call fcn.004132bc
add esp, 4
lea edi, [ebp - 0x2cc]
jmp loc.0047c539
test ebx, ebx
je 0x40b303
cmp ebx, 0xffffffff
je 0x40b303
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40b31a
cmp ebx, 0xffffffff
je 0x40b31a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412e17
mov esp, ebp
pop ebp
ret
Function at 0x40c110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424e30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42d520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x463a70
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
jmp loc.0047c000
Function at 0x40e613
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSplayTree.exe_gMozillaPoisonSize], eax
call fcn.0040b154
pop ecx
mov ecx, dword [sym.TestSplayTree.exe_gMozillaPoisonSize]
mov dword [sym.TestSplayTree.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e64b
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSplayTree.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x96ea70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x400000]
push edi
jmp 0x96ea8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x96ea91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x96ea80
mov eax, 1
add ebx, ebx
jne 0x96eaa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x96eab4
jne 0x96ead3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x96ead3
dec eax
add ebx, ebx
jne 0x96eac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x96ea98
add ebx, ebx
jne 0x96eacf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x96eb25
xor ecx, ecx
sub eax, 3
jb 0x96eaeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x96eb5a
sar eax, 1
mov ebp, eax
jmp 0x96eaf6
add ebx, ebx
jne 0x96eaf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x96eac4
inc ecx
add ebx, ebx
jne 0x96eb04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x96eac4
add ebx, ebx
jne 0x96eb11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x96eb06
jne 0x96eb22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x96eb06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x96eb44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x96eb36
jmp 0x96ea86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x96eb44
add edi, ecx
jmp 0x96ea86
pop esi
mov edi, esi
mov ecx, 0xd0de
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x96eb62
cmp byte [edi], 0x25
jne 0x96eb62
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 0x96eb67
lea edi, [esi + 0x569000]
mov eax, dword [edi]
or eax, eax
je 0x96ebdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57a290]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57a43c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x96eb94
mov ecx, edi
jns 0x96ebc3
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 + 0x57a444]
or eax, eax
je 0x96ebd9
mov dword [ebx], eax
add ebx, 4
jmp 0x96ebb1
call dword [esi + 0x57a440]
mov ebp, dword [esi + 0x57a448]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x96ec13
sub esp, 0xffffff80
jmp 0x401540
Function at 0x401f07
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402341
lea eax, [ebp - 0x184]
push 0x40494c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401f60
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x401fb0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x401fa4
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x401f7a
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4011c3
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x400
push edi
call fcn.004646c7
mov ebx, eax
push edi
mov dword [esp + 0x18], ebx
call fcn.004646c7
xor esi, esi
cmp ebx, esi
pop ecx
pop ecx
mov ebp, eax
je 0x4012a6
cmp ebp, esi
je 0x4012a6
push edi
push ebx
push esi
call dword [sym.imp.No_such_device_GetModuleFileNameA]
test eax, eax
je 0x4012a6
push ebx
push str.__s____service
push ebp
call fcn.004645c8
add esp, 0xc
push 0x12
push esi
push esi
call dword [sym.imp.e_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x401232
push str.Cant_open_SCM
call fcn.00464450
pop ecx
jmp 0x4012a6
push str.Creating_service...
call fcn.00464450
pop ecx
push esi
push esi
push esi
push esi
push esi
push ebp
push esi
push 2
push 0x10
push 0x10
push str.Intelligent_P2P_Zombie
push 0x4722fc
push ebx
call dword [sym.imp.e_CreateServiceA]
mov edi, eax
cmp edi, esi
jne 0x40126e
push str.Cant_create_service
call fcn.00464450
pop ecx
jmp 0x40129f
push str.Starting_service...
call fcn.00464450
pop ecx
push esi
push esi
push edi
call dword [sym.imp.e_StartServiceA]
test eax, eax
jne 0x40128d
push str.Cant_start_service
jmp 0x401266
push str.Service_started
call fcn.00464450
pop ecx
push edi
call dword [sym.imp.e_CloseServiceHandle]
push ebx
call dword [sym.imp.e_CloseServiceHandle]
push dword [esp + 0x10]
call fcn.00464557
push ebp
call fcn.00464557
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4012bd
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
mov esi, 0x10020
push esi
push 0
push 0
call dword [sym.imp.e_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4012e8
push str.Cant_open_SCM
call fcn.00464450
pop ecx
jmp 0x40136f
push ebx
push esi
push 0x4722fc
push edi
call dword [sym.imp.e_OpenServiceA]
mov ebx, dword [sym.imp.e_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x40130f
push str.Cant_open_service
call fcn.00464450
pop ecx
jmp 0x40136b
push str.Stopping_service...
call fcn.00464450
pop ecx
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.e_ControlService]
test eax, eax
jne 0x401340
call dword [sym.imp.No_such_device_GetLastError]
cmp eax, 0x426
je 0x401340
push str.Cant_stop_service
jmp 0x401362
push str.Deleting_service...
call fcn.00464450
pop ecx
push esi
call dword [sym.imp.e_DeleteService]
test eax, eax
jne 0x40135d
push str.Cant_delete_service
jmp 0x401362
push str.Service_deleted
call fcn.00464450
pop ecx
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
pop esi
add esp, 0x1c
ret