joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
not eax
je 0x4788a2
jmp 0x478880
test cl, 3
je 0x4788a2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x51d278]
add ecx, 1
sub esi, 1
jne 0x478880
cmp esi, 0x20
push ebx
push edi
jb 0x478a8c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x51d678]
xor edx, dword [ebx*4 + 0x51da78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x51d278]
add ecx, 4
xor edx, dword [eax*4 + 0x51de78]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x51d678]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x51da78]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x51d278]
add ecx, 4
xor eax, dword [edx*4 + 0x51de78]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x51d678]
xor edx, dword [ebx*4 + 0x51da78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x51d278]
xor edx, dword [eax*4 + 0x51de78]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x51d678]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x51da78]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x51d278]
xor eax, dword [edx*4 + 0x51de78]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x51d678]
xor edx, dword [ebx*4 + 0x51da78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x51d278]
xor edx, dword [eax*4 + 0x51de78]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x51d678]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x51da78]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x51d278]
and edx, 0xff
xor eax, dword [edx*4 + 0x51de78]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x51d678]
xor edx, dword [ebx*4 + 0x51da78]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x51d278]
add ecx, 4
xor edx, dword [eax*4 + 0x51de78]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x51d678]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x51da78]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x51d278]
and edx, 0xff
xor eax, dword [edx*4 + 0x51de78]
sub edi, 1
jne 0x4788b2
cmp esi, 4
jb 0x478ad9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x51d678]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x51da78]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x51d278]
and eax, 0xff
xor edi, dword [eax*4 + 0x51de78]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x478a96
test esi, esi
pop edi
pop ebx
je 0x478afd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x51d278]
add ecx, 1
sub esi, 1
jne 0x478ae0
not eax
pop esi
ret
Function at 0x47a4c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], edx
lea esi, [eax + 0x70]
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
add edx, 1
add esi, 4
cmp edx, 0x100
jb 0x47a4e7
pop esi
ret

