joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045d2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x497a26
call fcn.00497330
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x14]
mov dword [edi + 8], eax
lea ecx, [edi + 0x14]
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], 0x4b3420
mov dword [edi + 4], ebx
mov dword [edi + 0x10], eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404378
mov dword [ebp - 4], ebx
lea esi, [edi + 0x40]
mov dword [edi + 0x2c], 0x60
mov dword [edi + 0x38], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x34], ebx
mov dword [ebp + 0x14], esi
and dword [esi], ebx
push 0x28
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.00403d08
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00405528
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0x60], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4053cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 7
mov esi, ecx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
dec eax
neg eax
pop esi
sbb al, al
inc al
pop ebp
ret 4

Function at 0x405db9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x497ad1
call fcn.00497330
sub esp, 0x60
xor eax, eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebx], 0x4b34f8
mov word [ebx + 4], 0x100
mov byte [ebx + 6], al
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], 7
mov word [ebx + 0x44], ax
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 8
call esi
push 0xb
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], 0xffffff
call esi
push 0x1a
mov dword [ebx + 0xc], eax
call esi
push 0xf
mov dword [ebx + 0x14], eax
call esi
mov dword [ebx + 0x18], eax
lea edi, [ebx + 0x34]
xor eax, eax
lea ecx, [ebp - 0x6c]
stosd dword es:[edi], eax
push 5
push 0
push 0
stosd dword es:[edi], eax
push 0xa
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c06a
add esp, 0xc
lea eax, [ebp - 0x6c]
mov ecx, ebx
push eax
call fcn.00405ec9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x410997
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
call fcn.0041097f
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004108ff
cmp dword [eax + 0x14], 8
jb 0x4109b8
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004045a0
test esi, esi
pop esi
jne 0x4109da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4109e2
and dword [edi + 0x10], 0
and dword [edi + 0x14], 0
pop edi
leave
ret

Function at 0x4109e5
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x49823c
call fcn.00497330
sub esp, 0x44
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov al, byte [edi + 0x21]
cmp al, 2
jne 0x410ac9
call fcn.00410612
test al, al
je 0x410ab6
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410a36
mov eax, dword [ebp - 0x10]
add dword [edi + 0x10], eax
jmp 0x410aea
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
lea edx, [edi + 0x28]
mov dword [ebp - 0x20], 0xfb
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x14], str.ReplacementFor_AddData
call fcn.0041590f
push 0x28
push str.Failed_to_write_data_to_file_buffer_for
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040f4d8
push eax
lea ecx, [ebp - 0x38]
call fcn.00403b39
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0040c937
lea ecx, [ebp - 0x38]
call fcn.00403b90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00403b90
push ecx
push str.AddData_error_when_writing_to_file
jmp 0x410abc
push ecx
push str.AddData_error__can_not_create_temp_file
mov ecx, edi
call fcn.00410508
mov byte [edi + 0x22], 1
jmp 0x410aef
cmp al, 1
jne 0x410aef
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ecx + esi]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00410b01
add dword [edi + 0x10], esi
pop esi
adc dword [edi + 0x14], ebx
mov bl, 1
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x411c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x498393
call fcn.00497330
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], 1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp + 0xc]
mov ebx, eax
cmp dword [ecx + 0x14], 8
jb 0x411cc7
mov ecx, dword [ecx]
push ecx
push 0x60
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x411d2b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x411d24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411d1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x411d32
push 0
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00403f56
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
push str.cant_load_resource_handle
jmp 0x411d37
push str.resource_empty
jmp 0x411d37
push str.resource_not_found
jmp 0x411d37
push str.cant_lock_resource_handle
lea ecx, [ebp - 0x1c]
call fcn.00404134
push 0x4c5614
lea eax, [ebp - 0x1c]
push eax
call fcn.004726bd
int3
Function at 0x411d4e
Capabilities:
Create thread

Disassembly:
mov eax, 0x498402
call fcn.00497330
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], edi
call fcn.0041467c
push dword [ebp + 8]
mov dword [ebp - 4], ebx
lea esi, [edi + 0x10]
mov dword [edi], 0x4b44ac
lea ecx, [esi + 8]
mov dword [ebp - 0x14], esi
mov dword [esi], 5
mov word [esi + 4], bx
call fcn.0040d32e
lea ecx, [esi + 0x160]
mov byte [ebp - 4], 1
push ebx
call fcn.00410857
mov byte [ebp - 4], 2
call fcn.0041831e
mov byte [esi + 5], al
test al, al
je 0x411dcf
lea ecx, [ebp - 0x2c]
call fcn.00418480
push eax
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 3
call fcn.0040e6c7
lea ecx, [ebp - 0x2c]
call fcn.00403b90
xor ebx, ebx
mov dword [edi + 0x1f0], ebx
push 0xf
pop eax
mov dword [edi + 0x200], ebx
mov dword [edi + 0x204], eax
mov byte [edi + 0x1f0], bl
mov dword [edi + 0x208], ebx
mov dword [edi + 0x218], ebx
mov dword [edi + 0x21c], eax
mov dword [edi + 0x220], ebx
mov dword [edi + 0x230], ebx
mov dword [edi + 0x234], eax
mov dword [edi + 0x238], ebx
mov dword [edi + 0x248], ebx
mov dword [edi + 0x24c], eax
push dword [ebp + 8]
lea ecx, [edi + 0x250]
mov byte [ebp - 4], 9
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404378
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x26c], eax
lea eax, [edi + 0x274]
push eax
mov dword [edi + 0x270], ebx
call esi
mov dword [edi + 0x28c], ebx
mov dword [edi + 0x290], ebx
push dword [ebp + 0x14]
lea ecx, [edi + 0x294]
mov byte [ebp - 4], 0xb
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040453e
lea eax, [edi + 0x2b0]
mov word [edi + 0x2ac], bx
push eax
call esi
push ebx
push ebx
push edi
push 0x411fcc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x268], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x416861
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416874
test al, 0x10
jne 0x416874
mov al, 1
ret
xor al, al
ret

Function at 0x416a6d
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x498c80
call fcn.00497330
sub esp, 0xc
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x18], esi
push edi
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [esi], ecx
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ecx
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], 1
jb 0x416aad
mov eax, dword [edi]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x416b09
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046fd59
push dword [ebp - 0x10]
mov ebx, eax
push 0
push ebx
call fcn.00471a50
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x416aea
mov edi, dword [edi]
push dword [ebp - 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x416b01
push ebx
mov ecx, esi
call fcn.00407b29
push ebx
call fcn.0046fd54
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x416c04
Capabilities:
Get common file path

Disassembly:
mov eax, 0x498ccb
call fcn.00497330
sub esp, 0x250
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [esi], ebx
push 7
pop edi
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov word [esi], ax
push 0x104
lea eax, [ebp - 0x25c]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x416cc2
push eax
lea eax, [ebp - 0x25c]
mov ecx, esi
push eax
call fcn.004044aa
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x1c], ebx
push str.nto0101l.exe
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], bl
call fcn.00407b29
push 3
pop eax
push 4
push str.skrn
push 4
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00415e50
push eax
mov edx, esi
lea ecx, [ebp - 0x48]
call fcn.00416814
pop ecx
push eax
mov ecx, esi
call fcn.0040678a
lea ecx, [ebp - 0x48]
call fcn.004045a0
lea ecx, [ebp - 0x2c]
call fcn.004045a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x416d1b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
xor esi, esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
push eax
mov ebx, esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x416d94
push eax
call fcn.00474b5e
mov edi, eax
pop ecx
test edi, edi
je 0x416d94
push edi
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x416d8d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4b4a04
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x416d8d
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfeef04bd
jne 0x416d8d
mov ebx, dword [eax + 8]
xor ecx, ecx
or ecx, dword [eax + 0xc]
or ebx, esi
mov esi, ecx
push edi
call fcn.00474b43
pop ecx
pop edi
mov eax, esi
mov edx, ebx
pop esi
pop ebx
leave
ret

Function at 0x416f2a
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x498d2e
call fcn.00497330
sub esp, 0x40
and dword [ebp - 0x30], 0
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
and dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.0041775b
test al, al
jne 0x416f75
push str.C:Temp
lea ecx, [ebp - 0x30]
call fcn.00407b29
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416f9f
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00407b50
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.00416814
pop ecx
lea ecx, [ebp - 0x48]
call fcn.004045a0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416fcf
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416fed
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416fe4
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x30]
call fcn.004045a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x41715e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x498d79
call fcn.00497330
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x18], esi
jb 0x41717d
mov eax, dword [eax]
lea ecx, [ebp + 8]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4171ab
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4172a7
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4171b9
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4171f4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esi], 0
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4172a6
cmp dword [ebp - 0x14], 1
je 0x417208
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esi], 0
jmp 0x4171df
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
push 0
shr eax, 1
push eax
call fcn.0040704e
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
cmp dword [edi + 0x14], 8
jb 0x417232
mov edi, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0
push edi
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
test eax, eax
je 0x417263
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esi], 0
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x41729e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
push ecx
lea ecx, [ebp - 0x30]
call fcn.00419423
cmp eax, 0xffffffff
je 0x417293
lea ecx, [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
ja 0x417288
push eax
call fcn.0040435b
jmp 0x417293
sub eax, dword [ebp - 0x20]
push 0
push eax
call fcn.004067ac
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00406923
lea ecx, [ebp - 0x30]
call fcn.004045a0
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4172b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], esi
jb 0x4172c9
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0x20119
push esi
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41730e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4172ee
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
jmp 0x417310
xor al, al
pop esi
leave
ret
Function at 0x417313
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x498dab
call fcn.00497330
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], edx
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
push edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x18], 1
cmp dword [edi + 0x14], 8
jb 0x417358
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push edx
call ebx
test eax, eax
jne 0x4173ee
mov ecx, dword [ebp - 0x10]
lea eax, [ecx - 1]
cmp eax, 0xffffe
ja 0x4173ee
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c321
cmp dword [edi + 0x14], 8
jb 0x4173aa
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x4173d3
cmp dword [ebp - 0x14], 1
jne 0x4173d3
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.00407b29
jmp 0x4173e6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4173dd
mov eax, dword [esi]
and dword [esi + 0x10], 0
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x2c]
call fcn.00405505
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417687
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 8
pop ebx
xor esi, esi
mov dword [ebp - 4], ebx
mov edi, esi
cmp dword [edx + 0x14], ebx
jb 0x4176a1
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4176cb
cmp dword [ebp - 4], ebx
jne 0x4176cb
cmp dword [ebp - 8], 0xb
jne 0x4176cb
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41775b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x498e42
call fcn.00497330
sub esp, 0x258
lea eax, [ebp - 0x264]
push ebx
push esi
push edi
push eax
mov edi, 0x104
mov esi, ecx
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jbe 0x41779d
mov edx, str.Insufficient_buffer_size_for_temp_path_n
mov ecx, 0x4ca318
call fcn.0040e8f9
jmp 0x417823
test eax, eax
jne 0x417813
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x43]
call fcn.00410470
push ecx
lea ecx, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00410488
push 0x24
push str.Unable_to_get_temp_path__error_code
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.0040f4d8
push eax
lea ecx, [ebp - 0x28]
call fcn.00403b39
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, 0x4ca318
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
call fcn.0040f577
pop ecx
mov dl, 0xa
mov ecx, eax
call fcn.0040ea77
lea ecx, [ebp - 0x28]
call fcn.00403b90
lea ecx, [ebp - 0x40]
call fcn.00403b90
jmp 0x417823
lea eax, [ebp - 0x264]
mov ecx, esi
push eax
call fcn.00407b29
mov bl, 1
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x417834
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417887
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417880
cmp dword [ebp - 4], edi
jne 0x417880
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41788e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 0x80
push 3
push ebx
push ebx
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4178d9
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, dword [ebp - 4]
push esi
setne bl
mov dword [edi], ecx
mov dword [edi + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4178e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push 0x80
push 3
push ebx
push ebx
push accept
push dword [ebp + 8]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417933
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41792c
cmp dword [ebp - 4], edi
jne 0x41792c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x498e6c
call fcn.00497330
sub esp, 0x210
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ecx
mov dword [esi], ecx
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
or edx, 0x8000
mov dword [ebp - 0x10], 1
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x417a11
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00407b29
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret