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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100a1830]
cmp eax, 0xffffffff
jne 0x1005484f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x1005470a
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push 0x1008b658
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005476b
mov dword [0x100a1830], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [0x100a1830], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.100545b0
test eax, eax
je 0x1005484a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.MSVCR110.dll_memset
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
mov dword [ebp - method.CProfileIni.virtual_0], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
sub esp, 8
lea ecx, [ebp - 0x828]
call fcn.1006ce60
lea eax, [ebp - 0x61c]
push 0x1008b650
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
mov ecx, dword [0x100a1830]
add esp, 8
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x100a1830], ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100a1830]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x100552d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov dword [eax], 0
lea eax, [ebx + 1]
push esi
mov al, byte [eax]
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ebx
test al, al
je 0x10055431
cmp al, 0x23
jne 0x10055431
mov al, byte [ebx + 2]
lea ecx, [ebx + 2]
test al, al
je 0x10055431
xor ebx, ebx
lea esi, [ebx + 1]
cmp al, 0x78
jne 0x100553a7
mov edi, dword [ebp - 4]
cmp byte [edi + 3], bl
lea eax, [edi + 3]
je 0x10055428
push 0x3b
push eax
call dword [sym.imp.MSVCR110.dll_strchr]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10055428
cmp byte [ecx], bl
je 0x10055428
mov al, byte [ecx - 1]
mov edx, ecx
dec ecx
sub edx, edi
mov dword [ebp - 4], edx
cmp al, 0x78
je 0x100553ef
lea ecx, [ecx]
cmp al, 0x30
jl 0x10055370
cmp al, 0x39
jg 0x10055370
movsx eax, al
sub eax, 0x30
jmp 0x10055396
cmp al, 0x61
jl 0x10055380
cmp al, 0x66
jg 0x10055380
movsx eax, al
sub eax, 0x57
jmp 0x10055396
cmp al, 0x41
jl 0x10055428
cmp al, 0x46
jg 0x10055428
movsx eax, al
sub eax, 0x37
imul eax, esi
dec ecx
add ebx, eax
mov al, byte [ecx]
shl esi, 4
cmp al, 0x78
jne 0x10055360
jmp 0x100553ef
push 0x3b
push ecx
call dword [sym.imp.MSVCR110.dll_strchr]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10055428
cmp byte [ecx], bl
je 0x10055428
mov edi, dword [ebp - 4]
sub eax, edi
dec ecx
mov dword [ebp - 4], eax
mov al, byte [ecx]
cmp al, 0x23
je 0x100553ef
lea esp, [esp]
cmp al, 0x30
jl 0x10055428
cmp al, 0x39
jg 0x10055428
movsx eax, al
sub eax, 0x30
imul eax, esi
dec ecx
add ebx, eax
mov al, byte [ecx]
lea esi, [esi + esi*4]
add esi, esi
cmp al, 0x23
jne 0x100553d0
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
jne 0x10055413
push eax
mov ecx, ebx
call fcn.10054c80
mov eax, dword [ebp - 4]
inc eax
add esp, 4
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edx], bl
mov dword [eax], 1
mov eax, dword [ebp - 4]
inc eax
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov esi, 0x100a120c
push dword [esi + 4]
push ebx
push dword [esi]
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10055468
add esi, 0xc
inc edi
cmp esi, 0x100a1248
jl 0x10055438
mov edx, dword [ebp - 8]
mov cl, byte [ebx]
mov byte [edx], cl
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea ecx, [edi + edi*2]
pop edi
mov al, byte [ecx*4 + 0x100a1214]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
pop esi
mov dword [eax], 1
mov eax, dword [ecx*4 + 0x100a1210]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10057930
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x80
push esi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005798f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
je 0x100579ad
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x100579b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret

Function at 0x100579d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10057a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10057a43
push edi
call fcn.1006e129
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x10057a5c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
je 0x10057a87
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10057a87
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, edi
jb 0x10057a63
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp esi, edi
pop esi
jae 0x10057ab2
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10057ae0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x80
push esi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10057b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
je 0x10057b5d
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x10057b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret

Function at 0x10057b80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea eax, [ebp - 0x414]
push 0x208
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
lea ecx, [ebp - 0x414]
add esp, 0xc
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057bb6
sub ecx, esi
sar ecx, 1
mov eax, 0x5c
je 0x10057c08
lea esp, [esp]
cmp word [ebp + edx*2 - 0x414], 0x2f
jne 0x10057be3
mov word [ebp + edx*2 - 0x414], ax
lea eax, [ebp - 0x414]
inc edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10057bf0
sub eax, esi
sar eax, 1
cmp edx, eax
mov eax, 0x5c
jb 0x10057bd0
mov edi, dword [sym.imp.MSVCR110.dll_wcsstr]
lea eax, [ebp - 0x40e]
push 0x1007d9c8
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x10057c5c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea esp, [esp]
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x414]
push eax
call ebx
mov eax, 0x5c
mov word [esi], ax
lea eax, [esi + 2]
push 0x1007d9c8
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10057c30
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10057c80
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, edx
test esi, esi
jne 0x10057c94
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ecx
push ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.100579d0
add esp, 8
test eax, eax
je 0x10057c8d
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
call fcn.10057b80
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
push esi
mov ecx, edi
call fcn.10057930
add esp, 4
cmp ebx, 0xffffffff
je 0x10057cf2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x10057d00
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100580d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 8
push ecx
mov esi, edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005813d
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10058129
mov eax, dword [ebp - 0xc]
cdq
mov cl, 0x20
call fcn.10071bf0
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
or dword [esi], eax
mov dword [esi + 4], edx
mov bl, 1
jmp 0x10058136
mov dword [esi], 0
mov dword [esi + 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10058c20
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0x104
lea edi, [esi + 0x10]
mov bl, dl
jb 0x10058c59
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x10058cd6
cmp dword [esi + 0x14], 8
jb 0x10058c67
mov eax, dword [esi]
jmp 0x10058c69
mov eax, esi
lea ecx, [ebp - 0x234]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10058c46
test byte [ebp - 0x234], 0x10
je 0x10058cac
cmp dword [esi + 0x14], 8
jb 0x10058c8e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x10058cb6
mov eax, dword [esi]
jmp 0x10058cb8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10058cd6
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10058cfc
mov esi, dword [esi]
mov eax, dword [edi]
inc eax
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
xorps xmm0, xmm0
lea eax, [ebp - 0x210]
movq qword [ebp - 0x250], xmm0
mov dword [ebp - 0x24c], eax
add esp, 0xc
mov eax, 0x414
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x254], 0
movq qword [ebp - 0x240], xmm0
mov word [ebp - 0x238], 0
mov dword [ebp - 0x250], 3
mov word [ebp - 0x244], ax
test bl, bl
jne 0x10058d71
mov eax, 0x1494
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x242], 0
jne 0x10058c46
test eax, eax
je 0x10058dae
cmp eax, 2
je 0x10058dae
cmp eax, 0x402
je 0x10058dae
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10058dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079a08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1009e034]
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, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
push 0x400
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.10024ab0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x10058e40
mov eax, dword [ebx]
jmp 0x10058e42
mov eax, ebx
push 0x400
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10058e72
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
push ebx
mov ecx, edi
mov word [edi], ax
call fcn.10001f80
jmp 0x10058efa
cmp esi, 0x400
jbe 0x10058ec4
mov ecx, dword [ebp - 0x18]
cmp esi, ecx
ja 0x10058e97
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [eax + esi*2], cx
jmp 0x10058ea6
mov eax, esi
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10024ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x10058eb9
mov ebx, dword [ebx]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [ebp - 0x18]
dec esi
cmp esi, eax
ja 0x10058ee2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [eax + esi*2], cx
jmp 0x10058eef
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10024ab0
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.10007f20
cmp dword [ebp - 0x14], 8
jb 0x10058f0c
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
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.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1005c430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10079fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [edx + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], 0
test ecx, ecx
jne 0x1005c487
push edi
mov ecx, esi
call fcn.10008e70
jmp 0x1005c50c
cmp dword [edx + 0x14], 8
jb 0x1005c491
mov eax, dword [edx]
jmp 0x1005c493
mov eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x1005c4a9
movzx eax, word [edi + 2]
push eax
mov ecx, esi
call fcn.1005d510
jmp 0x1005c509
xor eax, eax
push 0xffffffffffffffff
push eax
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.10001f80
push 0x5c
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.10024ab0
push edi
lea ecx, [esp + 0x14]
call fcn.10008110
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10007f20
cmp dword [esp + 0x24], 8
jb 0x1005c50c
push dword [esp + 0x10]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret

Function at 0x1005c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100748b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0xc]
lea edx, [esi + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.1005c430
add esp, 4
mov ecx, eax
mov dword [esp + 0x30], 0
cmp dword [ecx + 0x14], 8
jb 0x1005c588
mov ecx, dword [ecx]
movzx eax, byte [esi + 0x1c]
push eax
push ecx
push dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.1005c350
cmp dword [esp + 0x20], 8
jb 0x1005c5ae
push dword [esp + 0xc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1005c9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x208], 0xff
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x1005ca60
cmp word [ebp - 0x204], ax
jne 0x1005ca36
xor ecx, ecx
jmp 0x1005ca4f
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ca40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.10003de0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
Function at 0x1005cb10
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10079f9b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1044
call fcn.10071bb0
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x1040], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x1058]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x54], ax
lea eax, [esp + 0x56]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push 0
push esi
push dword [edi]
mov dword [esp + 0x60], 1
mov dword [esp + 0x5c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1005cce3
mov ecx, dword [esp + 0x48]
cmp ecx, 1
jne 0x1005cc03
cmp word [esp + 0x4c], ax
jne 0x1005cbd1
xor ecx, ecx
push ecx
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.10003de0
mov eax, edi
jmp 0x1005cce3
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
jmp 0x1005cbe0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005cbe0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.10003de0
mov eax, edi
jmp 0x1005cce3
cmp ecx, 2
jne 0x1005ccde
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.10008e70
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1060], 0
call fcn.1005bf70
cmp dword [eax + 0x14], 8
jb 0x1005cc3a
mov eax, dword [eax]
push 0x400
lea ecx, [esp + 0x850]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [esp + 0x40], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [esp + 0x44], eax
jb 0x1005cc6c
push dword [esp + 0x2c]
call esi
mov eax, dword [esp + 0x48]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1060], 0xffffffff
cmp dword [esp + 0x28], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
jb 0x1005cca2
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x48]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test eax, eax
je 0x1005ccd7
cmp eax, 0x400
ja 0x1005ccd7
lea eax, [esp + 0x84c]
push eax
mov ecx, ebx
call fcn.10003960
mov eax, edi
jmp 0x1005cce3
mov eax, 0xea
jmp 0x1005cce3
mov eax, 0x3f4
mov ecx, dword [esp + 0x1058]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1040]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
Function at 0x1005cd10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
push edi
mov edi, dword [eax]
mov esi, ecx
jb 0x1005cd34
mov edx, dword [edx]
mov al, byte [eax + 0x1c]
push ebx
test al, al
push esi
mov ecx, 0x200
mov ebx, 0x100
cmovne ecx, ebx
or ecx, 0x20019
push ecx
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x1005cd86
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1005cd8e
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x1005cdc4
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x1005cdc4
test eax, eax
js 0x1005cdc4
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
mov dword [ebp - 8], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1005cdca
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4