joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537fb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe3000]
push edi
jmp 0x537fca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x537fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537fc0
mov eax, 1
add ebx, ebx
jne 0x537fe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x537ff4
jne 0x538013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538013
dec eax
add ebx, ebx
jne 0x538000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x537fd8
add ebx, ebx
jne 0x53800f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x538065
xor ecx, ecx
sub eax, 3
jb 0x53802b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53809a
sar eax, 1
mov ebp, eax
jmp 0x538036
add ebx, ebx
jne 0x538036
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538004
inc ecx
add ebx, ebx
jne 0x538044
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x538004
add ebx, ebx
jne 0x538051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x538046
jne 0x538062
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x538046
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x538084
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x538076
jmp 0x537fc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x538084
add edi, ecx
jmp 0x537fc6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5380a2
cmp byte [edi], 0x11
jne 0x5380a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5380a7
lea edi, [esi + 0x130000]
mov eax, dword [edi]
or eax, eax
je 0x53811f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x197c70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x197dec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5380d4
mov ecx, edi
jns 0x538103
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x197df0]
or eax, eax
je 0x538119
mov dword [ebx], eax
add ebx, 4
jmp 0x5380f1
call dword [esi + 0x197e00]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x538150
cmp al, 0xef
ja 0x538143
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x538125
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x538132
mov ebp, dword [esi + 0x197df4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x538184
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401420
Capabilities:
Delete registry key
Manipulate safe mode programs

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40145a
push str.Failed_to_get_SafeBoot_key_n
mov edi, str.DeleteSafeBootKey
call fcn.00401060
add esp, 4
or eax, 0xffffffff
pop edi
pop ecx
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
pop edi
pop ecx
ret

Function at 0x401470
Capabilities:
Manipulate safe mode programs
Set registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4014ae
push str.Failed_to_get_SafeBoot_key_n
mov edi, str.SetSafeBootKey
call fcn.00401060
add esp, 4
or eax, 0xffffffff
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4014e0
push str.Failed_to_register_service_for_Safe_Mode_n
jmp 0x401499
mov eax, str.Service
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4014e8
sub eax, edx
mov edx, dword [esp + 8]
add eax, 1
push eax
push str.Service
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
pop edi
add esp, 0xc
ret
Function at 0x401520
Capabilities:
Terminate process

Disassembly:
mov eax, 0x271c
call fcn.0040f510
mov eax, dword [0x414028]
xor eax, esp
mov dword [esp + 0x2718], eax
mov eax, dword [esp + 0x2720]
push 0x4116e4
push eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0x10], ecx
call fcn.0040451b
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
je 0x4016aa
push ebx
push ebp
push esi
push edi
push eax
call fcn.00403c2d
add esp, 4
test eax, eax
jne 0x401638
jmp 0x401580
push 0x2710
xor ebp, ebp
lea eax, [esp + 0x1c]
push ebp
push eax
xor esi, esi
xor bl, bl
xor edi, edi
call fcn.0040be40
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00403c2d
add esp, 0x10
test eax, eax
jne 0x401623
lea esp, [esp]
cmp bl, 0xa
je 0x401609
mov edx, dword [esp + 0x10]
push edx
call fcn.00404320
mov bl, al
add esp, 4
cmp bl, 0xff
je 0x4015e2
cmp bl, 0xd
je 0x4015e2
cmp bl, 0xa
je 0x4015e2
cmp esi, 0x270f
je 0x4015e2
mov byte [esp + esi + 0x18], bl
add esi, 1
cmp bl, 0x3a
jne 0x4015f8
test edi, edi
jne 0x4015f8
mov byte [esp + esi + 0x17], 0
lea edi, [esp + 0x18]
lea ebp, [esp + esi + 0x18]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403c2d
add esp, 4
test eax, eax
je 0x4015b0
test esi, esi
je 0x401623
test edi, edi
je 0x401623
mov ecx, dword [esp + 0x14]
push ecx
push edi
call fcn.00403c1a
add esp, 8
test eax, eax
je 0x401660
mov edx, dword [esp + 0x10]
push edx
call fcn.00403c2d
add esp, 4
test eax, eax
je 0x401580
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00404be8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2728]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040396f
add esp, 0x271c
ret
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401665
sub eax, edx
add eax, 1
push eax
call fcn.00403ffc
mov esi, eax
mov eax, ebp
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401683
sub eax, edx
add eax, 1
push eax
push ebp
push esi
call fcn.0040a2e0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00404be8
add esp, 0x10
mov eax, esi
jmp 0x401647
push str._nFAILED._Unable_to_open_config_file._Aborting._n
call fcn.0040456b
add esp, 4
push 0xffffffffffffffff
call fcn.00404ee0
int3
Function at 0x401d30
Capabilities:
Terminate process

Disassembly:
push edi
push str.Attempting_to_kill_process_n
mov edi, str.killProcess
call fcn.00401060
add esp, 4
call fcn.004030e0
push str.Terminating_process..._n
call fcn.00401060
mov eax, dword [esp + 0xc]
add esp, 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401d75
push str.Killed_process_n
call fcn.00401060
add esp, 4
pop edi
ret
push str.Problem_Killing_process_n
call fcn.00401060
add esp, 4
pop edi
ret

Function at 0x401d90
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x414028]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.0040be40
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x401df2
cmp dword [esp + 8], 2
jne 0x401df2
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040396f
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor eax, eax
call fcn.0040396f
add esp, 0xa0
ret

Function at 0x401e70
Capabilities:
Get session user name

Disassembly:
sub esp, 0x110
mov eax, dword [0x414028]
xor eax, esp
mov dword [esp + 0x10c], eax
push edi
push 0xfa
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0xfa
call fcn.0040be40
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0xc]
push eax
push str.Current_username_is__s_n
mov edi, str.printUsername
call fcn.00401060
mov ecx, dword [esp + 0x118]
add esp, 8
pop edi
xor ecx, esp
call fcn.0040396f
add esp, 0x110
ret

Function at 0x401fd0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x401ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x3028
call fcn.0040f510
mov eax, dword [0x414028]
xor eax, esp
mov dword [esp + 0x3020], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
push str.Removing_self_as_service___s__n
mov edi, str.LaunchRemoveSelfAsService
mov dword [esp + 0x18], 0xfff
call fcn.00401060
add esp, 8
lea ebx, [esp + 0xc]
call fcn.004012d0
test eax, eax
jne 0x402cb4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ImagePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402cb4
lea eax, [esp + 0x28]
xor edi, edi
lea edx, [eax + 1]
jmp 0x402b70
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402b70
sub eax, edx
mov ebx, eax
je 0x402b8d
cmp byte [esp + 0x28], 0x22
jne 0x402b8d
mov edi, 1
jmp 0x402ba7
push 0x411958
lea ecx, [esp + 0x102c]
push 0x1000
push ecx
call fcn.00404b04
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x102c]
push 0x1000
push eax
call fcn.00404b04
add esp, 0xc
test edi, edi
jne 0x402bdf
push 0x411958
lea ecx, [esp + 0x102c]
push 0x1000
push ecx
call fcn.00404b04
add esp, 0xc
push str.__uninstallbyname
lea edx, [esp + 0x102c]
push 0x1000
push edx
call fcn.00404b04
add esp, 0xc
push esi
lea eax, [esp + 0x102c]
push 0x1000
push eax
call fcn.00404b04
add esp, 0xc
test edi, edi
mov byte [esp + 0x2028], 0
jne 0x402c33
add ebx, 0xffffffef
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
lea edx, [esp + 0x2034]
push edx
jmp 0x402c49
add ebx, 0xffffffed
push ebx
lea eax, [esp + 0x2d]
push eax
push 0x1000
lea ecx, [esp + 0x2034]
push ecx
call fcn.00403eeb
add esp, 0x10
lea edx, [esp + 0x1028]
push edx
push str.Running__s_n
mov edi, str.LaunchRemoveSelfAsService
call fcn.00401060
lea eax, [esp + 0x2030]
push eax
push str.WorkingDir__s_n
call fcn.00401060
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x203c]
push edx
lea eax, [esp + 0x1040]
push eax
call fcn.00402da0
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3020]
xor ecx, esp
call fcn.0040396f
add esp, 0x3028
ret
mov ecx, dword [esp + 0x302c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040396f
add esp, 0x3028
ret
Function at 0x402cd0
Capabilities:
Delete registry key
Delete service
Stop service

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x402cfe
mov ebx, str.OpenSCManager
call fcn.00401240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x402d24
mov ebx, str.OpenService
call fcn.00401240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ebx, [esp + 0xc]
call fcn.004012d0
test eax, eax
jne 0x402d4f
mov ecx, dword [esp + 0xc]
push str.Parameters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.00401420
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402d76
mov ebx, 0x412724
call fcn.00401240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x402d94
mov ebx, 0x412734
call fcn.00401240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x4031c0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push edi
push 0x44
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040be40
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
add esp, 0xc
push str.Calling_CreateProcess..._n
mov edi, str.PrepAndLaunchRedirectedChild
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], 0x101
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
mov word [esp + 0x40], 0
call fcn.00401060
add esp, 4
push ebx
push str.Command_line:__s_n
call fcn.00401060
push esi
push str.Working_Dir:__s_n
call fcn.00401060
add esp, 0x10
push ebp
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 8
push 1
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403268
mov ebx, str.CreateProcess
call fcn.00401240
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
push eax
mov dword [0x415b30], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x403292
mov ebx, str.CloseHandle__9_
call fcn.00401240
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x48
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret

Function at 0x40396f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414028]
jne 0x403979
repz ret
jmp fcn.00405473
Function at 0x40d4f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405f6f
xor ebx, ebx
cmp dword [0x415a58], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40d5ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40d535
xor eax, eax
jmp 0x40d68e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40d52e
push eax
call fcn.00405f0c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415a58], eax
call esi
push eax
call fcn.00405f0c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415a5c], eax
call esi
push eax
call fcn.00405f0c
mov dword [0x415a60], eax
lea eax, [ebp - 8]
push eax
call fcn.00404d0d
test eax, eax
pop ecx
pop ecx
je 0x40d598
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406951
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40d5ca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405f0c
cmp eax, ebx
pop ecx
mov dword [0x415a68], eax
je 0x40d5ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405f0c
pop ecx
mov dword [0x415a64], eax
mov eax, dword [0x415a64]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40d643
cmp dword [0x415a68], esi
je 0x40d643
push eax
call fcn.00405f78
pop ecx
call eax
cmp eax, ebx
je 0x40d610
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x415a68]
call fcn.00405f78
pop ecx
call eax
test eax, eax
je 0x40d610
test byte [ebp - 0x18], 1
jne 0x40d643
lea eax, [ebp - 0xc]
push eax
call fcn.00404d44
test eax, eax
pop ecx
je 0x40d62b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406951
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40d63a
or dword [ebp + 0x10], 0x200000
jmp 0x40d674
or dword [ebp + 0x10], 0x40000
jmp 0x40d674
mov eax, dword [0x415a5c]
cmp eax, esi
je 0x40d674
push eax
call fcn.00405f78
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40d674
mov eax, dword [0x415a60]
cmp eax, esi
je 0x40d674
push dword [ebp - 4]
push eax
call fcn.00405f78
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x415a58]
call fcn.00405f78
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001045
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x10021750
call fcn.10001ee8
mov ecx, esi
push str.EBWebViewx86EmbeddedBrowserWebView.dll
call fcn.10001ee8
mov ecx, esi
call fcn.10001fa6
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret

Function at 0x1000126c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov eax, dword [0x1002e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1000132b
mov esi, eax
xor eax, eax
dec eax
lea edi, [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.10001d2c
mov ecx, edi
push esi
call fcn.10001f76
test al, al
je 0x1000130d
lea ecx, [ebp - 0x20]
call fcn.10001fa6
push eax
push esi
push dword [ebp - 0x14]
push ebx
call sub.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoW
test eax, eax
je 0x1000130d
xor eax, eax
lea esi, [ebp - 0x24]
mov dword [esi], eax
lea edi, [ebp - 0x28]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.10001fa6
push edi
push esi
push 0x10021754
push eax
call sub.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW
test eax, eax
je 0x1000130d
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000130d
mov ecx, dword [ebp + 0xc]
push eax
call fcn.10001e16
xor esi, esi
jmp 0x10001321
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ecx, [ebp - 0x20]
call fcn.10001d3e
jmp 0x1000133f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c560
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001ae7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov esi, edx
mov edi, ecx
mov eax, dword [0x1002e00c]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.1000e210
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sub ecx, esi
push eax
push 0x20219
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x10001be1
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0
test esi, esi
jne 0x10001be1
mov esi, dword [ebp + 0xc]
mov ecx, esi
lea eax, [esp + 0x20]
push eax
call fcn.10001e16
mov ecx, esi
call fcn.10001fa6
push 0x5c
push eax
call fcn.1000e62d
add esp, 8
test eax, eax
je 0x10001bdf
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.10001a44
test al, al
je 0x10001bdf
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10001bd0
push edi
call fcn.10001e16
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.10001bf9
mov ebx, eax
jmp 0x10001be1
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.1000c560
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10001bf9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x1002198c]
cmp dword [ecx + eax], edx
ja 0x10001c17
jb 0x10001c22
add eax, 4
cmp eax, 0x10
jne 0x10001c02
push esi
call fcn.10001045
add esp, 4
jmp 0x10001c42
mov edi, dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
push str.Loader_skipped_an_incompatible_version:
call edi
mov ecx, esi
call fcn.10001fa6
push eax
call edi
push 0x100219ee
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x100023ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1002e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x10002441
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x1000245b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.10002482
add esp, 8
test al, al
je 0x1000246c
push 0xa
push 0
push dword [esi]
call fcn.1001433b
add esp, 0xc
jmp 0x1000245e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c560
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10002482
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [ebx], ecx
mov bl, 1
jmp 0x1000246e
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c560
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10002482
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x1002e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea edi, [ebp - 0x218]
push 0x208
push ebx
push edi
call fcn.1000e210
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push edi
push ebx
push 2
push esi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x100024f9
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.10001e16
mov ecx, edi
call fcn.10001fa6
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c560
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10003160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100031bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100031bb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100031a8
cmp esi, edx
jae 0x100031bb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10003196
cmp esi, edx
jae 0x100031bb
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret