joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e1b0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.0048970d
add esp, 4
lea edx, [ebp - 4]
push edx
mov esi, eax
push esi
push ebx
call edi
mov edi, eax
test edi, edi
je 0x47e251
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea esp, [esp]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47e206
test dword [esi + 0xc], 0x100000
jne 0x47e21e
mov eax, dword [esi + 4]
push eax
jmp 0x47e218
cmp eax, 1
jne 0x47e21e
test dword [esi + 0xc], 0x100000
je 0x47e21e
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea edx, [ebp - 4]
push edx
push 0
push edi
mov dword [ebp - 4], 0
call ebx
push esi
call fcn.00489718
mov eax, dword [ebp - 4]
push eax
call fcn.0048970d
add esp, 8
lea ecx, [ebp - 4]
push ecx
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jne 0x47e1f0
lea ebx, [eax + 1]
test esi, esi
je 0x47e25e
push esi
call fcn.00489718
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x489070
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9078
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x621d30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x62d27c], 0
jne 0x4891cc
call fcn.0048a293
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4890bd
push 0x80004005
call fcn.00453e40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [0x62d3c0]
push ecx
lea edx, [ebp - 0x10]
push str._smatchLib.dll
push edx
call fcn.00453640
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x62d27c], eax
test eax, eax
jne 0x4891a9
call fcn.0048a293
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48911c
push 0x80004005
call fcn.00453e40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
push 0x5f430c
push ecx
mov byte [ebp - 4], 1
call fcn.00453640
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0048a293
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x489163
push 0x80004005
call fcn.00453e40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
push str._d_ERR_MSG
push ecx
mov byte [ebp - 4], 2
call fcn.00453640
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0
push 0
push edx
call fcn.0048b983
mov eax, dword [ebp - 0x18]
push 0
push 0
push eax
call fcn.0048b983
push 0
call fcn.005936c8
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4891cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x62d268], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x489205
mov ecx, dword [0x62d27c]
push str.TCInitialPlatform
push ecx
call esi
mov dword [0x62d268], eax
test eax, eax
jne 0x489205
push eax
push eax
push 0x5f4350
call fcn.0048b983
push 0
call fcn.005936c8
cmp dword [0x62d26c], 0
jne 0x489221
mov edx, dword [0x62d27c]
push str.TCSetExeHandle
push edx
call esi
mov dword [0x62d26c], eax
cmp dword [0x62d270], 0
jne 0x48923c
mov eax, dword [0x62d27c]
push str.TCSetExeTempPath
push eax
call esi
mov dword [0x62d270], eax
cmp dword [0x62d274], 0
jne 0x489258
mov ecx, dword [0x62d27c]
push str.TCTerminate
push ecx
call esi
mov dword [0x62d274], eax
cmp dword [0x62d278], 0
jne 0x48928d
mov edx, dword [0x62d27c]
push str.TCCmd
push edx
call esi
mov dword [0x62d278], eax
test eax, eax
jne 0x48928d
push 0
push 0
push 0x5f43b4
call fcn.0048b983
push 0
call fcn.005936c8
cmp dword [0x62d288], 0
jne 0x4892ac
mov eax, dword [0x62d27c]
push str.TCCmdMsg
push eax
call esi
mov dword [0x62d288], eax
test eax, eax
je 0x489278
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4895f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x621d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x62d3c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4896b4
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00594660
mov eax, dword [0x62d3c0]
lea edx, [ebp - 0x20c]
add esp, 0xc
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x489640
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
jmp 0x489660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489660
sub eax, edx
sar eax, 1
je 0x4896b4
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x20c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x224], 0
mov word [ebp - 0x220], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005909d4
mov esp, ebp
pop ebp
ret

Function at 0x48b58b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004978ce
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48b5c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0048b1c8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x48b622
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x48b646
cmp dword [edi + 0x74], 0
jne 0x48b646
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004978ce
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0048b5e3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48dd28
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5b20e5
call fcn.00594177
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x48dd4d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x48dd9f
call fcn.0048a293
push eax
lea ecx, [ebp - 0x10]
call fcn.00453b20
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00593cc6
push eax
call fcn.00453170
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00453f50
mov eax, esi
call fcn.0059424f
ret 8

Function at 0x495bc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x495c0f
call fcn.004978ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x495c0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x495c2b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004956c8
mov esi, eax
test edi, edi
je 0x495c29
test ebx, ebx
je 0x495c29
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x49673c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004963e0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x496786
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00466b80
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004672c0
jmp 0x496791
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004b2b6e
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x496797
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0048d60b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4967d4
call fcn.004963e0
mov dword [esi + 0xc], 1
jmp 0x4967d9
call fcn.004963e0
cmp dword [esi], 0
je 0x496822
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4967fa
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00466b80
jmp 0x49680c
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00453d20
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004672c0
jmp 0x496846
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x496846
push dword [esi]
push dword [ebp + 8]
call fcn.004b2b6e
pop esi
pop ebp
ret 0xc

Function at 0x49e564
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x621d30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x49e5a9
push 0x5c6040
push 4
push eax
call fcn.005933e2
push eax
call fcn.00453170
add esp, 0x10
jmp 0x49e5bf
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49e63f
push edi
call fcn.0059434e
mov edi, dword [eax]
call fcn.0059434e
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005942eb
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0059434e
cmp dword [eax], 0
je 0x49e613
call fcn.0059434e
push dword [eax]
call fcn.00489a69
pop ecx
jmp 0x49e61a
call fcn.0059434e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x49e63f
cmp dword [ebp - 0x234], esi
jae 0x49e63f
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x49e641
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005909d4
leave
ret
Function at 0x49e64e
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x621d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0049141b
pop ecx
cmp eax, esi
je 0x49e738
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x49e738
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00594660
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x49e738
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x49e738
cmp esi, 0x14
jge 0x49e738
push 0x10
push 0
push edi
call fcn.005923f1
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x49e727
call fcn.0059434e
cmp dword [eax], 0x22
je 0x49e727
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00593cab
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x49e6fd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x627c64], 0
jne 0x49e7c3
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x49e7ec
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0049e564
pop ecx
pop ecx
test eax, eax
jne 0x49e7ee
inc edi
cmp edi, esi
jl 0x49e7c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005909d4
leave
ret 8
Function at 0x49f419
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x49f461
call fcn.004978ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49f461
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x49f4a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x49f48d
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 0x49f48d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x49f4a1
mov ecx, dword [esi + 0x68]
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 0x4b1100
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x621d30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4b1135
xor eax, eax
jmp 0x4b1188
lea eax, [ebp - 0x210]
push eax
call fcn.00593cab
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4b1166
push 0x5c6494
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005963bd
add esp, 0xc
test eax, eax
jne 0x4b1131
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005963bd
add esp, 0xc
test eax, eax
jne 0x4b1131
lea eax, [ebp - 0x210]
push eax
call fcn.0049141b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005909d4
leave
ret

Function at 0x4ca7ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4ca7e4
call fcn.004978ce
mov esi, dword [eax + 0xc]
push dword [0x628b70]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4ca802
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4ca7fa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4ca82f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4ca7fc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004ca6f8
mov esi, eax
jmp 0x4ca821
Function at 0x52b4ad
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00578fe5
call fcn.004972eb
cmp dword [eax + 0x14], 0
jne 0x52b4ca
mov ecx, esi
pop esi
jmp fcn.0052b010
pop esi
ret

Function at 0x52caf8
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0051b0c9
call fcn.004972eb
cmp dword [eax + 0x14], 0
jne 0x52cb15
mov ecx, esi
pop esi
jmp fcn.0052c4cb
pop esi
ret

Function at 0x56f7c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x56f7d9
mov edi, dword [esi + 0xc]
jmp 0x56f819
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x56f7f2
call fcn.0048bd7e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x56f807
call fcn.0048bd7e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x56f819
call fcn.0048bd7e
call fcn.004978ce
cmp dword [eax + 0x3c], 0
je 0x56f82e
push edi
mov ecx, ebx
call fcn.0056e5ea
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0056f6db
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x56f84c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x56f858
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5909d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x621d30]
jne 0x5909de
repz ret
jmp fcn.00598e23
Function at 0x5a3508
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x621d30]
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.0059884b
and dword [ebp - 0x14], 0
cmp dword [0x62c374], 0
mov dword [ebp - 0x18], eax
jne 0x5a35bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5a3663
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ea0a8
push ebx
call edi
test eax, eax
je 0x5a3663
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5ea098
push ebx
mov dword [0x62c374], eax
call edi
push eax
call esi
push 0x5ea084
push ebx
mov dword [0x62c378], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x62c37c], eax
call edi
push eax
call esi
mov dword [0x62c384], eax
test eax, eax
je 0x5a35bb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x62c380], eax
mov eax, dword [0x62c380]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5a3614
cmp dword [0x62c384], ecx
je 0x5a3614
push eax
call esi
push dword [0x62c384]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5a3614
test ebx, ebx
je 0x5a3614
call edi
test eax, eax
je 0x5a360b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5a360b
test byte [ebp - 8], 1
jne 0x5a3614
or dword [ebp + 0x10], 0x200000
jmp 0x5a3647
mov eax, dword [0x62c378]
cmp eax, dword [ebp - 0x18]
je 0x5a3647
push eax
call esi
test eax, eax
je 0x5a3647
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5a3647
mov eax, dword [0x62c37c]
cmp eax, dword [ebp - 0x18]
je 0x5a3647
push eax
call esi
test eax, eax
je 0x5a3647
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62c374]
call esi
test eax, eax
je 0x5a3663
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5a3665
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005909d4
leave
ret
Function at 0x10690
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x10610
call dword [sym.imp.ntoskrnl.exe_vsprintf]
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, 0x10610
add eax, 0xffffffff
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 1]
mov byte [ebp - 9], dl
inc dword [ebp - 8]
cmp byte [ebp - 9], 0
jne 0x106c7
mov edi, dword [ebp - 8]
mov ax, word [section.PAGE]
mov word [edi], ax
push 0x10610
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10a90
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push 0x10a40
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x22
lea ecx, [ebp - 0x24]
push ecx
push 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10adb
mov eax, dword [ebp - 0x18]
jmp 0x10b50
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
push 0x10a68
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0x10], ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10b4e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x10b50
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10e85
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10604]
test eax, eax
mov ecx, 0xbb40
je 0x10e9c
cmp eax, ecx
jne 0x10ebf
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10604
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10604], eax
jne 0x10ebf
mov eax, ecx
mov dword [0x10604], eax
not eax
mov dword [section..data], eax
pop ebp
jmp 0x10b90