joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4565b0
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 0x45675b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45673c
mov dl, 1
mov eax, dword [0x4126dc]
call fcn.00403a1c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040492c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45672b
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.00449548
test al, al
je 0x45671e
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, 0x45676c
lea eax, [ebp - 0x254]
call fcn.004095f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45671e
xor eax, eax
push ebp
push 0x456717
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 0x4567a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x456700
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b9c
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 0x456700
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45671e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456621
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416510
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 0x456762
lea eax, [ebp - 0x260]
call fcn.0040492c
ret

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

Disassembly:
push ecx
mov eax, dword [0x495588]
cmp byte [eax + 0xad], 0
jne 0x457145
cmp dword [0x4955a0], 0
jne 0x457106
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457090
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4955a0], eax
cmp dword [0x49559c], 0
jne 0x457121
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49559c], eax
cmp dword [0x4955a4], 0
jne 0x457145
push esp
push 0
push 0
push 0x457034
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4955a4], eax
pop edx
ret
Function at 0x457318
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45732f
add esp, 0xfffffff0
call fcn.00403d70
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae14
mov eax, dword [0x491ab8]
cmp word [eax + 2], 0
jne 0x457357
mov eax, dword [0x491ab8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458dc8
mov eax, dword [0x491b70]
cmp word [eax + 2], 0
jne 0x457371
mov eax, dword [0x491b70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458fd4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4122b8]
call fcn.00403a1c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4122b8]
call fcn.00403a1c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4122b8]
call fcn.00403a1c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f57c]
call fcn.00426f58
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x457528
mov eax, dword [0x4919cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042732c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4596a4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4919cc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd98
test eax, eax
je 0x457478
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408fac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cdcc
test eax, eax
je 0x45748c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b9c
mov byte [ebx + 0xd4], 0
push ebx
push 0x458928
call fcn.0041bf90
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4918a4]
cmp byte [eax], 0
jne 0x4574dd
mov eax, ebx
call fcn.0045766c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00459880
mov eax, ebx
call fcn.0045a3e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45751d
call fcn.00403dc8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4578ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x495588]
cmp dword [eax + 0x30], 0
je 0x457996
cmp dword [ebx + 0x94], 0
jne 0x457990
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45787c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457990
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 0x457956
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457990
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.004147b8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457965
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4586b0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4586e5
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.00404a1c
jmp 0x4586f2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404980
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459a64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459ad2
mov eax, esi
call fcn.0044426c
test al, al
je 0x459ad2
mov eax, dword [ebx + 0x84]
call fcn.00443ecc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459ad2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x459ac6
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443ecc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043c2f8
jmp 0x459ad2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004598a0
pop esi
pop ebx
ret
Function at 0x45d308
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45d336
mov eax, ebx
call fcn.0045ddbc
cmp dword [ebx + 0x40], 0
je 0x45d32f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45d3a7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45d399
cmp dword [ebx + 8], 0
je 0x45d358
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45d36a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45d399
cmp dword [ebx + 8], 0
je 0x45d34b
cmp eax, 3
je 0x45d37d
dec eax
jne 0x45d34b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45d34b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45d34b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45d3c5
cmp dword [ebx + 0x14], 0xcc
je 0x45d3c5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045d3d0
pop ebx
ret

Function at 0x470b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x470b3f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x470bbe
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0046f3cc
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x470b8c
mov cx, word [esp]
sub cx, si
jmp 0x470b8e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x470b75
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x470bb4
mov cx, word [esp]
sub cx, si
jmp 0x470bb6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x470b9d
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x470c1b
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004707e4
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x470c06
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x470c1b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x470b1a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47c048
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4956d8
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x47c06a
shr eax, 1
xor eax, 0xedb88320
jmp 0x47c06c
shr eax, 1
dec edx
jne 0x47c058
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x47c051
mov byte [0x495ad8], 1
pop esi
pop ebx
ret

Function at 0x47c088
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x495ad8], 0
jne 0x47c09f
call fcn.0047c048
mov eax, edi
dec eax
test eax, eax
jl 0x47c0c7
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4956d8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x47c0a9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x47e614
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x47e6ae.0
jmp dword [ecx*4 + 0x47e647]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x47e679
sub dl, 8
je 0x47e688
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e2c0
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e318
jmp case.0x47e6ae.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x47e6ae.0
movzx ecx, byte [ecx + 0x47e6b5]
jmp dword [ecx*4 + 0x47e6c6]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e3c4
jmp case.0x47e6ae.0
cmp dl, 3
jne 0x47e6f3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e418
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e3d4
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e45c
jmp case.0x47e6ae.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x47e71e
sub dl, 8
je 0x47e72a
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e488
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e4f4
jmp case.0x47e6ae.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x47e749
sub dl, 8
je 0x47e755
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e5b0
jmp case.0x47e6ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x47e5d8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x47e7f9
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0047d87c
test eax, eax
je 0x47e7f9
mov eax, ebx
call fcn.0047e804
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x47e792
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47e804
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x47e835
dec al
je 0x47e870
dec al
je 0x47e8b5
dec al
je 0x47e91e
jmp 0x47e9a8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x47e9a8
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47e845
jmp 0x47e9a8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47e9a8
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47e880
jmp 0x47e9a8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47e9a8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x47e8e4
xor ebp, ebp
jmp 0x47e8f4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x47e8fd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47e8c5
jmp 0x47e9a8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47e9a8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x47e977
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0047c0d0
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47e932
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4815f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, 0x495af0
xor edi, edi
mov eax, dword [0x495aec]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
call fcn.004813c4
mov byte [esp], al
xor esi, esi
mov eax, dword [ebp]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
call fcn.004813c4
mov ebx, eax
movzx eax, byte [esp]
movzx edx, bl
add eax, edx
call fcn.004813c4
push eax
mov edx, esi
mov eax, dword [0x495ae8]
call fcn.00480548
pop edx
mov byte [eax + edi], dl
inc esi
cmp esi, 0xf0
jne 0x481616
inc edi
cmp edi, 0x140
jne 0x481600
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4050a0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x42eae4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44901c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], vtable.GameMgr::GMDependSoftWnd.0
mov dword [edi + 0x24], vtable.GameMgr::GMDependSoftWnd.1.0
xor ebx, ebx
mov dword [esp + 0x1c], 0xc
cmp dword [edi + 0x280], ebx
je 0x405124
mov eax, dword [edi + 0x280]
push 0xffffffffffffffff
push eax
mov byte [edi + 0x27d], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405111
mov ecx, dword [edi + 0x280]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [edi + 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x280], ebx
lea ecx, [edi + 0x3a0]
call fcn.00402680
mov eax, dword [edi + 0x394]
cmp eax, ebx
je 0x405159
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x398]
push edx
push ecx
call fcn.0040c850
mov eax, dword [edi + 0x394]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov dword [edi + 0x394], ebx
mov dword [edi + 0x398], ebx
mov dword [edi + 0x39c], ebx
mov eax, dword [edi + 0x378]
cmp eax, ebx
je 0x40517e
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [edi + 0x354]
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], ebx
mov dword [edi + 0x380], ebx
mov byte [esp + 0x1c], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [edi + 0x318]
mov byte [esp + 0x1c], 8
call fcn.004106f0
lea esi, [edi + 0x300]
call fcn.0040af40
lea ecx, [edi + 0x2d4]
mov byte [esp + 0x1c], 6
call fcn.00404600
mov esi, dword [edi + 0x2d0]
cmp esi, ebx
je 0x4051ee
cmp dword [esi], ebx
je 0x4051df
call fcn.0041ef10
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi + 0x2d0], ebx
lea ecx, [edi + 0x2b0]
mov byte [esp + 0x1c], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [edi + 0x2a8]
mov byte [esp + 0x1c], 3
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::destructor_void_]
lea esi, [edi + 0x294]
call fcn.0040af40
mov eax, vtable.GameMgr::GMUIHelperGroup.0
mov ecx, edi
mov dword [edi + 0x260], eax
mov dword [edi + 0x244], eax
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.K8UIRender.dll_public_virtual:_void___thiscall_GameMgr::GMWindowImplBase::destructor_void_]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x405340
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x280], 0
je 0x40538c
mov eax, dword [esi + 0x280]
push 0xffffffffffffffff
push eax
mov byte [esi + 0x27d], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405375
mov ecx, dword [esi + 0x280]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x280], 0
mov ecx, esi
pop esi
jmp dword [sym.imp.K8UIRender.dll_public_virtual:_void___thiscall_GameMgr::GMWindowWnd::Close_void_]

Function at 0x406c60
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x280], 0
je 0x406cac
mov eax, dword [esi + 0x280]
push 0xffffffffffffffff
push eax
mov byte [esi + 0x27d], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406c95
mov ecx, dword [esi + 0x280]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x280], 0
mov ecx, dword [esi + 0x26c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x29c]
call edx
mov ecx, dword [esi + 0x250]
mov eax, dword [ecx]
mov edx, dword [eax + 0x29c]
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public_virtual:_long_int___thiscall_GameMgr::GMWindowImplBase::OnClose_unsigned_int__unsigned_int__long_int__int__]
pop esi
ret 0x10