joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452007
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4b1a58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45204d
cmp word [ebx], dx
jne 0x45204d
or byte [eax + edi + 0x28], 4
jmp 0x452052
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4521b5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x452195
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x452093
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4520c9
cmp eax, edx
jae 0x4520d7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x45206e
jmp 0x4521b5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452190
cmp dword [ebp - 0x18], 0
je 0x452190
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b1a58]
test byte [eax + edi + 0x28], 0x48
je 0x452166
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45212a
mov word [esi], cx
jmp 0x452161
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b1a58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4b1a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b1a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4521b5
pop eax
cmp word [ebp - 4], ax
jne 0x452176
cmp esi, ebx
jne 0x452176
mov word [esi], ax
jmp 0x4521b2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00452a40
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4521b5
push 0xd
pop eax
jmp 0x452171
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b1a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4521af
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4521b5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x457ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457f1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457f1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea edi, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0040e94e
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0x2c]
ja 0x4015f8
mov edx, dword [esi + 0x24]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x40fea0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::cl::parser_unsigned_int_]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x410570
mov dword [esi + 0x88], eax
push ebp
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp], ebp
mov dword [esp + 4], eax
sub esp, 8
movsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
mov ecx, esi
call fcn.0040e97e
movsd xmm0, qword [ebx]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
mov eax, dword [esp + 0x24]
push dword [eax]
call fcn.0040e966
mov ecx, esi
call fcn.0040e960
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esi + 0x24]
push 4
push edx
push edi
mov edi, eax
call fcn.0040e912
mov eax, edi
mov ecx, dword [esi + 0x28]
jmp 0x401562
Function at 0x401830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea edi, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0040e94e
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0x2c]
ja 0x401948
mov edx, dword [esi + 0x24]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x40ffac
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::cl::parser_std::__1::basic_string_char__std::__1::char_traits_char___std::__1::allocator_char_____]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x410594
mov dword [esi + 0x88], eax
push ebp
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp], ebp
mov dword [esp + 4], eax
sub esp, 8
movsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
mov ecx, esi
call fcn.0040e97e
movsd xmm0, qword [ebx]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
mov eax, dword [esp + 0x24]
push dword [eax]
call fcn.0040e966
mov ecx, esi
call fcn.0040e960
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esi + 0x24]
push 4
push edx
push edi
mov edi, eax
call fcn.0040e912
mov eax, edi
mov ecx, dword [esi + 0x28]
jmp 0x4018b2
Function at 0x403b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea edi, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0040e94e
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0x2c]
ja 0x403c16
mov edx, dword [esi + 0x24]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x40ffac
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::cl::parser_std::__1::basic_string_char__std::__1::char_traits_char___std::__1::allocator_char_____]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x410594
mov dword [esi + 0x88], eax
mov eax, dword [ebp]
movzx ecx, word [esi + 6]
and eax, 3
shl eax, 7
and ecx, 0xfffffe7f
or ecx, eax
mov word [esi + 6], cx
movsd xmm0, qword [ebx]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
mov eax, dword [esp + 0x1c]
push dword [eax]
call fcn.0040e966
mov ecx, esi
call fcn.0040e960
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esi + 0x24]
push 4
push edx
push edi
mov edi, eax
call fcn.0040e912
mov eax, edi
mov ecx, dword [esi + 0x28]
jmp 0x403b8f
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x402d85
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405533], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402dcc
xor eax, eax
jmp 0x402de3
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret

Function at 0x403202
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404488
push 0x403364
push eax
mov eax, dword [0x4055b0]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4055ac]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040335a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4055a8]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d0
push 0x4040cc
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x40329d
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x403295
cmp al, 0x22
jne 0x40328a
cmp byte [esi], 0x22
jne 0x4032a7
inc esi
jmp 0x4032a7
cmp al, 0x20
jbe 0x4032a7
inc esi
cmp byte [esi], 0x20
ja 0x4032a1
cmp byte [esi], 0
je 0x4032b7
cmp byte [esi], 0x20
ja 0x4032b7
inc esi
cmp byte [esi], 0
jne 0x4032ac
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4032d7
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x403313
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10007740
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
test eax, eax
je 0x100077f0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x10]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov eax, esi
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10007800
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
test eax, eax
je 0x100078d0
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x10], edx
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 edx
sub esp, 0x20
mov edi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x10]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov eax, esi
sub esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x100078e0
Capabilities:
Get process heap flags

Disassembly:
test eax, eax
je 0x10007958
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0xc
test edx, edx
je 0x10007928
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
call sym._convert_from_unicode
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
call sym._convert_from_unicode
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
jmp 0x100078f4
xor eax, eax
ret
Function at 0x10009e30
Capabilities:
Get process heap flags
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x14]
sub esp, 0x34
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x10009e88
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, 1
jbe 0x10009e90
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10009e88
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
call eax
sub esp, 0xc
test eax, eax
je 0x10009e88
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp], edx
mov dword [ebp - 0x18], edx
mov dword [esp + 4], 0x10010658
call dword [sym.imp.kernel32.dll_lstrcmpiW]
mov edx, dword [ebp - 0x18]
sub esp, 8
test eax, eax
je 0x10009f3c
cmp dword [ebp - 0x14], 2
je 0x10009f9f
test byte [0x1000d060], 8
jne 0x10009f68
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
sub esp, 4
mov dword [ebx], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x10009e88
mov eax, edx
mov dword [ebp - 0x18], edx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.loading__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_mapi_provider
mov dword [esp + 4], 0x1000d060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x18]
jmp 0x10009f25
mov dword [esp], edx
mov ebx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call ebx
mov esi, dword [ebp - 0x28]
sub esp, 0xc
mov edi, eax
lea eax, [eax + eax + 1]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x10009f1c
add edi, 1
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, esi
sub esp, 0xc
jmp 0x10009f1c
Function at 0x1000a0f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x1000d060], 8
jne 0x1000a180
mov eax, dword [0x1001d130]
test eax, eax
je 0x1000a120
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
test esi, esi
je 0x1000a1e9
add ebx, 4
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000a1f3
lea edi, [eax + 4]
test byte [0x1000d060], 8
jne 0x1000a1b8
mov dword [ebx], 0
xor eax, eax
mov dword [esi], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__ld__p__n
mov dword [esp + 8], str.MAPIAllocateBuffer
mov dword [esp + 4], 0x1000d060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000a108
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.initial_allocation:_p__returning__p_n
mov dword [esp + 8], str.MAPIAllocateBuffer
mov dword [esp + 4], 0x1000d060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000a165
mov eax, 0x80070057
jmp 0x1000a16f
mov eax, 0x8007000e
jmp 0x1000a16f
Function at 0x1000b510
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov esi, dword [ebp + 0xc]
test byte [0x1000d060], 8
jne 0x1000b568
mov edi, dword [0x1001d128]
test edi, edi
je 0x1000b5ba
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
sub esp, 0x14
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], str._s__s__p__lu__d_n
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], str.FGetComponentPath
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x1000d060
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_4
mov edi, dword [0x1001d128]
test edi, edi
jne 0x1000b533
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov byte [eax], 0
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
test eax, eax
je 0x1000b559
mov dword [esp + 4], str.MsiProvideQualifiedComponentA
mov ebx, edi
mov dword [esp], eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dword [ebp - 0x24]
sub esp, 8
test eax, eax
mov ecx, eax
je 0x1000b654
mov ebx, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x28], ecx
lea edi, [ebp - 0x20]
mov ecx, edx
test ebx, ebx
sete al
xor ebx, ebx
neg eax
mov dword [ebp - 0x24], eax
cmp esi, edi
je 0x1000b670
test esi, esi
je 0x1000b670
lea eax, [ebp + 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x1000b6d8
xor ebx, ebx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
mov dword [esp], edi
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [ebx*4 + 0x10010b18]
mov dword [esp + 4], eax
call sym._sprintf
lea eax, [ebp + 0x14]
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
mov ecx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x1000b6d6
add ebx, 1
mov esi, edi
cmp ebx, 3
jne 0x1000b615
mov edx, ecx
jmp 0x1000b652
mov edx, ecx
mov ebx, 1
jmp 0x1000b654
Function at 0x1000bf90
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 0x1000bfe8
cmp byte [esi + ebx - 1], 0xa
je 0x1000bfbc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1001d0a4], 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