joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042778
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.100506c9
cmp eax, 4
je 0x100428fb
call fcn.100506c9
cmp eax, 5
je 0x100428fb
mov eax, dword [0x100709c0]
mov dword [0x100a3378], eax
mov eax, dword [0x100a4c98]
test eax, eax
je 0x100427c9
push eax
call fcn.100270fc
push dword [0x100709c0]
mov dword [0x100a3378], eax
push dword [0x100a4c98]
call fcn.10027124
mov eax, dword [0x100a4cc0]
cmp eax, dword [0x100a4cb8]
je 0x100427e7
call fcn.10042072
push eax
push dword [0x100a4cc0]
call fcn.10027124
push esi
push edi
call fcn.10042072
mov edi, eax
call fcn.1004223a
mov esi, eax
cmp edi, esi
je 0x100428f9
movzx ecx, di
push ecx
call fcn.10037d14
test eax, eax
jne 0x1004281d
movzx eax, si
push eax
call fcn.10037d14
test eax, eax
je 0x100428f9
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [0x100709b0]
call fcn.10027030
test eax, eax
jne 0x100428f9
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 8]
test eax, eax
je 0x100428f8
imul eax, eax, 0x104
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 0x104
mov esi, ebx
call fcn.10042268
pop ecx
pop ecx
test eax, eax
jne 0x1004288b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100428f8
mov edi, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100428d0
mov ebx, edi
cmp esi, dword [ebp - 8]
jae 0x100428d0
mov eax, 0x104
add ebx, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
inc esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x100428a7
test esi, esi
je 0x100428e9
mov ebx, edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, 0x104
dec esi
jne 0x100428d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.10041f95
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10043da0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x240], eax
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.100483a5
pop ecx
pop ecx
test eax, eax
jne 0x10043ddd
or eax, 0xffffffff
jmp 0x10043f83
push ebx
xor eax, eax
lea ebx, [ebp - 0x22c]
push edi
mov dword [ebp - 0x234], ebx
cmp word [ebp - 0x22c], ax
je 0x10043e04
add ebx, 2
cmp word [ebx], ax
jne 0x10043df6
mov dword [ebp - 0x234], ebx
push 1
call fcn.1004834b
pop ecx
push dword [0x10070988]
call fcn.100270fc
mov edi, eax
mov dword [ebp - 0x230], edi
cmp edi, 0x64
jbe 0x10043e27
xor edi, edi
inc edi
lea eax, [ebp - 0x22c]
sub ebx, eax
sar ebx, 1
push edi
push 0x100153c8
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.10044da2
add esp, 0x10
test ebx, ebx
js 0x10043ed8
cmp ebx, esi
ja 0x10043ed8
lea ecx, [ebp - 0x23c]
mov eax, esi
sub eax, ebx
push ecx
push eax
call fcn.10045b60
pop ecx
pop ecx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.100254a2
push 1
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.1004f30a
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x10043f3b
cmp edi, 0x64
jb 0x10043eb3
xor edi, edi
inc edi
cmp edi, dword [ebp - 0x230]
jne 0x10043e31
push edi
push 0x100153c8
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.10044da2
add esp, 0x10
test ebx, ebx
jns 0x10043ede
call dword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, esi
ja 0x10043ed8
lea eax, [ebp - 0x230]
push eax
sub esi, ebx
push esi
call fcn.10045b60
pop ecx
pop ecx
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.100254a2
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.1004f30a
mov esi, eax
jmp 0x10043f41
mov esi, dword [ebp - 0x238]
cmp edi, 0x64
jb 0x10043f48
xor edi, edi
cmp byte [ebp + 0x10], 0
je 0x10043f5d
lea eax, [edi + 1]
push eax
push dword [0x10070988]
call fcn.10027124
call fcn.10043c34
mov eax, dword [ebp - 0x240]
pop edi
pop ebx
test eax, eax
je 0x10043f81
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10042034
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10048c09
leave
ret
Function at 0x10044055
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x10044064
xor eax, eax
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
inc esi
call fcn.10044df7
mov ebx, eax
push ebx
call fcn.1001f2f6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10044188
push 0x100a4cdc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.100437fd
pop ecx
test eax, eax
jne 0x100440a9
xor esi, esi
jmp 0x10044172
cmp byte [0x100a4f7f], 0
je 0x100440bc
push 0x72766c72
call fcn.10042c89
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x100a4f7f], 1
call fcn.10044df7
pop ecx
cmp eax, ebx
jne 0x100440dd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x10044109
push edi
call fcn.1001f303
lea eax, [ebp - 4]
push eax
call fcn.10044df7
mov ebx, eax
push ebx
call fcn.1001f2f6
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10044109
push 0x72766c73
call fcn.10042c89
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x10044117
cmp ebx, 0xea60
ja 0x100440a2
test esi, esi
je 0x1004412d
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.10044fb0
add esp, 0x10
mov esi, eax
mov byte [0x100a4f7f], 0
test esi, esi
je 0x10044168
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10044157
cmp dword [ebp - 8], ebx
jne 0x10044157
xor esi, esi
inc esi
jmp 0x10044159
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.10045280
add esp, 0xc
jmp 0x10044172
push 0x74697970
call fcn.10042c89
push 0x100a4cdc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10044188
push edi
call fcn.1001f303
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10045280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x100452c8
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.1004f30a
mov esi, eax
cmp esi, 0xffffffff
je 0x100452c7
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x100452ca
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x100a4d1c], 0x2000
je 0x100452f6
call fcn.100482d0
jmp 0x1004538b
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100483a5
pop ecx
pop ecx
test eax, eax
je 0x1004538a
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x100153d8
call fcn.1002449b
call fcn.10043d5b
test al, al
je 0x10045388
push edi
call fcn.10043f90
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.10043da0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x10045387
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.10044055
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x10045378
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10045387
push ebx
push 0x100a4d6c
push eax
call fcn.10042034
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10048c09
leave
ret

Function at 0x100460c5
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov si, word [0x100a5004]
test si, si
jne 0x100461e3
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
xor esi, esi
mov word [0x100a5004], ax
mov dword [ebp - 8], esi
call fcn.10045cae
mov edi, 0xc04
test al, al
jne 0x10046107
push 0x1c549c
call fcn.10042c89
jmp 0x10046162
lea eax, [ebp - 8]
push eax
movzx eax, word [0x100a5004]
push eax
call fcn.10038537
test eax, eax
js 0x10046162
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call fcn.1003fc8c
test eax, eax
js 0x10046136
push dword [ebp - 4]
push esi
push esi
call fcn.10053c98
push 0x1001c1e8
push 0x1001c1cc
push dword [ebp - 8]
xor eax, eax
call fcn.100464a8
add esp, 0xc
test eax, eax
je 0x10046162
call fcn.1004ca0b
cmp ax, di
jne 0x10046162
mov word [0x100a5004], di
push ebx
call fcn.1004cab3
test eax, eax
je 0x100461da
mov si, word [0x100a5004]
movzx eax, si
mov ebx, 0x809
cmp eax, ebx
je 0x100461b6
cmp eax, edi
je 0x100461a3
mov edi, 0x241a
cmp eax, edi
je 0x1004619c
mov edi, 0x281a
cmp eax, edi
jne 0x100461e1
mov esi, 0xc1a
jmp 0x100461a8
mov esi, 0x81a
jmp 0x100461a8
mov esi, 0x404
push esi
call fcn.100466ee
pop ecx
test eax, eax
je 0x100461da
push edi
jmp 0x100461c7
mov esi, 0x409
push esi
call fcn.100466ee
pop ecx
test eax, eax
je 0x100461da
push ebx
call fcn.100466ee
pop ecx
test eax, eax
jne 0x100461da
mov word [0x100a5004], si
jmp 0x100461e1
mov si, word [0x100a5004]
pop ebx
pop edi
movzx eax, si
pop esi
leave
ret
Function at 0x1004643f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x100709c0]
push edi
push dword [ebp + 0x10]
mov edi, eax
lea eax, [ebp + 0x14]
call fcn.100463be
pop ecx
call fcn.100460c5
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp + 0x14]
call fcn.100463be
pop ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100463be
call fcn.100420ea
push dword [ebp + 0x10]
movzx esi, ax
lea eax, [ebp + 0x14]
call fcn.100463be
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100463e3
add esp, 0x18
pop edi
pop esi
pop ebp
ret
Function at 0x10047800
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov byte [edi], 1
call fcn.10048227
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x10047a1a
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100477d5
pop ecx
pop ecx
test eax, eax
je 0x10047a1a
xor eax, eax
inc eax
push eax
push ebx
push 0x80
push 3
push ebx
push eax
push Ordinal_4
lea eax, [ebp - 0x20c]
push eax
call fcn.1004f30a
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x100478b8
cmp eax, 0x20
jne 0x100478ae
push 0x1c8016
call fcn.10042c89
mov eax, ebx
mov byte [edi], al
jmp 0x10047a1a
cmp eax, 5
je 0x100478a5
xor eax, eax
inc eax
jmp 0x100478a7
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x10047a04
push edi
call fcn.10041f84
mov esi, eax
test esi, esi
je 0x10047a04
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10047a04
cmp edi, dword [ebp - 0x218]
jne 0x10047a04
push ebx
push edi
push esi
call fcn.10043c7f
add esp, 0xc
test eax, eax
je 0x10047a04
cmp dword [esi + 0x78], ebx
jne 0x10047a04
mov eax, dword [esi + 0x7c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x7c], ecx
jne 0x10047a04
lea edi, [esi + 0x80]
test eax, eax
jle 0x100479d8
cmp dword [edi], 0x2102
ja 0x1004797e
je 0x1004799e
cmp dword [edi], 0x10
je 0x1004799e
cmp dword [edi], 0x195b
je 0x1004799e
cmp dword [edi], 0x19df
jbe 0x100479ae
cmp dword [edi], 0x19e2
jbe 0x1004799e
jmp 0x100479ae
cmp dword [edi], 0x24c8
jb 0x100479ae
cmp dword [edi], 0x24cb
jbe 0x1004799e
cmp dword [edi], 0x24cd
je 0x1004799e
cmp dword [edi], 0x2696
jne 0x100479ae
push dword [edi + 4]
push dword [edi]
call fcn.100430bf
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x100479c6
cmp dword [edi], 0x19e1
je 0x100479c6
cmp dword [edi], 0x24cd
jne 0x100479c7
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x10047955
cmp ebx, 3
je 0x100479e6
call fcn.1004cad7
test eax, eax
je 0x100479f1
cmp ebx, 2
jl 0x100479f1
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x10047a04
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x10047a04
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10047a1a
push esi
call fcn.10041f95
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048c09
leave
ret
Function at 0x10047bb6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.1004882b
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x38]
push eax
push 0x11
call fcn.100430bf
push dword [ebp - 0x24]
push 0x12
call fcn.100430bf
mov edi, Ordinal_4
xor ecx, ecx
mov eax, edi
cpuid
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp dword [ebp - 0x14], edi
jbe 0x10047c3d
xor ecx, ecx
lea eax, [edi + 1]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 8], 0x20000000
je 0x10047c39
push 9
jmp 0x10047c42
push 0
jmp 0x10047c42
push 0xffff
push 0x2699
call fcn.100430bf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048c09
leave
ret

Function at 0x10048040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 1
push esi
push 0x1001c298
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100480e8
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x1001c2c4
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100480da
push dword [ebp - 0x130]
push 0x22df
call fcn.100430bf
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100480f2
push 0x1c800b
call fcn.10042c89
lea eax, [ebp - 0x120]
push eax
call fcn.1004d1df
pop ecx
pop esi
test al, al
je 0x10048173
push dword [ebp - 0x114]
push 0x1a
call fcn.100430bf
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.100430bf
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.100430bf
push dword [ebp - 0x11c]
push 0x22e1
call fcn.100430bf
push dword [ebp - 0x118]
push 0x22e2
call fcn.100430bf
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.100430bf
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.100430bf
lea eax, [ebp - 0x124]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x100481ac
push dword [ebp - 0x124]
push 0x1af7
call fcn.100430bf
jmp 0x100481c2
push 0xffffffffffffffff
push 0x1af7
call fcn.100430bf
push 0x1c800c
call fcn.10042c89
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048c09
leave
ret
Function at 0x100481dc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add ecx, 0x80000
adc eax, 0
shrd ecx, eax, 0x14
push ecx
push 0xc
shr eax, 0x14
call fcn.100430bf
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048c09
leave
ret

Function at 0x100483a5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.100506c3
test eax, eax
je 0x100483c8
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.1005056c
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.1004872e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10048458
push edi
call fcn.1004200c
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x1004840a
push 0xffffffffffffffff
push 0x100152c8
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x10048458
push 0xffffffffffffffff
push 0x1001c314
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x10048458
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10048458
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x10048458
push 0x1cb247
call fcn.10042c89
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x100485ab
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x100485cb
push 0x1cb21e
call fcn.10042c89
jmp 0x1004872b
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100485e2
push 0x1cb21f
call fcn.10042c89
jmp 0x1004872a
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x10048601
cmp ebx, 8
je 0x10048601
cmp ebx, 3
je 0x10048601
push 0x1cb220
jmp 0x100486fd
cmp dword [eax], esi
je 0x1004860f
push 0x1cb221
call fcn.10042c89
cmp dword [edi], esi
je 0x1004861d
push 0x1cb222
call fcn.10042c89
push edi
push esi
push ebx
mov dword [edi], esi
call sub.Secur32.dll_GetUserNameExW
movzx esi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x10048704
cmp eax, 0xea
jne 0x10048704
mov eax, dword [edi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001f2f6
mov esi, dword [ebp + 0xc]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x1004866c
push 0x1cb240
jmp 0x100486e5
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10048687
push 0x1cb241
jmp 0x100486e5
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x10048699
push 0x1cb242
call fcn.10042c89
push 2
pop eax
cmp ebx, eax
jne 0x100486b5
push dword [edi]
mov eax, dword [esi]
call fcn.10048547
pop ecx
test eax, eax
jne 0x10048729
push 0x1cb243
jmp 0x100486e5
cmp ebx, 8
jne 0x100486f3
cmp dword [esi], 0
jne 0x100486c6
push 0x1cb21c
jmp 0x100486db
push 0x40
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100486ec
push 0x1cb21d
call fcn.10042c89
push 0x1cb244
call fcn.10042c89
jmp 0x10048711
xor ecx, ecx
mov word [eax], cx
jmp 0x10048729
cmp ebx, 3
je 0x10048729
push 0x1cb245
call fcn.10042c89
jmp 0x10048729
push 0x1cb223
call fcn.10042c89
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x10048721
push dword [esi]
call fcn.1001f303
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x10048729
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1004872e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x1c
push edi
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100487a9
push dword [ebp + 8]
push edi
push 0x1001c2d8
call fcn.1002449b
inc esi
cmp dword [ebp + 0xc], 0
je 0x100487a9
push edi
call fcn.100505e3
test eax, eax
jne 0x100487a9
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10042034
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001c300
call fcn.10050489
lea eax, [ebp - 0x20c]
push eax
call fcn.10050602
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10048c09
leave
ret
Function at 0x100487ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 2
push 0x1001c3e4
push 0x1001c380
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x10048827
push 0x1d01a3
call fcn.10042c89
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x10048953
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40c], eax
test esi, esi
jne 0x1004899c
xor eax, eax
jmp 0x10048b16
and dword [esi], 0
push ebx
push edi
xor edi, edi
inc edi
push edi
push eax
push ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.10050d24
mov ecx, dword [ebp - 0x40c]
and dword [ebp - 0x408], 0
and dword [ebp - 0x41c], 0
mov ebx, eax
mov eax, ecx
shr eax, 0x1a
not eax
and eax, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x10048a03
mov eax, ecx
shr eax, 0x17
push ebx
and eax, edi
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0x40c]
mov dword [esi], eax
mov eax, dword [ebp - 0x410]
cmp dword [esi], 0
jne 0x10048ab0
test eax, eax
je 0x10048ab0
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.10050bab
test eax, eax
je 0x10048a92
mov eax, dword [ebp - 0x40c]
shr eax, 0x19
push ebx
and eax, edi
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x40c]
call fcn.10050cdf
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x10048a98
cmp dword [ebp - 0x41c], 0
jne 0x10048a98
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x100489dd
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x10048ab0
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x10048ab6
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x10048ac0
cmp dword [esi], 0xffffffff
jne 0x10048ae0
cmp dword [ebp - 0x410], 0
je 0x10048ad3
push 0x6b633230
call fcn.10042c89
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x10048b06
test ebx, ebx
jne 0x10048af3
mov ebx, 0x1001c005
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.100488fc
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x10048b12
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10048c09
leave
ret 0x1c