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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
not eax
je 0x438282
jmp 0x438260
test cl, 3
je 0x438282
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4ccb30]
add ecx, 1
sub esi, 1
jne 0x438260
cmp esi, 0x20
push ebx
push edi
jb 0x43846c
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 + 0x4ccf30]
xor edx, dword [ebx*4 + 0x4cd330]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4ccb30]
add ecx, 4
xor edx, dword [eax*4 + 0x4cd730]
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 + 0x4ccf30]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4cd330]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4ccb30]
add ecx, 4
xor eax, dword [edx*4 + 0x4cd730]
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 + 0x4ccf30]
xor edx, dword [ebx*4 + 0x4cd330]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4ccb30]
xor edx, dword [eax*4 + 0x4cd730]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4ccf30]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4cd330]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4ccb30]
xor eax, dword [edx*4 + 0x4cd730]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4ccf30]
xor edx, dword [ebx*4 + 0x4cd330]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4ccb30]
xor edx, dword [eax*4 + 0x4cd730]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4ccf30]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4cd330]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4ccb30]
and edx, 0xff
xor eax, dword [edx*4 + 0x4cd730]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4ccf30]
xor edx, dword [ebx*4 + 0x4cd330]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4ccb30]
add ecx, 4
xor edx, dword [eax*4 + 0x4cd730]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4ccf30]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4cd330]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4ccb30]
and edx, 0xff
xor eax, dword [edx*4 + 0x4cd730]
sub edi, 1
jne 0x438292
cmp esi, 4
jb 0x4384b9
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 + 0x4ccf30]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4cd330]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4ccb30]
and eax, 0xff
xor edi, dword [eax*4 + 0x4cd730]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x438476
test esi, esi
pop edi
pop ebx
je 0x4384dd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4ccb30]
add ecx, 1
sub esi, 1
jne 0x4384c0
not eax
pop esi
ret
Function at 0x43a200
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.004acf89
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x43a223
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43a232
mov eax, 1
pop ecx
ret
Function at 0x445650
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 0x445668
mov esi, 8
push 2
call edi
test ax, ax
jge 0x445674
or esi, 1
push 1
call edi
test ax, ax
jge 0x445680
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x44568c
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x445698
or esi, 0x20
pop edi
mov ax, si
pop esi
ret

Function at 0x445790
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 0x4457b7
cmp byte [ebp + 8], 0
je 0x4457b7
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0xbc]
cmp edi, eax
je 0x4458ab
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x445823
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 0x4458ab
mov edx, dword [edi]
mov eax, dword [edx + 0x128]
mov ecx, edi
call eax
cmp eax, esi
jne 0x4458ab
mov edx, dword [edi]
mov eax, dword [edx + 0xd0]
mov ecx, edi
call eax
test al, al
je 0x4458ab
mov edx, dword [edi]
mov eax, dword [edx + 0x120]
mov ecx, edi
call eax
test al, al
je 0x4458ab
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 0x446920
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 0x1d4]
sub esp, 0x28
test eax, eax
je 0x446944
mov edx, dword [esi + 0x178]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x446a5b
mov eax, dword [esp + 0x2c]
sub eax, 0x100
je 0x4469ee
sub eax, 4
je 0x446972
sub eax, 1
jne 0x4469e6
cmp dword [esi + 0xbc], eax
je 0x4469e6
mov dword [esp], 5
jmp 0x446982
cmp dword [esi + 0xbc], 0
je 0x4469e6
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.00445650
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 0x4469e6
cmp dword [esi + 0xbc], 0
je 0x446a45
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
call edx
test al, al
je 0x446a45
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x120]
call edx
test al, al
je 0x446a45
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 0xa
jne 0x446a45
mov eax, dword [esi + 0xbc]
cmp byte [eax + 0x569], 0
jne 0x4469e6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge cl
mov eax, esi
push ecx
call fcn.004456a0
mov al, 1
add esp, 0x28
ret 4
Function at 0x449690
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c1dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
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 0x4496d2
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.00401700
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
add esi, 0x58
push ecx
mov dword [esp + 0x4c], 0
call fcn.0043bdd0
cmp dword [esp + 0x34], 8
jb 0x44971e
mov edx, dword [esp + 0x20]
push edx
call fcn.004abbe4
add esp, 4
mov edi, dword [esp + 0x14]
test edi, edi
mov ebp, dword [esi + 4]
je 0x44972d
cmp edi, esi
je 0x449732
call fcn.004ac22f
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x449765
test edi, edi
jne 0x449743
call fcn.004ac22f
cmp esi, dword [edi + 4]
jne 0x44974d
call fcn.004ac22f
mov eax, dword [esi + 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 0x44e5b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c1d78
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
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 0x44e748
jmp 0x44e635
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 0x4d151c
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00401700
push ebx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x88], 2
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
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 0x44e6a2
mov eax, dword [esp + 0x24]
push eax
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x44e6b0
lea eax, [esp + 0x40]
push eax
call fcn.004ad41e
mov esi, dword [esp + 0x94]
add esp, 4
cmp eax, esi
je 0x44e722
mov edx, dword [edi]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x17]
push eax
push ebp
mov ecx, edi
mov byte [esp + 0x1f], bl
call edx
cmp byte [esp + 0x17], bl
jne 0x44e6f1
mov ecx, dword [esp + 0x1c]
push esi
push ebp
push edi
call fcn.0044e5b0
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x44e734
mov byte [esp + 0x80], bl
cmp dword [esp + 0x54], 8
jb 0x44e70c
mov eax, dword [esp + 0x40]
push eax
call fcn.004abbe4
add esp, 4
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
push ebp
mov ecx, edi
call eax
mov ebp, eax
cmp ebp, ebx
jne 0x44e630
jmp 0x44e748
cmp dword [esp + 0x54], 8
mov dword [esp + 0x18], ebp
jb 0x44e748
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x44e740
cmp dword [esp + 0x54], 8
jb 0x44e748
mov edx, dword [esp + 0x40]
push edx
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x70], 8
jb 0x44e75c
mov eax, dword [esp + 0x5c]
push eax
call fcn.004abbe4
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.004abc64
add esp, 0x70
ret 0xc
Function at 0x44ee00
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 0x44ee41
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 0x44ee53
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 0x44ef1c
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x44ef1c
cmp dword [esp + 0x14], 0x10
jne 0x44eec4
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 4]
jne 0x44eedc
push 1
push edi
call ebx
push edi
call ebp
cmp dword [esp + 0x14], 0x282
jne 0x44eedc
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x44ef0a
cmp eax, 9
je 0x44ef0a
lea ecx, [esp + 0x10]
push ecx
call fcn.004467d0
add esp, 4
test al, al
jne 0x44ef03
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 0x44ef1c
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x44ee97
push 1
push edi
call ebx
push edi
call ebp
cmp dword [esp + 0x14], 0x12
jne 0x44ef36
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 0x459010
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 0x459031
cmp eax, edi
jge 0x459029
call fcn.00458880
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor eax, eax
cmp dword [esi + 8], eax
jle 0x45905c
lea ecx, [eax - 8]
jmp 0x459040
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 0x459040
cmp eax, 4
jge 0x45907f
mov edi, dword [esi + 4]
mov edx, dword [esi]
cmp edx, edi
jb 0x459069
xor ecx, ecx
jmp 0x459071
mov cl, byte [edx]
add edx, 1
movzx ecx, cl
mov byte [esp + eax + 0xc], cl
add eax, 1
cmp eax, 4
jl 0x459061
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 0x4590b9
mov dword [0x4ee8e8], 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 0x4590d3
pop edi
pop esi
mov dword [0x4ee8e8], 0x4d24d0
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x4590ea
mov ecx, ebx
mov edi, esi
call fcn.004588c0
test eax, eax
je 0x4590b2
mov edi, dword [esi]
push ebp
mov ebp, dword [esi + 0x10]
push ebx
push edi
push ebp
call fcn.004af7b0
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 0x4600d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c3281
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ea6c4]
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.00460040
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 0x474330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0043c750
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 0x4743ea
call fcn.0043c750
mov eax, dword [eax + 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4743ea
call fcn.0043c750
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 0x4743e3
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 0x4743dc
test ebp, ebp
je 0x4743dc
push edi
push eax
push ebp
call fcn.004af7b0
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.00474400
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 0x47b970
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 0x47ba5e
mov eax, dword [esi]
mov edx, dword [eax + 0x188]
mov ecx, esi
call edx
xor ebx, ebx
test al, al
je 0x47b9f4
cmp dword [esi + 0x540], ebx
jne 0x47b9f4
push 0x2c
call fcn.004abce7
add esp, 4
cmp eax, ebx
je 0x47b9e4
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
jmp 0x47b9e6
xor eax, eax
mov dword [esi + 0x540], eax
push eax
mov eax, esi
call fcn.0048aae0
mov edx, dword [esi + 0x540]
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 0x47ba5e
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 + 0x540]
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 0x48aae0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push esi
mov dword [ebx + 0x20], eax
push edi
lea esi, [esp + 0xc]
mov eax, ebx
call fcn.0048aa90
mov ecx, dword [ebx + 0x20]
cmp byte [ecx + 0x549], 0
mov esi, 0x40000080
je 0x48ab0e
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 edi, dword [esp + 0x14]
mov eax, dword [eax + 0x178]
sub edx, ecx
push edx
mov edx, dword [esp + 0x10]
sub edi, edx
push edi
push ecx
push edx
push 0
push esi
push 0
push eax
mov eax, ebx
call fcn.0044e810
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov edi, eax
call fcn.00449850
mov ecx, dword [eax]
mov edx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ecx
push 0x30
push edx
call esi
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0x544]
mov edx, dword [ebx + 4]
push 0
push ecx
push 0xc5
push edx
call esi
mov eax, dword [ebx + 0x20]
cmp byte [eax + 0x549], 0
je 0x48aba2
movzx eax, word [eax + 0x54a]
mov ecx, dword [ebx + 4]
push 0
push eax
push 0xcc
push ecx
call esi
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x16c]
lea eax, [esp + 0xc]
push eax
call edx
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x48abc3
mov eax, dword [eax + 4]
jmp 0x48abc6
add eax, 4
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x24], edi
jb 0x48abe4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004abbe4
add esp, 4
mov edx, dword [ebx + 4]
push 0
push 0
push 0xb9
push edx
call esi
mov eax, dword [ebx + 4]
push 0
push 3
push 0xd3
push eax
call esi
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x120]
call eax
mov edx, dword [ebx + 4]
movzx ecx, al
push ecx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax + 0x548]
mov edx, dword [ebx + 4]
push 0
push ecx
push 0xcf
push edx
call esi
mov eax, dword [ebx + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 4]
pop edi
pop esi
pop ebx
add esp, 0x1c
mov dword [esp + 4], ecx
jmp dword [sym.imp.USER32.dll_SetFocus]
Function at 0x48ac60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3018
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ea6c4]
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.004ae200
mov esi, esp
test esi, esi
je 0x48ad1f
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 0x48acd0
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [ebp - 0x2c]
call fcn.00401700
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.004017d0
mov eax, dword [esi]
mov edx, dword [eax + 0x11c]
mov ecx, esi
call edx
cmp dword [ebp - 0x14], 8
jb 0x48ad1f
mov eax, dword [ebp - 0x28]
push eax
call fcn.004abbe4
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.004abc64
mov esp, ebp
pop ebp
ret 4

Function at 0x48b760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c3b98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0xc]
call fcn.004263d0
mov esi, 0x10
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], esi
jb 0x48b7a9
mov eax, dword [eax + 4]
jmp 0x48b7ac
add eax, 4
push ebx
mov ecx, eax
call fcn.0048e370
cmp dword [esp + 0x24], esi
jb 0x48b7c7
mov eax, dword [esp + 0x10]
push eax
call fcn.004abbe4
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4