joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4223fc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00401c40
mov edx, eax
cmp word [edx], 0
jne 0x40636b
xor ecx, ecx
jmp 0x40637f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406370
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x423654
call fcn.00403430
cmp dword [ebp + 0xc], 0
jne 0x4063a1
mov ecx, esi
call fcn.00406290
test ax, ax
je 0x406473
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0
push str.MAIN
push 0x200
mov dword [0x425358], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x406473
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
movq qword [esp + 0x24], xmm0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x406423
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x40645b
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x406423
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00408543
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408543
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407a30
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x407a4e
push str.WMI_DeviceQuery_Init:faild
call edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x407a71
push str.WMI_DeviceQuery_Init:faild
call edi
push 0x425360
push 0x41e7a8
push 1
push 0
push 0x41e878
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [0x425360], 0
jne 0x407aa4
push str.WMI_DeviceQuery_Init:faild
call edi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 4]
call fcn.00407410
mov edx, dword [eax]
test edx, edx
je 0x407ab7
mov edx, dword [edx]
jmp 0x407ab9
xor edx, edx
mov eax, dword [0x425360]
push esi
mov ecx, dword [eax]
push 0x42535c
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x407b23
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x407b23
test esi, esi
je 0x407b23
mov eax, dword [esi]
test eax, eax
je 0x407b03
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x407b1a
push eax
call fcn.00408cde
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.00408d0d
add esp, 4
mov eax, dword [0x42535c]
pop esi
test eax, eax
je 0x407a93
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x407b51
push str.WMI_DeviceQuery_Init:faild
call edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41381e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c61a
mov dword [ebp - 0x14], eax
cmp dword [0x424658], edi
jne 0x41390f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41389c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4139ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4139ef
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4139ef
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x424658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42465c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x424660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x424668], eax
test eax, eax
je 0x41390c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x424664], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413934
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413927
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x413949
push 4
pop eax
jmp 0x4139f1
cmp dword [ebp - 0x14], edi
je 0x413949
push dword [0x424658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41392e
mov eax, dword [0x424664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4139a7
cmp dword [0x424668], esi
je 0x4139a7
push eax
call ebx
push dword [0x424668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4139a7
test eax, eax
je 0x4139a7
call ecx
test eax, eax
je 0x41399c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41399c
test byte [ebp - 8], 1
jne 0x4139a7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4139d7
mov eax, dword [0x42465c]
cmp eax, esi
je 0x4139d4
push eax
call ebx
test eax, eax
je 0x4139d4
call eax
mov edi, eax
test edi, edi
je 0x4139d4
mov eax, dword [0x424660]
cmp eax, esi
je 0x4139d4
push eax
call ebx
test eax, eax
je 0x4139d4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x424658]
call ebx
test eax, eax
je 0x4139ef
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4139f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408543
leave
ret
Function at 0x10002f40
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._BCryptHashData_16
mov eax, 1
sub esp, 0x10
leave
ret
Function at 0x1000b2e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 3
push ebx
and esp, 0xfffffff0
sub esp, 0x90
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea edx, [ebx - 5]
cmp edx, 0x7b
ja 0x1000b4c0
mov esi, dword [ebp + 0x14]
and esi, 0xffffffef
jne 0x1000b4ca
lea edx, [ebx*8]
test eax, eax
cmovle eax, edx
mov edx, 0x400
cmp eax, 0x400
cmovle edx, eax
lea eax, [ebx - 1]
mov dword [esp + 0xc], edx
cmp eax, 0xe
jbe 0x1000b4d9
mov edi, ebx
xor edx, edx
lea eax, [esp + 0x10]
and edi, 0xfffffff0
lea esi, [esi]
movdqu xmm7, xmmword [ecx + edx]
add edx, 0x10
movups xmmword [edx + eax - 0x10], xmm7
cmp edi, edx
jne 0x1000b350
mov edx, ebx
mov edi, ebx
and edx, 0xfffffff0
test bl, 0xf
je 0x1000b381
lea esi, [esi]
movzx ebx, byte [ecx + edx]
add edx, 1
mov byte [edx + eax - 1], bl
cmp edi, edx
jg 0x1000b370
mov ebx, edi
cmp ebx, 0x80
je 0x1000b3b4
lea edi, [esp + 0x90]
mov edx, eax
sub edi, ebx
lea esi, [esi]
movzx ecx, byte [edx]
add cl, byte [edx + ebx - 1]
add edx, 1
movzx ecx, cl
movzx ecx, byte [ecx + 0x10029460]
mov byte [edx + ebx - 1], cl
cmp edi, edx
jne 0x1000b398
mov edi, dword [esp + 0xc]
mov edx, pe_nt_image_headers32
lea ebx, [edi + 7]
neg edi
shr ebx, 3
mov ecx, edi
mov edi, 0xff
sub edx, ebx
and ecx, 7
sar edi, cl
movzx ecx, byte [esp + edx + 0x10]
and edi, ecx
movzx ecx, byte [edi + 0x10029460]
mov byte [esp + edx + 0x10], cl
mov ecx, 0x7f
sub ecx, ebx
cmp ecx, 0xffffffff
je 0x1000b415
add ecx, eax
nop
lea esi, [esi]
movzx edx, byte [ecx + 1]
xor dl, byte [ecx + ebx]
mov edi, ecx
sub ecx, 1
movzx edx, dl
movzx edx, byte [edx + 0x10029460]
mov byte [ecx + 1], dl
cmp edi, eax
jne 0x1000b3f8
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x90]
pxor xmm3, xmm3
pxor xmm2, xmm2
movdqu xmm4, xmmword [0x10029560]
movdqu xmm6, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
add eax, 0x20
add edx, 0x40
movdqu xmm5, xmmword [eax - 0x10]
pand xmm1, xmm4
pand xmm6, xmm4
packuswb xmm6, xmm1
movdqu xmm1, xmmword [eax - 0x20]
psrlw xmm5, 8
movdqu xmm0, xmm6
punpckhbw xmm6, xmm3
psrlw xmm1, 8
punpcklbw xmm0, xmm3
packuswb xmm1, xmm5
movdqu xmm5, xmm1
punpcklbw xmm5, xmm3
psllw xmm5, 8
paddw xmm5, xmm0
movdqu xmm0, xmm1
punpckhbw xmm0, xmm3
movdqu xmm1, xmm5
punpckhwd xmm5, xmm2
psllw xmm0, 8
punpcklwd xmm1, xmm2
movups xmmword [edx - 0x30], xmm5
paddw xmm0, xmm6
movups xmmword [edx - 0x40], xmm1
movdqu xmm1, xmm0
punpckhwd xmm0, xmm2
punpcklwd xmm1, xmm2
movups xmmword [edx - 0x10], xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, eax
jne 0x1000b42f
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov esi, 4
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor edx, edx
lea eax, [esp + 0x10]
mov edi, ebx
jmp 0x1000b370
Function at 0x1000b970
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
sub edx, 1
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0xc]
add ebx, 8
mov dword [ebp - 0x24], eax
movzx edi, byte [edi + 4]
test edx, edx
je 0x1000ba20
mov edx, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp - 0x10], ebx
add eax, 1
add edx, ecx
mov byte [ebp - 0x19], al
mov dword [ebp - 0x18], edx
lea esi, [esi]
movzx eax, byte [ebp - 0x19]
lea edx, [eax + ecx]
add ecx, 1
movzx edx, dl
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
add edi, eax
mov ebx, edi
movzx esi, bl
mov dword [ebp - 0x14], esi
add esi, dword [ebp - 0x10]
movzx ebx, byte [esi]
mov byte [edx], bl
mov ebx, dword [ebp - 0x10]
mov byte [esi], al
add al, byte [edx]
movzx eax, al
movzx eax, byte [ebx + eax]
xor byte [ecx - 1], al
cmp dword [ebp - 0x18], ecx
jne 0x1000b9b8
movzx eax, byte [ebp - 0x24]
movzx edi, byte [ebp - 0x20]
lea eax, [eax + edi + 1]
mov edi, dword [ebp + 0x10]
movzx eax, al
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0x14]
mov dword [eax + 4], edi
mov eax, dword [ebp + 0xc]
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, edi
movzx edi, bl
mov dword [ebp - 0x14], edi
jmp 0x1000b9ff

Function at 0x1000c880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
mov eax, ecx
push ebx
sub esp, 0x1c
call sym._map_key_spec_to_permissions_name
test eax, eax
je 0x1000c8bd
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], section..bss
call sym._lookup_handle
test eax, eax
jne 0x1000c8c8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp], edi
add eax, 0x1c
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
call dword [sym.imp.advapi32.dll_RegSetValueExA]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], str.SoftwareWineCryptoRSA_s
mov dword [esp + 0xc], 0x7fffffff
mov dword [esp + 8], eax
mov dword [esp], 5
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov edx, 0xffffffff
leave
test eax, eax
cmovs eax, edx
ret
Function at 0x1000cc60
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x12c]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [eax + 0x1c]
sub esp, 0x144
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoRSA_s
call sym._sprintf.constprop.0
xor eax, eax
test byte [ebx + 0xc], 0x20
mov dword [esp + 0x1c], esi
setne al
mov dword [esp + 4], edi
sub eax, 0x7fffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x12c]
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x134
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoRSA_s
call sym._sprintf.constprop.0
xor eax, eax
and esi, 0x20
mov edx, dword [ebp + 8]
setne al
mov dword [esp + 0xc], ebx
sub eax, 0x7fffffff
mov dword [esp + 4], edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
Function at 0x10013740
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
mov eax, ecx
push ebx
sub esp, 0x3c
mov dword [ebp - 0x28], edx
mov edi, dword [ebp + 8]
call sym._map_key_spec_to_key_pair_name
test eax, eax
je 0x10013781
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], section..bss
call sym._lookup_handle
test eax, eax
jne 0x10013790
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x20]
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [esp + 0xc], esi
mov ecx, 7
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._crypt_export_key
test eax, eax
je 0x10013781
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10013781
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 7
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._crypt_export_key
test eax, eax
jne 0x10013818
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CryptProtectData]
sub esp, 0x1c
test eax, eax
je 0x100137fe
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x100137fe
Function at 0x100155f0
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x48
mov dword [ebp - 0x2c], eax
mov eax, ecx
call sym._map_key_spec_to_key_pair_name
test eax, eax
je 0x10015643
mov edi, eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], 0
mov ebx, ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x30], eax
call eax
sub esp, 0x18
test eax, eax
je 0x10015650
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10015643
lea ecx, [ebp - 0x24]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp], esi
call edi
sub esp, 0x18
test eax, eax
je 0x100156b0
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x38]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CryptUnprotectData]
sub esp, 0x1c
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x10015718
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x38]
jmp 0x10015645
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0
call sym._import_key
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x10015643
lea eax, [ebp - 0x20]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], section..bss
mov dword [esp + 4], eax
call sym._lookup_handle
mov edx, dword [ebp - 0x2c]
test eax, eax
je 0x10015645
mov eax, ebx
call sym._map_key_spec_to_permissions_name
mov edx, dword [ebp - 0x2c]
test eax, eax
je 0x10015645
lea ebx, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], 4
lea ecx, [ebx + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp], esi
call eax
mov edx, dword [ebp - 0x2c]
sub esp, 0x18
jmp 0x10015645
Function at 0x10018ab0
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 0x10018b08
cmp byte [esi + ebx - 1], 0xa
je 0x10018adc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100310c4], 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 0x10019130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10019308
mov edi, dword [0x100310c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10019217
test byte [0x1001a040], 8
jne 0x100192b0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1001a050], 8
jne 0x10019270
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100191b9
cmp esi, 3
jbe 0x10019228
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100191ca
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1002d328]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100191b9
mov dword [esp], 0x1001a050
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10019190
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10019190
mov dword [esp], 0x1001a040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1001917b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10019183
mov eax, 0xffffffff
jmp 0x10019217
Function at 0x10019390
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100310e0]
test eax, eax
je 0x10019448
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x100193d0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x100193bc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1001947d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100310e0], eax
sub esp, 8
test eax, eax
jne 0x100193ad
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x100193be