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

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp + 0x268], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x274]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x284]
push str._SerialNumber_GetCustomData
xor ebx, ebx
mov dword [ebp - 0x2c], esi
call fcn.00401862
pop ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x4030fc
push str.SerialNumber_GetCustomData__ERROR_ACCESS_DENIED_lpdwData_
push 5
pop ebx
jmp 0x4031f9
or dword [esi], 0xffffffff
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
call fcn.0040125d
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push closesocket
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4031f1
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1e8]
movsd dword es:[edi], dword [esi]
call fcn.0040114c
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x34]
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4031e7
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], edi
call fcn.0046fe20
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4a7220
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x4031e0
cmp dword [ebp - 0x80], edi
ja 0x4031e0
mov eax, dword [ebp + 0x288]
dec eax
je 0x4031d2
sub eax, 6
je 0x4031c7
mov dword [ebp - 0x30], 0xa0
jmp 0x4031e0
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x60]
jmp 0x4031db
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x38]
call ebx
jmp 0x4031ec
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
push dword [ebp - 0x34]
call ebx
mov ebx, dword [ebp - 0x30]
push str._SerialNumber_GetCustomData_dwReturnCode
call fcn.00401862
pop ecx
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0046f33a
add ebp, 0x26c
leave
ret 0x18
Function at 0x403ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fe8]
mov eax, 0x4068
call fcn.0046f7a0
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp + 0x3fe4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x3ff4]
push eax
push dword [ebp + 0x3ff0]
mov esi, 0x1000
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00473962
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x6e]
push 0xa
pop ecx
cdq
idiv ecx
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
push str._02.2u:_02.2u:_02.2u__02.2u
lea eax, [ebp + 0x3fa4]
push 0x20
push eax
call fcn.0046f31e
add esp, 0x1c
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
lea eax, [ebp + 0x3fa4]
cmp word [0x4d30a8], bx
je 0x403f6e
push 0x4d30a8
push eax
push str._s__s__s
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046f31e
add esp, 0x18
jmp 0x403f84
push eax
push 0x4a61b8
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046f31e
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4d30a4]
cmp eax, ebx
je 0x403fa6
lea ecx, [ebp + 0x1fa4]
push ecx
push ebx
push 0x180
push eax
call edi
mov eax, dword [0x4d30a0]
cmp eax, ebx
je 0x403fd3
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp + 0x1fa4]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0x6c], 1
call edi
cmp dword [0x4d3098], ebx
je 0x404045
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4d2e90
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push ebx
push ebx
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4940c8
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046ef44
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fa4]
push eax
call fcn.0047787a
pop ecx
push eax
lea eax, [ebp + 0x1fa4]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4d309c], ebx
je 0x4040a7
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1fa4]
cmp word [0x4d30a8], bx
je 0x404076
push 0x4d30a8
push 0x4a61b8
push esi
push eax
call fcn.0046f31e
add esp, 0x14
jmp 0x404085
push 0x48e54c
push esi
push eax
call fcn.0046f31e
add esp, 0x10
lea eax, [eax + eax + 2]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1fa4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x4a
push dword [0x4d309c]
mov dword [ebp - 0x6c], ebx
call edi
mov ecx, dword [ebp + 0x3fe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
add ebp, 0x3fe8
leave
ret
Function at 0x405760
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4d3928
xor edi, edi
xor bl, bl
call fcn.00405650
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [ecx], eax
imul eax, dword [0x4d3c68]
add eax, dword [0x4d3c64]
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4057c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4057c7
mov bl, 0x19
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4057be
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [0x4d3c68]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4057f8
mov bl, 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4057aa
mov edx, dword [0x4d3c68]
cmp edx, dword [esp + 0x14]
je 0x405808
mov bl, 0x1a
jmp 0x4057aa
mov eax, dword [esi + 2]
cmp dword [0x4d392a], eax
jae 0x405818
mov dword [0x4d392a], eax
mov eax, dword [esi + 2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
movzx eax, byte [edx + 0xc]
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx]
push eax
push edx
mov ecx, 0x4d3928
call fcn.004055f0
mov eax, dword [esp + 0x28]
push 0x17a
push esi
push 0x17a
push eax
call fcn.00473d14
add esp, 0x10
jmp 0x4057b4

Function at 0x407150
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
xor esi, esi
cmp byte [0x4d3c50], 0
push edi
mov edi, ecx
mov byte [esp + 0xb], 0
jne 0x40722f
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x407198
call ebx
mov esi, eax
test esi, esi
je 0x407198
mov byte [esp + 0x13], 0x10
jmp 0x40722d
mov eax, dword [0x4d3c64]
push 0
lea ecx, [esp + 0x18]
push ecx
mov byte [eax + 0x4d3c6c], 0
mov edx, dword [0x4d3c64]
push edx
push 0x4d3c6c
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407224
mov eax, dword [0x4d3c64]
cmp eax, dword [esp + 0x14]
jne 0x40721d
push eax
push 0x4d3c6c
mov ecx, edi
call fcn.00407110
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x407216
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00406fb0
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x407207
mov byte [esp + 0x13], 8
jmp 0x40722d
mov byte [0x4d3c50], 1
test esi, esi
je 0x40722d
xor esi, esi
jmp 0x40722d
mov byte [esp + 0x13], 0x12
jmp 0x40722d
mov byte [esp + 0x13], 0x11
jmp 0x40722d
mov byte [esp + 0x13], 0x10
call ebx
mov esi, eax
pop ebp
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40723d
mov cl, byte [esp + 0xb]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x407250
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push 0
push ebp
mov esi, ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40727e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x40727e
mov bl, 0x13
jmp 0x4072ed
mov edi, dword [0x4d3c64]
mov ecx, esi
inc edi
call fcn.00407010
push 0
push edi
push 0x4d3c6c
push 0x312
push esi
mov dword [esi + 0x30e], eax
call fcn.0040df00
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4072eb
mov ecx, dword [0x4d3c64]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x4d3c6c
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4072db
mov bl, 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4072ed
mov edx, dword [0x4d3c64]
cmp edx, dword [esp + 0x14]
je 0x4072ed
mov bl, 0x14
jmp 0x4072ed
mov bl, 0x15
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4072f7
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x407300
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
mov ebp, ecx
mov byte [esp + 0x13], 0
test edi, edi
jne 0x40731b
mov edi, 0x4d4374
mov eax, dword [0x4d3c68]
movzx ecx, word [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov byte [eax + edi], 0
imul ecx, dword [0x4d3c68]
add ecx, dword [0x4d3c64]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40735e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40735e
mov byte [esp + 0x13], 0x16
jmp 0x4073d6
mov eax, dword [0x4d3c68]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4073c9
mov eax, dword [0x4d3c68]
cmp eax, dword [esp + 0x18]
jne 0x4073c2
push eax
push edi
mov ecx, ebp
call fcn.00405c00
mov esi, eax
test esi, esi
jne 0x4073bb
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4073d6
cmp ebp, eax
je 0x4073d6
push 0x17a
push ebp
push 0x17a
push eax
call fcn.00473d14
add esp, 0x10
jmp 0x4073d6
mov byte [esp + 0x13], 0x18
jmp 0x4073d6
mov byte [esp + 0x13], 0x17
jmp 0x4073d6
mov byte [esp + 0x13], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4073e4
mov cl, byte [esp + 0x13]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x40fbf0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x40fc58
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.00473297
add esp, 8
test eax, eax
je 0x40fc3c
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
push esi
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x40fc7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fc7d
mov dword [esi], edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret
mov eax, edi
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret

Function at 0x40ff10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x208], eax
mov edx, dword [esp + 0x210]
push esi
mov eax, edx
push edi
mov edi, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff37
sub eax, esi
sar eax, 1
mov esi, eax
test esi, esi
jle 0x40ffe9
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00470452
lea eax, [esp + esi*2 + 0x12]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x40ff72
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 8], 0
jne 0x40ff93
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ffeb
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0047337b
mov esi, eax
add esp, 8
test esi, esi
je 0x40ffd8
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.0040ff10
mov edi, eax
add esp, 4
mov eax, 0x5c
mov word [esi], ax
test edi, edi
je 0x40ffeb
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
jmp 0x40ffeb
xor edi, edi
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0046f33a
add esp, 0x20c
ret
Function at 0x410090
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp + 0x294], eax
push esi
push edi
push 0
push 0x100
lea eax, [ebp + 0x194]
push eax
push 0x2c
push str.19NZ8YX37VNG10JUFD93DAXC1HV0KRBFTN5M893K12WR
mov esi, ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
call fcn.0040f910
add esp, 0x14
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x7c]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp + 0x194]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410213
cmp dword [ebp - 0x7c], eax
je 0x410213
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x76]
push edx
mov word [ebp - 0x78], cx
call fcn.0046fe20
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x105
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x4101fa
cmp eax, 0x7a
je 0x4101fa
lea ecx, [ebp - 0x78]
push 0x5c
push ecx
call fcn.0047337b
mov edi, eax
add esp, 8
test edi, edi
je 0x410202
push 0
push 0x100
lea edx, [ebp + 0x194]
push edx
push 0x2c
push 0x4a7d60
call fcn.0040f910
add esp, 0x14
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push esi
lea ecx, [ebp + 0x194]
push ecx
push eax
call fcn.00401000
push eax
mov edx, edi
lea eax, [ebp - 0x78]
sub edx, eax
add edx, 2
sar edx, 1
mov ecx, 0x105
sub ecx, edx
push ecx
add edi, 2
push edi
call fcn.00470452
mov eax, dword [ebp - 0x7c]
add esp, 0xc
push 0x20a
lea edx, [ebp - 0x78]
push edx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x410207
test eax, eax
je 0x410202
mov esi, eax
jmp 0x410207
mov esi, 2
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x88]
pop edi
pop esi
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.0046f33a
add ebp, 0x298
mov esp, ebp
pop ebp
ret
Function at 0x410f90
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov eax, dword [ebp + 0x3a8]
mov edx, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3b0]
push esi
lea ecx, [ebp - 0x78]
push edi
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0x208
call fcn.00410900
add esp, 4
test eax, eax
jne 0x4110e3
cmp dword [ebp + 0x3ac], eax
je 0x411005
test ebx, ebx
je 0x410ff1
cmp byte [ebx], al
jne 0x411005
lea edx, [ebp - 0x78]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4110e3
test ebx, ebx
je 0x41110a
cmp byte [ebx], 0
je 0x41110a
mov eax, ebx
lea edx, [eax + 1]
jmp 0x411020
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411020
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x411049
call fcn.00470be0
mov eax, esp
test eax, eax
je 0x41105f
mov dword [eax], 0xcccc
jmp 0x41105c
push eax
call fcn.00470748
add esp, 4
test eax, eax
je 0x41105f
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x411103
push 0
push esi
push edi
dec esi
push esi
push ebx
call fcn.0040f910
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4110cc
mov eax, dword [ebp - 0x80]
xor bl, bl
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4110b4
lea eax, [ebp - 0x7c]
push eax
push 3
push 0
lea ecx, [ebp - 0x78]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4110a9
mov bl, 1
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4110c1
test esi, esi
jne 0x4110c1
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [ebp - 0x7c]
test bl, bl
je 0x4110cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x4110e1
push eax
call fcn.0046f243
add esp, 4
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.0046f33a
add ebp, 0x39c
mov esp, ebp
pop ebp
ret
mov eax, 8
jmp 0x4110e3
mov eax, 0x57
jmp 0x4110e3
Function at 0x411a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push ebx
push 0
push 0
push 0x23
push 0
mov edi, 0xa1
call esi
cmp eax, 1
jne 0x411a4b
push ebx
push 0
push 0
push 0x8023
push 0
call esi
test eax, eax
jge 0x411a75
push ebx
push 0
push 0
push 0x2e
push 0
call esi
cmp eax, 1
jne 0x411a6d
push ebx
push 0
push 0
push 0x802e
push 0
call esi
test eax, eax
jl 0x411b29
mov eax, 0x38
call fcn.0046f7a0
mov esi, esp
test esi, esi
je 0x411b11
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 8], esi
je 0x411b11
push 0
push 0x2d
push esi
push 0x2c
push str.RSGU3VRU9XX37XHMNSCB2W9S214AF2P6JY22275TDTT1
call fcn.0040f910
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x411b2b
mov eax, dword [ebp + 8]
push 0x492588
push eax
push ebx
call fcn.0046ef44
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov edx, dword [ebp - 8]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
xor ecx, ecx
push edx
push ecx
push ecx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 8]
push edi
push eax
push ebx
call fcn.0046ef44
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov eax, edi
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x411b40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov eax, 0x57
test esi, esi
je 0x411be0
cmp byte [esi], 0
je 0x411be0
mov cl, byte [ebp + 0x10]
cmp cl, 1
je 0x411b72
test cl, cl
jne 0x411be0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00411a10
mov edi, eax
add esp, 4
test edi, edi
jne 0x411be0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411ba4
push 1
mov esi, ebx
call fcn.00410010
mov edi, eax
add esp, 4
test edi, edi
jne 0x411be0
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
test al, al
jne 0x411bf4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov ecx, dword [ebp + 8]
mov eax, esp
push esi
push ecx
push eax
call fcn.00401000
mov edx, dword [ebp + 0xc]
push eax
push ebx
push str._s_s.txt
push edx
push ebx
call fcn.0046f31e
add esp, 0x14
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x411bde
mov eax, 0x28
call fcn.0046f7a0
mov edi, esp
test edi, edi
je 0x411cb4
add edi, 8
mov dword [edi - 8], 0xcccc
je 0x411cb4
push 0
push 0x20
push edi
push 0x1f
push str.RCCVN097JJ26YB99ZXYF75ZN533RGPZ
call fcn.0040f910
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
jne 0x411cbb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push esi
push edi
push eax
call fcn.00401000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov ecx, dword [ebp + 8]
mov eax, esp
push esi
push ecx
push eax
call fcn.00401000
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
push str._s_s._s
push eax
push ebx
call fcn.0046f31e
add esp, 0x18
push edi
call fcn.0042dc80
mov eax, dword [ebp - 8]
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 8
push edi
call fcn.0042dc80
mov eax, dword [ebp - 8]
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x411ce0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x224
mov eax, dword [0x4b06f0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x20], eax
xor eax, eax
push 0x206
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x28], edx
mov dword [edi], 0xffffffff
mov byte [esp + 0x1f], 0
mov word [esp + 0x34], ax
call fcn.0046fe20
mov edx, dword [esp + 0x258]
push edx
push 0x104
xor bl, bl
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], bl
call fcn.00411b40
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x411ddb
lea eax, [esp + 0x28]
mov bl, 1
push eax
mov byte [esp + 0x18], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esp + 0x240], 0x40000000
mov dword [esp + 0x24], eax
jne 0x411dc4
test eax, eax
je 0x411dc4
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411dbc
test al, 0x21
je 0x411dc4
and eax, 0xffffffde
push eax
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x411dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [esp + 0x24c], 1
jne 0x411ddb
cmp dword [esp + 0x24], 0
jne 0x411ddb
mov bl, 2
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411df7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
push ecx
push ebp
call eax
mov esi, eax
test bl, bl
je 0x411e47
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x240]
push 0
push 0x80
push edx
push 0
push 0
or eax, 0x80000000
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0xffffffff
mov esi, eax
jne 0x411e4c
test dword [esp + 0x240], 0x40000000
setne al
add al, 5
jmp 0x411e50
mov byte [esp + 0x13], 0x29
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x411e5a
mov byte [ecx], al
mov ecx, dword [esp + 0x230]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f33a
add esp, 0x224
ret