joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461900
Capabilities:
Get file size

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 0x4eb66d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x461a3d
mov esi, dword [ebp - 0x28]
mov eax, esi
mov edi, dword [ebp - 0x24]
or eax, edi
jne 0x461982
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 0x10
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
push dword [ebp - 0x58]
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
call fcn.00462030
xor eax, eax
mov dword [ebp - 4], 0
cmp eax, edi
jne 0x461a1d
test edi, edi
jl 0x461a1d
jg 0x4619b7
test esi, esi
jb 0x461a1d
cmp byte [ebp - 0x34], al
je 0x461a5f
push ecx
mov ecx, dword [ebp - 0x30]
mov edx, esi
call fcn.004617d0
mov ecx, dword [ebp - 0x30]
add esp, 4
mov byte [ebp - 0x51], al
test ecx, ecx
je 0x4619df
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x34], 0
test eax, eax
je 0x4619ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], 0
cmp eax, 0xffffffff
je 0x461a15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x51]
jmp 0x461964
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.0040c9d0
push 0x542450
mov eax, ecx
push eax
call fcn.004a869b
push str.Unable_to_get_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00499120
push 0x542628
lea eax, [ebp - 0x6c]
push eax
call fcn.004a869b
push str.Unable_to_retrieve_pointer_of_the_unmapped_view_
lea ecx, [ebp - 0x80]
call fcn.004990f0
push 0x542628
lea eax, [ebp - 0x80]
push eax
call fcn.004a869b
int3
Function at 0x465440
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
push ebx
push esi
push edi
mov eax, dword [0x545100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx - 0x10]
mov dword [ebp - 0x18], 0x34363332
mov dword [ebp - 0x14], 0x33304133
mov dword [ebp - 0x30], 0x5f676f6c
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], 0x75646f6d
mov dword [ebp - 0x28], 0x656c
mov dword [ebp - 0x1c], 0x1f
mov dword [eax + ebx - 0x10], 0x52bcbc
mov eax, dword [ebx - 0x10]
mov eax, dword [eax + 8]
mov dword [eax + ebx - 0x10], 0x52bcdc
mov eax, dword [ebx - 0x10]
mov eax, dword [eax + 0xc]
mov dword [eax + ebx - 0x10], 0x52bcc8
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x10]
mov dword [ecx + ebx - 0x14], eax
mov eax, dword [ebx - 0x10]
mov ecx, dword [eax + 0xc]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 0x14], eax
mov edi, dword [ebx - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov esi, dword [edi]
push eax
push 2
lea eax, [ebp - 0x140]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4f1320]
mov ecx, edi
call esi
push ecx
lea ecx, [ebp - 0x140]
call fcn.004661c0
lea ecx, [ebp - 0x140]
call fcn.0044f860
mov edi, dword [ebx - 0xc]
mov dword [ebp - 0x18], 0x34363332
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x33304133
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], 0x5f676f6c
mov dword [ebp - 0x44], 0x75646f6d
mov dword [ebp - 0x40], 0x656c
mov dword [ebp - 0x34], 0x20
mov esi, dword [edi]
push eax
push 2
lea eax, [ebp - 0x238]
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4f1320]
mov ecx, edi
call esi
push ecx
lea ecx, [ebp - 0x238]
call fcn.00466240
lea ecx, [ebp - 0x238]
call fcn.0044f860
mov edi, dword [ebx - 8]
test edi, edi
je 0x4655c9
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4655c9
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4655c9
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
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 0x467250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebd55
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x88]
cmp dword [ebx], eax
jl 0x4673b2
call fcn.00467a10
sub esp, 8
mov ecx, ebx
mov eax, esp
mov dword [eax], 0x52bf1c
mov dword [eax + 4], 2
lea eax, [ebp - 0x38]
push eax
call fcn.0046b660
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea esi, [edi + 0x44]
movlpd qword [ebp - 0x1c], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4672d4
lock inc dword [eax + 4]
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x60]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
mov eax, dword [ebp - 0x3c]
cmova ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x46730b
mov eax, dword [eax]
jmp 0x46730e
or eax, 0xffffffff
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4673d0
mov eax, dword [edi + 0x8c]
cmp dword [ebx], eax
jl 0x467346
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46733c
mov eax, dword [eax]
jmp 0x46733f
or eax, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x467382
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x467382
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x467382
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4f1320]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x4673b2
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4673a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4673ec
push ecx
push edx
call fcn.004a5ea3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x50]
call fcn.004990c0
push 0x542628
mov eax, ecx
push eax
call fcn.004a869b
call fcn.004b26bf
int3
Function at 0x46d7c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec816
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x545100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.asw::mi::ModuleDestructions.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
push 0x40
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.004a5e73
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 2
push 0x40
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004a5e73
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov byte [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46dc90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x545100]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0046dd50
add esp, 4
test esi, esi
je 0x46dd3e
mov edx, dword [esp + 0x18]
mov ecx, 0x78
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
shr edx, 3
mov dword [esp + 0x68], eax
and edx, 0x3f
sub ecx, edx
mov eax, 0x38
sub eax, edx
cmp edx, 0x38
mov edx, 0x52c428
cmovae eax, ecx
lea ecx, [esp + 8]
push eax
call fcn.0046dd50
push 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
call fcn.0046dd50
movups xmm0, xmmword [esp + 0x10]
add esp, 8
movups xmmword [esi], xmm0
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x475250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x418], edx
push 0x104
mov eax, esi
mov ebx, ecx
push eax
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jne 0x4752ac
push 0x10000
call fcn.004b2710
mov esi, eax
add esp, 4
test esi, esi
je 0x475315
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x47531d
cmp byte [ebp + 8], 0
je 0x4752e6
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4752e6
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x4752e0
push esi
call fcn.004b2720
add esp, 4
lea esi, [ebp - 0x414]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47531d
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4752f7
sub edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 1
push edx
push esi
call fcn.0040a6f0
jmp 0x475325
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x475342
lea eax, [ebp - 0x414]
cmp esi, eax
je 0x475342
push esi
call fcn.004b2720
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x4755d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x475740
test eax, eax
je 0x475740
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x475611
mov ecx, dword [edi]
push ebx
push esi
xor esi, esi
mov dword [edi + 0x10], 0
mov word [ecx], si
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push ecx
push esi
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x4756fb
mov eax, dword [ebp - 0x210]
add eax, 2
push 0x5130d4
push eax
mov dword [ebp - 0x214], eax
call fcn.004a63c4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4756e3
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4756c7
mov eax, dword [ebp - 0x214]
shr eax, 1
je 0x4756be
lea edx, [eax - 1]
lea edx, [ebx + edx*2]
nop
cmp word [edx], 0
jne 0x4756be
sub edx, 2
sub eax, 1
jne 0x4756b0
push eax
push ebx
mov ecx, edi
call fcn.0040a6f0
push ebx
call fcn.004a6085
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
mov esi, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x47572d
mov eax, dword [ebp - 0x210]
shr eax, 1
je 0x47571e
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0
jne 0x47571e
sub ecx, 2
sub eax, 1
jne 0x475710
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040a6f0
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop edi
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x4786a0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, edx
mov edx, dword [ebp + 0x18]
test ecx, 0x400
je 0x4786bd
or dword [edi], 0x80
test ecx, 0x800
je 0x4786cb
or dword [edi], 0x100
test cl, 1
je 0x4786d6
or dword [edi], 0x80000000
test ecx, 0x100
je 0x4786e4
or dword [edi], 0x20000000
test ecx, 0x200
je 0x4786f2
or dword [edi], 0x10000
test cl, cl
jns 0x4786f9
or dword [edi], 4
test cl, 2
je 0x478706
or dword [edi], 0x40000000
jmp 0x478719
test cl, 4
je 0x478719
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebx], eax
or eax, 0x100
mov dword [edi], eax
mov eax, ecx
and eax, 0x20000000
test cl, 8
je 0x478740
test eax, eax
mov dword [ebp - 4], 5
mov ebx, 2
cmove ebx, dword [ebp - 4]
neg eax
sbb eax, eax
add eax, 2
jmp 0x478758
test eax, eax
je 0x47874e
mov ebx, 3
lea eax, [ebx + 1]
jmp 0x478758
mov ebx, 1
mov eax, 3
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [edx], ebx
test cl, 0x10
je 0x478767
or dword [eax], 1
test cl, 0x20
je 0x47876f
or dword [eax], 2
test cl, 0x40
je 0x478777
or dword [eax], 4
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
test ecx, ecx
jns 0x47878d
or dword [esi], 0x4000000
or dword [edx], 0x1000
test ecx, 0x10000000
je 0x4787a1
or dword [esi], 0x2000000
or dword [edx], 0x4000
test ecx, 0x8000000
je 0x4787b2
or dword [esi], 0x2000000
or dword [edx], 1
test ecx, 0x40000
je 0x4787c6
or dword [esi], 0x200000
or dword [edx], 0x200000
mov eax, ecx
and eax, 0x7000000
je 0x478820
cmp eax, 0x6000000
ja 0x478810
je 0x478805
cmp eax, 0x4000000
je 0x4787f4
cmp eax, 0x5000000
jne 0x478820
or dword [esi], 0x10000000
or dword [edx], 0x800
jmp 0x478820
mov eax, dword [ebp + 0x20]
or dword [esi], 0x2100
or dword [eax], 0x2100
jmp 0x478820
or dword [esi], 0x8000000
or dword [edx], 4
jmp 0x478820
cmp eax, 0x7000000
jne 0x478820
or dword [esi], 0x80000000
or dword [edx], 2
test ecx, 0x10000
jne 0x478843
mov ebx, dword [ebp + 8]
or dword [edi], 0x100000
mov eax, dword [ebx]
test eax, eax
je 0x47883e
or eax, 0x100000
mov dword [ebx], eax
or dword [edx], 0x20
jmp 0x478849
or dword [esi], 0x40000000
pop edi
pop esi
pop ebx
test ecx, 0xc000
je 0x47885a
or dword [edx], 0x100
mov esp, ebp
pop ebp
ret
Function at 0x47a470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x545100]
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 0x47a4f4
push 5
lea eax, [esi + 2]
push str.FILE:
push eax
call fcn.004c3017
add esp, 0xc
test eax, eax
jne 0x47a4f4
push 0x10
push eax
lea eax, [esi + 0xc]
push eax
call fcn.004b3b7f
add esp, 0xc
cmp eax, 0xffffffff
je 0x47a4f4
push 0
lea edx, [ebp - 0x48]
mov dword [ebp - 8], 0x10002
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0047a1f0
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.004a5e3b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x54cae4]
xor edi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47a518
push edi
mov ecx, eax
call dword [0x4f1320]
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 0x47a52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x54cae4]
test esi, esi
je 0x47a545
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x4f1320]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x47a6b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x54cad8], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
je 0x47a87e
cmp dword [0x54cac8], 0
je 0x47a87e
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 7
push str._UNC_
movups xmmword [ebp - 0x38], xmm0
push edi
mov word [ebp - 0x38], ax
call fcn.004c3017
add esp, 0xc
test eax, eax
jne 0x47a715
add edi, 8
jmp 0x47a72e
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.0047a560
test eax, eax
jne 0x47a72e
cmp dword [ebp - 0x24], 7
lea edi, [ebp - 0x38]
cmova edi, dword [ebp - 0x38]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], 7
push 0x52f124
movups xmmword [ebp - 0x20], xmm0
push edi
mov word [ebp - 0x20], ax
call fcn.004c3017
add esp, 0xc
lea ecx, [ebp - 0x20]
mov esi, eax
push 4
push 0x52f124
call fcn.0040a6f0
test esi, esi
lea edx, [edi + 8]
cmovne edx, edi
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a777
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.0040a680
cmp dword [ebp - 0xc], 7
lea eax, [ebp - 0x20]
mov esi, dword [0x54cae8]
mov ecx, esi
cmova eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [0x4f1320]
call esi
mov ecx, 0x40
test ebx, ebx
je 0x47a7cf
cmp dword [ebx + 0x808], 0
mov eax, dword [ebx + 0x804]
je 0x47a7d1
mov ecx, 0x42
jmp 0x47a7d1
xor eax, eax
mov esi, dword [0x54cad8]
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 [0x4f1320]
call esi
mov edi, eax
test edi, edi
jne 0x47a844
push dword [ebp - 0x4c]
mov esi, dword [0x54cac8]
mov ecx, esi
call dword [0x4f1320]
call esi
cmp dword [ebp - 0x44], 1
jne 0x47a85b
mov edi, 0xb7
jmp 0x47a85b
mov esi, dword [0x54cae0]
test esi, esi
je 0x47a85b
push edi
mov ecx, esi
call dword [0x4f1320]
call esi
mov edi, eax
lea ecx, [ebp - 0x20]
call fcn.0040a900
lea ecx, [ebp - 0x38]
call fcn.0040a900
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
mov esi, dword [0x54cae4]
mov dword [ebp - 0x4c], 1
test esi, esi
je 0x47a89e
push 0
mov ecx, esi
call dword [0x4f1320]
call esi
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 0x800]
neg ebx
sbb ebx, ebx
and ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47a8c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x47a8c2
xor ebx, ebx
mov esi, dword [0x54cae4]
test esi, esi
je 0x47a8d9
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x4f1320]
call esi
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x47a8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.004a6ad0
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x54cae4]
push edi
xor edi, edi
mov dword [ebp - 0x10008], ecx
lea ebx, [edi + 1]
test esi, esi
je 0x47a92c
push edi
mov ecx, esi
call dword [0x4f1320]
call esi
mov ebx, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x47a94c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x47a977
lea edx, [ebp - 0x10004]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47a955
mov ecx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040a6f0
mov esi, dword [0x54cae4]
test esi, esi
je 0x47a98c
push ebx
mov ecx, esi
call dword [0x4f1320]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret

Function at 0x47b320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x545100]
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 0x47b468
cmp word [ebx], 0
je 0x47b468
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 0x47b44f
cmp esi, 0x104
jae 0x47b399
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040a6f0
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
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.004b2710
mov edi, eax
add esp, 4
test edi, edi
je 0x47b437
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47b413
cmp eax, esi
jae 0x47b3f2
mov ecx, dword [ebp - 0x210]
push esi
push edi
call fcn.0040a6f0
push edi
call fcn.004b2720
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
push edi
mov esi, 0x7a
call fcn.004b2720
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.004b2720
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
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.004a5e3b
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.004a5e3b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop ebx
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret