joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f923
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 4], 0xff
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x10]
mov dword [edx], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40f97b
mov eax, 1
jmp 0x40f97d
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x41340e
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4134e5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4134d9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
sub eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 8]
sub eax, dword [edx]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4134cf
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
push 0xcc0020
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x41674e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4167b5
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4167bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x4168ee
lea edx, [ebp - 0x20c]
push edx
push str..htm
push 0x80000000
call fcn.0041674e
add esp, 0xc
test eax, eax
jne 0x4168ee
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x80000000
call fcn.0041674e
add esp, 0xc
test eax, eax
jne 0x4168ee
push str.__1_
lea eax, [ebp - 0x20c]
push eax
call fcn.00416a10
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4168ae
push 0x45b998
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00427a00
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4168a3
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x20d]
mov dword [ebp - 0x210], eax
jmp 0x4168ac
mov ecx, dword [ebp - 0x210]
mov byte [ecx], 0
jmp 0x4168b7
mov edx, dword [ebp - 0x210]
mov byte [edx], 0
push 0x45b99c
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41ee82
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x45fe14], 0
je 0x41ee9e
mov eax, dword [0x45fe14]
jmp 0x41efd5
push 0x94
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.004275d0
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41eee3
mov dword [0x45fe14], 0
mov eax, dword [0x45fe14]
jmp 0x41efd5
cmp dword [ebp - 0x84], 0
jne 0x41ef00
mov dword [0x45fe14], 1
mov eax, dword [0x45fe14]
jmp 0x41efd5
cmp dword [ebp - 0x84], 2
jne 0x41ef80
cmp dword [ebp - 0x90], 4
jne 0x41ef26
mov dword [0x45fe14], 6
mov eax, dword [0x45fe14]
jmp 0x41efd5
cmp dword [ebp - 0x90], 5
jne 0x41ef4c
cmp dword [ebp - 0x8c], 0
jne 0x41ef4c
mov dword [0x45fe14], 7
mov eax, dword [0x45fe14]
jmp 0x41efd5
cmp dword [ebp - 0x90], 5
jne 0x41ef6f
cmp dword [ebp - 0x8c], 1
jne 0x41ef6f
mov dword [0x45fe14], 8
mov eax, dword [0x45fe14]
jmp 0x41efd5
mov dword [0x45fe14], 5
mov eax, dword [0x45fe14]
jmp 0x41efd5
cmp dword [ebp - 0x90], 4
jne 0x41efa3
cmp dword [ebp - 0x8c], 0xa
jne 0x41efa3
mov dword [0x45fe14], 3
mov eax, dword [0x45fe14]
jmp 0x41efd5
cmp dword [ebp - 0x90], 4
jne 0x41efc6
cmp dword [ebp - 0x8c], 0x5a
jne 0x41efc6
mov dword [0x45fe14], 4
mov eax, dword [0x45fe14]
jmp 0x41efd5
mov dword [0x45fe14], 2
mov eax, dword [0x45fe14]
mov esp, ebp
pop ebp
ret
Function at 0x4351e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00427630
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4352ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4352ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43525e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x435269
or bh, 8
and edi, 0x8000000
je 0x435284
mov eax, dword [0x46365c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4352ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4356ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4356cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4356ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x438f9f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x438fd7
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.0043beac
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043be84
jmp 0x438fe3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x43a803
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 0x43a845
call fcn.00443c6b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43a845
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43a83c
xor eax, eax
jmp 0x43a84d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043a853
pop edi
pop esi
pop ebx
ret 4

Function at 0x444cd2
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 0x444d00
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x444d1e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00444c38
jmp 0x444d1e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x444d1e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00444c38
test edi, edi
mov eax, edi
jne 0x444d08
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x487e90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x487ea5
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
ret
cmp eax, 4
push edi
jle 0x487f1c
mov edi, 4
mov eax, 4
sub eax, edi
push eax
lea ecx, [edi + esi + 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
call fcn.0048da90
mov eax, dword [esi + 0x58]
sub eax, edi
mov edx, esi
push edi
lea ecx, [eax + esi + 0x14]
sub edx, edi
push ecx
add edx, 0x14
push edx
call fcn.0048a590
mov eax, dword [esi + 4]
push eax
push 0x40
lea ecx, [esi + 0x14]
push 1
push ecx
mov dword [esi + 0x54], edi
call fcn.0048d847
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
pop edi
test eax, eax
jne 0x487e98
mov edx, dword [esi + 4]
push edx
call fcn.0048d864
add esp, 4
test eax, eax
je 0x4a175d
or eax, 0xffffffff
ret
mov edi, eax
jmp 0x487eb0
mov eax, dword [esi + 4]
push eax
call fcn.0048d898
add esp, 4
test eax, eax
jne 0x487f18
ret

Function at 0x487f20
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
call fcn.00487e90
cmp eax, 0xffffffff
je 0x48801c
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor ebx, ebx
lea edi, [ebx + 1]
call fcn.00487df0
mov edi, dword [esp + 0x18]
dec edi
test edi, edi
jle 0x487f96
jmp 0x487f50
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x5c], eax
je 0x487fa3
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
cmp eax, 0xd
je 0x487f88
cmp eax, 0xffffffff
je 0x487f96
cmp eax, 0xa
je 0x487f96
mov byte [ebx + ebp], al
inc ebx
cmp ebx, edi
jl 0x487f50
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
call fcn.00487e90
cmp eax, 0xa
jne 0x4a17a8
pop edi
mov byte [ebx + ebp], 0
pop ebp
pop ebx
mov al, 1
pop esi
ret 8
cmp eax, 4
jle 0x4a1772
mov dword [esp + 0x14], 4
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x10]
mov edx, 4
sub edx, eax
push edx
add eax, ecx
push eax
push ecx
call fcn.0048da90
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x58]
mov ecx, esi
sub ecx, eax
lea ecx, [ecx + edx + 0x14]
push eax
mov edx, esi
sub edx, eax
push ecx
add edx, 0x14
push edx
call fcn.0048a590
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
push ecx
push 0x40
lea edx, [esi + 0x14]
push 1
push edx
mov dword [esi + 0x54], eax
call fcn.0048d847
add esp, 0x28
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
test eax, eax
jne 0x487f58
jmp 0x4a177b
xor al, al
pop esi
ret 8
mov dword [esp + 0x14], eax
jmp 0x487fb8
mov eax, dword [esi + 4]
push eax
call fcn.0048d864
add esp, 4
test eax, eax
jne 0x487f96
mov ecx, dword [esi + 4]
push ecx
call fcn.0048d898
add esp, 4
test eax, eax
jne 0x487f96
jmp 0x487f73
cmp eax, 0xffffffff
je 0x487f96
mov edi, 1
call fcn.00487df0
jmp 0x487f96
Function at 0x4885d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi]
sub esp, 8
test al, 3
jne 0x4a1830
add esp, 8
ret
test al, 1
je 0x4a1852
mov ecx, dword [esi + 4]
lea eax, [esp]
push eax
push ecx
call fcn.0048d262
mov edx, dword [esp + 8]
add esp, 8
or edx, dword [esp + 4]
jne 0x4885dd
mov eax, dword [esi]
test al, 0x20
je 0x4a1878
mov eax, dword [esi + 4]
push eax
push 2
push 1
push 0x481c58
call fcn.0048d432
mov dword [esi + 0xc], 1
add esp, 0x10
add esp, 8
ret
test al, 0x40
je 0x4a189c
mov ecx, dword [esi + 4]
push ecx
push 2
push 1
push 0x481c5c
call fcn.0048d432
mov dword [esi + 0xc], 2
add esp, 0x10
add esp, 8
ret
test al, al
jns 0x4885dd
mov edx, dword [esi + 4]
push edx
push 3
push 1
push 0x481c60
call fcn.0048d432
mov dword [esi + 0xc], 4
add esp, 0x10
add esp, 8
ret

Function at 0x488630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0x481c64
push eax
mov dword [ebp + 0xc], 0
mov byte [ebp + 8], 0
call fcn.0048d13c
add esp, 8
test eax, eax
je 0x488693
push esi
push edi
mov esi, eax
push esi
push 3
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.0048d847
push esi
mov edi, eax
call fcn.0048d52b
mov al, byte [esp + 0x24]
add esp, 0x14
cmp edi, 2
jb 0x488689
cmp al, 0xff
je 0x4a17c0
cmp al, 0xfe
je 0x4a17db
cmp al, 0xef
je 0x4a17f6
pop edi
pop esi
pop ebp
ret 4
cmp byte [esp + 0x11], 0xfe
jne 0x488689
mov dword [ebp + 0xc], 1
mov byte [ebp + 8], 1
jmp 0x488691
cmp byte [esp + 0x11], 0xff
jne 0x488689
mov dword [ebp + 0xc], 2
mov byte [ebp + 8], 1
jmp 0x488691
cmp edi, 3
jb 0x488691
cmp byte [esp + 0x11], 0xbb
jne 0x488691
cmp byte [esp + 0x12], 0xbf
jne 0x488691
mov dword [ebp + 0xc], 4
mov byte [ebp + 8], 1
jmp 0x488691

Function at 0x4886a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push esi
push 0x47f878
or eax, 0xffffffff
call fcn.00489040
mov esi, eax
add esp, 4
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.0048c870
push esi
call fcn.0048a579
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00488910
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.00488750
xor eax, eax
mov dword [edi + 8], 0
xor ecx, ecx
movzx edx, byte [esp + eax + 0x18]
inc eax
add ecx, edx
cmp eax, 0x10
jl 0x4886f8
mov eax, dword [ebp + 8]
push 0x481c64
push eax
mov dword [edi + 8], ecx
call fcn.0048d13c
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x4a3840
push edi
call fcn.004890b0
test eax, eax
je 0x4a384a
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.0048d52b
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x488740
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0048d847
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call 0x4c30ef
xor eax, eax
mov dword [edi + 8], 0
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x4a387a
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.0048e962
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x488740
Function at 0x488910
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.0048bf80
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x4890b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.0049de40
push ebx
mov ebx, dword [esp + 0x10028]
push ebp
push esi
push edi
xor eax, eax
jmp 0x4890d0
mov cl, byte [eax + 0x48cf58]
mov dl, byte [eax + 0x48cf50]
mov byte [esp + eax + 0x1c], cl
mov byte [esp + eax + 0x24], dl
inc eax
cmp eax, 8
jl 0x4890d0
lea eax, [esp + 0x10]
push 0x48221c
push eax
call fcn.0048c870
push 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0048a590
add esp, 0x14
mov dword [esp + 0x18], 0
mov eax, dword [ebx]
push eax
push 0x10000
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.0048d847
add esp, 0x10
cmp eax, 0x18
jl 0x48917e
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x489161
xor edx, edx
lea esp, [esp]
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x4a1573
cmp ecx, 0x14
je 0x4a15f2
inc edx
cmp edx, edi
jl 0x489140
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push 1
lea edx, [ecx + ebp - 0x14]
push 0xffffffffffffffec
push eax
mov dword [esp + 0x24], edx
call fcn.0048d1dd
add esp, 0xc
jmp 0x489115
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
jne 0x4a15bf
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
jne 0x4a15cc
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x4a15db
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
mov ebx, dword [esp + 0x10034]
jne 0x4a15ea
add ecx, 5
cmp ecx, 0x14
jge 0x489156
jmp 0x489146
mov ebx, dword [esp + 0x10034]
inc ecx
jmp 0x489153
mov ebx, dword [esp + 0x10034]
add ecx, 2
jmp 0x489153
mov ebx, dword [esp + 0x10034]
add ecx, 3
jmp 0x489153
add ecx, 4
jmp 0x489153
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push 0
lea edx, [ecx + edx + 0x14]
push edx
push eax
call fcn.0048d1dd
mov ecx, dword [ebx]
push ecx
push 4
lea edx, [esp + 0x24]
push 1
push edx
call fcn.0048d847
lea eax, [esp + 0x2c]
push 0x48220c
push eax
mov byte [esp + 0x38], 0
call fcn.0048ce90
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x489183
Function at 0x402fbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403054
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403034
xor eax, eax
push ebp
push 0x40302d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403070
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403034
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d04c], 0
je 0x403d81
cmp word [0x45d220], 0xd7b2
jne 0x403d49
cmp dword [0x45d228], 0
jbe 0x403d49
mov eax, 0x45d21c
call dword [0x45d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403da8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b030], 0
jne 0x403d9d
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret