joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
test cl, 0xf
je 0x10042c9a
mov eax, 0xffffffda
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x10042dcb
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test edx, edx
jne 0x10042d31
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, dword [ebp + 0x10]
sub edi, esi
lea edx, [eax + 0xf]
lea eax, [ecx - 1]
mov dword [ebp - 0xc], edx
shr eax, 4
inc eax
mov dword [ebp + 8], eax
nop word [eax + eax]
mov ecx, dword [ebp - 4]
movups xmm2, xmmword [ebx]
push esi
push ebx
call fcn.10042a70
add esp, 8
cmp esi, dword [ebp - 0xc]
ja 0x10042d07
lea eax, [esi + 0xf]
cmp eax, dword [ebp + 0xc]
jb 0x10042d07
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x10042cf4
mov eax, dword [ebp + 0xc]
jmp 0x10042d16
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [eax]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
add esi, 0x10
add ebx, 0x10
sub edi, 0x10
sub dword [ebp + 8], 1
movups xmmword [eax], xmm2
jne 0x10042cd0
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ebx, [ecx - 1]
mov edi, dword [ebp + 0x10]
mov eax, edx
sub eax, edi
shr ebx, 4
inc ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
nop dword [eax + eax]
lea eax, [edi + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x10042d5e
cmp ecx, edi
jae 0x10042d69
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x10042d91
cmp ecx, edx
jb 0x10042d91
mov ebx, esi
mov ecx, edi
mov esi, dword [ebp + 8]
sub ebx, edi
mov edx, 0x10
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x10042d77
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
jmp 0x10042d9d
movups xmm1, xmmword [edx]
movups xmm0, xmmword [edi]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
mov ecx, dword [ebp - 4]
push esi
push esi
call fcn.10042a70
movups xmm0, xmmword [esi]
mov edx, dword [ebp + 0xc]
add esi, 0x10
sub dword [ebp + 8], 0x10
add esp, 8
add edi, 0x10
mov dword [ebp - 8], esi
sub ebx, 1
movups xmmword [edx], xmm0
mov dword [ebp - 0xc], ebx
jne 0x10042d50
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10042fa0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [esi]
lea ecx, [esi + 8]
mov ebx, dword [esi + 4]
mov dword [ebp - 4], ecx
test edx, edx
je 0x10043007
mov edx, dword [ebp + 0xc]
sub dword [ebp + 8], edx
mov esi, dword [ebp - 4]
lea eax, [edi + 1]
movzx edi, al
lea edx, [edx + 1]
mov cl, byte [ecx + edi]
movzx eax, cl
add eax, ebx
movzx ebx, al
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx]
mov byte [esi + edi], al
add al, cl
mov byte [esi + ebx], cl
mov ecx, esi
mov esi, dword [ebp + 8]
movzx eax, al
movzx eax, byte [eax + ecx]
xor al, byte [edx + esi - 1]
sub dword [ebp - 8], 1
mov byte [edx - 1], al
jne 0x10042fc6
mov esi, dword [ebp - 0xc]
mov dword [esi], edi
xor eax, eax
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004ba63
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004baa2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004baa2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004baa2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1004baa2
cmp dword [ecx + 0x74], 0xe
jbe 0x1004baa2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1004e831
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a2d0
push 0x1005a2c8
push str.FlsAlloc
push 0x1f
call fcn.1004e74d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004e865
push dword [ebp + 8]
mov ecx, esi
call dword [0x100581ac]
call esi
jmp 0x1004e86b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004e8af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a2e0
push 0x1005a2d8
push str.FlsGetValue
push 0x21
call fcn.1004e74d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004e8e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x100581ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004e8ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a2e8
push 0x1005a2e0
push str.FlsSetValue
push 0x22
call fcn.1004e74d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004e928
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100581ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005101c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100510b9
push ebx
push esi
call fcn.10050fe5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10050f79
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10051066
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100510b8
push edi
push eax
call fcn.1004c895
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10051086
call fcn.1004c85b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100510b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10050f79
add esp, 0x20
test eax, eax
jne 0x100510a5
push edi
call fcn.1004c85b
jmp 0x100510ad
push ebx
call fcn.1004c85b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10057540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005756d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005756d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40bf90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x40bfc5
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x40bfb8
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x40c041
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x40c08e
cmp esi, 4
jne 0x40c091
cmp edi, 6
jbe 0x40c091
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x40bfe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cda0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x47cd24]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40cde9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cde9
push 0xc00
call eax
test eax, eax
jne 0x40ce87
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ce87
cmp eax, 0x104
ja 0x40ce87
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x40ce27
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x40ce86
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x40ce60
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x40ce50
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x40ce47
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004366be
mov esp, ebp
pop ebp
ret
Function at 0x412140
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x412189
cmp edx, 0x40
je 0x41217b
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.004380b0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4121d0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412230
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x479020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x412670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0043b897
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41269d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x47cd24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.00416c50
cmp eax, 0xffffffff
je 0x415360
test al, 0x10
je 0x415360
mov al, 1
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
push esi
call fcn.00417980
test al, al
je 0x415380
xor al, al
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
push esi
call fcn.00417720
push esi
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.00412c70
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004138a0
test eax, eax
js 0x4153c6
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x4153c6
cmp edx, 1
jne 0x4153ba
mov bl, dl
jmp 0x4154d7
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x14], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00412ba0
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00415500
test al, al
jne 0x415458
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax + eax]
call edi
cmp eax, 0xb7
je 0x4154f8
lea ecx, [ebp - 0x18]
call fcn.004138a0
mov esi, eax
test esi, esi
js 0x4154f8
je 0x4154f8
mov ecx, dword [ebp - 0x18]
cmp esi, 1
jne 0x415432
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x4154f8
cmp eax, 0x2f
je 0x4154f8
lea eax, [esi + 1]
cmp ebx, eax
jae 0x4154f8
cmp esi, dword [ebp - 0x14]
jae 0x41544e
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [ecx + esi*2], ax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00415500
test al, al
je 0x4153f0
cmp esi, dword [ebp - 0x20]
jge 0x4154ca
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.00417440
test eax, eax
jns 0x41547b
mov esi, dword [ebp - 0x20]
jmp 0x41547e
inc esi
add esi, eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.004138d0
cmp byte [0x47fb10], 0
jne 0x4154ba
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.00413d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.004368c6
add esp, 4
test edi, edi
jmp 0x4154c3
push 0
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x4154f8
cmp esi, dword [ebp - 0x20]
jl 0x415463
mov bl, 1
push dword [ebp - 0x24]
call fcn.004368c6
add esp, 4
push dword [ebp - 0x18]
call fcn.004368c6
add esp, 4
mov al, bl
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
xor bl, bl
jmp 0x4154cc
Function at 0x415500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da58
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x47cd24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x47fb10], 0
mov edi, dword [ebp + 8]
jne 0x41556f
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00413d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004368c6
add esp, 4
test esi, esi
je 0x415592
mov al, 1
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
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415592
mov al, 1
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4155b5
xor al, al
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
lea ecx, [ebp - 0x50]
call fcn.00416160
lea ecx, [ebp - 0x28]
call fcn.00412cd0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00416540
test al, al
jne 0x4155df
xor bl, bl
jmp 0x4155e8
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004368c6
add esp, 4
mov al, bl
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 0x415610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47fb10], 0
jne 0x415650
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004368c6
add esp, 4
test esi, esi
pop esi
je 0x415667
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415667
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x415900
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00416c50
cmp eax, 0xffffffff
je 0x41592d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x41592d
and eax, 0xfffffffe
push eax
push esi
call fcn.00416030
test al, al
je 0x415975
cmp byte [0x47fb10], 0
push esi
jne 0x415962
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004368c6
add esp, 4
test esi, esi
je 0x415975
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x415975
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dac6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x47cd24]
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, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x47fb10], cl
jne 0x415a2d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415af8
cmp eax, 0x114
jae 0x415af8
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00413d30
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00412d60
push dword [ebp - 0x36c]
call fcn.004368c6
add esp, 4
mov al, 1
jmp 0x415afa
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x415af8
cmp esi, 0x114
jae 0x415a7a
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.00412e60
mov al, 1
jmp 0x415afa
lea ecx, [ebp - 0x360]
call fcn.00412cd0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x415aa0
push esi
lea ecx, [ebp - 0x360]
call fcn.00413670
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x415aea
push esi
lea ecx, [ebp - 0x360]
call fcn.00415c70
cmp dword [ebp - 0x35c], ebx
jne 0x415aea
lea eax, [esi - 1]
cmp eax, ebx
jne 0x415aea
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.00412d60
push dword [ebp - 0x360]
call fcn.004368c6
add esp, 4
mov al, 1
jmp 0x415afa
push dword [ebp - 0x360]
call fcn.004368c6
add esp, 4
xor al, al
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.004366be
mov esp, ebp
pop ebp
ret 4
Function at 0x415b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dafb
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x47cd24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x47fb10], 0
mov esi, dword [ebp + 8]
jne 0x415c0d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00413d30
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00412d60
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.004368c6
add esp, 4
jmp 0x415c38
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.00412e60
push esi
call fcn.00417ac0
test edi, edi
je 0x415c4e
cmp edi, 0x114
jae 0x415c4e
mov al, 1
jmp 0x415c50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004366be
mov esp, ebp
pop ebp
ret 4

Function at 0x415cd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47fb10], 0
jne 0x415d0e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004368c6
add esp, 4
test esi, esi
pop esi
je 0x415d23
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x415d23
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x415f60
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47fb10], 0
jne 0x415f9d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004368c6
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x416030
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47fb10], 0
jne 0x416071
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004368c6
add esp, 4
test esi, esi
pop esi
je 0x416089
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x416089
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8