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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x517580
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0050e76c
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4b6c63
xor al, al
jmp 0x4b6d8f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4b6c85
xor al, al
jmp 0x4b6d8f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4b6c98
xor al, al
jmp 0x4b6d8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4b6cac
xor al, al
jmp 0x4b6d8f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00502385
test eax, eax
jne 0x4b6ce0
xor al, al
jmp 0x4b6d8f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x591294
mov dword [esp + 0x20], ebp
call fcn.0050e76c
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0050b250
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0050b2a7
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4b6d74
mov ax, word [ebx]
test ax, ax
je 0x4b6d66
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004b6db0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4b6d4a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0050b2a7
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4b72f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0050c93c
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4b7336
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004dec7c
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5c2acc
push ecx
call fcn.004e077d
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4bcd70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4bcdbc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4bcdbc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4bcda6
push eax
call ebp
test ax, ax
jl 0x4bcdb4
inc esi
add edi, 4
cmp esi, 6
jb 0x4bcd98
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004bca70
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4bf590
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4bf5f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4bf5f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4bf5f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4bf5f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4bf600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4c2940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x517ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c2520
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.004c2590
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004c2870
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004c2540
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x4c2958
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x517ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c2520
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.004c2590
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004c2870
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004c2540
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4c2c50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x517d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004c2520
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004c2520
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.004c2590
cmp dword [esp + 0x40], ebx
jne 0x4c2cd8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.004c2540
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004c2540
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.004c2b90
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.00472390
cmp eax, esi
jb 0x4c2d5b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x5c9854
lea ecx, [esp + 0x1c]
call fcn.004c2940
cmp eax, 1
jne 0x4c2d4d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004c26e0
push ebx
lea ecx, [esp + 0x20]
call fcn.004c2a20
push eax
call fcn.004e110d
add esp, 8
test eax, eax
jge 0x4c2d4d
push ebx
lea ecx, [esp + 0x20]
call fcn.00473f00
push eax
call edi
test eax, eax
je 0x4c2d90
lea ecx, [esp + 0xc]
inc esi
call fcn.00472390
cmp esi, eax
jbe 0x4c2cfd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004c2540
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004c2540
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004c2540
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004c2540
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4c5310
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4c531b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4c541e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x59432c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x59432c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x59432c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x59432c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x59432c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x59432c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x59432c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x59432c]
xor eax, edx
inc ecx
dec edi
jne 0x4c5336
pop edi
test esi, esi
je 0x4c5440
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x59432c]
xor eax, edx
inc ecx
dec esi
jne 0x4c5422
pop esi
pop ebx
not eax
ret

Function at 0x4c5cb0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4c5cf1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c5ce6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4c5d04
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4c6c40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4c6cf5
cmp dword [ebp + 4], 0xffffffff
jne 0x4c6cf5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x5c9adc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4c6cbd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4c6cbd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004c5a40
add esp, 0x10
test eax, eax
jne 0x4c6ce0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004c5f80
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4c7150
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4c7218
mov al, byte [ecx]
test al, al
je 0x4c7218
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4c717b
cmp al, 0x5c
jne 0x4c717d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4c7173
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4c71b4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004e144f
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004c7150
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4c9640
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x4c9688
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 8]
push ecx
push 0x4c95e0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x4c96ac
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push 1
mov esi, eax
call edi
push eax
push esi
add eax, 0xffffffec
add esi, 0xffffffd8
push eax
lea edx, [esp + 0x14]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 8]
mov ecx, eax
pop edi
pop esi
mov dword [ecx], edx
mov edx, dword [esp + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
add esp, 0x10
ret 4

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4c9ab6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4c9ab6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4c9a97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4c9e40
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4c9e78
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4caab0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4caaf9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4caf70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5181e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004cab20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004caba0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004caba0
lea ecx, [esi + 0xc]
call fcn.005042bf
lea ecx, [esi + 0x10]
call fcn.005042bf
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004cbfa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004cbfa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004cbfa0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00504334
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00504334
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cda58
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518559
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004d0530
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], fcn.004d5c30
call fcn.005022c0
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.005022c0
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.004d0150
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.004d0150
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.005022c0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.005022c0
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.004d0150
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.004d0150
mov dword [edi], 0x594ad0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.004d0530
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.004d0530
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.004d0530
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.004d0530
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.004d0530
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.004cdd80
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4cdc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51866b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.004d0700
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.004d0700
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.004d0700
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.004d0700
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.004d0700
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0x594ae0
call fcn.004d0350
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0x594ae0
call fcn.004d0350
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.005022e9
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.005022e9
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x594ae0
call fcn.004d0350
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x594ae0
call fcn.004d0350
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.005022e9
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.005022e9
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004d0700
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e110d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e112d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e2d2d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4e1150
test byte [esp + 8], 2
je 0x4e1150
call fcn.004e2da0
mov dword [eax], 0xd
call fcn.004e2da9
mov dword [eax], 5
jmp 0x4e1129
xor eax, eax
ret

Function at 0x4f14b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4f15d3
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4f15b7
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4f1509
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4f14e7
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4f201b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4f2072
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4f2072
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4f2072
xor eax, eax
inc eax
jmp 0x4f2074
xor eax, eax
leave
ret 0x10