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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0f2e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x533068]
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.004bf3c0
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.00470880
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.0046fa70
add esp, 4
test al, al
je 0x466dcb
push 4
lea ecx, [ebp - 0x268]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00436ed0
push 4
call fcn.004bc91a
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.0048de60
test al, al
jne 0x466dcf
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x466dcb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x466db6
test eax, eax
je 0x466db6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004bc94a
add esp, 8
mov dword [ebp - 0x268], 0
xor bl, bl
jmp 0x466e18
push esi
lea ecx, [ebp - 0x268]
call fcn.0048e010
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x268]
test esi, esi
je 0x466e18
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x466e03
test eax, eax
je 0x466e03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004bc94a
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.004bc909
mov esp, ebp
pop ebp
ret 4
Function at 0x467630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaa78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x533068]
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.0046e2a0
lea ecx, [ebp - 0x28]
call fcn.00404030
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x467759
call fcn.00402870
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x46769c
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x4676b6
mov ecx, esi
cmp eax, 8
jb 0x4676ab
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x4677d4
mov ecx, esi
cmp eax, 8
jb 0x4676bf
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x4676d5
mov ecx, esi
cmp eax, 8
jb 0x4676ce
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x46772a
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.0046e080
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, esi
cmp eax, 8
jb 0x4676f3
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x46772a
mov ecx, esi
cmp eax, 8
jb 0x467703
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x46772a
mov ecx, esi
cmp eax, 8
jb 0x467713
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x46772a
cmp eax, 8
jb 0x467720
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x4677b5
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.004bc909
mov esp, ebp
pop ebp
ret
call fcn.00404030
cmp eax, 2
jne 0x46772a
lea ecx, [ebp - 0x28]
call fcn.00402870
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x467777
mov edx, dword [eax]
cmp word [edx + 2], 0x3a
jne 0x46772a
mov edx, eax
cmp ecx, 8
jb 0x467787
mov edx, dword [eax]
cmp word [edx], 0x61
jb 0x46772a
cmp ecx, 8
jb 0x467794
mov eax, dword [eax]
cmp word [eax], 0x7a
ja 0x46772a
push 0x50a494
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x50a494
call fcn.00403ce0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46772a
shr eax, 4
and al, 1
mov byte [edi], al
mov bl, 1
jmp 0x46772c
Function at 0x4677e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1089
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x533068]
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 0x467992
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 0x4678d4
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, 0x535af0
mov byte [ebp - 0x15], al
call fcn.00402870
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4678af
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00421cc0
inc edi
cmp edi, 4
jl 0x4678a5
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 0x467840
mov dword [ebp + 8], esi
test esi, esi
je 0x467992
mov eax, esi
cmp esi, 3
jge 0x46790e
cmp eax, 3
jae 0x4679a6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4678f4
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 0x467978
mov ecx, 0x535af0
call fcn.00402870
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x46795e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00421cc0
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x467954
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x467992
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.00421cc0
sub edi, 1
jne 0x467984
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.004bcf86
int3
Function at 0x46d830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2080
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x533068]
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 0x46d97d
cmp byte [eax + 0x54], 0
je 0x46d97d
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.0047c9e0
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 0x46d8ba
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 0x46d904
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 0x46d938
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d92e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d99b
push edx
push ecx
call fcn.004bc94a
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 0x46d96f
cmp byte [ebp - 0x34], 0
je 0x46d96f
mov eax, dword [esi]
test eax, eax
je 0x46d96b
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.004bc909
mov esp, ebp
pop ebp
ret 4
call fcn.004c24f9
int3
Function at 0x46ec20
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x533068]
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.004bf3c0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46ed62
cmp dword [esi + 4], 6
push edi
ja 0x46ec76
jne 0x46ecfe
cmp dword [esi + 8], 2
jb 0x46ecfe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x46ecfe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46ecfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46ecfe
movups xmm0, xmmword [0x512e24]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x512e34]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46ecfe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ecfe
cmp word [edi + 2], ax
jbe 0x46ecfe
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 0x46ed49
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004bf3c0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x46ed49
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.004bc909
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004bc909
add esp, 0x140
ret

Function at 0x46f310
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2224
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x533068]
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 0x470150
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2540
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x533068]
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 0x47018d
xor al, al
jmp 0x470345
push edi
call fcn.0046fb80
add esp, 4
test al, al
je 0x4701a1
mov al, 1
jmp 0x470345
push 0
mov ecx, edi
call fcn.004027b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4701f0
lea ecx, [ebp - 0x28]
call fcn.00402850
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00493880
test al, al
je 0x4701e1
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.0046fb80
add esp, 4
test al, al
jne 0x47019a
mov ecx, edi
call fcn.00404030
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4702e8
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 0x47022c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x47024f
mov eax, ebx
cmp ecx, 8
jb 0x470245
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4702d8
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 0x4702c9
lea ecx, [ebp - 0x28]
call fcn.0046f970
test al, al
jne 0x4702c9
push 0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4702c9
lea ecx, [ebp - 0x40]
call fcn.00402850
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00493880
test al, al
je 0x4702bd
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 0x470220
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.0046f970
test al, al
jne 0x47033c
push 0
mov ecx, edi
call fcn.004027b0
push eax
call ebx
test eax, eax
jne 0x47033c
lea ecx, [ebp - 0x40]
call fcn.00402850
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00493880
test al, al
je 0x47032d
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.0046fb80
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.004bc909
mov esp, ebp
pop ebp
ret
Function at 0x4759e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x529548
push 0x4be6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x533068]
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.00475b00
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x475a73
test bl, bl
jne 0x475ae2
cmp edi, 0x1a
jne 0x475ae2
mov ecx, esi
call fcn.00406300
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004bf3c0
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.004bc909
mov esp, ebp
pop ebp
ret
Function at 0x475d90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3061
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x533068]
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 0x475ddd
mov ebx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], 0x25
test eax, eax
je 0x475ec8
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
call fcn.00409d00
add esp, 0xc
test eax, eax
je 0x475ec8
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x475ec8
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 0x475e5b
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 0x475ede
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bd065
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 0x475eaf
cmp eax, dword [ebp - 0x14]
ja 0x475eaf
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.004bd060
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404060
jmp 0x475e43
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.004bc909
mov esp, ebp
pop ebp
ret
Function at 0x476930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x533068]
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.004bf3c0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x47698c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004bc909
add esp, 0x418
ret
cmp eax, 0x208
jae 0x476974
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.004bc909
add esp, 0x418
ret

Function at 0x476ec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3248
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x533068]
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 0x476f06
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.00493950
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x476f2f
lea ebx, [esi + 8]
jmp 0x476f31
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00405520
test al, al
jne 0x476f47
mov ecx, dword [ebp - 0x18]
call fcn.004027b0
jmp 0x476f49
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x476f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x476f6a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x476f93
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 0x476fa8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004bc94a
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.004bc909
mov esp, ebp
pop ebp
ret 4
Function at 0x476fe0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3248
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x533068]
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 [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x477023
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00493a10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x477050
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x477057
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00405520
test al, al
jne 0x47706b
mov ecx, ebx
call fcn.004027b0
jmp 0x47706d
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x4770be
call ecx
cmp eax, 5
jne 0x4770b8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00405520
test al, al
jne 0x4770a8
mov ecx, ebx
call fcn.004027b0
jmp 0x4770aa
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x4770dc
call ecx
cmp eax, 0xb7
jne 0x4770d1
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00489f90
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x477102
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 0x477117
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004bc94a
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.004bc909
mov esp, ebp
pop ebp
ret 4