joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b58e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x5b593e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x5b5900
mov eax, dword [edi]
jmp 0x5b5a29
cmp eax, 0x4e0
jb 0x5b5a29
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x5b5960
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x5b59b0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b96b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d65f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x7e500c]
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 dword [ebp - 0x4c], ecx
call fcn.005b6ea0
mov ecx, eax
call fcn.005b9430
push eax
lea ecx, [ebp - 0x40]
call fcn.004382a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov ebx, dword [ebp - 0x40]
push 0
push dword [ebp - 0x30]
cmovae eax, ebx
push eax
sub esp, 8
call fcn.0052e710
xor esi, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x48]
lea edx, [esi + 8]
movsx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, esi
shl esi, 8
shr ecx, 8
xor ecx, eax
movzx eax, cl
xor si, word [eax*2 + 0x71c178]
movzx esi, si
sub edx, 1
jne 0x5b9723
push 2
push 0x787d34
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], dl
call fcn.00427530
push dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
push esi
mov byte [ebp - 4], 1
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push eax
call fcn.005b94e0
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 0x10
jb 0x5b97ae
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5b97a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b97fd
push edx
push ecx
call fcn.0065106e
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x5b97dd
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x5b97d3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b97fd
push ecx
push ebx
call fcn.0065106e
add esp, 8
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.00650ddc
mov esp, ebp
pop ebp
ret 4
call fcn.0066bea5
int3
Function at 0x5b9810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d6638
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x7e500c]
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 dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push eax
call fcn.004382a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [esi + 4]
push dword [esi]
call fcn.004a3350
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x5b9877
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.004389e0
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x5b988d
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.004389e0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5b98d0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5b98c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b99d8
push edx
push ecx
call fcn.0065106e
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
sub esp, 8
call fcn.0052e710
xor esi, esi
mov dword [ebp - 0x44], edx
mov ebx, eax
lea edi, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
lea edx, [esi + 8]
nop dword [eax]
movsx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, esi
shl esi, 8
shr ecx, 8
xor ecx, eax
movzx eax, cl
xor si, word [eax*2 + 0x71c178]
movzx esi, si
sub edx, 1
jne 0x5b9900
push 2
push 0x787d60
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], dl
call fcn.00427530
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
push 1
push esi
mov byte [ebp - 4], 2
push dword [ebp - 0x44]
push ebx
push eax
call fcn.005b94e0
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 0x10
jb 0x5b9988
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5b997e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b99dd
push edx
push ecx
call fcn.0065106e
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5b99b8
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5b99ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b99dd
push edx
push ecx
call fcn.0065106e
add esp, 8
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.00650ddc
mov esp, ebp
pop ebp
ret 0xc
call fcn.0066bea5
call fcn.0066bea5
int3
Function at 0x5ba3b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d6746
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x7e500c]
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
lea esi, [edi + 0xa8]
push esi
mov dword [ebp - 0x238], esi
call fcn.006549b4
add esp, 4
test eax, eax
jne 0x5ba510
mov dword [ebp - 4], eax
cmp byte [edi + 0xa1], al
je 0x5ba4d8
push 0x202
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x234], 1
push eax
xor bl, bl
call fcn.00663090
xor eax, eax
mov dword [ebp - 0x218], 0x100
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x214]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GetComputerNameExW]
test eax, eax
je 0x5ba4b7
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5ba480
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004271d0
cmp dword [ebp - 0x220], 0
je 0x5ba4b7
mov bl, 1
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x230]
call fcn.00427170
cmp dword [ebp - 0x234], 0
jne 0x5ba4d8
mov byte [edi + 0x9c], bl
mov byte [edi + 0xa1], 0
mov bl, byte [edi + 0x9c]
push esi
mov dword [ebp - 4], 2
call fcn.006549d9
add esp, 4
test eax, eax
jne 0x5ba516
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.00650ddc
mov esp, ebp
pop ebp
ret
push eax
call fcn.00654ca6
push eax
call fcn.00654ca6
int3
Function at 0x5ba520
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d6778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x7e500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x808880
mov dword [ebp - 0x28], 0x808880
call fcn.006549b4
add esp, 4
test eax, eax
jne 0x5ba632
mov dword [ebp - 4], eax
mov esi, dword [0x8087e8]
test esi, esi
jne 0x5ba605
push 4
call fcn.00650ded
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [eax], esi
mov dword [eax], esi
mov ecx, dword [0x8087e8]
mov dword [0x8087e8], eax
test ecx, ecx
je 0x5ba5a4
push 4
push ecx
mov dword [ecx], esi
call fcn.0065106e
add esp, 8
push edi
lea ecx, [ebp - 0x24]
call fcn.00427050
mov esi, dword [0x8087e8]
cmp dword [esi], 0
jne 0x5ba5f7
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x5ba5f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x5ba5f7
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
mov dword [esi], eax
lea ecx, [ebp - 0x24]
call fcn.00427170
mov esi, dword [0x8087e8]
push 0x808880
mov dword [ebp - 4], 1
call fcn.006549d9
add esp, 4
test eax, eax
jne 0x5ba638
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00654ca6
push eax
call fcn.00654ca6
int3
Function at 0x5bac20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d6891
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x7e500c]
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 dword [ebp - 0x10], esp
mov esi, ecx
push 0x80881c
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], 0x80881c
call fcn.006549b4
add esp, 4
test eax, eax
jne 0x5bae7b
mov dword [ebp - 4], eax
cmp dword [esi + 0x48], eax
jne 0x5bae44
push 0xf
push str.unknown_machine
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
call fcn.00427530
push 0x200
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00663090
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x214]
push eax
push 5
call dword [sym.imp.KERNEL32.DLL_GetComputerNameExW]
test eax, eax
je 0x5bae44
xor eax, eax
mov dword [ebp - 0x43c], 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x438], 7
mov word [ebp - 0x44c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5bad00
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44c]
call fcn.004271d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x43c], 0
je 0x5bad5b
cmp dword [ebp - 0x438], 8
lea ecx, [ebp - 0x44c]
lea edx, [esi + 0x38]
cmovae ecx, dword [ebp - 0x44c]
call fcn.004ed160
lea ecx, [ebp - 0x44c]
call fcn.00427170
jmp 0x5bae44
push 0x200
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00663090
add esp, 0xc
mov dword [ebp - 0x41c], 0x100
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
call dword [sym.imp.KERNEL32.DLL_GetComputerNameExW]
test eax, eax
je 0x5bae16
xor eax, eax
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x420], 7
mov word [ebp - 0x434], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5badc0
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.004271d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x424], 0
je 0x5bae0b
cmp dword [ebp - 0x420], 8
lea ecx, [ebp - 0x434]
lea edx, [esi + 0x38]
cmovae ecx, dword [ebp - 0x434]
call fcn.004ed160
lea ecx, [ebp - 0x434]
call fcn.00427170
lea ecx, [ebp - 0x44c]
call fcn.00427170
jmp 0x5bae44
push 0x80881c
mov dword [ebp - 4], 5
call fcn.006549d9
add esp, 4
test eax, eax
jne 0x5bae81
lea eax, [esi + 0x38]
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.00650ddc
mov esp, ebp
pop ebp
ret
push eax
call fcn.00654ca6
push eax
call fcn.00654ca6
int3
Function at 0x5c15d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b8dd9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7e500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov ecx, edi
push 0x1e
mov dword [ebp - 0x10], 1
call fcn.0044cca0
xor esi, esi
nop dword [eax]
mov eax, 0xf2b9d649
mov ecx, esi
mul esi
shr edx, 8
imul eax, edx, 0x10e
sub ecx, eax
mov al, byte [ecx + 0x71d840]
xor al, byte [esi + ebx]
movzx ecx, al
push ecx
push 1
mov ecx, edi
call fcn.0043c7b0
inc esi
cmp esi, 0x1e
jb 0x5c1630
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5c19d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d713e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x7e500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 3
push eax
call fcn.004382a0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.004382a0
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x30]
call fcn.004382a0
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x48]
call fcn.004382a0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x5c1a72
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c1a68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c1b50
push edx
push ecx
call fcn.0065106e
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x5c1ab8
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c1aae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c1b50
push edx
push ecx
call fcn.0065106e
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x5c1afa
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c1af0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c1b50
push edx
push ecx
call fcn.0065106e
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x5c1b3c
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c1b32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c1b50
push edx
push ecx
call fcn.0065106e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x60
call fcn.0066bea5
int3
Function at 0x5c74d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c2808
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004fe700
test eax, eax
jne 0x5c762d
push 1
push 0x71b0d0
lea ecx, [ebp - 0x28]
call fcn.004272f0
cmp dword [0x7fb708], 8
mov ecx, 0x7fb6f4
push dword [0x7fb704]
cmovae ecx, dword [0x7fb6f4]
push ecx
mov ecx, eax
call fcn.004272f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x5c7592
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x5c7592
cmp eax, 0xb7
je 0x5c7592
cmp eax, 0x50
jne 0x5c762d
push 1
push 0x71b0d0
lea ecx, [ebp - 0x28]
call fcn.004272f0
cmp dword [0x7fb5e8], 8
mov ecx, 0x7fb5d4
push dword [0x7fb5e4]
cmovae ecx, dword [0x7fb5d4]
push ecx
mov ecx, eax
call fcn.004272f0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [esi + 8]
je 0x5c75db
mov ecx, eax
call fcn.00427050
add dword [esi + 4], 0x18
jmp 0x5c75e3
push eax
mov ecx, esi
call fcn.004409f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.004ffee0
test eax, eax
jne 0x5c7629
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [esi + 8]
je 0x5c7621
mov ecx, eax
call fcn.00427050
add dword [esi + 4], 0x18
xor esi, esi
jmp 0x5c7632
push eax
mov ecx, esi
call fcn.004409f0
xor esi, esi
jmp 0x5c7632
mov esi, 1
lea ecx, [ebp - 0x28]
call fcn.00427170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x5ca0a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x7e500c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x11c
push 0
push eax
call fcn.00663090
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
movzx ecx, si
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push 0x23
push eax
mov dword [esp + 0x28], 0
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x5ca169
inc esi
cmp esi, 0xf
jl 0x5ca0e0
jmp 0x5ca16e
lea eax, [esi - 1]
mov dword [ebx], eax
mov edi, 1
movzx esi, word [ebx]
lea eax, [esp + 0x14]
push pe_nt_image_headers32
push 0
push eax
mov dword [esp + 0x1c], 0x11c
call fcn.00663090
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x5ca1fd
inc edi
cmp edi, 0xa
jl 0x5ca173
jmp 0x5ca203
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
push pe_nt_image_headers32
push 0
mov dword [esp + 0x18], 0x11c
movzx edi, word [eax + 4]
movzx esi, word [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00663090
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x5ca2b4
inc ebx
cmp ebx, 0xa
jl 0x5ca210
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
Function at 0x5cb2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x5cb36e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x5cb360
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5cb340
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004271d0
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x5cb3b0
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x5cb3b0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5cb390
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004271d0
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5cb400
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x5cb3c3
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x5cb400
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x5cb3f5
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x5cb3dc
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004eeb70
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00650ddc
mov esp, ebp
pop ebp
ret

Function at 0x5cb420
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, eax
test edi, edi
je 0x5cb46c
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0066f597
mov esi, eax
add esp, 4
test esi, esi
je 0x5cb46c
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x5cb472
push esi
call fcn.0066bcce
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5cb477
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.004271d0
push esi
call fcn.0066bcce
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret