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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x450f78
cmp dword [esi + 4], 0
je 0x450fa5
test byte [ebx + 0x55], 1
jne 0x450f97
mov eax, ebx
call fcn.0044fafc
test eax, eax
jne 0x450f97
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4510b5
mov edx, esi
mov eax, ebx
call fcn.00450a80
jmp 0x4510b5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4510ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452dcc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044d798
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00450f5c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452dcc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4510b5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4577a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x480928]
cmp byte [eax + 0xc], 0
je 0x457915
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45790e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481b7c], 0
jne 0x4577fc
push 0x45791c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x457924
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b7c], eax
cmp dword [0x47fdd0], 0
jne 0x4578f7
push 0x457934
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47fdd0], eax
cmp dword [0x47fdd0], 0
je 0x4578f7
push 0x457940
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b80], eax
push 0x457950
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b84], eax
push 0x457964
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b88], eax
push 0x45797c
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b8c], eax
push 0x457994
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b90], eax
push 0x4579a8
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b94], eax
push 0x4579c0
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b98], eax
push 0x4579d8
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b9c], eax
push 0x4579f4
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481ba0], eax
push 0x457a00
mov eax, dword [0x47fdd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481ba4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457915
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45ba18
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404a94
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45ba67
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404d04
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463278
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4632c8]
test si, 4
je 0x46328c
or bl, 1
test si, 8
je 0x463296
or bl, 4
test si, 1
je 0x4632a0
or bl, 8
test si, 2
je 0x4632aa
or bl, 0x10
test si, 0x10
je 0x4632b4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4632c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4632cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x463304]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4632e5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4632f4
or bl, 4
test esi, 0x20000000
je 0x4632ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4699c8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4699da
add esp, 0xfffffff0
call fcn.00403fa0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004228c8
mov eax, dword [0x48058c]
mov dword [eax + 4], ebx
mov dword [eax], 0x469d6c
mov eax, dword [0x480598]
mov dword [eax + 4], ebx
mov dword [eax], 0x469d78
mov eax, ebx
call fcn.00469d84
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.00403bf8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.00403bf8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.00403bf8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.00403bf8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4174a4]
call fcn.00403bf8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46619c
push eax
push 0
push 0
mov eax, dword [0x480710]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424334]
call fcn.00425acc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424334]
call fcn.00425acc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424334]
call fcn.00425acc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046a1d4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a09c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a09c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a09c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469b17
call fcn.00403ff8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x469e80
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a02b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a00c
mov dl, 1
mov eax, dword [0x417b08]
call fcn.00403bf8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a94
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x469ffb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00457b08
test al, al
je 0x469fee
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46a03c
lea eax, [ebp - 0x254]
call fcn.00409dfc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x469fee
xor eax, eax
push ebp
push 0x469fe7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46a074
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x469fd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d04
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x469fd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469fee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x469ef1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c2c4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a032
lea eax, [ebp - 0x260]
call fcn.00404a94
ret

Function at 0x46a974
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x481bc8]
cmp byte [eax + 0xa5], 0
jne 0x46a9e5
cmp dword [0x481be0], 0
jne 0x46a9a6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46a930
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x481be0], eax
cmp dword [0x481bdc], 0
jne 0x46a9c1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x481bdc], eax
cmp dword [0x481be4], 0
jne 0x46a9e5
push esp
push 0
push 0
push 0x46a8d4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x481be4], eax
pop edx
ret
Function at 0x46b078
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481bc8]
cmp dword [eax + 0x30], 0
je 0x46b122
cmp dword [ebx + 0x94], 0
jne 0x46b11c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b008
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b11c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46b0e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b11c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419e10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b0f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46bc80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46bcb5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b84
jmp 0x46bcc2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ae8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46ce8c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46cecd
mov eax, esi
call fcn.004530d0
test al, al
je 0x46cecd
mov eax, dword [ebx + 0x84]
call fcn.00452dcc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46cecd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00452dcc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46f50c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f54
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x46f525
test al, 0x10
jne 0x46f529
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x47662c
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x4802c8
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x4766f0
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x476664
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x476707
dec edx
je 0x476748
jmp 0x4767a5
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x4767a5
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x476808
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x476825
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x476937
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x476858
je 0x4768a4
sub ecx, 0x2b
je 0x47689a
sub ecx, 4
je 0x47689f
dec ecx
sub ecx, 0xa
jb 0x476889
jmp 0x4768a7
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x47686a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x476878
jmp 0x4768a7
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4768a7
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4768a7
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4768a7
mov byte [eax], 0x3e
jmp 0x4768a7
mov byte [eax], 0x3f
jmp 0x4768a7
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x476837
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x4768f7
cmp byte [esp + 3], 0xff
jne 0x4768f7
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x47692f
cmp dl, 0xff
je 0x47692f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x476830
add esp, 0xc
pop ebp
pop edi
pop esi
ret
Function at 0x478a44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x478a6e
mov ecx, 0x478ad4
mov dl, 1
mov eax, dword [0x47812c]
call fcn.0040cd08
call fcn.00404408
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
test esi, esi
jle 0x478ac1
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [ebx + 0x40]
xor al, byte [edx]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov ecx, dword [ebx + 0x44]
dec ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x3c]
inc eax
call fcn.00402cec
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov edx, dword [ebx + 0x3c]
add edx, dword [ebx + 0x44]
dec edx
mov byte [edx], al
inc dword [ebp - 8]
inc dword [ebp - 0xc]
dec esi
jne 0x478a7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x478aec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x478b16
mov ecx, 0x478b80
mov dl, 1
mov eax, dword [0x47812c]
call fcn.0040cd08
call fcn.00404408
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
test esi, esi
jle 0x478b6f
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov byte [ebp - 0xd], al
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [ebx + 0x40]
xor al, byte [edx]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov ecx, dword [ebx + 0x44]
dec ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x3c]
inc eax
call fcn.00402cec
mov eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x44]
dec eax
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
dec esi
jne 0x478b26
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x479154
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4791d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x478450]
mov eax, 0x14
call fcn.00405840
mov edi, eax
mov dword [edi + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408b88
mov edx, dword [ebp - 4]
lea eax, [edi + 4]
call fcn.00404ae8
mov eax, esi
call dword [eax + 0x30]
mov dword [edi + 8], eax
mov eax, dword [0x481d14]
mov dword [edi], eax
mov byte [edi + 0x10], bl
mov dword [0x481d14], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4791dd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
ret
Function at 0x4791e4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x479260
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x478478]
mov eax, 0x10
call fcn.00405840
mov ebx, eax
mov dword [ebx + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408b88
mov edx, dword [ebp - 4]
lea eax, [ebx + 4]
call fcn.00404ae8
mov eax, esi
call dword [eax + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [0x481d18]
mov dword [ebx], eax
mov dword [0x481d18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479267
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
ret

Function at 0x4792cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x4792ec
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4792da
pop edi
pop esi
pop ebx
ret

Function at 0x47aec0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f44
xor eax, eax
push ebp
push 0x47affe
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x47afc4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f54
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, ebx
call fcn.00402ac0
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47b00c
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 8]
shr edi, 0x10
mov dx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x16], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x18], dx
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x1a], ax
mov edx, ebx
mov eax, esi
call fcn.00402af0
lea edx, [ebp - 0x20]
movzx eax, di
call fcn.00408eb0
push dword [ebp - 0x20]
lea edx, [ebp - 0x24]
movzx eax, word [ebp - 0x16]
call fcn.00408eb0
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
movzx eax, word [ebp - 0x18]
call fcn.00408eb0
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x1a]
call fcn.00408eb0
push dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov edx, 4
call fcn.00404e14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47afdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b005
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404ab8
lea eax, [ebp - 4]
call fcn.00404a94
ret