Function at 0x47cce0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.004eb334
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x47cd03
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47cd12
mov eax, 1
pop ecx
ret
Function at 0x47d480
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jge 0x47d498
mov esi, 8
push 2
call edi
test ax, ax
jge 0x47d4a4
or esi, 1
push 1
call edi
test ax, ax
jge 0x47d4b0
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x47d4bc
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x47d4c8
or esi, 0x20
pop edi
mov ax, si
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x178]
cmp eax, ecx
je 0x47d5e7
cmp byte [ebp + 8], 0
je 0x47d5e7
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xbc]
cmp edi, eax
je 0x47d6db
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x47d653
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], edi
call ebx
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 8]
push edx
call eax
mov dword [esi + 0xbc], 0
test edi, edi
je 0x47d6db
mov edx, dword [edi]
mov eax, dword [edx + 0x128]
mov ecx, edi
call eax
cmp eax, esi
jne 0x47d6db
mov edx, dword [edi]
mov eax, dword [edx + 0xd0]
mov ecx, edi
call eax
test al, al
je 0x47d6db
mov edx, dword [edi]
mov eax, dword [edx + 0x120]
mov ecx, edi
call eax
test al, al
je 0x47d6db
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esi + 0xbc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 0x11
mov dword [esp + 0xc], edi
call ebx
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 8]
push eax
call edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47e750
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 0x1d4]
sub esp, 0x28
test eax, eax
je 0x47e774
mov edx, dword [esi + 0x178]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x47e88b
mov eax, dword [esp + 0x2c]
sub eax, 0x100
je 0x47e81e
sub eax, 4
je 0x47e7a2
sub eax, 1
jne 0x47e816
cmp dword [esi + 0xbc], eax
je 0x47e816
mov dword [esp], 5
jmp 0x47e7b2
cmp dword [esi + 0xbc], 0
je 0x47e816
mov dword [esp], 4
mov ecx, dword [esi + 0xc8]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc4]
mov word [esp + 0x18], di
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.0047d480
mov word [esp + 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0xc], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp]
push eax
call edx
xor al, al
add esp, 0x28
ret 4
cmp edi, 9
jne 0x47e816
cmp dword [esi + 0xbc], 0
je 0x47e875
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x47e875
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x120]
call edx
test al, al
je 0x47e875
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 0xa
jne 0x47e875
mov eax, dword [esi + 0xbc]
cmp byte [eax + 0x56d], 0
jne 0x47e816
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge cl
mov eax, esi
push ecx
call fcn.0047d4d0
mov al, 1
add esp, 0x28
ret 4
Function at 0x481490
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x50c948
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4814d2
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.00407330
mov edi, dword [esp + 0x4c]
mov eax, esi
push eax
lea ecx, [esp + 0x18]
add edi, 0x58
push ecx
mov dword [esp + 0x4c], 0
call fcn.00482150
cmp dword [esp + 0x34], 8
jb 0x48151c
mov edx, dword [esp + 0x20]
push edx
call fcn.004e7d7e
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
mov ebp, dword [edi + 4]
je 0x48152b
cmp esi, edi
je 0x481530
call fcn.004e89bf
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x481563
test esi, esi
jne 0x481541
call fcn.004e89bf
cmp edi, dword [esi + 4]
jne 0x48154b
call fcn.004e89bf
mov eax, dword [edi + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
Function at 0x487110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50c868
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
xor ebx, ebx
mov esi, 7
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0x80], ebx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call eax
mov ebp, eax
cmp ebp, ebx
je 0x4872a8
jmp 0x487195
mov esi, 7
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov byte [esp + 0x80], 1
push 2
mov dword [esp + 0x3c], esi
push 0x523634
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00407330
push ebx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x88], 2
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
mov ecx, esi
push ecx
push ebp
mov ecx, edi
call edx
mov esi, 8
mov byte [esp + 0x80], 1
cmp dword [esp + 0x38], esi
jb 0x487202
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x487210
lea eax, [esp + 0x40]
push eax
call fcn.004ecdb7
mov esi, dword [esp + 0x94]
add esp, 4
cmp eax, esi
je 0x487282
mov edx, dword [edi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x17]
push eax
push ebp
mov ecx, edi
mov byte [esp + 0x1f], bl
call edx
cmp byte [esp + 0x17], bl
jne 0x487251
mov ecx, dword [esp + 0x1c]
push esi
push ebp
push edi
call fcn.00487110
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x487294
mov byte [esp + 0x80], bl
cmp dword [esp + 0x54], 8
jb 0x48726c
mov eax, dword [esp + 0x40]
push eax
call fcn.004e7d7e
add esp, 4
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push ebp
mov ecx, edi
call eax
mov ebp, eax
cmp ebp, ebx
jne 0x487190
jmp 0x4872a8
cmp dword [esp + 0x54], 8
mov dword [esp + 0x18], ebp
jb 0x4872a8
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x4872a0
cmp dword [esp + 0x54], 8
jb 0x4872a8
mov edx, dword [esp + 0x40]
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x70], 8
jb 0x4872bc
mov eax, dword [esp + 0x5c]
push eax
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x70
ret 0xc
Function at 0x487960
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
sub esp, 0x20
push ebx
push ebp
push edi
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
cmp dword [esi + 0x18], 0
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
mov edi, eax
jbe 0x4879a1
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push 0
push 1
push 0x101
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4879b3
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edi
call ebx
mov ecx, dword [esi + 4]
xor eax, eax
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x487a7c
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x487a7c
cmp dword [esp + 0x14], 0x10
jne 0x487a24
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 4]
jne 0x487a3c
push 1
push edi
call ebx
push edi
call ebp
cmp dword [esp + 0x14], 0x282
jne 0x487a3c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x487a6a
cmp eax, 9
je 0x487a6a
lea ecx, [esp + 0x10]
push ecx
call fcn.0047e600
add esp, 4
test al, al
jne 0x487a63
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
je 0x487a7c
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4879f7
push 1
push edi
call ebx
push edi
call ebp
cmp dword [esp + 0x14], 0x12
jne 0x487a96
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4993f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50e3f1
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fldz
xor ebx, ebx
fstp qword [esi + 0x20]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esp + 0x14], ebx
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
lea eax, [esi + 0x88]
push eax
mov byte [esp + 0x18], 2
call fcn.00499360
mov byte [esi + 0xc9], bl
mov dword [esi + 0xcc], ebx
mov byte [esi + 0xc8], 0xff
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4a54a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00489cf0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4a555a
call fcn.00489cf0
mov eax, dword [eax + 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a555a
call fcn.00489cf0
mov eax, dword [eax + 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4a5553
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4a554c
test ebp, ebp
je 0x4a554c
push edi
push eax
push ebp
call fcn.004efdb0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
mov edi, dword [esp + 0x18]
push esi
call fcn.004a5570
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x4aca30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x120]
push edi
call edx
test al, al
je 0x4acb1f
mov eax, dword [esi]
mov edx, dword [eax + 0x188]
mov ecx, esi
call edx
xor ebx, ebx
test al, al
je 0x4acab5
cmp dword [esi + 0x544], ebx
jne 0x4acab5
push 0x2c
call fcn.004e7d83
add esp, 4
cmp eax, ebx
je 0x4acaa6
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov byte [eax + 0xc], bl
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax], vtable.GameMgr::GMEditWnd.0
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov edi, eax
jmp 0x4acaa8
xor edi, edi
mov eax, esi
mov dword [esi + 0x544], edi
call fcn.004cdf60
mov edx, dword [esi + 0x544]
mov eax, dword [edx + 4]
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xb1
push eax
call ebx
mov edi, dword [ebp + 8]
cmp dword [edi], 0xd
jne 0x4acb1f
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x448]
lea eax, [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x178]
push eax
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
mov edx, dword [edi + 0x1c]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [esi + 0x544]
mov ecx, dword [eax + 4]
push edx
push 0x7b
push ecx
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c34f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4c3511
cmp eax, edi
jge 0x4c3509
call fcn.004c2d60
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor eax, eax
cmp dword [esi + 8], eax
jle 0x4c353c
lea ecx, [eax - 8]
jmp 0x4c3520
mov dl, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], ecx
mov byte [esp + eax + 0xc], dl
add eax, 1
cmp dword [esi + 8], 0
jg 0x4c3520
cmp eax, 4
jge 0x4c355f
mov edi, dword [esi + 4]
mov edx, dword [esi]
cmp edx, edi
jb 0x4c3549
xor ecx, ecx
jmp 0x4c3551
mov cl, byte [edx]
add edx, 1
movzx ecx, cl
mov byte [esp + eax + 0xc], cl
add eax, 1
cmp eax, 4
jl 0x4c3541
mov dword [esi], edx
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x4c3599
mov dword [0x54cdd0], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x4c35b3
pop edi
pop esi
mov dword [0x54cdd0], 0x52bf78
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x4c35ca
mov ecx, ebx
mov edi, esi
call fcn.004c2da0
test eax, eax
je 0x4c3592
mov edi, dword [esi]
push ebp
mov ebp, dword [esi + 0x10]
push ebx
push edi
push ebp
call fcn.004efdb0
add esp, 0xc
add edi, ebx
add ebp, ebx
mov dword [esi + 0x10], ebp
pop ebp
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4cdf60
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push ebx
push esi
mov dword [edi + 0x20], eax
lea esi, [esp + 0xc]
mov eax, edi
call fcn.004cdf10
mov ecx, dword [edi + 0x20]
cmp byte [ecx + 0x54d], 0
mov esi, 0x40000080
je 0x4cdf89
mov esi, 0x400000a0
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [eax + 0x178]
sub edx, ecx
push edx
mov edx, dword [esp + 0x10]
sub ebx, edx
push ebx
push ecx
push edx
push 0
push esi
push 0
push eax
mov eax, edi
call fcn.00487370
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
push eax
call fcn.00481650
mov ecx, dword [eax]
mov edx, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ecx
push 0x30
push edx
call esi
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x548]
mov edx, dword [edi + 4]
push 0
push ecx
push 0xc5
push edx
call esi
mov eax, dword [edi + 0x20]
cmp byte [eax + 0x54d], 0
je 0x4ce01c
movzx eax, word [eax + 0x54e]
mov ecx, dword [edi + 4]
push 0
push eax
push 0xcc
push ecx
call esi
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x16c]
lea eax, [esp + 0xc]
push eax
call edx
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x4ce03d
mov eax, dword [eax + 4]
jmp 0x4ce040
add eax, 4
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x24], ebx
jb 0x4ce05e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004e7d7e
add esp, 4
mov edx, dword [edi + 4]
push 0
push 0
push 0xb9
push edx
call esi
mov eax, dword [edi + 4]
push 0
push 3
push 0xd3
push eax
call esi
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x120]
call eax
mov edx, dword [edi + 4]
movzx ecx, al
push ecx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x20]
movzx ecx, byte [eax + 0x54c]
mov edx, dword [edi + 4]
push 0
push ecx
push 0xcf
push edx
call esi
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x4ce0d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5467a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
add edi, 1
lea eax, [edi + edi]
call fcn.00500e00
mov esi, esp
test esi, esi
je 0x4ce18f
mov ecx, dword [ebx + 4]
push edi
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
mov eax, esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4ce140
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [ebp - 0x2c]
call fcn.00407330
push 0xffffffffffffffff
mov dword [ebp - 4], edi
mov esi, dword [ebx + 0x20]
push edi
lea edx, [ebp - 0x2c]
push edx
lea eax, [esi + 0x36c]
call fcn.00401610
mov eax, dword [esi]
mov edx, dword [eax + 0x11c]
mov ecx, esi
call edx
cmp dword [ebp - 0x14], 8
jb 0x4ce18f
mov eax, dword [ebp - 0x28]
push eax
call fcn.004e7d7e
add esp, 4
xor eax, eax
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4