joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4427d3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x442870
push ebx
push esi
call fcn.0044279c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00442730
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44281d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44286f
push edi
push eax
call fcn.004433f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44283d
call fcn.00441291
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44286e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00442730
add esp, 0x20
test eax, eax
jne 0x44285c
push edi
call fcn.00441291
jmp 0x442864
push ebx
call fcn.00441291
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x443b6d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc45508
push 0xc45500
push str.FlsAlloc
push 0x1f
call fcn.00443a2c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x443ba1
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b204]
call esi
jmp 0x443ba7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x443beb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc45518
push 0xc45510
push str.FlsGetValue
push 0x21
call fcn.00443a2c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x443c22
push dword [ebp + 8]
mov ecx, esi
call dword [0x44b204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x443c2a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc45520
push 0xc45518
push str.FlsSetValue
push 0x22
call fcn.00443a2c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x443c64
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44b204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44a180
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x44a1f1
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x44a228
cmp dword [esp + 4], 0
je 0x44a20f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x44a23b
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0xc4c9dc]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0xc4c9dc], esi
jne 0x44a1d0
mov byte [0xc4c9d8], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x44a21f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x44a27c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x44a213
mov edi, dword [esp]
jmp 0x44a21f
mov edi, dword [esi]
jmp 0x44a21e
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.0044a2b0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0xc42f0c
mov dword [esp + 8], 0xc42ed0
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0xc40990
mov dword [esp + 0x14], 0
call fcn.004494e0
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0xc42ed0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0xc40990
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0044a2e0
int3
Function at 0x401020
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0c
mov eax, dword [0x443350]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc10], eax
push edi
lea eax, [esi + 0xb44]
push eax
push str.roomtype.qxiu.com
call fcn.00418ff0
mov word [esp + 0x410], 0
mov ecx, 0x1ff
lea edi, [esp + 0x412]
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx edi, bx
push edi
lea ecx, [esp + 0x414]
push str.fh_grt_GetServerIP:__d_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bx, bx
jbe 0x401104
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR71.dll_srand]
call dword [sym.imp.MSVCR71.dll_rand]
cdq
idiv edi
lea eax, [esp + 0x414]
mov edi, dword [esi + edx*4 + 0xb44]
push edi
push edx
push str.fh_grt_GetServerIP_tt__:_d__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x401104
push eax
lea edx, [esi + 0x5a0]
push 0x4334b0
push edx
mov ebx, 1
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
jmp 0x401106
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esi, 0x5a0
push esi
push ebx
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push str.fh_grt_GetServerIP__Result_:_d__s_n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0xc14]
mov eax, ebx
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x443350]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [esp + 0x828], eax
push edi
mov esi, ecx
jne 0x40119c
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x82c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 0xb30], ebx
mov dword [esi + 0xb6c], 0
mov dword [esi + 0xb34], edi
mov dword [esp + 0x10], edi
call fcn.00401560
mov ecx, esi
call fcn.00401020
test eax, eax
jne 0x4011e9
mov ecx, esi
call fcn.004016c0
mov eax, edi
mov ecx, dword [esp + 0x82c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [esp + 0x28], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
stosb byte es:[edi], al
call fcn.004183f0
mov eax, ebx
cdq
mov dword [esp + 0x18], eax
push 0x800
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
call fcn.00418510
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
mov eax, 3
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xb6c]
test eax, eax
jne 0x4012cf
mov ecx, esi
mov dword [esi + 0xb6c], 0
call fcn.004015b0
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x26b5
lea eax, [esi + 0x5a0]
push eax
mov ecx, esi
call fcn.00401710
test eax, eax
je 0x4012bb
call ebx
mov edi, eax
call ebx
sub eax, edi
cmp eax, 0x1388
jae 0x4012c3
jmp 0x401290
mov eax, dword [esi + 0xb6c]
test eax, eax
jne 0x4012af
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, edi
cmp eax, 0x1388
jb 0x401290
jmp 0x4012c3
mov ecx, dword [esi + 0xb34]
mov dword [esp + 0x10], ecx
jmp 0x4012c3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x401234
mov ecx, esi
call fcn.004016c0
mov ecx, dword [esp + 0x82c]
mov eax, dword [esp + 0x10]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4013a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x443350]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [esp + 0x824], eax
mov esi, ecx
je 0x401448
mov ebx, dword [ebp + 0xc]
cmp ebx, 2
jl 0x401448
lea ecx, [esp + 0x10]
call fcn.00418470
push ebx
push edi
lea ecx, [esp + 0x18]
call fcn.004185c0
test eax, eax
je 0x401448
mov edx, dword [esp + 0x10]
xor eax, eax
xor ebx, ebx
mov word [esp + 0x20], bx
mov ecx, 0x1ff
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.fh_grt_DealGetRoomTypeRs
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xb30]
mov ecx, dword [esp + 0x10]
cdq
cmp ecx, eax
jne 0x401442
mov eax, dword [esp + 0x14]
cmp eax, edx
je 0x40145f
mov dword [esi + 0xb34], ebx
xor eax, eax
mov ecx, dword [esp + 0x824]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x401474
cmp eax, 1
jg 0x401474
mov dword [esi + 0xb34], eax
jmp 0x40147a
mov dword [esi + 0xb34], ebx
lea edi, [esi + 0xb70]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0xb6c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x824]
mov eax, 1
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401710
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004015b0
mov eax, dword [esp + 0x10]
push 0xf
push eax
lea ecx, [ebx + 0x14]
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
mov ax, word [esp + 0x28]
mov dx, word [esp + 0x20]
add esp, 0xc
cmp ax, 0x578
mov word [ebx + 0x24], dx
movzx eax, ax
jb 0x40174a
mov eax, 0x578
mov esi, dword [esp + 0x18]
movzx ecx, ax
mov word [ebx + 0x59e], ax
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x26]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x10]
push ecx
push 0
push ebx
push 0x4016f0
push 0
push 0
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop edi
pop esi
mov dword [ebx + 0xc], eax
pop ebx
je 0x40179d
cmp eax, 0xffffffff
je 0x40179d
mov eax, 1
ret 0x10
xor eax, eax
ret 0x10
Function at 0x401870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x280c
call fcn.00426470
mov eax, dword [0x443350]
push ebx
push esi
push edi
mov edx, ecx
mov dword [esp + 0x2814], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1010], bx
mov ecx, 0x1ff
lea edi, [esp + 0x1012]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x810], bx
mov ecx, 0x1ff
lea edi, [esp + 0x812]
rep stosd dword es:[edi], eax
push 0x3ff
lea eax, [esp + 0x1014]
push eax
mov ecx, edx
call fcn.0040e440
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov esi, dword [sym.imp.MSVCR71.dll__snwprintf]
push ecx
push edx
lea eax, [esp + 0x1018]
push eax
push str._sUsers_I64d
lea ecx, [esp + 0x820]
push 0x3ff
push ecx
call esi
lea edx, [esp + 0x828]
push edx
call fcn.0040a670
xor eax, eax
mov word [esp + 0x2c], bx
mov ecx, 0x1ff
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
push str.UserConfig.ini
stosw word es:[edi], ax
lea eax, [esp + 0x830]
push eax
push 0x433654
lea ecx, [esp + 0x38]
push 0x3ff
push ecx
call esi
lea edx, [esp + 0x40]
push ebx
push edx
call dword [sym.imp.MSVCR71.dll__waccess]
add esp, 0x38
cmp eax, 0xffffffff
jne 0x401a1a
lea eax, [esp + 0x10]
push eax
push 0x433650
push str.AutoInOutMsg
push 0x433624
call fcn.0040f610
lea ecx, [esp + 0x20]
push ecx
push 0x433620
push str.DirectQuit
push 0x433624
call fcn.0040f610
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebx
call fcn.0040f6c0
push 1
lea eax, [esp + 0x34]
push 0xa
push eax
call fcn.0040f5b0
push 1
lea ecx, [esp + 0x40]
push 0xb
push ecx
call fcn.0040f5b0
push ebx
lea edx, [esp + 0x4c]
push 0xd
push edx
call fcn.0040f5b0
xor eax, eax
mov word [esp + 0x1858], bx
mov ecx, 0x1ff
lea edi, [esp + 0x185a]
rep stosd dword es:[edi], eax
add esp, 0x48
stosw word es:[edi], ax
mov eax, dword [esp + 0xc]
push eax
push 0x433600
lea ecx, [esp + 0x1818]
push 0x3ff
push ecx
call esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1824]
push eax
push str.state
push 0x433624
call fcn.0040f610
add esp, 0x20
mov word [esp + 0x2010], bx
xor eax, eax
push ebx
mov ecx, 0x1ff
lea edi, [esp + 0x2016]
rep stosd dword es:[edi], eax
push 5
lea ecx, [esp + 0x2018]
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x2010]
push edx
push 0x4335e4
lea eax, [esp + 0x818]
push 0x3ff
push eax
call esi
lea ecx, [esp + 0x820]
push ecx
call fcn.0040a670
mov ecx, dword [esp + 0x2828]
add esp, 0x14
mov eax, 1
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401be0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1808
call fcn.00426470
mov eax, dword [0x443350]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x180c], eax
xor eax, eax
mov word [esp + 0x1008], 0
mov ecx, 0x1ff
lea edi, [esp + 0x100a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x808], 0
mov ecx, 0x1ff
lea edi, [esp + 0x80a]
rep stosd dword es:[edi], eax
push 0x3ff
lea eax, [esp + 0x100c]
push eax
mov ecx, esi
call fcn.0040e440
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
mov esi, dword [sym.imp.MSVCR71.dll__snwprintf]
push ecx
push edx
lea eax, [esp + 0x1010]
push eax
push str._sUsers_I64d
lea ecx, [esp + 0x818]
push 0x3ff
push ecx
call esi
lea edx, [esp + 0x820]
push edx
call fcn.0040a670
xor eax, eax
mov word [esp + 0x24], 0
mov ecx, 0x1ff
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
push str.UserConfig.ini
stosw word es:[edi], ax
lea eax, [esp + 0x828]
push eax
push 0x433654
lea ecx, [esp + 0x30]
push 0x3ff
push ecx
call esi
lea edx, [esp + 0x38]
push 0
push edx
call dword [sym.imp.MSVCR71.dll__waccess]
add esp, 0x38
cmp eax, 0xffffffff
jne 0x401cde
xor eax, eax
mov ecx, dword [esp + 0x180c]
call fcn.00426448
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push 0
push str.DirectQuit
push 0x433624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x180c]
call fcn.00426448
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4310a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x433198]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x443350]
push ebx
push esi
push edi
mov dword [esp + 0x81c], eax
lea eax, [esp + 0xc]
push eax
push 1
xor esi, esi
push esi
push str.HTTP_shellopencommand
push closesocket
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov word [esp + 0x18], si
mov ecx, 0x1ff
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
push esi
push 0x433b58
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40252a
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
xor edi, edi
xor ecx, ecx
cmp eax, esi
jbe 0x402515
mov ebx, 0x22
mov edx, esi
sub edx, 0
je 0x402547
dec edx
je 0x40253d
sub edx, 4
jne 0x402558
cmp word [esp + ecx*2 + 0x18], bx
jne 0x40255d
mov word [esp + ecx*2 + 0x18], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esp + edi*2 + 0x20]
push edx
call fcn.004020f0
add esp, 0xc
mov ecx, dword [esp + 0x81c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esp + ecx*2 + 0x18], 0x20
je 0x40250e
jmp 0x40255d
cmp word [esp + ecx*2 + 0x18], bx
jne 0x40255d
lea edi, [ecx + 1]
mov esi, 5
jmp 0x40255d
cmp esi, 0x64
je 0x402515
inc ecx
cmp ecx, eax
jb 0x4024f8
jmp 0x402515
Function at 0x402900
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x443350]
push ebx
mov dword [esp + 0x244], eax
mov eax, dword [ebp + 8]
xor edx, edx
cmp eax, edx
push esi
push edi
je 0x4029fb
cmp word [eax], dx
je 0x4029fb
push edx
xor eax, eax
mov dword [esp + 0x1c], edx
mov ecx, 0x8a
lea edi, [esp + 0x20]
push 2
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x4029fb
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4029dd
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
push eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.MSVCR71.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x4029ce
mov eax, dword [esp + 0x20]
cmp dword [ebp + 0xc], eax
mov dword [esp + 0x10], 1
je 0x4029ce
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402980
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor eax, eax
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x443350]
push ebx
push esi
push edi
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x418], eax
mov eax, dword [0x4433dc]
xor ebx, ebx
push 0x4337c8
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x402cf8
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [esi + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [0x4433e4], ebx
je 0x402d46
push ebx
call fcn.00418700
add esp, 4
test al, al
je 0x402d35
mov edx, dword [0x4433f8]
push edx
push 0x433d24
push 0x160
push str..TVShow.cpp
push ebx
call fcn.00418720
add esp, 0xc
push eax
call fcn.00418950
add esp, 0xc
mov eax, dword [0x4433f8]
push 2
push eax
call dword [sym.imp.launch.dll_RoomOperationInform]
add esp, 8
call dword [sym.imp.launch.dll_UninitLaunch]
mov ecx, dword [0x4433e0]
cmp ecx, ebx
je 0x402db3
call fcn.004051e0
mov edx, eax
cmp edx, ebx
jle 0x402da8
mov word [esp + 0x10], bx
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
mov ecx, dword [0x443808]
push ecx
push edx
lea edx, [esp + 0x18]
push str.tencent:__StartupApp__subcmdTianTianroomid_dsrcid_d
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x10
push ebx
push ebx
push 0x433b58
lea eax, [esp + 0x1c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [0x4433e0]
call fcn.00405550
call fcn.00423b80
mov ecx, dword [0x4433e0]
cmp ecx, ebx
je 0x402dd2
mov esi, ecx
call fcn.00403b70
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x4433d8]
cmp eax, ebx
mov dword [0x4433e0], ebx
je 0x402ded
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov dword [0x4433d8], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x414]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403450
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x431109
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa38
mov eax, dword [0x443350]
push ebx
push ebp
lea edx, [esp + 8]
push edx
mov dword [esp + 0xa40], eax
mov eax, dword [0x4433dc]
xor ebx, ebx
push 0x4337c8
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push eax
mov ebp, 1
call dword [ecx]
cmp dword [esp + 8], ebx
je 0x403650
push esi
mov esi, dword [esp + 0xa54]
push edi
mov edi, dword [sym.imp.MSVCR71.dll__wcsicmp]
push str.EnterHall
push esi
call edi
add esp, 8
test eax, eax
jne 0x4034df
push ebx
push ebx
push 0x433b58
push str.tencent:__StartupApp__subcmdTianTianroomid0srcid8
push str.open
push ebx
xor ebp, ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x403644
push str.Close_All
push esi
call edi
add esp, 8
test eax, eax
jne 0x4035f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebx
push ebx
push 1
push eax
xor ebp, ebp
call dword [ecx + 0x28]
mov edi, eax
cmp edi, ebx
jle 0x403644
mov edx, edi
imul edx, edx, 0x8c
push edx
call fcn.00423c1e
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov dword [esp + 0xa50], ebx
je 0x403541
push 0x402a10
push edi
push 0x8c
push esi
call fcn.00401d30
jmp 0x403543
xor esi, esi
cmp esi, ebx
mov dword [esp + 0xa50], 0xffffffff
je 0x403644
lea ecx, [esp + 0x23c]
call fcn.0040de00
push 0x100
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x244]
mov dword [esp + 0x244], 1
call fcn.0040e0e0
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.0040dbd0
push ebx
lea ecx, [esp + 0x40]
mov eax, 1
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xa58], eax
mov dword [esp + 0x20], eax
call fcn.0040dc20
push 0x100
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x20]
call fcn.0040df90
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push esi
push 1
push eax
call dword [ecx + 0x28]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xa50], 0xffffffff
call fcn.0040dbf0
jmp 0x403644
push str.HasActive
push esi
call edi
add esp, 8
test eax, eax
jne 0x40361f
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ebx
push ebx
push 1
push eax
xor ebp, ebp
call dword [edx + 0x28]
test eax, eax
jle 0x403644
mov dword [0x4433f4], 1
jmp 0x403644
push str.Kill_All
push esi
call edi
add esp, 8
test eax, eax
jne 0x403644
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.QXiuRoom.exe
call fcn.00402900
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov ecx, dword [esp + 0xa40]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa38]
pop ebx
call fcn.00426448
add esp, 0xa44
ret