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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0f1c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x534068]
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.004bf410
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.00402800
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00402800
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.004708c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.004027f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.004027f0
lea eax, [ebp - 0x294]
push eax
call fcn.0046fab0
add esp, 4
test al, al
jne 0x466b64
xor bl, bl
jmp 0x466bc6
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.0047ecd0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.00405520
test al, al
je 0x466b8c
xor bl, bl
jmp 0x466bb7
lea ecx, [ebp - 0x27c]
call fcn.00402870
cmp esi, eax
je 0x466bb5
call fcn.00402870
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x466baa
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.004028e0
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.004027f0
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.004bc969
mov esp, ebp
pop ebp
ret 4
Function at 0x466c00
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0f8e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x534068]
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.004bf410
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.00402800
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00402800
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.004708c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.004027f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.004027f0
lea eax, [ebp - 0x280]
push eax
call fcn.0046fab0
add esp, 4
test al, al
je 0x466e0b
push 4
lea ecx, [ebp - 0x268]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00436f00
push 4
call fcn.004bc97a
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.0048deb0
test al, al
jne 0x466e0f
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x466e0b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x466df6
test eax, eax
je 0x466df6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004bc9aa
add esp, 8
mov dword [ebp - 0x268], 0
xor bl, bl
jmp 0x466e58
push esi
lea ecx, [ebp - 0x268]
call fcn.0048e060
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x466e58
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x466e43
test eax, eax
je 0x466e43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004bc9aa
add esp, 8
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.004027f0
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.004bc969
mov esp, ebp
pop ebp
ret 4
Function at 0x467670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaad8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x534068]
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.00405530
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0046e2e0
lea ecx, [ebp - 0x28]
call fcn.00404030
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x467799
call fcn.00402870
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4676dc
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x4676f6
mov ecx, esi
cmp eax, 8
jb 0x4676eb
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x467814
mov ecx, esi
cmp eax, 8
jb 0x4676ff
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x467715
mov ecx, esi
cmp eax, 8
jb 0x46770e
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x46776a
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.0046e0c0
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, esi
cmp eax, 8
jb 0x467733
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x46776a
mov ecx, esi
cmp eax, 8
jb 0x467743
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x46776a
mov ecx, esi
cmp eax, 8
jb 0x467753
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x46776a
cmp eax, 8
jb 0x467760
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x4677f5
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
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.004bc969
mov esp, ebp
pop ebp
ret
call fcn.00404030
cmp eax, 2
jne 0x46776a
lea ecx, [ebp - 0x28]
call fcn.00402870
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x4677b7
mov edx, dword [eax]
cmp word [edx + 2], 0x3a
jne 0x46776a
mov edx, eax
cmp ecx, 8
jb 0x4677c7
mov edx, dword [eax]
cmp word [edx], 0x61
jb 0x46776a
cmp ecx, 8
jb 0x4677d4
mov eax, dword [eax]
cmp word [eax], 0x7a
ja 0x46776a
push 0x50b494
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x50b494
call fcn.00403ce0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46776a
shr eax, 4
and al, 1
mov byte [edi], al
mov bl, 1
jmp 0x46776c
Function at 0x467820
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f10e9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x534068]
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.00409650
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4679d2
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 0x467914
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, 0x536af0
mov byte [ebp - 0x15], al
call fcn.00402870
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4678ef
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00421ce0
inc edi
cmp edi, 4
jl 0x4678e5
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 0x467880
mov dword [ebp + 8], esi
test esi, esi
je 0x4679d2
mov eax, esi
cmp esi, 3
jge 0x46794e
cmp eax, 3
jae 0x4679e6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x467934
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 0x4679b8
mov ecx, 0x536af0
call fcn.00402870
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x46799e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00421ce0
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x467994
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x4679d2
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.00421ce0
sub edi, 1
jne 0x4679c4
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.004bcfe6
int3
Function at 0x46d870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f20e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x534068]
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 0x46d9bd
cmp byte [eax + 0x54], 0
je 0x46d9bd
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.004042b0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0047ca30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402870
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 0x46d8fa
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 0x46d944
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 0x46d978
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d96e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9db
push edx
push ecx
call fcn.004bc9aa
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 0x46d9af
cmp byte [ebp - 0x34], 0
je 0x46d9af
mov eax, dword [esi]
test eax, eax
je 0x46d9ab
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.004bc969
mov esp, ebp
pop ebp
ret 4
call fcn.004c2549
int3
Function at 0x46ec60
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x534068]
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.004bf410
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46eda2
cmp dword [esi + 4], 6
push edi
ja 0x46ecb6
jne 0x46ed3e
cmp dword [esi + 8], 2
jb 0x46ed3e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x46ed3e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46ed3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46ed3e
movups xmm0, xmmword [0x513e1c]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x513e2c]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46ed3e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ed3e
cmp word [edi + 2], ax
jbe 0x46ed3e
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 0x46ed89
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004bf410
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x46ed89
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.004bc969
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004bc969
add esp, 0x140
ret

Function at 0x46f350
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2284
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x534068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402850
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402850
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402850
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402850
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.00402850
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 0x470190
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f25a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x534068]
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.00405520
test al, al
je 0x4701cd
xor al, al
jmp 0x470385
push edi
call fcn.0046fbc0
add esp, 4
test al, al
je 0x4701e1
mov al, 1
jmp 0x470385
push 0
mov ecx, edi
call fcn.004027b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x470230
lea ecx, [ebp - 0x28]
call fcn.00402850
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004938d0
test al, al
je 0x470221
push 0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
push edi
call fcn.0046fbc0
add esp, 4
test al, al
jne 0x4701da
mov ecx, edi
call fcn.00404030
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x470328
mov ecx, edi
call fcn.00402870
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x47026c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x47028f
mov eax, ebx
cmp ecx, 8
jb 0x470285
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x470318
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00409570
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405520
test al, al
jne 0x470309
lea ecx, [ebp - 0x28]
call fcn.0046f9b0
test al, al
jne 0x470309
push 0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x470309
lea ecx, [ebp - 0x40]
call fcn.00402850
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004938d0
test al, al
je 0x4702fd
push 0
lea ecx, [ebp - 0x40]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x470260
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.0046f9b0
test al, al
jne 0x47037c
push 0
mov ecx, edi
call fcn.004027b0
push eax
call ebx
test eax, eax
jne 0x47037c
lea ecx, [ebp - 0x40]
call fcn.00402850
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004938d0
test al, al
je 0x47036d
push 0
lea ecx, [ebp - 0x40]
call fcn.004027b0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004027f0
push edi
call fcn.0046fbc0
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.004bc969
mov esp, ebp
pop ebp
ret
Function at 0x475a20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52a548
push 0x4be710
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x534068]
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.00406300
mov ecx, edi
call fcn.00475b40
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x475ab3
test bl, bl
jne 0x475b22
cmp edi, 0x1a
jne 0x475b22
mov ecx, esi
call fcn.00406300
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004bf410
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.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004028e0
mov ecx, esi
call fcn.00405520
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.004bc969
mov esp, ebp
pop ebp
ret
Function at 0x475dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f30c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x534068]
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.00402870
mov ebx, eax
cmp dword [eax + 0x14], 8
jb 0x475e1d
mov ebx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], 0x25
test eax, eax
je 0x475f08
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
call fcn.00409d00
add esp, 0xc
test eax, eax
je 0x475f08
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x475f08
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405530
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x475e9b
push edi
mov ecx, esi
call fcn.00405530
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x475f1e
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bd0c5
mov edx, dword [ebp - 0x14]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x475eef
cmp eax, dword [ebp - 0x14]
ja 0x475eef
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.004028e0
push ebx
call fcn.004bd0c0
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404060
jmp 0x475e83
push edi
mov ecx, esi
call fcn.00405530
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.004bc969
mov esp, ebp
pop ebp
ret
Function at 0x476970
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x534068]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00406300
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.004bf410
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4769cc
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004bc969
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4769b4
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004028e0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004bc969
add esp, 0x418
ret

Function at 0x476f00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f32a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x534068]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x476f46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004939a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x476f6f
lea ebx, [esi + 8]
jmp 0x476f71
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00405520
test al, al
jne 0x476f87
mov ecx, dword [ebp - 0x18]
call fcn.004027b0
jmp 0x476f89
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x476faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x476faa
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x476fd3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x476fe8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004bc9aa
add esp, 8
mov dword [ebp - 0x14], 0
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.004bc969
mov esp, ebp
pop ebp
ret 4