joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4694f0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2d5c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x538074]
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, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00403010
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403010
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0047cac0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00402fc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.00402fc0
lea eax, [ebp - 0x294]
push eax
call fcn.0047bcb0
add esp, 4
test al, al
jne 0x469654
xor bl, bl
jmp 0x4696b6
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.004858b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.00402f40
test al, al
je 0x46967c
xor bl, bl
jmp 0x4696a7
lea ecx, [ebp - 0x27c]
call fcn.00403170
cmp esi, eax
je 0x4696a5
call fcn.00403170
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x46969a
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.00403270
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00402fc0
mov al, bl
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.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x4696f0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2dce
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x538074]
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, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00403010
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00403010
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0047cac0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.00402fc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.00402fc0
lea eax, [ebp - 0x280]
push eax
call fcn.0047bcb0
add esp, 4
test al, al
je 0x4698fb
push 4
lea ecx, [ebp - 0x268]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00437cf0
push 4
call fcn.004be511
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x280]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp - 0x268]
call fcn.00494a90
test al, al
jne 0x4698ff
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x4698fb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4698e6
test eax, eax
je 0x4698e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004be541
add esp, 8
mov dword [ebp - 0x268], 0
xor bl, bl
jmp 0x469948
push esi
lea ecx, [ebp - 0x268]
call fcn.00494c40
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x469948
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x469933
test eax, eax
je 0x469933
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004be541
add esp, 8
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.00402fc0
mov al, bl
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.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x46a160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec768
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x538074]
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 edi, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403080
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00474ee0
lea ecx, [ebp - 0x28]
call fcn.00403260
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x46a289
call fcn.00403170
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x46a1cc
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x46a1e6
mov ecx, esi
cmp eax, 8
jb 0x46a1db
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x46a304
mov ecx, esi
cmp eax, 8
jb 0x46a1ef
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x46a205
mov ecx, esi
cmp eax, 8
jb 0x46a1fe
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x46a25a
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.00474cc0
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, esi
cmp eax, 8
jb 0x46a223
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x46a25a
mov ecx, esi
cmp eax, 8
jb 0x46a233
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x46a25a
mov ecx, esi
cmp eax, 8
jb 0x46a243
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x46a25a
cmp eax, 8
jb 0x46a250
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x46a2e5
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
mov al, bl
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.004be500
mov esp, ebp
pop ebp
ret
call fcn.00403260
cmp eax, 2
jne 0x46a25a
lea ecx, [ebp - 0x28]
call fcn.00403170
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x46a2a7
mov edx, dword [eax]
cmp word [edx + 2], 0x3a
jne 0x46a25a
mov edx, eax
cmp ecx, 8
jb 0x46a2b7
mov edx, dword [eax]
cmp word [edx], 0x61
jb 0x46a25a
cmp ecx, 8
jb 0x46a2c4
mov eax, dword [eax]
cmp word [eax], 0x7a
ja 0x46a25a
push 0x50d0e4
call fcn.00403540
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x50d0e4
call fcn.004046b0
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46a25a
shr eax, 4
and al, 1
mov byte [edi], al
mov bl, 1
jmp 0x46a25c
Function at 0x46a310
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2f29
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.00409c20
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x46a4c2
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x46a404
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x53aad8
mov byte [ebp - 0x15], al
call fcn.00403170
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x46a3df
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.004227d0
inc edi
cmp edi, 4
jl 0x46a3d5
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46a370
mov dword [ebp + 8], esi
test esi, esi
je 0x46a4c2
mov eax, esi
cmp esi, 3
jge 0x46a43e
cmp eax, 3
jae 0x46a4d6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x46a424
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x46a4a8
mov ecx, 0x53aad8
call fcn.00403170
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x46a48e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.004227d0
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x46a484
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x46a4c2
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.004227d0
sub edi, 1
jne 0x46a4b4
mov eax, 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
call fcn.004beb7d
int3
Function at 0x46dd50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00402f50
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edi, 0x811c9dc5
call fcn.00403260
mov ecx, 0
add eax, eax
je 0x46dd91
nop dword [eax]
movzx edx, byte [ecx + ebx]
inc ecx
xor edx, edi
imul edi, edx, 0x1000193
cmp ecx, eax
jb 0x46dd80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
and eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x474460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f80
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x538074]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4745ad
cmp byte [eax + 0x54], 0
je 0x4745ad
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.00404c40
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00483c40
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403170
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [eax + 0x10]
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4744ea
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x474534
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x474568
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47455e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4745cb
push edx
push ecx
call fcn.004be541
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x47459f
cmp byte [ebp - 0x34], 0
je 0x47459f
mov eax, dword [esi]
test eax, eax
je 0x47459b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
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.004be500
mov esp, ebp
pop ebp
ret 4
call fcn.004c40d9
int3
Function at 0x47ae60
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004c0fa0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47afa2
cmp dword [esi + 4], 6
push edi
ja 0x47aeb6
jne 0x47af3e
cmp dword [esi + 8], 2
jb 0x47af3e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x47af3e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47af3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47af3e
movups xmm0, xmmword [0x516be4]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x516bf4]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x47af3e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x47af3e
cmp word [edi + 2], ax
jbe 0x47af3e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x47af89
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x47af89
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004be500
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004be500
add esp, 0x140
ret

Function at 0x47b550
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f59d4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403060
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403060
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403060
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403060
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00403060
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c390
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x538074]
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 edi, ecx
call fcn.00402f40
test al, al
je 0x47c3cd
xor al, al
jmp 0x47c585
push edi
call fcn.0047bdc0
add esp, 4
test al, al
je 0x47c3e1
mov al, 1
jmp 0x47c585
push 0
mov ecx, edi
call fcn.00402f50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x47c430
lea ecx, [ebp - 0x28]
call fcn.00403060
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0049a4b0
test al, al
je 0x47c421
push 0
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
push edi
call fcn.0047bdc0
add esp, 4
test al, al
jne 0x47c3da
mov ecx, edi
call fcn.00403260
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x47c528
mov ecx, edi
call fcn.00403170
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x47c46c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x47c48f
mov eax, ebx
cmp ecx, 8
jb 0x47c485
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x47c518
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00409b50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402f40
test al, al
jne 0x47c509
lea ecx, [ebp - 0x28]
call fcn.0047bbb0
test al, al
jne 0x47c509
push 0
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47c509
lea ecx, [ebp - 0x40]
call fcn.00403060
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0049a4b0
test al, al
je 0x47c4fd
push 0
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x47c460
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.0047bbb0
test al, al
jne 0x47c57c
push 0
mov ecx, edi
call fcn.00402f50
push eax
call ebx
test eax, eax
jne 0x47c57c
lea ecx, [ebp - 0x40]
call fcn.00403060
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0049a4b0
test al, al
je 0x47c56d
push 0
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402fc0
push edi
call fcn.0047bdc0
add esp, 4
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.004be500
mov esp, ebp
pop ebp
ret
Function at 0x47cc40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52e4d0
push 0x4c02a0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x538074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00406a40
mov ecx, edi
call fcn.0047cd60
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x47ccd3
test bl, bl
jne 0x47cd42
cmp edi, 0x1a
jne 0x47cd42
mov ecx, esi
call fcn.00406a40
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004c0fa0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00403540
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00403270
mov ecx, esi
call fcn.00402f40
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret
Function at 0x47cff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5ef1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x538074]
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 edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x30], 0
call fcn.00403170
mov ebx, eax
cmp dword [eax + 0x14], 8
jb 0x47d03d
mov ebx, dword [eax]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], 0x25
test edx, edx
je 0x47d128
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040a2d0
add esp, 4
test eax, eax
je 0x47d128
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x47d128
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403080
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x47d0bb
push edi
mov ecx, esi
call fcn.00403080
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402fc0
jmp 0x47d13e
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bec5c
mov edx, dword [ebp - 0x14]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x47d10f
cmp eax, dword [ebp - 0x14]
ja 0x47d10f
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00403540
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.00403270
push ebx
call fcn.004bec57
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00402fd0
jmp 0x47d0a3
push edi
mov ecx, esi
call fcn.00403080
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, esi
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.004be500
mov esp, ebp
pop ebp
ret