joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40a6da
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
jne 0x40a6da
mov dword [ebp - 0x14], 1
jmp 0x40a6e1
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40a737
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
lea eax, [eax + edx - 1]
xor edx, edx
div dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x20]
jb 0x40a735
mov dword [ebp - 4], 1
jmp 0x40a73e
mov dword [ebp - 4], 1
cmp dword [0x41b150], 0
je 0x40a820
mov dword [ebp - 0xd8], 0x94
lea edx, [ebp - 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 0x3e8
jle 0x40a820
push 0x419e40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
je 0x40a820
push str.GetDiskFreeSpaceExA
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40a813
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40a813
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xe8]
jb 0x40a80c
ja 0x40a803
mov ecx, dword [ebp - 0xe0]
cmp ecx, dword [ebp - 0xec]
jb 0x40a80c
mov dword [ebp - 4], 1
jmp 0x40a813
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 8
Function at 0x40bc50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 0
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
lea ecx, [ebp - 0x230]
push ecx
call fcn.0040c130
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x40bcb0
mov edx, dword [ebp - 0x120]
mov byte [edx], 0
push str.SoftwareWilson_WindowWareSettings_
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x419f84
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 0x20], 0
je 0x40bd65
lea eax, [ebp - 8]
push eax
push 1
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40bd65
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40bd5b
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x11c], 0
jne 0x40bdd9
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x24]
or edx, 1
push edx
push 0
lea eax, [ebp - 0x118]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40bdd9
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40bdcf
mov dword [ebp - 0x11c], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40c300
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x40c39a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, 1
test ecx, ecx
je 0x40c39a
push 0x4ff
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x102
jne 0x40c34b
jmp 0x40c39a
call fcn.0040c170
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40c35d
xor eax, eax
jmp 0x40c3a7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jae 0x40c37c
or ecx, 0xffffffff
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
jmp 0x40c385
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x40c38f
jmp 0x40c39a
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x40c31f
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x40c760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x2c], str.WBShutdownWaiter
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], sym.wbcmp44i.exe_WaitShutWndProc
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x1e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push 0x419ffc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x40], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
cmp dword [0x41b140], 0
jne 0x40c7c3
mov dword [ebp - 0x38], 6
jmp 0x40c7ca
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx ecx, ax
test ecx, ecx
jne 0x40c7fa
mov dword [0x41b2a8], 0xf7
or eax, 0xffffffff
jmp 0x40c907
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov word [ebp - 4], ax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov word [ebp - 0xc], ax
push str.WbtShutdownRun__
push 0x4204c0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx edx, byte [0x41be80]
test edx, edx
je 0x40c83f
push 0x41be80
push 0x4204c0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40c84f
push str.DEFAULT.WBT
push 0x4204c0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
movzx eax, word [ebp - 0xc]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
movzx eax, word [ebp - 4]
cdq
sub eax, edx
sar eax, 1
push eax
movzx eax, word [ebp - 0xc]
imul eax, eax, 3
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
movzx eax, word [ebp - 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0xcf0000
push 0x4204c0
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c8be
mov dword [0x41b2a8], 0xf6
or eax, 0xffffffff
jmp 0x40c907
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40c8f4
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40c8ca
cmp dword [0x41b2a8], 0
je 0x40c904
mov eax, dword [0x41b2a8]
jmp 0x40c907
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 4
Function at 0x40f735
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a178]
jne 0x40f73f
repz ret
jmp fcn.00410055

Function at 0x413ea3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410ee4
and dword [ebp - 4], 0
cmp dword [0x41bc78], 0
mov ebx, eax
jne 0x413f54
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414005
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x417594
push edi
call esi
test eax, eax
je 0x414005
push eax
call fcn.00410e72
mov dword [esp], 0x417584
push edi
mov dword [0x41bc78], eax
call esi
push eax
call fcn.00410e72
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41bc7c], eax
call esi
push eax
call fcn.00410e72
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41bc80], eax
call esi
push eax
call fcn.00410e72
pop ecx
mov dword [0x41bc88], eax
test eax, eax
je 0x413f54
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410e72
pop ecx
mov dword [0x41bc84], eax
mov eax, dword [0x41bc84]
cmp eax, ebx
je 0x413fac
cmp dword [0x41bc88], ebx
je 0x413fac
push eax
call fcn.00410eed
push dword [0x41bc88]
mov esi, eax
call fcn.00410eed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413fac
test edi, edi
je 0x413fac
call esi
test eax, eax
je 0x413fa3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413fa3
test byte [ebp - 0xc], 1
jne 0x413fac
or dword [ebp + 0x10], 0x200000
jmp 0x413fe5
mov eax, dword [0x41bc7c]
cmp eax, ebx
je 0x413fe5
push eax
call fcn.00410eed
pop ecx
test eax, eax
je 0x413fe5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413fe5
mov eax, dword [0x41bc80]
cmp eax, ebx
je 0x413fe5
push eax
call fcn.00410eed
pop ecx
test eax, eax
je 0x413fe5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bc78]
call fcn.00410eed
pop ecx
test eax, eax
je 0x414005
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414007
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4431e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x443202
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x443209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4431f8
mov eax, 1
add ebx, ebx
jne 0x44321b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44322c
jne 0x44324b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44324b
dec eax
add ebx, ebx
jne 0x443238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x443210
add ebx, ebx
jne 0x443247
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44329d
xor ecx, ecx
sub eax, 3
jb 0x443263
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4432d2
sar eax, 1
mov ebp, eax
jmp 0x44326e
add ebx, ebx
jne 0x44326e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44323c
inc ecx
add ebx, ebx
jne 0x44327c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44323c
add ebx, ebx
jne 0x443289
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44327e
jne 0x44329a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44327e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4432bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4432ae
jmp 0x4431fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4432bc
add edi, ecx
jmp 0x4431fe
pop esi
mov edi, esi
mov ecx, 0x4c7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4432da
cmp byte [edi], 9
jne 0x4432da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4432df
lea edi, [esi + 0x41000]
mov eax, dword [edi]
or eax, eax
je 0x443357
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x442cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x44394]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44330c
mov ecx, edi
jns 0x44333b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x44398]
or eax, eax
je 0x443351
mov dword [ebx], eax
add ebx, 4
jmp 0x443329
call dword [esi + 0x443a0]
mov ebp, dword [esi + 0x4439c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44338b
sub esp, 0xffffff80
jmp 0x40fff4
Function at 0x4132f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x168
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x70]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [esp + 0x174]
mov edx, dword [0x4b6684]
lea ecx, [esp + 0x6c]
push esi
push ecx
add edx, 0x128
push str._sTencentQQGameconfigusers_u
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x4b6684]
add esp, 0x10
lea eax, [esp + 0x6c]
add ecx, 0x12c
push esi
push eax
push str._sTencentQQGameconfigusers_ugamecomm.ini
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [0x4b6684]
push 0x48dde8
mov eax, dword [edx + 0x12c]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x413423
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fgets]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
push esi
lea eax, [esp + 0x14]
push 0x64
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x413417
lea ecx, [esp + 0x10]
push str.panelpage
push ecx
call edi
add esp, 8
test eax, eax
je 0x4133ee
lea edx, [esp + 0x1a]
push edx
call ebp
mov ecx, dword [0x4b6684]
add esp, 4
mov dword [ecx + 0x124], eax
mov edx, dword [0x4b6684]
mov ecx, 0x494ec0
mov eax, dword [edx + 0x124]
push eax
call fcn.00452a70
jmp 0x41339b
lea ecx, [esp + 0x10]
push str.showtip
push ecx
call edi
add esp, 8
test eax, eax
je 0x41339b
lea edx, [esp + 0x18]
push edx
call ebp
mov ecx, dword [0x4b6684]
add esp, 4
mov dword [ecx + 0x120], eax
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x168
ret 4

Function at 0x413cd0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4b6680]
sub esp, 0x20
cmp dword [eax + 0x2c9c], 1
jne 0x413d31
mov edx, dword [0x4b6838]
test edx, edx
je 0x413d49
push esi
push edi
mov ecx, 5
mov esi, str.qqgame:__exchangecoin
lea edi, [esp + 8]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push eax
movsw word es:[edi], word [esi]
mov dword [esp + 0x22], ecx
lea edi, [esp + 0xc]
mov dword [esp + 0x26], ecx
xor eax, eax
mov word [esp + 0x2a], cx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [edx]
not ecx
dec ecx
push ecx
push 0x55
mov ecx, edx
call dword [esi + 0x28]
pop edi
pop esi
add esp, 0x20
ret
push 5
push 0
push 0
push str.http:__gb.qq.com_hall_money_index.shtml
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x20
ret
Function at 0x414690
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x40
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 4]
test eax, eax
je 0x414734
test byte [eax], 8
je 0x4146be
push str.Ctrl
mov ecx, edi
call fcn.00456d5e
mov eax, dword [esi + 4]
test byte [eax], 4
je 0x4146d2
push str.Shift
mov ecx, edi
call fcn.00456d5e
mov ecx, dword [esi + 4]
test byte [ecx], 0x10
je 0x4146e6
push str.Alt
mov ecx, edi
call fcn.00456d5e
mov eax, dword [esi + 4]
test byte [eax], 1
je 0x414722
xor edx, edx
push 0
mov dx, word [eax + 2]
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esp + 8]
push 0x40
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 8]
mov ecx, edi
push edx
call fcn.00456d5e
pop edi
pop esi
add esp, 0x40
ret 4
cmp word [eax + 2], 0x1b
je 0x414734
mov al, byte [eax + 2]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_2
pop edi
pop esi
add esp, 0x40
ret 4

