joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473a60
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0x18]
test ecx, 0x400
je 0x473a78
or dword [esi], 0x80
test ecx, 0x800
je 0x473a86
or dword [esi], 0x100
test cl, 1
je 0x473a91
or dword [esi], 0x80000000
test ecx, 0x100
je 0x473a9f
or dword [esi], 0x20000000
test ecx, 0x200
je 0x473aad
or dword [esi], 0x10000
test cl, cl
jns 0x473ab4
or dword [esi], 4
mov edx, dword [ebp + 8]
test cl, 2
je 0x473ac4
or dword [esi], 0x40000000
jmp 0x473ad4
test cl, 4
je 0x473ad4
mov eax, dword [esi]
mov dword [edx], eax
or eax, 0x100
mov dword [esi], eax
mov edx, ecx
and edx, 0x20000000
push ebx
test cl, 8
je 0x473aff
test edx, edx
mov eax, 5
mov ebx, 2
cmove ebx, eax
mov eax, dword [ebp + 0x10]
neg edx
sbb edx, edx
add edx, 2
mov dword [eax], edx
jmp 0x473b1e
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x473b13
mov dword [eax], 4
mov ebx, 3
jmp 0x473b1e
mov dword [eax], 3
mov ebx, 1
mov eax, dword [ebp + 0xc]
mov dword [edi], ebx
pop ebx
test cl, 0x10
je 0x473b2c
or dword [eax], 1
test cl, 0x20
je 0x473b34
or dword [eax], 2
test cl, 0x40
je 0x473b3c
or dword [eax], 4
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
test ecx, ecx
jns 0x473b52
or dword [edi], 0x4000000
or dword [edx], 0x1000
test ecx, 0x10000000
je 0x473b66
or dword [edi], 0x2000000
or dword [edx], 0x4000
test ecx, 0x8000000
je 0x473b77
or dword [edi], 0x2000000
or dword [edx], 1
test ecx, 0x40000
je 0x473b8b
or dword [edi], 0x200000
or dword [edx], 0x200000
mov eax, ecx
and eax, 0x7000000
je 0x473be5
cmp eax, 0x6000000
ja 0x473bd5
je 0x473bca
cmp eax, 0x4000000
je 0x473bb9
cmp eax, 0x5000000
jne 0x473be5
or dword [edi], 0x10000000
or dword [edx], 0x800
jmp 0x473be5
mov eax, dword [ebp + 0x20]
or dword [edi], 0x2100
or dword [eax], 0x2100
jmp 0x473be5
or dword [edi], 0x8000000
or dword [edx], 4
jmp 0x473be5
cmp eax, 0x7000000
jne 0x473be5
or dword [edi], 0x80000000
or dword [edx], 2
test ecx, 0x10000
jne 0x473c08
or dword [esi], 0x100000
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x473c03
or eax, 0x100000
mov dword [esi], eax
or dword [edx], 0x20
jmp 0x473c0e
or dword [edi], 0x40000000
pop edi
pop esi
test ecx, 0xc000
je 0x473c1e
or dword [edx], 0x100
pop ebp
ret
Function at 0x475800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov dword [ebx], 0
cmp word [esi], 0x2a
jne 0x475884
push 5
lea eax, [esi + 2]
push 0x534830
push eax
call fcn.004c90c2
add esp, 0xc
test eax, eax
jne 0x475884
push 0x10
push eax
lea eax, [esi + 0xc]
push eax
call fcn.004c6f7f
add esp, 0xc
cmp eax, 0xffffffff
je 0x475884
push 0
lea edx, [ebp - 0x48]
mov dword [ebp - 8], 0x10002
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.00475580
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmove ecx, dword [ebp - 0x48]
mov dword [ebx], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
mov eax, dword [0x554c94]
xor edi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4758a8
push edi
mov ecx, eax
call dword [0x4f933c]
call dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4758be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x554c94]
test esi, esi
je 0x4758d5
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x4f933c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x475a40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x554c88], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
je 0x475bf7
cmp dword [0x554c78], 0
je 0x475bf7
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 7
push 0x5348d0
movups xmmword [ebp - 0x38], xmm0
push esi
mov word [ebp - 0x38], ax
call fcn.004c90c2
add esp, 0xc
test eax, eax
jne 0x475aa5
add esi, 8
jmp 0x475abe
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.004758f0
test eax, eax
jne 0x475abe
cmp dword [ebp - 0x24], 8
lea esi, [ebp - 0x38]
cmovae esi, dword [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
push 4
xor eax, eax
mov dword [ebp - 0xc], 7
movups xmmword [ebp - 0x20], xmm0
push 0x534884
lea ecx, [ebp - 0x20]
mov word [ebp - 0x20], ax
call fcn.0040a680
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475af0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.0040a5c0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
mov esi, dword [0x554c98]
mov ecx, esi
cmovae eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [0x4f933c]
call esi
mov ecx, 0x40
test edi, edi
je 0x475b48
cmp dword [edi + 0x808], 0
mov eax, dword [edi + 0x804]
je 0x475b4a
mov ecx, 0x42
jmp 0x475b4a
xor eax, eax
mov esi, dword [0x554c88]
push 0
push 0
push 1
push 3
push 0
push 0x10
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x48]
push 0
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], ecx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x64], 0x18
push 1
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x5c], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
call dword [0x4f933c]
call esi
mov edi, eax
test edi, edi
jne 0x475bbd
push dword [ebp - 0x4c]
mov esi, dword [0x554c78]
mov ecx, esi
call dword [0x4f933c]
call esi
cmp dword [ebp - 0x44], 1
jne 0x475bd4
mov edi, 0xb7
jmp 0x475bd4
mov esi, dword [0x554c90]
test esi, esi
je 0x475bd4
push edi
mov ecx, esi
call dword [0x4f933c]
call esi
mov edi, eax
lea ecx, [ebp - 0x20]
call fcn.0040aa40
lea ecx, [ebp - 0x38]
call fcn.0040aa40
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x554c94]
mov dword [ebp - 0x4c], 1
test ebx, ebx
je 0x475c17
push 0
mov ecx, ebx
call dword [0x4f933c]
call ebx
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x800]
neg edi
sbb edi, edi
and edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x475c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x475c3b
xor ebx, ebx
mov esi, dword [0x554c94]
test esi, esi
je 0x475c52
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x4f933c]
call esi
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x475c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.004b0170
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x554c94]
push edi
xor edi, edi
mov dword [ebp - 0x10008], ecx
lea ebx, [edi + 1]
test esi, esi
je 0x475cac
push edi
mov ecx, esi
call dword [0x4f933c]
call esi
mov ebx, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x475ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x475cf7
lea edx, [ebp - 0x10004]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x475cd5
mov ecx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040a680
mov esi, dword [0x554c94]
test esi, esi
je 0x475d0c
push ebx
mov ecx, esi
call dword [0x4f933c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004af3ab
mov esp, ebp
pop ebp
ret

Function at 0x476690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x210], edi
test ebx, ebx
je 0x4767d8
cmp word [ebx], 0
je 0x4767d8
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x4767bf
cmp esi, 0x104
jae 0x476709
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040a680
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bbca0
mov edi, eax
add esp, 4
test edi, edi
je 0x4767a7
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x476783
cmp eax, esi
jae 0x476762
mov ecx, dword [ebp - 0x210]
push esi
push edi
call fcn.0040a680
push edi
call fcn.004bbcb0
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
push edi
mov esi, 0x7a
call fcn.004bbcb0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.004bbcb0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
mov esi, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop ebx
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x47d7a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ecx, 0x55240c
push 0
call fcn.004b095f
mov edi, eax
mov esi, 1
test edi, edi
je 0x47d8e7
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], eax
inc eax
movzx eax, ax
mov dword [ebp - 4], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x47d801
push ebx
mov edx, eax
mov ecx, edi
call fcn.0047e4f0
add esp, 4
test eax, eax
jne 0x47d81c
push esi
mov ecx, 0x55240c
inc esi
call fcn.004b095f
mov edi, eax
test edi, edi
je 0x47d8e7
mov eax, dword [ebp - 4]
jmp 0x47d7e0
test edi, edi
je 0x47d8e7
mov eax, dword [ebp - 8]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x47d8e7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47d8e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47d8e7
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x47d885
cmp esi, ecx
jae 0x47d8e7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x47d873
cmp esi, ecx
jae 0x47d8e7
cmp word [esi], 0
je 0x47d8e7
mov ebx, dword [ebp - 0xc]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x47d8b0
push edi
mov ecx, ebx
call fcn.0047d900
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.004c9b9c
push eax
call fcn.0047e560
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x47d8f2
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004264a0
int3

Function at 0x47e4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47e54b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47e54b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x47e538
cmp esi, edx
jae 0x47e54b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x47e526
cmp esi, edx
jae 0x47e54b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x480000
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x554d78], esi
jne 0x48003d
sub esp, 8
lea ecx, [esi + 1]
call fcn.0047fdb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x480114
or dword [0x554d74], 2
mov eax, dword [0x554d78]
test eax, eax
je 0x48004d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x554d7c]
mov ecx, eax
inc eax
mov dword [0x554d7c], eax
test ecx, ecx
jne 0x480102
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004c8f72
add esp, 4
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ax, word [ebp - 0x210]
xor ecx, ecx
cmp cx, ax
je 0x4800a9
mov ecx, 0x25
cmp cx, ax
jne 0x4800cd
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 4
call fcn.0046f2b0
mov esi, eax
test esi, esi
jne 0x4800fd
or dword [0x554d74], 1
mov cl, 1
call fcn.0047ea10
mov esi, eax
test esi, esi
jne 0x4800fd
call fcn.0047f280
call fcn.0047fc50
jmp 0x480102
call fcn.00480130
mov eax, dword [0x554d78]
test eax, eax
je 0x480112
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x486e50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x210], eax
test esi, esi
je 0x486fe2
test eax, eax
je 0x486fe2
push ebx
push 4
push 0x53560c
push esi
call fcn.004c06d1
add esp, 0xc
test eax, eax
je 0x486ee6
push 4
push 0x534884
push esi
call fcn.004c06d1
add esp, 0xc
test eax, eax
je 0x486ee6
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x486f15
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x486f15
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c1f15
add esp, 0xc
lea ebx, [ebp - 0x208]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
jmp 0x486f35
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c1f15
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.004b2788
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x486f2f
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x210]
mov word [ebx], cx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x486fa3
cmp eax, edi
jae 0x486fa3
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486f60
sub ecx, edx
sar ecx, 1
je 0x486fa3
lea eax, [ebp - 0x20c]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x486f83
sub edx, ebx
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, edi
jbe 0x486fb6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004c1f15
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x48afe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x48afe8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48affb
test al, 0x10
jne 0x48affb
mov al, 1
ret
xor al, al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x48b008
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b01b
test al, 0x10
je 0x48b01b
mov al, 1
ret
xor al, al
ret

Function at 0x48b3e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 4], edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x48b3fb
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48b51f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48b447
cmp dword [esi + 0x14], 8
jb 0x48b420
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b434
test al, 0x10
jne 0x48b51f
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x48b43f
xor eax, eax
nop
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 8
jb 0x48b45c
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
inc eax
push 2
push 0x536380
push eax
call fcn.0040d090
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x48b4d8
inc eax
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [esp + 0x24], 0
cmp edi, 8
jb 0x48b4a2
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040a960
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push dword [esp + 8]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
call fcn.0040aa40
mov eax, dword [esp + 0xc]
jmp 0x48b450
mov eax, esi
cmp edi, 8
jb 0x48b4e1
mov eax, dword [esi]
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48b51f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x48b500
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b510
test al, 0x10
jne 0x48b51f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48bb60
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f59a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x98
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
push 0x108
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a900
mov edx, eax
mov dword [ebp - 0x24], 0x104
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
push str._TMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test ecx, ecx
je 0x48beab
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x48beab
dec ecx
cmp ecx, eax
ja 0x48bc49
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x48bc56
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040b5f0
lea eax, [ebp - 0x34]
push eax
call fcn.0048bf00
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x34]
mov dword [esi + 0x14], 0
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040aa40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_expand__TMP__environment_variable_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00495870
push 0x549cdc
lea eax, [ebp - 0x6c]
push eax
call fcn.004b1dab
push str.Unable_to_expand__TEMP__environment_variable_
push 0x536498
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.004127c0
push 0x549cdc
lea eax, [ebp - 0x80]
push eax
call fcn.004b1dab
int3
Function at 0x48bfc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5a07
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x54d104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x24], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x14], ecx
mov word [esi], ax
lea edi, [eax + 1]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x48c04d
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
call fcn.00492c80
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
cmp dword [ecx + 0x14], 8
jb 0x48c068
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x48c078
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 7
push eax
lea eax, [ebp - 0x50]
or edi, 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0048d690
lea eax, [ebp - 0x44]
add esp, 0x10
cmp esi, eax
je 0x48c0f1
mov ecx, esi
call fcn.0040aa40
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
and edi, 0xfffffffd
call fcn.0040aa40
cmp dword [esi + 0x10], 0
mov eax, esi
je 0x48c14a
cmp dword [esi + 0x14], 8
jb 0x48c110
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c127
mov ecx, dword [ebp - 0x14]
test al, 0x10
je 0x48c043
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c131
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c148
mov ecx, dword [ebp - 0x14]
test al, 0x10
jne 0x48c043
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret