joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a9208
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x102184e0]
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 ebx, dword [ebp + 8]
push 0
mov esi, ecx
push 0x101ff169
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.10003330
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003880d
push esi
lea esi, [ebp - 0x30]
call fcn.1003a510
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne 0x1003882d
cmp dword [ebp - 0x1c], 0x10
jb 0x1003880d
mov eax, dword [ebp - 0x30]
push eax
call fcn.100b1971
add esp, 4
xor eax, eax
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.100b197c
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.1003a310
lea eax, [ebp - 0x78]
push eax
lea edi, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.1003a480
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10002ff0
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x64], edi
jb 0x10038870
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.100b1971
add esp, 4
lea edx, [ebp - 0x5c]
test edx, edx
je 0x100388ab
lea ecx, [ebp - 0x5a]
call fcn.100388f0
test eax, eax
je 0x100388ab
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x56], eax
jne 0x100388ab
test eax, eax
je 0x100388ab
lea eax, [ebp - 0x4f]
test eax, eax
je 0x100388ab
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.10038970
test eax, eax
je 0x100388ab
mov esi, 1
jmp 0x100388ad
xor esi, esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100388c5
push eax
call fcn.100b3bf3
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x1c], edi
jb 0x100388d6
mov edx, dword [ebp - 0x30]
push edx
call fcn.100b1971
add esp, 4
mov eax, esi
jmp 0x1003880f
Function at 0x10038e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a8a59
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0xc]
push eax
push edi
add esi, 0x20
push esi
call fcn.1003e960
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov dword [ebp - 0x14], 1
cmp dword [eax - 0xc], ebx
jne 0x10038f9e
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x101ff06c
call fcn.10001c90
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.1003e270
mov byte [ebp - 4], 2
call fcn.10038fc0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038f26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ebx, dword [edi]
push 0
push esi
push 0
push ecx
push 0
push 0
push 0
mov dword [ebp + 8], edx
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [esi], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038f9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 8
Function at 0x100393e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a961a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003952b
mov eax, dword [esi + 0x20]
sub eax, 0x10
call fcn.1001b030
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x58], edi
push eax
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esp + 0x2c]
push ecx
call fcn.1003eb30
lea edx, [esp + 0x14]
push edx
mov ecx, str.sres
mov dword [esp + 0x5c], 1
call fcn.10001c90
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
mov byte [esp + 0x60], 2
call fcn.1003edb0
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100394ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], edi
je 0x100394fb
add eax, 0xfffffff0
call fcn.1001b030
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100394eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], esi
call fcn.1003ed20
jmp 0x10039572
add eax, 0xfffffff0
mov byte [esp + 0x58], 1
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003951b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], esi
call fcn.1003ed20
jmp 0x1003952e
or esi, 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.1003e880
mov edi, dword [ebp + 8]
mov dword [esp + 0x58], 5
mov eax, dword [ebx]
push eax
push edi
lea eax, [esp + 0x24]
push eax
call fcn.1003e960
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x10039572
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10039590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push esi
add eax, eax
lea edx, [ebp + 8]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.Install_Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100395ff
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x100395ce
cmp eax, 2
jne 0x100395e9
mov eax, dword [ebp - 4]
test esi, esi
je 0x100395f9
test eax, eax
je 0x100395f4
test al, 1
jne 0x100395e9
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x100395f9
mov eax, 0xd
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10039800
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.100b52f0
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039870
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.10003570
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.100b197c
mov esp, ebp
pop ebp
ret

Function at 0x100398a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.100b52f0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea ecx, [ebp - 0x20c]
call fcn.10001c90
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.100b197c
mov esp, ebp
pop ebp
ret

Function at 0x10039910
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.100b52f0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039980
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.10003570
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.100b197c
mov esp, ebp
pop ebp
ret
Function at 0x10039e10
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
mov esi, 0x100
push ecx
mov dword [ebp - 0x60c], esi
mov word [ebp - 0x204], ax
call fcn.100b52f0
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.100b52f0
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov word [ebp - 0x604], cx
call fcn.100b52f0
add esp, 0x24
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x608], esi
mov dword [ebp - 0x614], esi
mov dword [ebp - 0x610], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop esi
test eax, eax
jne 0x10039ecb
push str.Fail_To_Get_UserName_n
call fcn.100cf0dd
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b197c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039ed4
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x608], eax
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10039ebb
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10039ebb
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x404]
push edi
push ecx
call fcn.10039ce0
add esp, 0xc
test eax, eax
je 0x10039ebb
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.100b197c
mov esp, ebp
pop ebp
ret
Function at 0x1003a510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a44a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebx]
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003a56b
mov ebx, dword [ebx]
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003a56b
mov ebx, dword [ebp - 0x14]
cmp ebx, edi
jne 0x1003a574
mov dword [esi + 0x10], edi
push edi
jmp 0x1003a604
lea eax, [ebx + 1]
push eax
call fcn.100b03c5
mov edi, eax
add esp, 4
test edi, edi
je 0x1003a5fb
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.100b52f0
mov eax, dword [ebp - 0x3c]
push ebx
push edi
call fcn.1003a640
mov ecx, dword [ebp - 0x38]
add esp, 0x14
push ecx
add ebx, edi
push ebx
push edi
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.1003db60
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.100b3bf3
add esp, 4
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.10002ff0
cmp dword [ebp - 0x18], 0x10
jb 0x1003a61a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b1971
add esp, 4
jmp 0x1003a61a
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0xf
push 0x101ff169
mov ecx, esi
mov byte [esi], 0
call fcn.10003330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b197c
mov esp, ebp
pop ebp
ret

Function at 0x1003a640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003a688
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003e0c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7a50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [ebp - 0x14]
call fcn.1003e010
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
mov ebx, eax
lea eax, [ecx - 0x10]
mov dword [ebp - 0x10], ebx
je 0x1003e175
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x1003e151
cmp dword [ecx - 8], 0
jge 0x1003e141
push 0x80070057
call fcn.10001300
mov dword [ecx - 0xc], 0
mov ecx, dword [edi]
xor edx, edx
mov word [ecx], dx
jmp 0x1003e175
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003e167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [edi], eax
cmp ebx, 0xffffffff
je 0x1003e233
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b03c5
mov ecx, dword [ebp - 0x10]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [esi + ebx*2], ax
test esi, esi
je 0x1003e1e1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003e1d2
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.10002530
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x10]
call fcn.10039fd0
mov byte [ebp - 4], 1
call fcn.10038fc0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e225
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.1001afa0
push esi
call fcn.100b3bf3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e259
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003e270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a87f0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
lea esi, [ebp + 8]
mov dword [ebp + 8], 0
call fcn.1003e010
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e2d3
mov ecx, edi
call fcn.1003e0c0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x1003e2d3
add eax, 0xfffffff0
jmp 0x1003e30c
lea ecx, [ebp - 0x10]
call fcn.1003df40
mov byte [ebp - 4], 1
call fcn.10038fc0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e307
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.1001b030
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e33c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 4
Function at 0x1003e7f0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e87a
push esi
lea eax, [ebp - 4]
push edi
push eax
call fcn.1003a040
mov ecx, dword [ebp - 4]
push 0
push ecx
call fcn.1019ef94
add esp, 0x14
test eax, eax
jne 0x1003e85b
mov eax, dword [esi + 4]
mov edx, dword [ebp - 4]
push ebx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
mov eax, dword [ebp - 4]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003e87a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1003e960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6aa8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 8]
lea esi, [ebp + 0x10]
push esi
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 4]
push esi
push edx
push ecx
push eax
mov dword [ebp + 0x10], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x2000
push esi
call fcn.100b3fa6
push esi
mov edi, eax
push 0
push edi
mov dword [ebp + 8], esi
call fcn.100b52f0
mov edx, dword [ebp + 0x10]
add esp, 0x10
lea ecx, [ebp + 8]
push ecx
push edi
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x1003ea12
add esi, 0x1000
push esi
push edi
call fcn.100b3e2c
mov ecx, dword [ebp + 0x10]
add esp, 8
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0
push 0
push ebx
push ecx
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1003e9e2
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ea17
sub eax, edx
jne 0x1003ea50
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0xc]
push esi
mov ecx, 0x101ff06c
call fcn.10001c90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
shr esi, 1
push edi
dec esi
lea edi, [ebp - 0x10]
call fcn.1003eac0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.1001b030
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003eaa5
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 0xc
Function at 0x1003eb30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a95c3
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x102184e0]
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 ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003ebd1
test byte [0x1022b2bc], 1
jne 0x1003eba4
or dword [0x1022b2bc], 1
push 0x101ac6f0
mov dword [0x1022b2c0], 0x10203da4
call fcn.100b1b34
add esp, 4
mov edi, ebx
lea esi, [ebp - 0x48]
call fcn.100386b0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10002ff0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 0x10
jb 0x1003ebd1
mov eax, dword [ebp - 0x48]
push eax
call fcn.100b1971
add esp, 4
lea esi, [ebx + 4]
push esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1003ebf2
push eax
call fcn.1003eca0
mov dword [ebx + 0x1c], 0
push 0x50
call fcn.100b39fb
mov edi, eax
add esp, 4
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x1003ec5e
push 0xffffffffffffffff
lea esi, [edi + 4]
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
call fcn.10003070
lea eax, [edi + 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.10046430
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
mov eax, dword [edi + 0x14]
jb 0x1003ec48
mov esi, dword [esi]
push esi
lea ecx, [edi + 0x20]
push ecx
call fcn.10046520
mov esi, dword [ebp - 0x4c]
test eax, eax
sete dl
mov byte [edi], dl
jmp 0x1003ec60
xor edi, edi
push esi
mov dword [ebx + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 0x10
jb 0x1003ec7c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100b1971
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.100b197c
mov esp, ebp
pop ebp
ret 4