joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ae28
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
push eax
call esi
push ebx
mov dword [ebp - 0xc], eax
call edi
push dword [ebp - 0x2c]
mov edi, eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0x1c], eax
call esi
xor ebx, ebx
push 0xcc0020
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
cmp dword [ebp - 4], ebx
je 0x48aec4
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x48aec4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [ebp + 8], ecx
je 0x48af66
mov eax, dword [ebp - 0x2c]
lea ebx, [eax - 1]
test eax, eax
je 0x48af56
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [ebp + 0xc], eax
je 0x48af51
xor edx, edx
mov ecx, eax
mov dl, ah
shr ecx, 0x10
cmp al, dl
jne 0x48af00
cmp dl, cl
je 0x48af51
movzx ecx, cl
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
movzx ecx, dl
fmul qword [0x4e09c8]
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
movzx eax, al
fmul qword [0x4e09c0]
mov dword [ebp - 0x10], eax
faddp st(1)
fild dword [ebp - 0x10]
fmul qword [str.333333]
faddp st(1)
call fcn.0045de10
movzx eax, al
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, ebx
dec ebx
jmp 0x48aedb
mov eax, dword [ebp + 8]
dec dword [ebp + 8]
test eax, eax
jne 0x48aed5
xor ebx, ebx
push dword [ebp - 8]
push edi
call esi
cmp edi, ebx
je 0x48af7d
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x48af7d
xor edi, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x48af99
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x48afa3
push dword [ebp - 0xc]
call esi
cmp edi, ebx
je 0x48afae
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x48afbf
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x490bbb
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
cmp ecx, dword [esi + 0xc0]
lea eax, [esi + 0xc0]
je 0x490c8f
push ebx
xor ebx, ebx
mov dword [eax], ecx
mov eax, dword [0x510c84]
cmp ecx, ebx
push edi
jne 0x490c20
cmp eax, ebx
je 0x490bf4
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x510c84], ebx
mov ecx, esi
xor edi, edi
call fcn.00490a91
test eax, eax
jle 0x490c75
mov eax, dword [esi + 0x90]
push 0x20
push ebx
mov ecx, dword [eax + edi*4]
call fcn.0048f6ee
mov ecx, esi
inc edi
call fcn.00490a91
cmp edi, eax
jl 0x490c01
jmp 0x490c75
cmp eax, ebx
je 0x490c2b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x490c93
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, esi
mov dword [0x510c84], eax
mov dword [0x510c7c], esi
xor edi, edi
call fcn.00490a91
test eax, eax
jle 0x490c75
mov eax, dword [esi + 0x90]
push ebx
push 0x20
mov ecx, dword [eax + edi*4]
call fcn.0048f6ee
mov ecx, esi
inc edi
call fcn.00490a91
cmp edi, eax
jl 0x490c58
mov ecx, esi
call fcn.004905c4
or dword [esi + 0xf4], 0xffffffff
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0049084f
pop edi
pop ebx
pop esi
ret 4
Function at 0x490d88
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4d0fc8
call fcn.0045d534
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov esi, dword [ecx + 0xa8]
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
and dword [ebp - 4], 0
push esi
mov dword [ebp - 0x2c], esi
call edi
and dword [ebp - 0x10], 0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], 1
jle 0x490de4
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xff00
jae 0x490de0
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jl 0x490dc5
jmp 0x490de4
and dword [ebp - 0x18], 0
push esi
call edi
mov ebx, 0x400
cmp dword [ebp - 0x10], eax
jge 0x490e01
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
push esi
call edi
jmp 0x490dec
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0x229
push dword [eax + 0xc4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x28], eax
mov eax, dword [0x50a5bc]
mov dword [ebp - 0x14], 0xff00
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.USER32.dll_InsertMenuA]
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x490efc
cmp dword [ebp - 0x18], ecx
je 0x490e6e
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
push ecx
push ecx
push 0xc00
push eax
push esi
call edi
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xfeff]
cmp ecx, 0xa
jge 0x490ed8
lea eax, [ebp - 0x12c]
push 0xff
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xffff0101
push eax
lea eax, [ebp - 0x1c]
push str._d__s
push eax
call fcn.00471ef9
add esp, 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push esi
call edi
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], eax
jne 0x490ee5
push 0x408
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x490ee5
push str.More_Windows...
push eax
push ebx
push dword [ebp - 0x10]
push esi
call edi
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0xffff0101
cmp eax, 0xa
jle 0x490e35
and dword [ebp - 0x2c], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00471c87
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x49143b
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], 1
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x4914cc
push eax
push 2
mov ecx, esi
call fcn.0049084f
and dword [esi + 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4913fe
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x510c80], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x88], 2
mov dword [0x50d1f0], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x90]
push dword [esi + 0xa0]
mov ecx, dword [ecx + eax*4]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [0x510c80]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x510c80], 0
cmp dword [esi + 0x64], 1
je 0x49144c
mov eax, dword [esi + 0xf4]
mov ecx, esi
push eax
inc eax
neg eax
sbb eax, eax
and eax, 3
push eax
call fcn.0049084f
mov ecx, esi
call fcn.004905c4
pop esi
ret 4

Function at 0x492b5f
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x492b77
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret
Function at 0x4970a6
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x4970f2
cmp dword [esi + 8], 0
je 0x4970f2
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4970f2
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x499484
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x499565
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4e2ccc]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4e2ccc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4e2ccc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4e2ccc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4e2ccc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4e2ccc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4e2ccc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4e2ccc]
xor eax, esi
inc edx
dec edi
jne 0x4994a1
pop ebx
cmp dword [ebp + 0x10], 0
je 0x499586
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4e2ccc]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x49956b
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x499d68
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x499d9c
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x499d97
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x499dc4
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x499dad
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0045dfd0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret
Function at 0x49ab7d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x49ac02
cmp dword [esi + 4], 0xffffffff
jne 0x49ac02
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x500988
push edi
call fcn.0045d630
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x49abcb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x49abcb
mov eax, 0x2000000
jmp 0x49ac07
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00499b74
add esp, 0x10
test eax, eax
jne 0x49abe9
mov eax, dword [ebp - 4]
jmp 0x49ac07
push eax
call fcn.0049a020
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and eax, 0xfffc0000
add eax, 0x40000
jmp 0x49ac07
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x49afd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49b067
mov cl, byte [eax]
test cl, cl
je 0x49b067
push esi
push edi
mov edi, eax
mov edx, eax
cmp cl, 0x2f
je 0x49affa
cmp cl, 0x5c
jne 0x49affc
mov edi, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x49aff0
cmp edi, eax
mov esi, edi
je 0x49b037
sub esi, eax
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0046affb
and byte [ebp + esi - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0049afd0
add esp, 0x14
lea esi, [edi + 1]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0045d620
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0045d630
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x49b9b3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x49b9ee
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 0xc]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x49b9d8
mov dword [esi + 0xc], 0x30000
jmp 0x49ba13
push edi
add eax, ecx
push dword [ebp + 8]
push eax
call fcn.0045dfd0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
jmp 0x49ba15
mov eax, dword [esi]
test eax, eax
je 0x49ba0c
lea ecx, [ebp + 0xc]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
jmp 0x49ba15
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x49beb3
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x1c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret 4
Function at 0x4aacf9
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0x18], edi
jne 0x4aae0d
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov ebx, eax
cmp ebx, edi
je 0x4aae0d
mov eax, dword [esp + 0x14]
sub eax, 0xf020
je 0x4aadfe
sub eax, 0x10
je 0x4aadd9
sub eax, 0x30
je 0x4aadcc
sub eax, 0xc0
je 0x4aad5d
mov eax, dword [esi]
push edi
push dword [esp + 0x18]
mov ecx, esi
push 0x112
call dword [eax + 0x24]
jmp 0x4aae08
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebp, 0xf120
test eax, 0x1000000
je 0x4aad94
push 0
push 0xf030
push ebx
call edi
push 3
push ebp
push ebx
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1cc]
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x4aae08
push 0
push 0xf020
push ebx
call edi
push 3
push ebp
push ebx
call edi
push 9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x6c]
jmp 0x4aae08
mov eax, dword [esi]
push edi
push edi
push 0x10
mov ecx, esi
call dword [eax + 0x20]
jmp 0x4aae08
push edi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0xf120
push ebx
call edi
push 3
push 0xf030
push ebx
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d4]
jmp 0x4aae08
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d0]
push 1
pop eax
jmp 0x4aae0f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4b6670
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.0045dde0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4b673b
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 0x4b673b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4b66ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4b66f9
or bh, 8
and edi, 0x8000000
je 0x4b6714
mov eax, dword [0x5122dc]
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 0x4b673b
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 0x4b6b10
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 0x4b6b3b
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 0x4b6b5f
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 0x4b6b7a
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 0x4bb3da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bb412
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.004be369
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004be341
jmp 0x4bb41e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4bca98
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 0x4bcada
call fcn.004c43c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bcada
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bcad1
xor eax, eax
jmp 0x4bcae2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bcae8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4be634
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4be656
cmp dword [edi + 0x3c], 0
jne 0x4be656
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004c43c0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004be683
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c1e43
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4ccb60
call fcn.0045d534
push ecx
push ecx
push esi
push 0x10
call fcn.004be426
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4c1e90
mov ecx, esi
call fcn.004beeb4
mov eax, dword [0x505810]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004be04b
jmp 0x4c1e92
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4f5300
push eax
mov dword [ebp - 0x10], esi
call fcn.0045fe7b
pop esi

Function at 0x4c5442
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 0x4c5470
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c548e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c53a8
jmp 0x4c548e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c548e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c53a8
test edi, edi
mov eax, edi
jne 0x4c5478
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401424
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x475361
push ecx
call fcn.0045f4f1
add esp, 8
xor esi, esi
test eax, eax
je 0x4014b1
mov edi, eax
push 2
push 0
push eax
call fcn.0045d929
add esp, 0xc
push edi
call fcn.0045dc78
add esp, 4
test eax, eax
js 0x4014a8
mov ebp, eax
push edi
call fcn.00461296
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x482044]
add esp, 4
test eax, eax
je 0x4014a8
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.00460919
add esp, 0x10
test eax, eax
je 0x401496
mov ebp, eax
push edi
call fcn.00460273
add esp, 4
test eax, eax
je 0x4014b8
push edi
call fcn.004600ee
add esp, 4
push ebx
call dword [0x482040]
jmp 0x4014ae
push edi
call fcn.004600ee
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.004600ee
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x4014b1

Function at 0x402aa4
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x402acc
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x402ad3
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x402ab2
jmp 0x402ad5
mov eax, 0x1505
jmp 0x402ad5
mov eax, edi
pop esi
pop edi
pop ebx
ret