joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4359e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x43be00
lea eax, [esi + 0x40]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x40], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x435a44
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea ecx, [esi + 8]
mov dword [esi + 0x20], 0xc4039c
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov byte [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x48], 0
mov dword [esi + 8], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
mov edx, 0xc403c8
mov dword [esi + 0xc], 0x426240
mov dword [esi + 0x2c], 1
call fcn.00449f10
ud2

Function at 0x4372a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x437371
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4372ca
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x43733e
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x43735a
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437304
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x437322
jmp 0x437316
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43731d
cmp eax, 0x6d
jne 0x437333
mov word [esi], 4
jmp 0x43732c
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x43732c
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00449dc0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x4372d5
mov ecx, ebx
push 1
call fcn.00449dc0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x4372d5
mov edx, esp
mov ecx, edi
mov dword [esp], 0
call fcn.0044b070
ud2
Function at 0x44078f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4407ce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4407ce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4407ce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4407ce
cmp dword [ecx + 0x74], 0xe
jbe 0x4407ce
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4431c3
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 0x443260
push ebx
push esi
call fcn.0044318c
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.00443120
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44320d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44325f
push edi
push eax
call fcn.00443de0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44322d
call fcn.00441c81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44325e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443120
add esp, 0x20
test eax, eax
jne 0x44324c
push edi
call fcn.00441c81
jmp 0x443254
push ebx
call fcn.00441c81
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 0x44455d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc42c80
push 0xc42c78
push str.FlsAlloc
push 0x1f
call fcn.0044441c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444591
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c204]
call esi
jmp 0x444597
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4445db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc42c90
push 0xc42c88
push str.FlsGetValue
push 0x21
call fcn.0044441c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444612
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44461a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc42c98
push 0xc42c90
push str.FlsSetValue
push 0x22
call fcn.0044441c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444654
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44abf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x44ac61
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 0x44ac9c
cmp dword [esp + 4], 0
je 0x44ac83
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x44acb1
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0xc499dc]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0xc499dc], esi
jne 0x44ac40
mov byte [0xc499d8], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x44ac93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x44acf4
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x44ac87
mov edi, dword [esp]
jmp 0x44ac93
mov edi, dword [esi]
jmp 0x44ac92
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.0044ad30
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0xc406bc
mov dword [esp + 8], 0xc40684
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str._rustc_fdaaaf9f923281ab98b865259aa40fbf93d72c7alibrarycore_src_sliceiter.rs
mov dword [esp + 0x14], 0
call fcn.00449f10
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0xc40684
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str._rustc_fdaaaf9f923281ab98b865259aa40fbf93d72c7alibrarycore_src_sliceiter.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0044ad70
ud2
Function at 0x1000ba30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000ba89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000ba89
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000ba7a
cmp esi, edx
jae 0x1000ba89
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000ba68
cmp esi, edx
jae 0x1000ba89
cmp word [esi], 0
je 0x1000ba89
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1001a8f0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b74b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100cb2bc]
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 edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10073780
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001a971
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x1001a963
push str.NetBridge.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000aa40
push dword [ebp - 0x21c]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001a9b0
mov bl, 1
jmp 0x1001a9c3
push dword [ebp - 0x21c]
call fcn.10053460
add esp, 4
test eax, eax
sete bl
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a9e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1001aa6a
cmp dword [edi], 0
jne 0x1001aa51
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1001aa6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1001aa51
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1001aa6a
cmp dword [edi + 4], 0
je 0x1001aa6a
cmp dword [edi + 0xc], 0
je 0x1001aa6a
mov eax, 1
jmp 0x1001aa6c
xor eax, eax
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.10051a36
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100cb2bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.10073780
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x100cfe14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call edi
push str.PluginBasic.tpi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ea28
lea eax, [ebp - 0x20c]
push eax
call fcn.10053460
add esp, 4
test eax, eax
je 0x1001ea28
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001ea28
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001ea28
call eax
mov dword [esi], eax
mov ecx, dword [esi]
test ecx, ecx
jne 0x1001eaa1
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call edi
push str.UtilsLDSBasic.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ea9b
lea eax, [ebp - 0x20c]
push eax
call fcn.10053460
add esp, 4
test eax, eax
je 0x1001ea9b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001ea9b
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001ea9b
call eax
mov dword [esi], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1001eaa5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10051a36
mov esp, ebp
pop ebp
ret
Function at 0x100200f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c214
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100cb2bc]
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 esi, ecx
cmp dword [esi + 4], 0
je 0x1002023f
push 0
push 0
push 0x12
push dword [esi]
mov dword [esi + 0xc], 1
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esi + 8], 0
mov dword [ebp - 0x44], eax
je 0x10020243
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
call edi
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 8]
jae 0x10020174
push 0xa
call ebx
cmp dword [esi + 8], 0
jne 0x10020160
cmp dword [esi + 8], 0
je 0x10020243
call fcn.10042a90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002023f
push 0x3e
push str.d:work_basic_mgamejs_basicjs_basicluascriptwork_thread.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100065f0
mov byte [ebp - 4], 1
call fcn.10042a90
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x65
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003990
mov esi, eax
push str.CWorkThread::Stop__wait_thread_stop_timeout_
push esi
mov byte [ebp - 4], 2
call fcn.10004a70
add esp, 8
mov ecx, esi
push dword [ebp + 8]
call fcn.10012570
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.10004ba0
lea ecx, [ebp - 0x28]
call fcn.10004360
lea ecx, [ebp - 0x40]
call fcn.10004360
xor eax, eax
jmp 0x1002024f
mov dword [esi + 4], 0
mov eax, 1
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.10051a36
mov esp, ebp
pop ebp
ret 4
Function at 0x10020780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100207d8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x100207d8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100207d8
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x100207e1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x10020803
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push eax
call fcn.10072c80
add esp, 0xc
mov dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x1002082b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10020870
mov ebx, dword [ebp + 8]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x1002086e
lea eax, [ebp - 4]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
jmp 0x10020870
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10020884
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10021510
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x10021541
mov eax, dword [esi + 0x24]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1002156d
push 1
lea ecx, [esi - 0x24]
call fcn.10021cd0
mov eax, 1
pop esi
pop ebp
ret 0xc
cmp dword [esi + 8], 0
push edi
je 0x1002154d
mov edi, dword [esi + 0x10]
jmp 0x10021550
mov edi, dword [esi + 0xc]
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002156c
test edi, edi
je 0x1002156c
push 0
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x10021c70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x10021c9a
mov eax, dword [esi + 0x48]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10021cc6
push 1
mov ecx, esi
call fcn.10021cd0
pop esi
pop ebp
ret 8
cmp dword [esi + 0x2c], 0
push edi
je 0x10021ca6
mov edi, dword [esi + 0x34]
jmp 0x10021ca9
mov edi, dword [esi + 0x30]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10021cc5
test edi, edi
je 0x10021cc5
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 8
Function at 0x1002a170
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cdb9
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x100cb2bc]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
mov dword [ebp - 0x48], ebx
call fcn.10042a90
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1002a2d7
push 0x37
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x40], cl
lea ecx, [ebp - 0x40]
push str.d:work_basic_mgamejs_basicjs_basicwebwndweb_wnd.cc
mov dword [ebp - 0x2c], 0xf
call fcn.100065f0
push 3
push 0x100a38bc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100065f0
mov byte [ebp - 4], 1
call fcn.10042a90
mov edi, eax
lea ecx, [ebp - 0xe0]
push 0x306
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10003990
mov esi, eax
push str.GetForegroundWindow_:
push esi
mov byte [ebp - 4], 2
call fcn.1000a1f0
add esp, 8
mov ecx, esi
push ebx
call fcn.1002c0a0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe0]
call fcn.10004ba0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1002a295
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a28b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a33f
push edx
push ecx
call fcn.10051a28
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x1002a2d7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002a2cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002a344
push edx
push ecx
call fcn.10051a28
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push dword [ebp - 0x48]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, eax
push 1
push edi
push ebx
call esi
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call esi
mov eax, 1
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.10051a36
mov esp, ebp
pop ebp
ret 4
call fcn.10076ce3
call fcn.10076ce3
int3
Function at 0x1002d1d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d1cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100cb2bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.LdsWebView::IWebViewAdvanceListener.0
xor eax, eax
mov dword [esi], vtable.WndBase.1.0
mov dword [esi + 4], vtable.WndBase.0
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov dword [ebp - 4], 0
mov word [esi + 0x1c], ax
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
call fcn.1002cd80
mov dword [esi + 0x154], 0
mov eax, esi
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 1
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0x320
mov dword [esi + 0x170], 0x258
mov dword [esi + 0x17c], 0
mov dword [esi + 0x180], 0
mov dword [esi + 0x184], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret