joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bb40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 8]
movzx edx, word [0x4257ec]
mov ecx, dword [0x4257f4]
sub esp, 0xc
push esi
push edi
push edx
movzx eax, ax
push eax
push 5
push ecx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41bb7f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
jmp 0x41bb81
xor edi, edi
mov ecx, dword [0x425630]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x41bba3
lea esi, [ebp - 0xc]
call fcn.0041b9c0
jmp 0x41bbaa
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
call fcn.0041b8c0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov ecx, dword [0x4257f0]
push ebx
push 0x41bcb0
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov edx, dword [0x425630]
push esi
push 0
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41bbf0
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 8]
movzx edx, word [0x4257ec]
mov ecx, dword [0x4257f4]
sub esp, 8
push esi
push edi
push edx
movzx eax, ax
push eax
push 5
push ecx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41bc2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
jmp 0x41bc31
xor edi, edi
mov ecx, dword [0x425630]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test edi, edi
je 0x41bc53
lea esi, [ebp - 8]
call fcn.0041b9c0
jmp 0x41bc5a
mov dword [ebp - 4], 0
lea edx, [ebp - 8]
push edx
call fcn.0041b8c0
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov ecx, dword [0x4257f0]
mov esi, dword [ebp + 0xc]
push ebx
push 0x41bcb0
push eax
push edi
push ecx
mov dword [ebx + 0x10], esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 5
push eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x425630]
mov esi, dword [esi]
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41bdf0
Capabilities:
Extract resource via kernel32 functions
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov dword [0x42580c], 0
test esi, esi
je 0x41be36
mov eax, dword [esi]
test eax, eax
je 0x41be36
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea esp, [esp]
push eax
mov eax, dword [edi + 0xc]
push eax
call ebx
mov ecx, dword [esi + 4]
add esi, 8
mov dword [edi + ecx], eax
mov eax, dword [esi]
test eax, eax
jne 0x41be20
mov edi, dword [edi + 8]
movzx edx, word [0x4257ec]
mov eax, dword [0x4257f4]
push edx
movzx ecx, di
push ecx
push 0xf0
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41bf86
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41bf86
mov byte [ebp - 1], 1
mov dword [ebp - 8], 0xffffffff
movzx eax, word [esi]
test ax, ax
je 0x41bf86
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, eax
add esi, 8
sub ecx, 0x401
mov dword [ebp - 0xc], edx
je 0x41bec4
sub ecx, 2
je 0x41bebd
sub ecx, 0xe31
jne 0x41bec9
mov eax, 0x40b
jmp 0x41bec9
mov eax, 0x143
jmp 0x41bec9
mov eax, 0x180
movzx ebx, ax
mov eax, ebx
sub eax, 0x143
je 0x41bf0b
sub eax, 0x3d
je 0x41bf0b
sub eax, 0x28b
jne 0x41bf79
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [edx + 0xc]
push 0
push 0x40b
push edi
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x38], esi
push eax
jmp 0x41bf6a
cmp dword [ebp - 8], 0
jge 0x41bf3d
movzx edx, word [0x4257ec]
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 0x1004
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
movzx ecx, ax
add esp, 4
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push 0x100
lea edx, [ebp - 0x240]
push edx
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [eax + 0xc]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x41bf79
mov byte [ebp - 1], 0
add esi, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
jne 0x41be84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c0b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xc]
sub esp, 0x108
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [ebp + 8], 0
mov edi, eax
je 0x41c0ea
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xc
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x421448]
mov cx, word [0x42144c]
push 0x80
lea edx, [ebp - 0x108]
push edx
push edi
mov dword [ebp - 8], eax
mov word [ebp - 4], cx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x108]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c120
push esi
sub eax, edx
sar eax, 1
push 3
lea esi, [ebp + eax*2 - 0x10e]
push 0x420834
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41c14f
mov word [esi], ax
cmp byte [0x425800], 0
mov ecx, 0x25bc
mov word [ebp - 6], cx
pop esi
je 0x41c18f
lea edx, [ebp + 8]
push edx
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x41c18f
cmp dword [ebp + 8], 0
je 0x41c18f
mov ecx, 0x3e
mov word [ebp - 6], cx
push ebx
mov ebx, 0x80
lea ecx, [ebp - 8]
lea eax, [ebp - 0x108]
call fcn.00406540
lea edx, [ebp - 0x108]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41d450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20c
push ebx
push esi
push edi
test ax, ax
je 0x41d60a
mov ecx, 0x412
cmp ax, cx
je 0x41d60a
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
push 0x104
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_wchar_t____thiscall_C2bString::GetBuffer_int_]
mov edx, dword [0x4257f0]
push 0x104
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5c
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x41d4bb
add esi, 2
jmp 0x41d4bd
mov esi, edi
push 0x2e
push esi
call ebx
add esp, 8
test eax, eax
je 0x41d4ce
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp + 8]
movzx edx, di
push esi
push edx
push str._d_s.mui
lea esi, [ebp - 0x20c]
call fcn.004167a0
add esp, 0xc
push 0
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::ReleaseBuffer_int_]
mov eax, esi
push eax
lea ecx, [ebp - 4]
push 9
push ecx
call dword [sym.imp.Ngs3.dll_ngsGetPath]
mov edx, dword [ebp - 4]
add esp, 0xc
push 2
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x41d5e3
cmp dword [ebp + 0xc], 0
je 0x41d5f8
push edi
push 1
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41d5dc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d5dc
movzx eax, word [esi]
mov ecx, eax
shr ecx, 1
lea edi, [esi + ecx*2]
cmp eax, 0x28
jbe 0x41d5dc
cmp word [esi + 2], 0
jbe 0x41d5dc
push 0xf
lea edx, [esi + 6]
push 0x421464
push edx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41d5dc
lea edx, [esi + 0x24]
cmp edx, edi
jae 0x41d5dc
lea ebx, [ebx]
cmp word [edx], 0
jne 0x41d59f
add edx, 2
cmp edx, edi
jb 0x41d590
jmp 0x41d5dc
cmp edx, edi
jae 0x41d5dc
cmp dword [edx], 0xfeef04bd
jne 0x41d5dc
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov eax, 1
mov edi, ecx
and edi, 0xf
imul edi, eax
lea eax, [eax + eax*4]
shr ecx, 4
add esi, edi
add eax, eax
test ecx, ecx
jne 0x41d5b5
movzx eax, word [edx + 0x12]
movzx ecx, word [edx + 0x10]
imul eax, eax, 0x64
add eax, ecx
cmp esi, eax
je 0x41d5f5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 4]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
mov word [0x4257ec], di
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
jmp 0x41d61c
mov ebx, dword [0x4257f0]
mov edx, 0x412
mov word [0x4257ec], dx
mov eax, dword [0x4257f4]
test eax, eax
je 0x41d634
cmp eax, dword [0x4257f0]
je 0x41d634
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov dword [0x4257f4], ebx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx eax, word [0x4257ec]
push ebx
push esi
push edi
mov edi, dword [0x4257f4]
shr ecx, 4
inc ecx
push eax
movzx edx, cx
push edx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x41d953
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41d962
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
lea ecx, [esi + eax*2]
mov eax, dword [ebp + 8]
and eax, 0xf
jbe 0x41d985
cmp esi, ecx
jae 0x41d985
dec eax
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41d977
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x41d9b5
movzx edi, word [esi]
dec eax
cmp edi, eax
jl 0x41d996
mov edi, eax
push edi
add esi, 2
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41d9c1
lea ecx, [esi + 2]
mov dword [eax], ecx
movzx eax, word [esi]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41dd40
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push 0x104
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41dd6d
cmp eax, 0x103
jae 0x41dd6d
cmp word [edi + eax*2 - 2], 0x5c
je 0x41dd6d
mov ecx, 0x5c
mov word [edi + eax*2], cx
inc eax
mov esi, 0x104
sub esi, eax
xor ecx, ecx
lea eax, [edi + eax*2]
cmp word [ebx], cx
je 0x41ddab
mov edx, ebx
sub edx, eax
cmp ecx, esi
jge 0x41dd98
mov bx, word [edx + eax]
mov word [eax], bx
add eax, 2
inc ecx
cmp word [edx + eax], 0
jne 0x41dd82
test ecx, ecx
jle 0x41ddab
cmp ecx, esi
jne 0x41ddad
xor edx, edx
pop esi
mov word [eax - 2], dx
mov eax, edi
pop ebx
ret
cmp ecx, esi
jge 0x41ddb4
xor ecx, ecx
mov word [eax], cx
pop esi
mov eax, edi
pop ebx
ret

Function at 0x41ddc0
Capabilities:
Get common file path

Disassembly:
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41dde3
cmp eax, 0x103
jae 0x41dde3
cmp byte [eax + ebx - 1], 0x5c
je 0x41dde3
mov byte [eax + ebx], 0x5c
inc eax
push esi
mov esi, 0x104
sub esi, eax
lea ecx, [eax + ebx]
xor eax, eax
cmp byte [edi], al
je 0x41de15
cmp eax, esi
jge 0x41de05
mov dl, byte [eax + edi]
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax + edi], 0
jne 0x41ddf4
test eax, eax
jle 0x41de15
cmp eax, esi
jne 0x41de17
mov byte [ecx - 1], 0
mov eax, ebx
pop esi
ret
cmp eax, esi
jge 0x41de1c
mov byte [ecx], 0
mov eax, ebx
pop esi
ret
Function at 0x41df30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x41df8f
sub eax, edi
sar eax, 1
inc eax
mov esi, eax
cmp esi, 0x20
jae 0x41df8f
push esi
lea eax, [ebp - 0x40]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea edx, [ebp - 0x40]
xor ecx, ecx
push edx
mov word [ebp + esi*2 - 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
je 0x41df87
sub eax, 2
je 0x41df80
sub eax, 3
jne 0x41df8f
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dfa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
add esi, dword [ebp + 0xc]
call edi
cmp eax, esi
jae 0x41e02c
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
jmp 0x41dfd0
push 0x4bf
mov ecx, esi
sub ecx, eax
push ecx
push 0
lea edx, [ebp + 8]
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
jne 0x41e031
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jle 0x41e022
mov edi, edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jg 0x41e000
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x41dfd0
mov eax, 0x102
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e0e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x41e123
mov dword [esi + 8], 0
test edi, edi
je 0x41e112
mov dword [edi], 0
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
mov dword [esi], 0
ret
test eax, eax
je 0x41e108
test edi, edi
je 0x41e136
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
ret
Function at 0x41e160
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e1c3
test esi, esi
je 0x41e1c3
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push 0
push esi
mov dword [edi], eax
mov dword [edi + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [edi], 0
mov dword [edi + 4], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41e400
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
mov ebx, eax
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ecx]
lea eax, [ebx + ebx]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e443
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41e45b
cmp eax, 7
je 0x41e45b
cmp eax, 2
je 0x41e460
test esi, esi
je 0x41e451
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.004064f0
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 2
jne 0x41e484
test esi, esi
je 0x41e484
push 0x200
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x404]
mov ecx, esi
call fcn.004064f0
mov eax, dword [ebp - 4]
shr eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41e490
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x41ff00
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov ebx, 0x104
test eax, eax
je 0x41e500
mov edx, eax
sub edx, esi
add edx, 2
sar edx, 1
lea ecx, [eax + 2]
sub ebx, edx
mov eax, 0x421268
call fcn.004064f0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x4214e4
mov eax, esi
call fcn.00406540
mov ecx, 0x421268
mov eax, esi
call fcn.00406540
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100014c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
mov esi, eax
test byte [0x10003018], 8
jne 0x100015b0
test esi, esi
je 0x1000159f
lea eax, [esi + esi]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
mov dword [esp], ebx
call sym.faultrep.dll_AddERExcludedApplicationW
mov ecx, dword [ebp - 0x10]
sub esp, 4
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddERExcludedApplicationA
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001511

Function at 0x100015f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov dword [ebp - 0x10], 1
mov ebx, dword [ebp + 8]
test byte [0x10003018], 8
jne 0x10001680
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
lea edx, [eax + 2]
cmovne ebx, edx
cmp word [ebx], 0
jne 0x10001648
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 4
lea eax, [ebp - 0xc]
mov dword [esp + 4], str.SoftwareMicrosoftPCHealthErrorReportingExclusionList
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x100016b8
xor eax, eax
test esi, esi
sete al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddERExcludedApplicationW
mov dword [esp + 4], 0x10003018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000160b
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xc]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000166d
Function at 0x10002180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100021d8
cmp byte [esi + ebx - 1], 0xa
je 0x100021ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001b11a
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001b11a
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret