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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x83ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x83ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x83ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x83ed94
push eax
push esi
call fcn.0084120b
add esp, 8
pop esi
ret 0x10

Function at 0x83eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x83ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x83ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x857320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00840dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x83edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x83ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x83eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x83eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x857320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00840dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x83eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x83ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x83f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x83f131
push esi
call fcn.00842145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00831080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x83f131
push 0
push ebp
call fcn.008313a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00831260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x83f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008312f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x83f121
push 0x857918
push edi
call fcn.008403f0
push eax
push ebx
push esi
call fcn.0083ef60
push 0x8578f8
push edi
call fcn.008403f0
push eax
push ebx
push esi
call fcn.0083ef60
push 0x8578d8
push edi
call fcn.008403f0
push eax
push ebx
push esi
call fcn.0083ef60
push 0x8578c0
push edi
call fcn.008403f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0083ef60
push 0x8578a0
push edi
call fcn.008403f0
push eax
push ebx
push esi
call fcn.0083ef60
push 0x857888
push edi
call fcn.008403f0
push eax
push ebx
push esi
call fcn.0083ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8401b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00840140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00840140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00840140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00840140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x840bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x840c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x85287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x840c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x840c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4

Function at 0x40bec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
or ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
movsx eax, word [eax + 8]
sub eax, ecx
je 0x40bf27
sub eax, 1
je 0x450474
sub eax, 0x32
jne 0x4503eb
push edi
mov ecx, esi
call fcn.0040dfd0
lea ecx, [esp + 0x18]
call fcn.0040cfa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040dd50
test ebx, ebx
js 0x40bf15
jmp 0x45048e
adc byte [edx - 0x73], dl
inc esp
and al, 0x14
mov ecx, esi
push eax
push edi
call fcn.004868ec
jmp 0x4504b2
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0040bf6b
jmp 0x4504b2
mov ebx, eax
jmp fcn.0040bf5d

Function at 0x40bf40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
Function at 0x40ec40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
add dword [eax + eax], 0x8f0f0000
les edx, [ecx]
add byte [eax], al
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor al, al
mov word [esp + 0x54], 1
push esp
add dword [eax], eax
push 8
mov byte [esp + 0x1f], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x38], 1
call fcn.0041fddb
mov ecx, dword [edi]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 1
mov dword [edx], 0x14
mov dword [edx + 4], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], 0x17
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x49c470]
mov dword [esp + 0x70], ecx
movsx eax, word [eax + 0xa]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
push 0x4d2580
call fcn.00420242
add esp, 4
cmp dword [0x4d2580], 0xffffffff
jne 0x40ec76
push 0x44247b
call fcn.004200a3
add esp, 4
push 0x4d2580
call fcn.004201f8
add esp, 4
jmp 0x40ec76
Function at 0x41aaaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, edx
mov dword [ebp - 0x28], ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov edx, dword [eax + 4]
xor ecx, ecx
mov dword [ebp - 0xc], eax
push 0x4e
pop ebx
mov eax, dword [edx + edi*4 - 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], 0x4f
cmp word [eax + 8], bx
mov dword [ebp - 0x1c], 0x47
sete cl
mov dword [ebp - 0x20], 0x48
mov dword [ebp - 0x24], 0x7f
mov eax, dword [edx + edi*4]
movzx eax, word [eax + 8]
cmp ax, bx
je 0x4579e4
cmp ax, word [ebp - 0x18]
jne 0x41ab18
test esi, esi
jne 0x41ab48
dec ecx
inc edi
jmp 0x41aafa
cmp ax, 0x41
je 0x4579f2
cmp ax, word [ebp - 0x1c]
je 0x41ab3c
cmp ax, word [ebp - 0x20]
je 0x41ab42
cmp ax, word [ebp - 0x24]
jne 0x41ab48
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
inc esi
jmp 0x457a0e
dec esi
jmp 0x457a0e
test ecx, ecx
je 0x41ab34
jmp 0x41ab15
invalid
cld
Function at 0x41c574
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, 0xff
push edi
mov edi, dword [ebp + 0x14]
mov ebx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp edi, eax
ja 0x45b8ca
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
test al, 1
jne 0x45b8d1
and eax, 0x800
mov dword [ebp + 8], eax
je 0x45b9c9
mov dword [ebp - 0x18], esi
cmp esi, ebx
ja 0x41c5ec
mov edi, dword [ebp - 8]
mov eax, ebx
sub eax, esi
and edi, edi
push ebp
add byte [edx + 0x1f], ch
inc ebp
or al, 0x59
cld
adc ecx, dword [ebx + 0x2bfe8bc3]
mov byte [eax - 0x77], 0x45
cld
Function at 0x434e02
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or eax, 0x750c4d39
xor eax, eax
jmp 0x434e3f
or esi, esi
dec esi
and byte [eax], dl
push ebx
sub esi, ecx
mov ebx, eax
push edi
mov edi, ecx
cmp edx, 0xffffffff
jne 0x434e67
movzx eax, word [esi + edi]
mov word [edi], ax
lea edi, [edi + 2]
add byte [ebp - 0x7cd38b40], al
jmp 0x434e64
in al, dx
jmp 0x434e8c
movzx eax, word [esi + edi]
mov word [edi], ax
lea edi, [edi + 2]
add byte [ebp - 0x7cf58b40], al
jmp 0x434e7a
add eax, 0x7501ea83
out 0x85, eax
sar bh, cl
push ebp
adc al, 0x75
add eax, 0x8d470c66
lea ebx, [edi - 0x7b]
fistp dword [ebx + 0xf]
test dword [edx - 1], esi
add byte [eax], al
pop edi
test ebx, ebx
pop ebx
jne 0x444e08
dec edx
cli
push dword [ebp + 0xf]
mov eax, dword [ebp + 0xc]
xor edx, edx
push 0x50
mov word [ecx + eax*2 - 2], dx
pop eax
jmp 0x434e3f
push esi
push ebx
push dword [esp + 0x18]
lea ecx, [esp + 0x4c]
call int.00406ebb
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call fcn.00406fb3
mov eax, dword [esp + 0x30]
add eax, ebx
push eax
push esi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x40]
call 0x14070db
dec edx
add byte [eax - 0x73], ch
dec esp
and al, 0x50
push 0x50244c8d
call fcn.0040cfcb
inc ebx
cmp ebx, edi
jl 0x444dd3
jmp 0x4074ec

Function at 0x469cba
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d50004d
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esi], eax
mov word [esi + 4], ax
cmp dword [edi + 0x20], eax
mov edi, dword [esi]
or byte [ebx - 0x7a7217f0], 0
inc dword [esi - 1]
push eax
call dword [0x49c604]
dec ebp
ror byte [edi], 1
test byte [edx], dl
push eax
lea edi, [eax - 0x459ff80]
cmp byte [ebp - 0x60], al
je 0x469d02
cmp byte [ebp - 0xf0], al
jne 0x469d0b
cmp byte [edi + 0x1a], 0
jne 0x469d0b
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x469d1a
cmp byte [edi + 0x1b], 0
jne 0x469d1a
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x469d2c
cmp byte [edi + 0x1c], 0
jne 0x469d2c
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x469d3e
cmp byte [edi + 0x1d], 0
jne 0x469d3e
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x41bd42
cmp byte [edi + 0x1e], 0
jne 0x41bd42
mov byte [esi + 4], 1
jmp 0xe6c242

Function at 0x471f9d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471fab
call fcn.00472087
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x471fe3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471ff6
call fcn.00472087
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x472039
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

Function at 0x472047
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0xe8100270
jl 0x472053
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret

Function at 0x472087
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x4720aa
push 0
call fcn.0042e529
pop ecx
mov ecx, eax
call 0xa8472047
mov dword [0x4d06e0], 0xe8100270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f468dfe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x17eff9cc]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x4720bf
mov eax, dword [esi]
mov dword [ebp - 4], 0x4d19018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f468dfe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720f9
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f468dfe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x4026a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x88c
mov dword [ebp - 0x86c], eax
test byte [section..data], 8
jne 0x402840
mov eax, dword [ebp - 0x86c]
mov dword [esp + 4], 0x4b0
lea esi, [ebp - 0x818]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov edi, eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1f51
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
xor ecx, ecx
mov edx, esi
mov eax, edi
sub esp, 0x10
call fcn.00402210
lea eax, [ebp - 0x85c]
mov dword [esp + 4], 0x416304
mov dword [esp + 8], eax
mov eax, dword [0x425628]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4027cf
mov eax, dword [ebp - 0x86c]
call fcn.004022b0
lea eax, [ebp - 0x854]
mov dword [esp], edi
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x854], 8
mov dword [ebp - 0x848], 3
mov dword [ebp - 0x844], 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x104c
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
add ebx, 1
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edx, esi
mov ecx, eax
mov eax, edi
call fcn.00402210
lea eax, [ebp - 0x858]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x858], 0x400
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
je 0x4027b8
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402749
mov dword [esp + 0xc], 0x416300
mov dword [esp + 8], str.init_appsheet
mov dword [esp + 4], 0x414000
mov dword [esp], 3
call fcn.00402640
jmp 0x4026bf

Function at 0x403ca0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
mov dword [esp + 4], edx
mov edx, dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x147
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x1c]
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x150
mov dword [esp + 4], esi
mov dword [esp], ebx
call edx
lea edx, [eax - 1]
sub esp, 0x14
cmp edx, 0xfffffffd
jbe 0x403d30
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.SoftwareWineDrivers_
mov dword [esp], Ordinal_3
call fcn.00410af0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareWineDrivers_
mov dword [esp + 0xc], eax
mov dword [esp], Ordinal_3
call fcn.00410af0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x68c
mov dword [esp + 4], 0x7f02
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SetCursor]
mov dword [ebp - 0x678], eax
call eax
mov dword [ebp - 0x674], eax
mov eax, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 4
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], str.WINEBUILDDIR
mov dword [ebp - 0x670], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x40b3e0
xor eax, eax
lea esi, [ebp - 0x660]
jmp 0x40b2ad
xor ecx, ecx
mov edx, ebx
mov eax, edi
call fcn.0040ae40
mov dword [esp + 4], 0x418ed0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.0040ae40
mov eax, dword [ebp - 0x66c]
mov dword [esp + 0xc], eax
lea ecx, [eax + 1]
mov dword [esp + 8], str.WINEDLLDIR_u
mov dword [esp + 4], 0x20
mov dword [esp], esi
mov dword [ebp - 0x66c], ecx
call fcn.0040a020
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x670]
mov dword [esp + 8], 0x104
mov dword [esp], esi
call edx
sub esp, 0xc
test eax, eax
jne 0x40b280
lea eax, [ebp - 0x620]
mov dword [esp], edi
mov ebx, 1
lea esi, [ebp - 0x420]
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x148
mov dword [esp + 4], 0x1f44
mov dword [ebp - 0x66c], eax
call eax
sub esp, 0x14
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x66c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x148
mov dword [esp + 4], 0x1f44
mov dword [esp], edi
call eax
sub esp, 0x14
test eax, eax
js 0x40b3c0
lea eax, [ebp - 0x620]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x40b3a0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x66c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x144
mov dword [esp + 4], 0x1f44
mov dword [esp], edi
call eax
sub esp, 0x14
jmp 0x40b330
lea eax, [ebp - 0x620]
mov dword [esp + 4], esi
add ebx, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
jmp 0x40b330
mov eax, dword [ebp - 0x674]
mov dword [esp], eax
mov eax, dword [ebp - 0x678]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 4], ebx
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov dword [esp + 4], str.dlls
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscat]
mov ecx, 1
mov edx, esi
mov eax, edi
call fcn.0040ae40
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40b270
Function at 0x40c710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x220]
push ebx
mov ebx, 0x414304
sub esp, 0x23c
mov edi, dword [sym.imp.shell32.dll_SHGetFolderPathW]
lea esi, [esi]
mov eax, dword [ebx - 4]
mov byte [ebx], 0
mov dword [esp + 0x10], esi
or ah, 0x40
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call edi
sub esp, 0x14
test eax, eax
js 0x40c775
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00407330
add ebx, 0x108
cmp ebx, 0x414a3c
jne 0x40c730
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x234
mov eax, dword [0x425610]
test eax, eax
je 0x40d9c3
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40c4e0
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_DSA_DestroyCallback]
mov dword [0x425610], 0
mov dword [0x42560c], 0
sub esp, 0xc
lea ebx, [ebp - 0x210]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x38
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
js 0x40da66
mov dword [esp + 4], 1
mov dword [esp], 0x18
call dword [sym.imp.comctl32.dll_DSA_Create]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x210], 0
mov dword [0x425610], eax
je 0x40da31
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40da28
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.Themes]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40da38
mov dword [esp + 8], 0
mov dword [esp + 4], fcn.0040ce80
mov dword [esp], ebx
call sub.uxtheme.dll_Ordinal_8
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x411740
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
sub esp, 0x24
mov dword [esp + 8], 0x425628
mov dword [esp + 4], str.SoftwareWine
mov dword [esp], Ordinal_3
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x411778
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, 1
test byte [0x415868], 2
je 0x41176d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegOpenKey_failed_on_wine_config_key___ld__n
mov dword [esp + 8], str.initialize
mov dword [esp + 4], 0x415868
mov dword [esp], 1
call fcn.00410270
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret