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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x208
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00568420
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00568420
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0
push 0x17
push eax
push 0
call edi
test eax, eax
jne 0x417f64
push eax
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call edi
test esi, esi
je 0x417fb4
cmp word [esi], 0
je 0x417fb4
push esi
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00402f80
add esp, 0x14
lea eax, [ebp - 0x414]
mov ecx, ebx
push 1
push eax
call fcn.00410260
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0xe4a0]
call fcn.0041c790
jmp 0x417fcf
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0056b3b9
add esp, 0xc
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4180e4
mov esi, dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0
add esi, 0x824
mov dword [ebp - 0x418], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418007
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x20c]
je 0x41805e
push esi
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00402f80
add esp, 0x14
lea eax, [ebp - 0x414]
mov ecx, ebx
push 1
push eax
call fcn.00410260
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0xe4a0]
call fcn.0041c790
jmp 0x418073
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0056b3b9
add esp, 0xc
lea eax, [esi - 0x824]
mov ecx, ebx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00410600
test byte [ebx + 0x18], 2
je 0x4180c5
mov eax, dword [ebp - 0x41c]
lea edi, [ebx + 0x4d8]
xor edx, edx
mov ecx, edi
div dword [ebp + 0xc]
add eax, dword [ebp + 0x14]
push eax
call fcn.0041a780
test edi, edi
jne 0x4180b2
xor eax, eax
jmp 0x4180b5
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x420]
add esi, 0xa30
add dword [ebp - 0x41c], eax
sub dword [ebp - 0x418], 1
jne 0x418002
push 0
lea eax, [ebp - 0x414]
push eax
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x418130
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5886c6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp eax, 0x11
jne 0x418249
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00568420
push dword [edi]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b3b9
add esp, 0x18
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x41827b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x998]
call fcn.0040c970
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00406840
mov edx, dword [ebp - 0x220]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418202
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push esi
push str._s_s
lea eax, [edi + 0x12]
push 0x104
push eax
call fcn.00402f80
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x418242
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x41825d
cmp eax, 0x13
jne 0x41825b
push 0x80
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00406af0
int3
Function at 0x41bc70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41bd2c
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bcc0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x41bcf7
push 0x5cf7cc
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0056cddc
add esp, 0xc
test eax, eax
jne 0x41bd2c
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0056cddc
add esp, 0xc
test eax, eax
jne 0x41bd2c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005663a7
mov esp, ebp
pop ebp
ret

Function at 0x41d980
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x41da22
cmp dword [esi + 0x34], 0
jg 0x41d9a4
cmp dword [esi + 0x20], 0
jg 0x41d9a4
cmp dword [esi + 0xc], 0
jle 0x41d9ac
call fcn.0041d610
mov eax, dword [esi + 0x50]
push eax
call fcn.0056e8e7
add esp, 4
mov dword [esi + 0x50], 0
cmp dword [esi + 0x48], 0
je 0x41d9fc
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push str.D:_A_OICI_GA___BA__A_OICI_FR___WD__A_OICI_GA___SY_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x41d9ee
lea eax, [ebp - 4]
push eax
push 4
push dword [esi + 0x44]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41d9fc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x20
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 8], 0
je 0x41da22
push dword [esi + 0x44]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esi + 0x4c], 0
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41da30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x4c], 0
push esi
jne 0x41da3e
xor esi, esi
jmp 0x41da5a
mov eax, dword [ebp + 8]
push dword [ecx + 0x50]
push 1
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
call fcn.0056eb7a
add esp, 0x10
mov esi, 1
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41da75
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x421d70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0x44
push eax
push 0
push 0
push 0x200
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0xc
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
movlpd qword [ebp - 0x6c], xmm0
push eax
push dword [ebp + 8]
movlpd qword [ebp - 0x64], xmm0
push 0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x421e48
cmp dword [ebp + 0xc], 0
je 0x421e21
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421e3f
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42668a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.004278d0
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004268a3
cmp esi, 3
je 0x4266c8
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x426711
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4266eb
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00423633
jmp 0x4266fc
push 0xff
mov ecx, esi
call fcn.00422f23
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00423656
jmp 0x426735
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x426735
push dword [esi]
push dword [ebp - 4]
call fcn.0043a378
pop edi
pop esi
leave
ret 0xc
Function at 0x4267fa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004268a3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x426842
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00423633
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00423656
jmp 0x42684d
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043a378
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x427d7b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5874b8
call fcn.0056661f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x427da1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x427e01
call fcn.00423a43
push eax
lea ecx, [ebp - 0x10]
call fcn.0042291e
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x59793c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0056cf1c
push eax
call fcn.00406a60
add esp, 0x14
test esi, esi
je 0x427df4
push esi
call fcn.0056cf27
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00422fb1
mov eax, ebx
call fcn.005665e8
ret 8

Function at 0x42a4fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x42a540
call fcn.00432aa4
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a540
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42a55c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00426b23
mov ebx, eax
test edi, edi
je 0x42a55a
test esi, esi
je 0x42a55a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42af5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42b019
cmp dword [esi + 0x20], 0
je 0x42b019
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42b019
cmp dword [ebp + 8], 0
je 0x42b019
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00432aa4
push 0x59c1e0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42afea
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42b019
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0043dc2f
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x42b00a
test edi, edi
je 0x42b00a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x42b015
mov ecx, esi
call fcn.0042acfd
mov eax, ebx
jmp 0x42b01b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42f5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00432aa4
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42f5d7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0042f5f6
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 0x434abf
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x434b12
push esi
push dword [ebp + 8]
call fcn.00434ca8
mov edi, eax
test edi, edi
je 0x434b0d
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x434b0d
mov eax, dword [ebp - 8]
jmp 0x434b24
mov eax, dword [ebp + 0x10]
jmp 0x434b24
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x4361e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x43622a
call fcn.00432aa4
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x436227
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43627a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x436257
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x59793c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x436257
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x436278
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x59793c]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4401f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x440246
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x44021f
call fcn.0042585f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x440234
call fcn.0042585f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x440246
call fcn.0042585f
call fcn.00432aa4
cmp dword [eax + 0x3c], 0
je 0x44025b
push edi
mov ecx, ebx
call fcn.0043f920
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0044042d
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x440284
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x440290
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46bc8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x46bca8
call fcn.00432aa4
mov esi, dword [eax + 0xc]
push 0x5a5b84
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46bcfe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46bcfe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x46bcdd
xor esi, esi
jmp 0x46bcf3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0046bd07
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x46bd00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x506437
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x592574
call fcn.00566653
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00406b20
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5cf7cc
call fcn.00433c8f
cmp eax, 0xffffffff
jne 0x506511
push 0
push 0x5a5b40
lea ecx, [ebp - 0x4d0]
call fcn.00433c8f
cmp eax, 0xffffffff
jne 0x506511
push 0
push 0x59da24
lea ecx, [ebp - 0x4d0]
call fcn.00433c8f
cmp eax, 0xffffffff
jne 0x506511
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00406b20
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x5064e0
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x59793c]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00422fb1
jmp 0x50654a
lea eax, [ebp - 0x218]
push eax
call fcn.0056cf27
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00407520
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00422fb1
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x506537
mov edi, dword [ebp - 0x4cc]
jmp 0x50654a
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x59793c]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00422fb1
mov eax, edi
call fcn.005665fd
ret
Function at 0x51ffd4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00577290
pop ecx
test eax, eax
jne 0x520016
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402f80
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51ffdc
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x57fb2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057f7d1

Function at 0x57fb35
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057f95b
Function at 0x401120
Capabilities:
Get common file path

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00443940
sub esp, 4
call fcn.004438e0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00443980
call fcn.00443980
call fcn.004439d0
mov dword [esp + 4], eax
mov dword [esp], 0x104
call fcn.00440f50
sub esp, 8
call fcn.00443b50
call fcn.004439d0
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.00443b80
sub esp, 8
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.SHELL32.dll_SHGetFolderLocation
sub esp, 0x14
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.SHELL32.dll_SHGetPathFromIDListW
sub esp, 8
call fcn.00443980
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00443c10
sub esp, 4
call fcn.00443ad0
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00443c70
sub esp, 4
mov eax, ebx
add esp, 0x38
pop ebx
ret 8

Function at 0x401970
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00443940
sub esp, 4
call fcn.004438e0
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00443d50
sub esp, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0x45a954
lea esi, [esp + 0x1c]
mov dword [esp], esi
call fcn.00443ca0
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
sub esp, 0xc
test eax, eax
jne 0x401a38
call fcn.00443980
call fcn.00443980
call fcn.004439d0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004411a0
sub esp, 8
call fcn.00443ad0
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00443c70
sub esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00443c70
sub esp, 4
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
ret 8
mov ebx, eax
call fcn.00443980
call fcn.00443980
call fcn.004439d0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00440f50
sub esp, 8
call fcn.004439d0
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00443b80
sub esp, 8
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
sub esp, 0xc
jmp 0x4019e2