joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dd60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576032
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b3ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.005313dc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x45de0d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45dde0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0057111c
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x45de00
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x45dedb
cmp dword [ebx + 4], 0xffffffff
jne 0x45dedb
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45de40
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x45de77
cmp eax, 0x2f
je 0x45de77
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45de64
mov eax, dword [0x592f38]
mov dword [edi], eax
push 0x20
call fcn.005313dc
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.0045c5b0
mov dword [ebx], eax
test eax, eax
jne 0x45ded7
push ecx
mov ecx, ebx
mov dword [0x5b9648], 0x200
call fcn.0045df30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x45dee0
mov eax, 0x1000000
mov dword [0x5b9648], eax
test eax, eax
je 0x45df05
push ecx
mov ecx, ebx
call fcn.0045df30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.005313dc
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [0x5b83d0], 0
push eax
push 0
push 0
push 0x46b8a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46b55e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5b83d0]
xor eax, eax
test ecx, ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
mov ecx, 5
xor eax, eax
test ecx, ecx
mov dword [0x5b83d0], ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x46e610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x578f88
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [0x5b85fc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46e72f
push esi
push dword [0x5b85fc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46e72f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46e72f
push ebx
push esi
push dword [0x5b85fc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
mov ecx, eax
mov dword [ebp - 8], 0
lea ebx, [esi + 1]
push ebx
call fcn.0046c240
test esi, esi
je 0x46e6d8
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46e6ab
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x46e6d3
cmp ebx, esi
jb 0x46e6bc
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x46e6d8
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
call fcn.0055d620
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0
push dword [ebp - 0x10]
call fcn.0041c030
mov esi, eax
add esp, 4
test esi, esi
je 0x46e71a
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push esi
call fcn.0046e7a0
push esi
mov bl, al
call fcn.0041c110
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.0046c5d0
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.0046c5d0
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x46e810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 8
jb 0x46e826
mov edx, dword [eax]
push edx
push str.AddWebpToCache__s_n
call fcn.00472040
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46e85b
mov eax, dword [eax]
push ebx
push esi
push 0x579030
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x46e9d2
mov eax, dword [ebp - 4]
test eax, eax
je 0x46e9d2
push 2
push 0
push eax
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46e8aa
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
jmp 0x46e9cf
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.0046c080
push 0
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push esi
push dword [ebp - 0x20]
call sub.msvcrt.dll_fread
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x20]
call fcn.005362f0
mov ebx, eax
add esp, 0x30
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x46e9d2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46e9c9
cmp eax, dword [ebp - 8]
jne 0x46e9c9
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x46e9a9
mov edx, dword [ebp - 0xc]
push ebx
push 0x26200a
lea ecx, [edx*4]
push ecx
push dword [ebp - 8]
mov ecx, eax
push edx
call fcn.0046c4a0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x46e9ad
mov ecx, dword [esi + 8]
mov dword [esi + 8], 0
test ecx, ecx
jne 0x46e9ad
push edi
push ecx
push ecx
push 0x10
push 0x10
mov ecx, esi
call fcn.0046fb50
push 0
push 0
push 0x20
push 0x20
mov ecx, esi
mov ebx, eax
call fcn.0046fb50
push 0
push 0
push 0x30
push 0x30
mov ecx, esi
mov edi, eax
call fcn.0046fb50
push dword [ebp - 0x10]
mov esi, eax
call fcn.004bb7a0
mov ecx, dword [ebp - 0x14]
add esp, 4
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0046c9d0
mov esi, dword [ebp + 8]
mov bl, al
pop edi
jmp 0x46e9bb
xor esi, esi
jmp 0x46e9b0
mov esi, dword [ebp + 8]
push ebx
call fcn.004bb7a0
add esp, 4
xor bl, bl
test esi, esi
je 0x46e9d4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x46e9d4
push ebx
call fcn.004bb7a0
add esp, 4
xor bl, bl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46ea04
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46e9fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ea0e
push edx
push ecx
call fcn.0053140c
add esp, 8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0055d660
int3
Function at 0x46fae0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push dword [ebp + 8]
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x46fb42
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
push dword [ebp - 4]
cmovg esi, ecx
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479000
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov esi, ecx
movlpd qword [ebp - 0x24], xmm0
push eax
mov dword [ebp - 4], esi
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
test eax, eax
jle 0x479113
push edi
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, dword [esi + 0x1c]
test eax, eax
je 0x479056
mov eax, dword [eax]
test eax, eax
je 0x479056
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x479067
mov ecx, dword [ecx]
test ecx, ecx
je 0x479067
mov eax, dword [ecx]
test eax, eax
jne 0x47906f
xor edx, edx
jmp 0x479071
mov edx, dword [eax]
mov eax, dword [edx + 8]
mov ecx, esi
dec eax
shr ecx, 1
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
xor edi, edi
mov eax, dword [eax + ecx*4]
lea ecx, [eax + esi*8]
mov eax, dword [eax + esi*8]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x479102
mov ebx, ecx
nop dword [eax + eax]
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [eax + 0x74]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4790b6
mov eax, dword [eax]
test eax, eax
je 0x4790b6
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + edi]
test ecx, ecx
je 0x4790c7
mov ecx, dword [ecx]
test ecx, ecx
je 0x4790c7
mov eax, dword [ecx]
test eax, eax
jne 0x4790cf
xor edx, edx
jmp 0x4790d1
mov edx, dword [eax]
mov eax, dword [edx + 8]
mov ecx, esi
dec eax
shr ecx, 1
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
push 0
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + esi*8]
mov esi, dword [ebp - 4]
add eax, 0x7c
push eax
mov ecx, esi
call fcn.00476220
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4790a0
mov ebx, dword [ebp - 8]
jmp 0x479105
mov esi, dword [ebp - 4]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x14]
jl 0x479042
pop edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
sbb eax, dword [ebp - 0x20]
push eax
push ecx
push str._lld_n
call fcn.00472010
add esp, 0xc
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f4f0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test bl, 2
je 0x47f527
push 7
push str.Ctrl_
mov ecx, esi
call fcn.00402350
test bl, 4
je 0x47f53a
push 8
push str.Shift_
mov ecx, esi
call fcn.00402350
test bl, 1
je 0x47f54d
push 6
push str.Alt_
mov ecx, esi
call fcn.00402350
test bl, 8
je 0x47f560
push 6
push str.Win_
mov ecx, esi
call fcn.00402350
push edi
push 0x80
lea eax, [ebp - 0x80]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0x10]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
cmp edi, 0x20
jne 0x47f5a7
push str.Space
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47f5c2
lea eax, [edi - 0x21]
cmp eax, 0xe
lea eax, [ebp - 0x80]
push 0x40
push eax
ja 0x47f5bb
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea ecx, [ebp - 0x80]
lea edx, [ecx + 2]
pop edi
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f5d0
sub ecx, edx
lea eax, [ebp - 0x80]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402350
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4812e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
mov esi, ecx
mov byte [ebp - 1], 0
push edi
push 0x11
mov dword [esi + 0x74c], 0
call ebx
mov ecx, 0x8000
and ax, cx
mov word [ebp - 4], ax
movzx eax, ax
push 0x10
mov dword [ebp - 0xc], eax
call ebx
mov di, ax
mov eax, 0x8000
push 0x12
and di, ax
call ebx
mov ecx, 0x8000
and ax, cx
push 0x5b
mov word [ebp - 6], ax
setne bl
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x48135b
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x48135f
mov dl, 1
jmp 0x481362
mov dl, byte [ebp - 1]
mov ecx, dword [esi + 0x748]
test ecx, ecx
je 0x481382
cmp word [ebp - 4], 0
jne 0x481382
test di, di
jne 0x481382
cmp word [ebp - 6], di
jne 0x481382
mov bl, 1
jmp 0x481389
cmp word [ebp - 0xc], 0
je 0x481390
or dword [esi + 0x74c], 2
mov eax, dword [esi + 0x74c]
test di, di
je 0x4813a4
or eax, 4
mov dword [esi + 0x74c], eax
test bl, bl
je 0x4813b1
or eax, 1
mov dword [esi + 0x74c], eax
test dl, dl
je 0x4813be
or eax, 8
mov dword [esi + 0x74c], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047f4f0
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x4813e1
push 1
push 0x57c304
lea ecx, [ebp - 0x24]
call fcn.00402e60
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0044b740
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x481425
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48141b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481429
push edx
push ecx
call fcn.0053140c
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.0055d660
int3

Function at 0x481650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 8], 0x70b
push edi
mov edi, ecx
jne 0x4816c8
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
lea ebx, [esi + 0x18]
push dword [esi + 0x1c]
push dword [ebx]
push eax
call fcn.0044bdb0
cmp dword [esi + 0xc], 0x201
jne 0x4816be
push ebx
mov ecx, edi
call fcn.0044b9b0
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0044bae0
cmp dword [eax + 0x14], 8
jb 0x48169c
mov eax, dword [eax]
push 1
push 0x592f34
push 0x592f34
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18]
call fcn.00403070
lea ecx, [ebp - 0x30]
call fcn.00403070
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x48a590
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
lea eax, [ebp - 4]
push eax
push 0x58c034
push 1
push 0
push 0x58c084
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48a704
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi]
call fcn.0048bbe0
cmp dword [eax + 0x14], 8
jb 0x48a5d0
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
jbe 0x48a614
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0048bf90
cmp dword [eax + 0x14], 8
jb 0x48a600
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0x94], 0
jbe 0x48a63a
cmp dword [eax + 0x98], 8
lea edx, [eax + 0x84]
jb 0x48a62e
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi]
cmp dword [eax + 0xec], 0
jbe 0x48a65e
cmp dword [eax + 0xf0], 8
lea edx, [eax + 0xdc]
jb 0x48a654
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0x58c0a4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x48a6f2
push 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x592f38
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [esi]
add esp, 0xc
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x48a6ac
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
push str..lnk
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x224]
add esp, 0x18
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x48baa0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5b8428]
sub esp, 0x2b8
test eax, eax
jne 0x48bb7d
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.0040f470
add esp, 0xc
test al, al
je 0x48bb15
mov eax, dword [0x5b8424]
test eax, eax
jne 0x48baf2
push str.SHGetStockIconInfo
push str.shell32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b8424], eax
test eax, eax
je 0x48bb15
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x218
push ecx
push 0x4000
push 3
call eax
test eax, eax
cmove esi, dword [ebp - 0x214]
mov dword [0x5b8428], esi
test esi, esi
jne 0x48bb7a
lea eax, [ebp - 4]
push eax
push 0x25
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x48bb74
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b4]
test eax, eax
push dword [ebp - 4]
cmovg esi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [0x5b8428], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4944a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
je 0x4944e1
test esi, 0x10
jne 0x4944e1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x494670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x579030
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov ebx, ecx
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x494813
push dword [ebp - 4]
push 1
push 0x4c
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebx], 0x4c
jne 0x494813
mov eax, dword [ebx + 0x14]
test al, 1
je 0x4946ed
push dword [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 1
push 2
push eax
call sub.msvcrt.dll_fread
movzx eax, word [ebp + 8]
push 1
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x14]
add esp, 0x1c
test al, 2
je 0x4947fd
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
push dword [ebp - 4]
lea esi, [ebx + 0x4c]
mov edi, eax
push 1
push 8
push esi
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x50]
add esp, 0x14
sub eax, 0x1c
cmp eax, 8
ja 0x494813
push 1
push 0xfffffffffffffff8
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push dword [ebx + 0x50]
push esi
call sub.msvcrt.dll_fread
add esp, 0x1c
test byte [ebx + 0x54], 1
je 0x4947eb
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x5c]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0x18
xor edi, edi
push dword [ebp - 4]
lea esi, [ebp - 0x108]
push 1
add esi, edi
push 1
push esi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp byte [esi], 0
je 0x494796
inc edi
cmp edi, 0x104
jl 0x494770
cmp edi, 0x104
je 0x494813
lea ecx, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4947b0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebx + 0x9c]
call fcn.004027c0
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
cmp dword [ebx + 0xac], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0xc
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x494823
push eax
call sub.msvcrt.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x498350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
movzx esi, di
shr edi, 0x10
call fcn.00481830
mov eax, dword [eax + 0x48]
mov dword [ebp - 4], eax
call fcn.00481830
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xc4]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x4983ba
mov eax, ecx
shr eax, 8
movzx eax, al
cmp esi, eax
jne 0x4983b7
movzx eax, cl
cmp edi, eax
jne 0x4983b7
mov ecx, ebx
call fcn.0048a3a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x498411
cmp esi, eax
jne 0x498411
cmp edi, dword [ebp - 0xc]
jne 0x498411
mov ecx, dword [ebx + 0x1124]
test ecx, ecx
je 0x498411
push 0
call fcn.0043a960
mov ecx, dword [ebx + 0x1124]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x1124]
call fcn.004237c0
push eax
call fcn.004a3180
mov ecx, dword [ebx + 0x1124]
add esp, 4
call fcn.004a3380
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
shl esi, 8
lea eax, [ebp - 0x10]
or esi, edi
push esi
push eax
call fcn.0047a580
mov ecx, eax
call fcn.0048b810
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
test eax, eax
je 0x4984ac
push 0
push 0
push eax
push 0x4a3aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x10c]
lea eax, [ebp - 0x10]
push eax
call fcn.0047a670
mov ecx, eax
call fcn.0047b460
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea ecx, [ecx + 8]
call fcn.0040abf0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 1
jne 0x498486
push 0
mov ecx, ebx
call fcn.0049de60
mov esi, dword [ebp - 4]
test esi, esi
je 0x4984ac
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4984ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4984ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4984d1
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4984d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4984d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10