joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dc93
Capabilities:
Terminate thread

Disassembly:
push 8
mov eax, 0x4b5700
call fcn.0044830e
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CDictBar.5.0
mov dword [esi + 0x4a0], 0x4c1f4c
mov dword [esi + 0x4f4], 0x4c1f44
mov dword [esi + 0x504], 0x4c1f3c
mov dword [esi + 0x508], 0x4c1eec
mov dword [esi + 0x518], 0x4c1ee0
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea edi, [esi + 0x6b4]
push dword [edi]
mov dword [ebp - 4], 3
call ebx
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [edi], 0
lea eax, [ebp - 0x10]
push eax
lea edi, [esi + 0x6b8]
push dword [edi]
call ebx
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [edi], 0
push 0
push 1
lea ecx, [esi + 0x698]
call fcn.00401b9c
lea ecx, [esi + 0x688]
call fcn.00425910
lea ecx, [esi + 0x530]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CMarkup::destructor_void_]
lea ecx, [esi + 0x51c]
mov dword [esi + 0x518], 0x4c1ed8
call fcn.00425910
lea ecx, [esi + 0x508]
mov byte [ebp - 4], 1
call fcn.00426561
lea ecx, [esi + 0x4f4]
mov byte [ebp - 4], 0
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CNotifyPump::destructor_void_]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [sym.imp.DuiLib32.dll_public_virtual:_void___thiscall_DuiLib::CContainerUI::destructor_void_]
call fcn.004483e6
ret
Function at 0x41e497
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x38
mov eax, 0x4b589a
call fcn.0044830e
call fcn.004037ad
mov ecx, eax
call fcn.004017cd
mov esi, eax
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x38], esi
call fcn.0041dc2b
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.0041dc2b
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0041803b
xor ebx, ebx
inc ebx
jmp 0x41e652
lea ecx, [ebp + 0x44]
call fcn.0040368a
mov esi, dword [eax]
push 0x4bad60
lea ecx, [ebp + 0x1c]
call fcn.004022a8
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp + 0x1c]
mov edi, eax
call fcn.00401b9c
call fcn.004037ad
mov ecx, eax
call fcn.00409e7a
push eax
lea ecx, [ebp + 0x4c]
call fcn.004022a8
push str.Dict
lea ecx, [ebp + 0x4c]
mov dword [ebp - 4], ebx
call fcn.004041bf
push 0x4bb09c
lea ecx, [ebp + 0x4c]
call fcn.004041bf
cmp dword [edi + 0x18], 8
jb 0x41e568
mov edi, dword [edi + 4]
jmp 0x41e56b
add edi, 4
push edi
lea ecx, [ebp + 0x4c]
call fcn.004041bf
push str..wncl
lea ecx, [ebp + 0x4c]
call fcn.004041bf
cmp dword [ebp + 0x64], 8
mov eax, dword [ebp + 0x50]
jae 0x41e58d
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e5d9
push 0x4bae5c
lea ecx, [ebp - 0x28]
call fcn.004022a8
push 0x4bad20
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.004022a8
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call dword [eax + 8]
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401b9c
lea ecx, [ebp - 0x28]
jmp 0x41e618
push 0x4bb098
lea ecx, [ebp - 0x44]
call fcn.004022a8
push 0x4bad20
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004022a8
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call dword [eax + 8]
push 0
push ebx
lea ecx, [ebp]
call fcn.00401b9c
lea ecx, [ebp - 0x44]
push 0
push ebx
call fcn.00401b9c
or dword [ebp - 4], 0xffffffff
push 0
push ebx
lea ecx, [ebp + 0x4c]
call fcn.00401b9c
lea ecx, [ebp + 0x44]
call fcn.004036cf
mov eax, dword [ebp + 0x38]
push eax
push dword [eax + 8]
lea ecx, [ebp + 0x3c]
call fcn.0041dc2b
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0041803b
test al, al
je 0x41e4f4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.004482ff
add ebp, 0x6c
leave
ret

Function at 0x41ef3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x41ef0d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6b8], eax
pop esi
leave
ret 4
Function at 0x41efe0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov esi, ecx
mov ecx, dword [esi + 0x514]
push str.dictbar_commonusedict
call edi
mov ecx, dword [esi + 0x514]
push str.dictbar_recommenddict
mov dword [esi + 0x680], eax
call edi
mov ecx, dword [esi + 0x514]
push str.dictbar_commonusedict_setheight
mov dword [esi + 0x684], eax
call edi
mov ecx, dword [esi + 0x514]
push str.dictbar_recommenddict_setheight
mov dword [esi + 0x678], eax
call edi
lea ecx, [esi + 0x508]
mov dword [esi + 0x67c], eax
call fcn.00426335
mov ecx, esi
call fcn.0041dbe4
pop edi
mov ecx, esi
pop esi
jmp fcn.0041efb8
Function at 0x4208a0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov esi, ecx
mov ecx, dword [esi + 0x4ec]
push str.OnCandidateNum
call edi
mov ecx, dword [esi + 0x4ec]
push str.generalbar_wbinput
mov dword [esi + 0x644], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.generalbar_pyinput
mov dword [esi + 0x64c], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.generalbar_spinput
mov dword [esi + 0x650], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.generalbar_wbpyinput
mov dword [esi + 0x658], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.generaldefaultinput
mov dword [esi + 0x654], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.generalbar_use_pinyin_fuzzy
mov dword [esi + 0x660], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.generalbar_ck_use_sp
mov dword [esi + 0x664], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.pinyinfuzzy
mov dword [esi + 0x65c], eax
call edi
mov ecx, dword [esi + 0x4ec]
push 0x4c24c0
mov dword [esi + 0x66c], eax
call edi
mov ecx, dword [esi + 0x4ec]
push str.OnSelectSPMode
mov dword [esi + 0x668], eax
call edi
lea ecx, [esi + 0x4e0]
mov dword [esi + 0x648], eax
call fcn.00426335
mov ecx, esi
call fcn.0041f297
mov ecx, esi
call fcn.0041f30c
mov ecx, esi
call fcn.0041fe68
xor eax, eax
push eax
push eax
push esi
push 0x420808
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x423b08
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4240dd
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x4240f3
push 0x80004005
call fcn.0040371b
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4240f6
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x424125
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00423ad3
mov edi, eax
cmp edi, esi
je 0x42418d
lea ecx, [ebp - 0x70]
call fcn.00423a6e
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4241a5
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00424125
cmp eax, esi
jne 0x4241d8
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x424195
lea ecx, [ebp - 0x70]
call fcn.00423a6e
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00423a6e
mov eax, esi
jmp 0x424173
Function at 0x4250c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x4b62a6
call fcn.00448341
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x410]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x18], eax
call dword [0x4f7034]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
jne 0x42513a
call fcn.00423e99
mov esi, eax
jmp 0x425234
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x425157
call fcn.00423e99
jmp 0x425229
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x42514d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x4251be
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x42518a
lea ecx, [ebp]
call fcn.00424034
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00424083
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004482ff
add ebp, 0x408
leave
ret 0x10
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0042456e
mov dword [ebp - 4], 1
jmp 0x4251e7
mov ebx, dword [ebp]
cmp ebx, esi
jne 0x4251f5
mov esi, 0x8007000e
jmp 0x42522b
call dword [0x4f7034]
push edi
push ebx
push edi
push dword [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x42514d
mov ecx, dword [ebp]
push dword [ebp + 0x41c]
mov word [ecx + eax*2], si
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.00424fa1
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x42518f
lea ecx, [ebp]
call fcn.00424034
jmp 0x42518f

Function at 0x42583c
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
call fcn.00405a97
mov ecx, eax
pop esi
jmp fcn.00419451

Function at 0x425858
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x3c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
call fcn.00405a97
mov ecx, eax
pop esi
jmp fcn.00419451
Function at 0x42bf84
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x1380]
mov eax, 0x1400
call fcn.00448bd0
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x137c], eax
push ebx
push esi
mov esi, dword [ebp + 0x1388]
push esi
lea eax, [ebp + 0x1d4]
push str._s.
push eax
mov dword [ebp - 0x80], ecx
call fcn.00448afe
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42c082
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42c082
cmp word [ebp - 0x50], 0x2e
je 0x42bfdf
cmp word [ebp - 0x4e], 0
je 0x42bfdf
cmp word [ebp - 0x4e], 0x2e
jne 0x42c00e
cmp word [ebp - 0x4c], 0
je 0x42bfdf
test byte [ebp - 0x7c], 0x10
je 0x42c057
and word [ebp + 0x1174], 0
push 0x206
lea eax, [ebp + 0x1176]
push 0
push eax
call fcn.00448590
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x1174]
push 0x4bade0
push eax
call fcn.00448afe
mov ecx, dword [ebp - 0x80]
add esp, 0x1c
lea eax, [ebp + 0x1174]
push eax
call fcn.0042bf84
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x9a4]
push 0x4bae6c
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp + 0x9a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42bfdf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x137c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0x1380
leave
ret 4
Function at 0x4309bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x430a02
call fcn.0042ddac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430a02
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x430a45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x430a2e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x430a2e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x430a42
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x433179
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4331a7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4331c5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004330e3
jmp 0x4331c5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4331c5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004330e3
test edi, edi
mov eax, edi
jne 0x4331af
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f99b8]
test ecx, ecx
je 0x433288
jmp 0x433178
ret 8

Function at 0x439f06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x439f49
call fcn.0042ddac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x439f49
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x439f64
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00439ac0
test ebx, ebx
mov esi, eax
je 0x439f62
test edi, edi
je 0x439f62
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4482ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f5a90]
jne 0x448309
repz ret
jmp fcn.00451e8c
Function at 0x45d4bb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00450555
xor ebx, ebx
cmp dword [0x4fc1d0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x45d590
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x45d4fb
xor eax, eax
jmp 0x45d654
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45d4f4
push eax
call fcn.004504f2
mov dword [esp], 0x4c9db0
push edi
mov dword [0x4fc1d0], eax
call esi
push eax
call fcn.004504f2
mov dword [esp], 0x4c9d9c
push edi
mov dword [0x4fc1d4], eax
call esi
push eax
call fcn.004504f2
mov dword [0x4fc1d8], eax
lea eax, [ebp - 8]
push eax
call fcn.0044ee91
test eax, eax
pop ecx
pop ecx
je 0x45d55e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00447b60
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x45d590
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004504f2
cmp eax, ebx
pop ecx
mov dword [0x4fc1e0], eax
je 0x45d590
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004504f2
pop ecx
mov dword [0x4fc1dc], eax
mov eax, dword [0x4fc1dc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x45d609
cmp dword [0x4fc1e0], esi
je 0x45d609
push eax
call fcn.0045055e
pop ecx
call eax
cmp eax, ebx
je 0x45d5d6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4fc1e0]
call fcn.0045055e
pop ecx
call eax
test eax, eax
je 0x45d5d6
test byte [ebp - 0x18], 1
jne 0x45d609
lea eax, [ebp - 0xc]
push eax
call fcn.0044eec8
test eax, eax
pop ecx
je 0x45d5f1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00447b60
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x45d600
or dword [ebp + 0x10], 0x200000
jmp 0x45d63a
or dword [ebp + 0x10], 0x40000
jmp 0x45d63a
mov eax, dword [0x4fc1d4]
cmp eax, esi
je 0x45d63a
push eax
call fcn.0045055e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45d63a
mov eax, dword [0x4fc1d8]
cmp eax, esi
je 0x45d63a
push dword [ebp - 4]
push eax
call fcn.0045055e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4fc1d0]
call fcn.0045055e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46582e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004657c3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00448590
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46587d
cmp dword [ebp - 0x1c], 5
jb 0x465895
jmp 0x465891
cmp dword [ebp - 0x10], 1
jne 0x465895
cmp dword [ebp - 0x1c], 4
ja 0x465891
jne 0x465895
cmp dword [ebp - 0x18], 0
jbe 0x465895
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4caee4
call fcn.00423633
test eax, eax
jge 0x4658b6
mov byte [0x4f768c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004482ff
add ebp, 0x78
leave
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4b8503
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4f5a90]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x4fc57c
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4fc57c
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4bb0ad
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004659d0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x466720
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b8728
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f5a90]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x466762
push edi
push edi
push edi
push 2
call fcn.00467eb0
xor al, al
jmp 0x4668ff
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x466781
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x466770
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.0044da1e
push ebp
call fcn.0045be6d
push 0
push 0
push ebp
mov edi, eax
call fcn.0044da1e
add esp, 0x1c
test edi, edi
jne 0x4667c5
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.00467eb0
xor al, al
jmp 0x4668ff
mov dword [esp + 0x14], 0x4fc57c
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00465930
lea eax, [edi + 1]
push eax
call fcn.0042d4b7
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.00492a4f
add esp, 0x14
cmp eax, 1
je 0x466835
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00467eb0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x4fc57c
je 0x46682e
push eax
call fcn.0042d4e2
add esp, 4
xor al, al
jmp 0x4668ff
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x4668a7
mov cl, byte [esi]
cmp cl, 0xa
jne 0x466865
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00465ac0
add esi, 1
mov eax, esi
jmp 0x4668a2
cmp cl, 0xd
jne 0x46689f
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x46687d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00465ac0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.00465ac0
cmp byte [esi + 1], 0xa
jne 0x46685e
add esi, 2
mov eax, esi
jmp 0x4668a2
add esi, 1
cmp byte [esi], 0
jne 0x466845
sub esi, eax
je 0x4668b6
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00465ac0
push ebp
call fcn.0042d4e2
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x46681e
cmp eax, 0x4fc57c
je 0x4668fd
push eax
call fcn.0042d4e2
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8