Function at 0x4168d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4766a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
lea edi, [esi + 8]
mov dword [esp + 0x16c], ebx
mov dword [edi + 4], ebx
mov dword [edi], 0x47beb4
lea eax, [esp + 0x10]
push ebx
push eax
push 0x154
push 0x29
mov byte [esp + 0x17c], 1
mov dword [esi], 0x47d0e8
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 4
call edi
push 0xd
mov dword [esi + 0x10], eax
call edi
push 0xe
mov dword [esi + 0x14], eax
call edi
push 7
mov dword [esi + 0x1c], eax
call edi
push 0x11
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x164]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], 0xc00000
mov dword [esi + 0x28], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x419340
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4769e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 0x4b6834
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00457a50
add esp, 4
push str...HelpDll.dll
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x480], eax
je 0x4194c8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.QGMessageBoxA
push eax
call edi
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 0x480]
push str.QGMessageBoxB
push eax
call edi
mov ecx, dword [esi + 0x480]
push str.QQExceptionFilter
push ecx
mov dword [esi + 0xc8], eax
call edi
mov edx, dword [esi + 0x480]
push str.QGShowGIF
push edx
mov dword [esi + 0xcc], eax
call edi
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0xd0], eax
cmp ecx, ebx
je 0x41949d
cmp dword [esi + 0xc8], ebx
je 0x41949d
mov ecx, dword [esi + 0xcc]
cmp ecx, ebx
je 0x41949d
cmp eax, ebx
je 0x41949d
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [esi + 0x480]
push str.GetGameZipPtr
push eax
call edi
cmp eax, ebx
mov dword [esi + 0xd4], eax
je 0x41946f
call eax
mov dword [esi + 0xd8], eax
jmp 0x419475
mov dword [esi + 0xd8], ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esi + 0x480]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0x480], ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41a470
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x476bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 0x4b6834
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00457a50
add esp, 4
push str...GameListMenu1.dll
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x404], eax
je 0x41a698
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateRMenuObject
push eax
call edi
mov dword [esi + 0x408], eax
mov eax, dword [esi + 0x404]
push str.ReleaseRMenuWnd
push eax
call edi
mov ecx, dword [esi + 0x404]
push str.AddNewMenu
push ecx
mov dword [esi + 0x40c], eax
call edi
mov edx, dword [esi + 0x404]
push str.CreateRMenu
push edx
mov dword [esi + 0x410], eax
call edi
mov dword [esi + 0x414], eax
mov eax, dword [esi + 0x404]
push str.SetLpIGameSite
push eax
call edi
mov ecx, dword [esi + 0x4a4]
mov dword [esi + 0x418], eax
cmp ecx, ebx
je 0x41a61b
mov ecx, dword [esi + 0x404]
push str.MenuOnOtherMsg
push ecx
call edi
mov ecx, dword [esi + 0x408]
mov dword [esi + 0x41c], eax
cmp ecx, ebx
je 0x41a5e2
cmp dword [esi + 0x40c], ebx
je 0x41a5e2
cmp dword [esi + 0x410], ebx
je 0x41a5e2
cmp dword [esi + 0x414], ebx
je 0x41a5e2
cmp dword [esi + 0x418], ebx
je 0x41a5e2
cmp eax, ebx
je 0x41a5e2
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esi + 0x404]
mov dword [esi + 0x408], ebx
push edx
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], ebx
mov dword [esi + 0x414], ebx
mov dword [esi + 0x418], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x404], ebx
mov dword [esi + 0x41c], ebx
jmp 0x41a698
cmp dword [esi + 0x408], ebx
je 0x41a667
cmp dword [esi + 0x40c], ebx
je 0x41a667
cmp dword [esi + 0x410], ebx
je 0x41a667
cmp dword [esi + 0x414], ebx
je 0x41a667
cmp eax, ebx
je 0x41a667
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esi + 0x404]
mov dword [esi + 0x408], ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], ebx
mov dword [esi + 0x414], ebx
mov dword [esi + 0x418], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x404], ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret