joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7afc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6b8c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005bfcf6
mov dword [ebp - 0x14], eax
cmp dword [0x763ef4], esi
jne 0x5c7bef
push 0x800
push esi
push 0x673aac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c7b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c7ccf
push esi
push esi
push 0x673aac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c7ccf
push 0x673ac4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c7ccf
push eax
call ebx
push 0x673ad0
push edi
mov dword [0x763ef4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x673ae0
push edi
mov dword [0x763ef8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x673af4
push edi
mov dword [0x763efc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x763f04], eax
test eax, eax
je 0x5c7bec
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x763f00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c7c14
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c7c07
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], esi
je 0x5c7c29
push 4
pop eax
jmp 0x5c7cd1
cmp dword [ebp - 0x14], esi
je 0x5c7c29
push dword [0x763ef4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c7c0e
mov eax, dword [0x763f00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c7c87
cmp dword [0x763f04], edi
je 0x5c7c87
push eax
call ebx
push dword [0x763f04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c7c87
test eax, eax
je 0x5c7c87
call ecx
test eax, eax
je 0x5c7c7c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5c7c7c
test byte [ebp - 8], 1
jne 0x5c7c87
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c7cb7
mov eax, dword [0x763ef8]
cmp eax, edi
je 0x5c7cb4
push eax
call ebx
test eax, eax
je 0x5c7cb4
call eax
mov esi, eax
test esi, esi
je 0x5c7cb4
mov eax, dword [0x763efc]
cmp eax, edi
je 0x5c7cb4
push eax
call ebx
test eax, eax
je 0x5c7cb4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x763ef4]
call ebx
test eax, eax
je 0x5c7ccf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c7cd1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b2af3
mov esp, ebp
pop ebp
ret
Function at 0x5cc2c6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6b8c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005bfcf6
mov dword [ebp - 0x14], eax
cmp dword [0x763f5c], esi
jne 0x5cc3b9
push 0x800
push esi
push 0x673aac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5cc346
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5cc499
push esi
push esi
push 0x673aac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5cc499
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5cc499
push eax
call ebx
push 0x673ad0
push edi
mov dword [0x763f5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x673ae0
push edi
mov dword [0x763f60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x763f64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x763f6c], eax
test eax, eax
je 0x5cc3b6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x763f68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5cc3de
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5cc3d1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5cc3f3
push 4
pop eax
jmp 0x5cc49b
cmp dword [ebp - 0x14], esi
je 0x5cc3f3
push dword [0x763f5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5cc3d8
mov eax, dword [0x763f68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5cc451
cmp dword [0x763f6c], edi
je 0x5cc451
push eax
call ebx
push dword [0x763f6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5cc451
test eax, eax
je 0x5cc451
call ecx
test eax, eax
je 0x5cc446
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5cc446
test byte [ebp - 8], 1
jne 0x5cc451
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5cc481
mov eax, dword [0x763f60]
cmp eax, edi
je 0x5cc47e
push eax
call ebx
test eax, eax
je 0x5cc47e
call eax
mov esi, eax
test esi, esi
je 0x5cc47e
mov eax, dword [0x763f64]
cmp eax, edi
je 0x5cc47e
push eax
call ebx
test eax, eax
je 0x5cc47e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x763f5c]
call ebx
test eax, eax
je 0x5cc499
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5cc49b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b2af3
mov esp, ebp
pop ebp
ret
Function at 0x42bb8b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42bbca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42bbca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42bbca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42bbca
cmp dword [ecx + 0x74], 0xe
jbe 0x42bbca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43332b
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 0x4333c8
push ebx
push esi
call fcn.004332f4
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.00433288
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x433375
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4333c7
push edi
push eax
call fcn.00431dc0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x433395
call fcn.00431e0e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4333c6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00433288
add esp, 0x20
test eax, eax
jne 0x4333b4
push edi
call fcn.00431e0e
jmp 0x4333bc
push ebx
call fcn.00431e0e
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 0x4345d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cba0
push 0x43cb98
push str.FlsAlloc
push 0x1f
call fcn.00434496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43460b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a144]
call esi
jmp 0x434611
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x434655
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cbb0
push 0x43cba8
push str.FlsGetValue
push 0x21
call fcn.00434496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43468c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x434694
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cbb8
push 0x43cbb0
push str.FlsSetValue
push 0x22
call fcn.00434496
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4346ce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43a144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4399a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4399cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4399cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x49a889
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x49a889
lcall 0x5de5, 0x8b10c483
jmp loc.00b4fa44
Function at 0x401040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x40b07c]
xor eax, esp
mov dword [esp + 0x2a8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push str._stop
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4010a3
push str.fmtm_AF6FCACE_3E4B_4E60_96D1_ABB7CFE7EAE6
push str.FMTM
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4010a3
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x270cf
je 0x401280
push 0x104
lea eax, [esp + 0xac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
lea eax, [esp + 0xa8]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xac]
lea ecx, [esp + 0x74]
call fcn.00401620
mov ebx, 1
lea edi, [esp + 0x70]
call fcn.004014b0
push eax
lea eax, [esp + 0x90]
mov edx, edi
call fcn.00401360
mov edi, eax
lea esi, [esp + 0x70]
call fcn.00401390
mov edi, 8
cmp dword [esp + 0xa0], edi
jb 0x401146
mov edx, dword [esp + 0x8c]
push edx
call fcn.00401cb3
add esp, 4
push str.IsWow64Process
push str.kernel32.dll
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40d008], eax
test eax, eax
je 0x401180
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x40d008]
cmp dword [esp + 0x10], 0
push 0xd
lea ecx, [esp + 0x74]
mov eax, 0x40a074
jne 0x401197
mov eax, str.x86_fmtm.exe
call fcn.00401540
lea ecx, [esp + 0x70]
call fcn.004012a0
test eax, eax
jne 0x4011c0
cmp dword [esp + 0x84], edi
jb 0x401280
mov ecx, dword [esp + 0x70]
push ecx
jmp 0x401278
xor eax, eax
push 0x44
push eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004043d0
mov esi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x28], 0x44
test esi, esi
je 0x401222
push 1
mov eax, 0x40a0ac
lea ecx, [esp + 0x74]
call fcn.00401540
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401207
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x74]
call fcn.00401540
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], edi
jae 0x401233
lea eax, [esp + 0x70]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40126a
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
cmp dword [esp + 0x84], edi
jb 0x401280
mov edx, dword [esp + 0x70]
push edx
call fcn.00401cb3
add esp, 4
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401b69
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4012a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x40b07c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4012c0
mov eax, dword [esi]
jmp 0x4012c2
mov eax, esi
push 0
push eax
call fcn.00402171
add esp, 8
cmp eax, 0xffffffff
je 0x4012e6
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b69
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x4012f0
mov eax, dword [esi]
jmp 0x4012f2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4012d2
push 0x24c
lea eax, [ebp - 0x254]
push 0
push eax
mov dword [ebp - 0x258], 0
call fcn.004043d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x401326
mov esi, dword [esi]
lea ecx, [ebp - 0x258]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
je 0x401349
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401b69
mov esp, ebp
pop ebp
ret

Function at 0x401b69
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b07c]
jne 0x401b73
repz ret
jmp fcn.00402375

Function at 0x4020f2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x402119
call fcn.00402a0e
mov dword [eax], esi
call fcn.004029fb
push 0x16
pop esi
mov dword [eax], esi
call fcn.00402bce
mov eax, esi
jmp 0x40216e
test dword [ebp + 0xc], 0xfffffff9
jne 0x4020ff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402146
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402a21
pop ecx
call fcn.004029fb
mov eax, dword [eax]
jmp 0x40216e
test al, 0x10
jne 0x40216c
test al, 1
je 0x40216c
test byte [ebp + 0xc], 2
je 0x40216c
call fcn.00402a0e
mov dword [eax], 5
call fcn.004029fb
mov dword [eax], 0xd
jmp 0x40213d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40487c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403880
and dword [ebp - 0x14], 0
cmp dword [0x40cfc8], 0
mov dword [ebp - 0x18], eax
jne 0x40492f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40cfc8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40cfcc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40cfd0], eax
call edi
push eax
call esi
mov dword [0x40cfd8], eax
test eax, eax
je 0x40492f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40cfd4], eax
mov eax, dword [0x40cfd4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404988
cmp dword [0x40cfd8], ecx
je 0x404988
push eax
call esi
push dword [0x40cfd8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404988
test ebx, ebx
je 0x404988
call edi
test eax, eax
je 0x40497f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40497f
test byte [ebp - 8], 1
jne 0x404988
or dword [ebp + 0x10], 0x200000
jmp 0x4049bb
mov eax, dword [0x40cfcc]
cmp eax, dword [ebp - 0x18]
je 0x4049bb
push eax
call esi
test eax, eax
je 0x4049bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049bb
mov eax, dword [0x40cfd0]
cmp eax, dword [ebp - 0x18]
je 0x4049bb
push eax
call esi
test eax, eax
je 0x4049bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40cfc8]
call esi
test eax, eax
je 0x4049d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b69
leave
ret
Function at 0x10002c30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6fbe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x10128014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov dword [ebx], vtable.cocos2d::CCObject.0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov dword [ebx], vtable.cocos2d::CCAction.0
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x34]
mov dword [ebx], vtable.cocos2d::CCFollow.0
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
movzx eax, byte [edi + 0x30]
mov byte [ebx + 0x30], al
movzx eax, byte [edi + 0x31]
mov byte [ebx + 0x31], al
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
lea eax, [edi + 0x3c]
push eax
lea ecx, [ebx + 0x3c]
call dword [sym.imp.libcocos2d.dll_public:_void___thiscall_cocos2d::CCPoint::constructor_class_cocos2d::CCPoint_const__]
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4