joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486890
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4868fb
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 0x486908
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486908
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x486908
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x486908
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 0x486961
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.004015c0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x486961
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x486961
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015c0
push esi
call ebp
test eax, eax
jne 0x486940
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x486b70
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.004b8900
push ebx
mov ebx, edx
mov edx, dword [esp + 0x11c6c]
push esi
mov esi, dword [esp + 0x11c74]
push edi
movzx eax, word [ebx]
mov edi, ecx
mov ecx, dword [esp + 0x11c7c]
cmp eax, 0x41
je 0x486ba3
cmp eax, 0x61
jne 0x486c1e
cmp word [ebx + 2], 0
jne 0x486c1e
cmp word [edx], 0
jne 0x486c1e
cmp word [esi], 0
jne 0x486c1e
cmp word [ecx], 0
jne 0x486c1e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x486c01
cmp byte [edi + 0x93], 0
jne 0x486c01
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x486bff
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xe
push esi
call dword [sym.imp.dwmapi.dll_DwmGetWindowAttribute]
test eax, eax
js 0x486c01
cmp dword [esp + 0xc], 0
je 0x486c01
xor esi, esi
cmp byte [esp + 0x11c84], 0
je 0x486c12
test esi, esi
je 0x486c12
mov dword [edi + 0x20], esi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x11c64
ret
test ax, ax
jne 0x486c43
cmp word [edx], ax
jne 0x486c43
cmp word [esi], ax
jne 0x486c43
cmp word [ecx], ax
jne 0x486c43
mov ecx, edi
call fcn.00486dd0
pop edi
pop esi
pop ebx
add esp, 0x11c64
ret
push ecx
push esi
push edx
push ebx
lea eax, [edi + 0x58]
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov dword [esp + 0x102c], 0x4d1e48
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x184d], 0
movups xmmword [esp + 0x1850], xmm0
mov dword [esp + 0x1860], 0
mov dword [esp + 0x1864], 0
mov dword [esp + 0x1870], 0
mov dword [esp + 0x1874], 0
call fcn.00487a30
test eax, eax
je 0x486d84
test byte [esp + 0x10], 2
mov al, byte [esp + 0x11c80]
mov byte [esp + 0x1839], al
mov eax, dword [esp + 0x11c88]
mov dword [esp + 0x1848], eax
mov eax, dword [esp + 0x11c8c]
mov dword [esp + 0x184c], eax
je 0x486d90
mov esi, dword [esp + 0x102c]
cmp esi, 0xffff
je 0x486d5c
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x486d84
cmp byte [edi + 0x93], 0
mov esi, dword [esp + 0x102c]
jne 0x486d5c
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x486d3f
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xe
push esi
call dword [sym.imp.dwmapi.dll_DwmGetWindowAttribute]
test eax, eax
js 0x486d55
cmp dword [esp + 0xc], 0
je 0x486d55
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x486d84
mov esi, dword [esp + 0x102c]
cmp dword [esp + 0x1860], esi
je 0x486d75
lea ecx, [esp + 0x10]
mov dword [esp + 0x1860], esi
call fcn.00487e50
push 0
lea ecx, [esp + 0x14]
call fcn.00487f10
test eax, eax
jne 0x486da0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x11c64
ret
lea eax, [esp + 0x10]
push eax
push 0x486e80
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 0x11c84], 0
mov eax, dword [esp + 0x1840]
je 0x486d86
test eax, eax
je 0x486d86
mov dword [edi + 0x20], eax
pop edi
pop esi
pop ebx
add esp, 0x11c64
ret
Function at 0x487e50
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x487f0b
mov eax, dword [esi]
test eax, eax
je 0x487f0b
push edi
test al, 1
jne 0x487e7d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x487e97
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x487e97
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x487eb1
lea eax, [esi + 0x1854]
push eax
push dword [esi + 0x1850]
call edi
test byte [esi], 0x20
je 0x487eed
lea eax, [esp + 8]
push eax
push dword [esi + 0x1850]
call edi
test eax, eax
je 0x487eed
movzx eax, byte [esi + 0x1828]
lea edx, [esi + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00457910
add esp, 8
test eax, eax
jne 0x487eed
mov word [esi + 0x11a58], ax
test byte [esi], 8
pop edi
je 0x487f0b
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 0x488360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4ea0ec], 0
mov eax, dword [0x4e59a0]
mov byte [eax + 0x53], 1
je 0x488418
push ebx
mov bl, byte [0x4ea1f8]
mov al, bl
and al, 0xc0
movzx ecx, al
neg ecx
push esi
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test bl, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test bl, 0x30
cmove ecx, edx
mov esi, ecx
or esi, 2
test bl, 3
cmove esi, ecx
mov edx, esi
mov ecx, esi
and dl, 2
neg dl
sbb dl, dl
and dl, 3
mov al, dl
or al, 0x30
and cl, 4
movzx ebx, al
movzx eax, dl
cmove ebx, eax
or bl, 0xcc
not bl
and bl, byte [0x4ea0f6]
je 0x488416
cmp esi, 8
jne 0x4883ff
movzx eax, word [0x4e5f18]
lea ecx, [esi - 6]
mov dl, byte [0x4e5f1a]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.004163d0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor cl, cl
call fcn.00418300
add esp, 0x10
pop esi
pop ebx
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x488437
mov edx, 1
or ecx, 0xffffffff
jmp fcn.004015c0
ret

Function at 0x488770
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.004b8900
mov eax, dword [ecx + 8]
xorps xmm0, xmm0
mov dword [esp + 0x1840], eax
mov eax, dword [esp + 0x11c68]
mov dword [esp + 0x1844], eax
mov eax, dword [esp + 0x11c6c]
mov dword [esp + 0x1848], eax
lea eax, [esp]
push eax
push 0x488e10
mov dword [esp + 8], 0
mov dword [esp + 0x1014], 0x4d1e48
mov byte [esp + 0x1831], 0
movups xmmword [esp + 0x1834], xmm0
mov dword [esp + 0x1844], 0
mov dword [esp + 0x1854], 0
mov dword [esp + 0x1858], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1830], 0
je 0x488817
mov eax, dword [0x4e59a0]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488817
mov edx, 1
call fcn.004015c0
add esp, 0x11c64
ret 8
Function at 0x488a00
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov eax, 0x11c64
call fcn.004b8900
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4eb068], esi
je 0x488a2a
mov dword [0x4eb068], esi
mov dword [0x4eb070], 0
cmp dword [0x4eb06c], 0
jne 0x488a4a
mov ecx, 0x7d0
call fcn.0047f3f0
test eax, eax
je 0x488bf1
mov dword [0x4eb06c], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x488a6c
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x488a61
mov eax, dword [0x4e59a0]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.00488c00
mov ecx, dword [0x4eb070]
xor edx, edx
test eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x101c], 0x4d1e48
cmovne ecx, edx
mov dword [esp + 0x183c], edx
mov dword [0x4eb070], ecx
mov dword [esp + 0x1840], edx
mov dword [esp + 0x1844], edx
mov dword [esp + 0x185c], edx
mov dword [esp + 0x1860], edx
cmp byte [esp + 0x11c74], dl
je 0x488ad6
mov byte [esp + 0x1839], dl
test ecx, ecx
je 0x488ade
mov byte [esp + 0x1839], 1
mov eax, dword [0x4eb06c]
mov dword [esp + 0x1848], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1850], eax
lea eax, [esp + 0x10]
push eax
push 0x488ce0
mov dword [esp + 0x1854], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
test eax, eax
je 0x488b84
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, eax
call fcn.004865f0
mov ecx, dword [0x4eb070]
xor eax, eax
mov edx, dword [esp + 0x1840]
mov esi, dword [0x4eb06c]
test ecx, ecx
jle 0x488b4a
nop dword [eax]
cmp dword [esi + eax*4], edx
je 0x488b5c
inc eax
cmp eax, ecx
jl 0x488b40
cmp ecx, 0x1f4
jge 0x488b5c
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4eb070], ecx
mov eax, dword [0x4e59a0]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488be0
mov edx, 1
call fcn.004015c0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x11c64
ret 4
mov eax, dword [0x4eb070]
test eax, eax
je 0x488bcc
cmp eax, 1
mov dword [0x4eb070], 0
setg al
test al, al
je 0x488be0
mov eax, dword [0x4eb06c]
mov ecx, esi
push 0
mov dword [0x4eb070], 1
mov dword [eax], edi
call fcn.00488a00
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x11c64
ret 4
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
call fcn.004865f0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
call fcn.00430e20
int3
Function at 0x49c77b
Capabilities:
Parse pe header

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

Function at 0x4adbf6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4be6b4
push 0x4be6ac
push str.FlsAlloc
push 0x1e
call fcn.004adb33
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4adc2a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bb79c]
call esi
jmp 0x4adc30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4adc74
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4be6c4
push 0x4be6bc
push str.FlsGetValue
push 0x20
call fcn.004adb33
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4adcab
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bb79c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b0d8c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e5018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b0dd7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b0f2b
test al, al
jne 0x4b0dd1
sub edx, 2
cmp edx, edi
jne 0x4b0db7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b0df9
lea eax, [edi + 2]
cmp edx, eax
je 0x4b0df9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b0cd8
add esp, 0x10
jmp 0x4b0ef3
push esi
lea ecx, [ebp - 0x255]
call fcn.004b0f2b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b0e3c
push dword [ebp - 0x25c]
jmp 0x4b0de9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b0e79
cmp word [ebp - 0x226], 0
je 0x4b0e9a
cmp word [ebp - 0x226], ax
jne 0x4b0e79
cmp word [ebp - 0x224], 0
je 0x4b0e9a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b0cd8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b0ee6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b0e53
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b0ece
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b0ef3
push 0x4b0b08
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9dc0
add esp, 0x10
jmp 0x4b0ec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c9d3
leave
ret
Function at 0x4b5a6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e9a80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b5aad
cmp byte [ebx], 0xa
jne 0x4b5aad
or byte [eax + edi + 0x28], 4
jmp 0x4b5ab2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b5bb0
mov al, byte [edx]
cmp al, 0x1a
je 0x4b5b92
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b5ae1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b5b06
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b5b10
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b5ac3
jmp 0x4b5bb0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5b8d
cmp dword [ebp - 0xc], 0
je 0x4b5b8d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e9a80]
test byte [eax + edi + 0x28], 0x48
je 0x4b5b67
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b5b52
mov byte [esi], dl
jmp 0x4b5b63
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e9a80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b5bb0
cmp byte [ebp - 1], 0xa
jne 0x4b5b76
cmp esi, ebx
jne 0x4b5b76
mov byte [esi], 0xa
jmp 0x4b5baf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b59dd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b5bb0
mov byte [esi], 0xd
jmp 0x4b5baf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e9a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b5bac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b5bb0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b5bb9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e9a80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b5bfc
cmp word [esi], dx
jne 0x4b5bfc
or byte [edi + eax + 0x28], 4
jmp 0x4b5c01
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b5d54
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b5d34
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b5c43
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b5c79
cmp eax, edx
jae 0x4b5c85
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b5c1b
jmp 0x4b5d54
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5d30
cmp dword [ebp - 0x14], 0
je 0x4b5d30
mov eax, dword [ebx*4 + 0x4e9a80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b5d08
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b5cd1
mov word [esi], cx
jmp 0x4b5d04
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e9a80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e9a80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e9a80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b5d54
pop ebx
cmp word [ebp - 4], bx
jne 0x4b5d19
cmp esi, dword [ebp + 0xc]
jne 0x4b5d19
mov word [esi], bx
jmp 0x4b5d51
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b59dd
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b5d54
push 0xd
jmp 0x4b5d4d
mov ecx, dword [ebx*4 + 0x4e9a80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b5d4b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b5d54
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b6a05
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b6981
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b6b7d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b6b7d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b6b2c
jg 0x4b6a5e
test eax, eax
je 0x4b6b22
push 1
push 0x1000
call fcn.004ad6e3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b6a84
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4b6b19
push 0x8000
push ebx
call fcn.004ac80b
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4b6ab0
jg 0x4b6aab
cmp ecx, 0x1000
jb 0x4b6ab0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b03b8
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b6af5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4b6aab
jl 0x4b6adc
test ecx, ecx
jne 0x4b6a9d
push dword [ebp - 0xc]
push ebx
call fcn.004ac80b
push esi
call fcn.004ad5f2
add esp, 0xc
xor edi, edi
jmp 0x4b6b8e
cmp byte [edi + 0x24], 0
je 0x4b6b0c
cmp dword [edi + 0x20], 5
jne 0x4b6b0c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b6b17
mov edi, dword [edi + 0x18]
jmp 0x4b6b19
xor edi, edi
push esi
call fcn.004ad5f2
pop ecx
jmp 0x4b6b8e
test ecx, ecx
jg 0x4b6aee
jl 0x4b6b2c
test eax, eax
jae 0x4b6aee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b59dd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b6b4f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b6aee
jmp 0x4b6b86
push ebx
call fcn.004b2155
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b6aee
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4b6b8e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b6b8b
mov edi, dword [edi + 0x18]
jmp 0x4b6b8e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b59dd
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b8530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b855d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b855d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40266f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, 0x402274
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 4]
push eax
push 0x40221c
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4026b6
push eax
push eax
push 3
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x40275f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402358
push 0x402c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4028b2
cmp dword [ebp - 0x9c], 2
jne 0x4028b2
push 4
pop eax
cmp dword [ebp - 0xa8], eax
jne 0x4028b2
and dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0x402348
push 0x40231c
mov edi, 0x80000002
push edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
call esi
test eax, eax
jne 0x4028b2
cmp word [ebp - 0xb0], 0x300
jne 0x4028b2
mov ebx, 0x88
mov dword [ebp - 0xb4], ebx
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x402310
push 0x4022b0
push edi
call esi
test eax, eax
jne 0x4028b2
cmp dword [ebp - 0xb4], ebx
jne 0x4028b2
mov ecx, ebx
lea edi, [ebp - 0x13c]
mov esi, section..data
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40286a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4028b2
push 0x4022a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x4028b2
push 0x402290
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4028a6
and dword [ebp - 4], 0
call eax
jmp 0x4028a2
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret