joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000454a
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1001d054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x10004702
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
mov dword [edi], eax
jne 0x100045c2
xor eax, eax
jmp 0x10004643
call fcn.10002926
cmp eax, 6
jne 0x100045d5
mov eax, dword [edi]
call fcn.100044da
jmp 0x100045ee
cmp eax, 7
jne 0x100045e3
mov eax, dword [edi]
call fcn.10004454
jmp 0x100045ee
jbe 0x100045ee
mov eax, dword [edi]
mov esi, edi
call fcn.100043d2
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0xd
push dword [edi + 4]
call esi
cmp dword [ebp - 0x210], ebx
je 0x10004640
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10004640
push dword [ebp - 0x210]
push ebx
push 0xc
push dword [edi + 4]
call esi
push ebx
push 2
push 6
push dword [edi + 4]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011f9a
leave
ret 4
Function at 0x100060b8
Capabilities:
Allocate thread local storage
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1001dd40], eax
call fcn.1000c34f
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001777c
mov ebx, str.shell32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.SHGetSpecialFolderPathW
push ebx
mov dword [0x1001dcb8], eax
call esi
push eax
call edi
test eax, eax
mov dword [0x1001dcbc], eax
je 0x1000610f
push 0x10005d60
push 0x1001dcbc
call fcn.1000c6a6
push str.ShellExecuteExW
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x1001dd44], eax
je 0x10006132
push 0x10005e0b
push 0x1001dd44
call fcn.1000c6a6
push str.RtlCreateProcessParameters
mov ebx, str.ntdll.dll
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [0x1001dd48], eax
je 0x1000615a
push 0x10005ff3
push 0x1001dd48
call fcn.1000c6a6
push str.RtlCreateProcessParametersEx
push ebx
call esi
push eax
call edi
test eax, eax
pop edi
pop esi
mov dword [0x1001dd4c], eax
pop ebx
je 0x10006180
push 0x10006054
push 0x1001dd4c
call fcn.1000c6a6
call fcn.1000c465
jmp fcn.10005fac
Function at 0x10006e9d
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x1001d054]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [esp + 0x26]
push ebx
push eax
mov word [esp + 0x2c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x22e]
push ebx
push eax
mov word [esp + 0x234], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
call fcn.10007290
mov edi, 0x104
push edi
lea eax, [esp + 0x24]
push eax
push 0x10015af4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
push str.QMHMPG.ini
lea eax, [esp + 0x28]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x2788b713
mov dword [esp + 0x1c], 0xb9e2585f
call fcn.10007227
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0xf5980991
mov dword [esp + 0x1c], 0x983970a1
call fcn.10007227
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007006
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x10], 1
push dword [esp + 0x10]
lea eax, [esp + 0x22c]
push str.Hash
push str._s_d
push 0xffffffffffffffff
push edi
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
add esp, 0x18
lea eax, [esp + 0x20]
push eax
push ebx
push str.Value1
lea eax, [esp + 0x234]
push eax
call esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push ebx
push str.Value2
lea eax, [esp + 0x234]
push eax
call esi
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10007006
cmp eax, ebx
je 0x10007006
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
call fcn.10007227
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x32
jl 0x10006f8d
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011f9a
mov esp, ebp
pop ebp
ret
Function at 0x1000701b
Capabilities:
Create thread

Disassembly:
push 0x28
mov eax, 0x100139d9
call fcn.10012a51
call fcn.10003472
test eax, eax
jne 0x1000705b
call fcn.10005675
call fcn.100056eb
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
xor esi, esi
push esi
push 0x1001dd38
call edi
push 1
push esi
push 0x1001dd30
call edi
jmp 0x10007221
call fcn.10003210
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlWalkFrameChain
mov esi, str.ntdll.dll
push esi
mov dword [ebp - 0x30], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001dccc], eax
call fcn.10002a33
push str.LdrLoadDll
push esi
mov dword [ebp - 0x34], eax
call edi
push eax
call ebx
push str.LdrUnloadDll
push esi
mov dword [0x1001dcd4], eax
call edi
push eax
call ebx
xor esi, esi
cmp dword [0x1001dcd4], esi
mov dword [0x1001dcd0], eax
je 0x100070fe
cmp eax, esi
je 0x100070fe
cmp dword [ebp - 0x30], esi
je 0x100070c4
call fcn.10006e9d
call fcn.1000c34f
cmp dword [ebp - 0x34], 0xa28
jbe 0x100070db
cmp dword [ebp - 0x34], 0x1b58
jb 0x100070ea
push 0x10006d0d
push 0x1001dcd4
call fcn.1000c6a6
push 0x10006dc8
push 0x1001dcd0
call fcn.1000c6a6
call fcn.1000c465
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], esi
call fcn.10004aff
test eax, eax
pop ecx
je 0x100071b1
cmp dword [ebp - 0x30], esi
je 0x100071b1
call fcn.100056fb
push esi
push 1
push 0x1001dd38
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
call fcn.10005562
call fcn.10002926
mov dword [ebp - 0x30], eax
call fcn.10001136
call fcn.1000c34f
cmp dword [ebp - 0x30], 6
jne 0x10007165
push str.shdocvw.dll
call edi
push eax
call fcn.10006b7e
pop ecx
jmp 0x1000717b
push 0x10017854
call fcn.100030ec
cmp eax, esi
pop ecx
je 0x1000717b
mov edi, eax
call fcn.100069eb
call fcn.1000c465
mov eax, dword [0x1001dd2c]
test eax, eax
je 0x100071b1
call fcn.10003a58
test eax, eax
je 0x100071b1
push esi
push esi
push esi
push 0x10004654
push esi
push esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
je 0x100071b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x100071eb
push 0x10017854
call fcn.100030ec
pop ecx
push 0x96
push eax
call ebx
cmp eax, esi
mov dword [0x1001dcc8], eax
je 0x100071eb
call fcn.1000c34f
push 0x1000696c
push 0x1001dcc8
call fcn.1000c6a6
call fcn.1000c465
push esi
push esi
push esi
push 0x10006e7c
push esi
push esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
je 0x1000720a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10007914
call fcn.10002359
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.10012a9b
ret
Function at 0x1000941f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x10009487
cmp edi, 0xffffffff
je 0x10009487
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000947f
cmp ebx, dword [ebp + 0x10]
ja 0x1000947f
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000947f
cmp dword [ebp - 4], ebx
jne 0x1000947f
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1000948d
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
cmp word [eax], 0x5a4d
je 0x100094a1
xor eax, eax
leave
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x100094b6
xor eax, eax
jmp 0x100095a5
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], eax
movzx eax, word [esi + 6]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x54]
push ebx
mov ebx, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x50]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
push edi
push 0x40
push 0x3000
mov edi, eax
imul edi, ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100095a3
push edi
push 0
push eax
call sub.MSVCR80.dll_memset
movzx eax, word [esi + 0x14]
lea esi, [eax + esi + 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jbe 0x10009547
lea ecx, [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + edx - 1]
xor edx, edx
div dword [ebp - 8]
xor edx, edx
imul eax, dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [ecx]
lea eax, [eax + ebx - 1]
div ebx
imul eax, ebx
mov dword [ecx], eax
add ecx, 0x28
dec dword [ebp - 0xc]
jne 0x1000951a
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, esi
mov ecx, dword [eax - 0x1c]
mov edx, dword [eax - 0x18]
add edx, ecx
cmp edx, edi
jbe 0x10009560
sub edi, ecx
mov dword [eax - 0x18], edi
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push dword [ebp + 8]
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x1000959b
lea edi, [esi + 0x14]
mov esi, dword [ebp - 4]
mov eax, dword [edi]
add eax, dword [ebp + 8]
push dword [edi - 4]
push eax
mov eax, dword [edi - 8]
add eax, ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add edi, 0x28
dec esi
jne 0x1000957e
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10009ab6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1001d054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
xor esi, esi
push eax
mov ebx, 0x10017c6c
push ebx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], esi
call fcn.10003278
add esp, 0xc
cmp dword [ebp - 0x420], esi
jne 0x10009b0b
xor eax, eax
jmp 0x10009bf7
push 0x40
push 0x3000
push dword [ebp - 0x41c]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
mov dword [ebp - 0x428], eax
je 0x10009b04
push dword [ebp - 0x41c]
push esi
push eax
call sub.MSVCR80.dll_memset
push 0x40e
lea eax, [ebp - 0x416]
push esi
push eax
mov word [ebp - 0x418], si
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.MSVCR80.dll_wcsncat_s]
push 0xffffffffffffffff
push 0x10015828
mov edi, 0x208
lea eax, [ebp - 0x418]
push edi
push eax
call esi
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x418]
push edi
push eax
call esi
mov esi, dword [ebp - 0x41c]
mov edi, dword [ebp - 0x428]
push esi
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.1000941f
add esp, 0x2c
test eax, eax
jne 0x10009bbc
push esi
push edi
call fcn.100093f3
pop ecx
pop ecx
jmp 0x10009b04
lea eax, [ebp - 0x424]
push eax
push edi
call fcn.1000948d
test eax, eax
pop ecx
pop ecx
push esi
push edi
je 0x10009bb0
call fcn.100093f3
mov edi, dword [ebp - 0x424]
push edi
call fcn.100096c9
push dword [ebp - 0x420]
push edi
call fcn.100099be
add esp, 0x14
test eax, eax
je 0x10009bae
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011f9a
leave
ret
Function at 0x10009c06
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
cmp word [ecx], 0x5a4d
push esi
push edi
jne 0x10009cf9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10009cf9
cmp word [eax + 0x18], 0x10b
jne 0x10009cf9
mov edi, dword [eax + 0x78]
test edi, edi
mov eax, dword [eax + 0x7c]
je 0x10009cf9
test eax, eax
je 0x10009cf9
lea esi, [edi + ecx]
test esi, esi
je 0x10009cf9
mov ecx, dword [esi + 0x1c]
push ebx
xor ebx, ebx
cmp ecx, edi
mov dword [ebp - 0x10], ebx
jbe 0x10009ce2
add eax, edi
cmp ecx, eax
mov dword [ebp - 4], eax
jae 0x10009ce2
mov edx, dword [esi + 0x24]
cmp edx, edi
jbe 0x10009ce2
cmp edx, eax
jae 0x10009ce2
mov eax, dword [esi + 0x20]
cmp eax, edi
jbe 0x10009ce2
cmp eax, dword [ebp - 4]
jae 0x10009cdf
sub ecx, edi
sub edx, edi
sub eax, edi
add ecx, esi
add edx, esi
add eax, esi
cmp dword [esi + 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], eax
jbe 0x10009cdf
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
cmp eax, edi
jb 0x10009cb7
cmp eax, dword [ebp - 4]
jb 0x10009cd9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*4]
cmp eax, edi
jbe 0x10009cd9
cmp eax, dword [ebp - 4]
jae 0x10009cd9
push dword [ebp + 0xc]
sub eax, edi
add eax, esi
push eax
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x10009ce7
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x10009ca1
mov ebx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
jmp 0x10009cfb
mov eax, dword [ebp - 8]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + eax*4]
add ebx, dword [ebp + 8]
jmp 0x10009ce2
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1000a60b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000a663
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000a654
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x1000a650
cmp edi, eax
jae 0x1000a654
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x1000a642
cmp edi, eax
jb 0x1000a658
xor eax, eax
jmp 0x1000a662
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x1000a6dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x1001d054]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push 0x400
lea eax, [ebp - 0x612]
push edi
push eax
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x618], edi
mov word [ebp - 0x614], di
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x620], 0x200
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
add esp, 0x18
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::clear_void_]
call fcn.1000a69d
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [ebp - 0x618]
push ecx
inc eax
push eax
push edi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a7da
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x614]
push eax
push edi
push edi
push str.InstallDir
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a7ce
push 0xffffffffffffffff
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0x61c], 1
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call dword [0x100151d0]
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x61c]
xor ecx, ebp
pop edi
call fcn.10011f9a
leave
ret
Function at 0x1000aefc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 4], ebx
jne 0x1000af4b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.10003278
mov ebx, dword [ebp - 4]
add esp, 0xc
cmp ebx, esi
jne 0x1000af4b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x1000b0b8
cmp dword [ebp + 0xc], esi
je 0x1000b0b8
cmp dword [ebp + 0x10], esi
je 0x1000b0b8
mov eax, dword [ebx + 0x3c]
push edi
mov edi, dword [eax + ebx + 0x80]
add edi, ebx
cmp dword [edi], esi
je 0x1000af97
mov esi, dword [edi + 0xc]
push dword [ebp + 0xc]
add esi, ebx
call sub.MSVCR80.dll_strlen
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCR80.dll__strnicmp]
add esp, 0x10
test eax, eax
je 0x1000af95
add edi, 0x14
cmp dword [edi], 0
jne 0x1000af6e
xor esi, esi
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x1000aff0
mov edi, dword [edi]
lea esi, [eax + ebx]
add edi, ebx
jmp 0x1000afe6
mov eax, dword [edi]
mov ecx, SysReAllocStringLen
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x1000afd4
add eax, ebx
test dword [ebp + 0x10], 0xffff0000
je 0x1000afe0
push dword [ebp + 0x10]
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jmp 0x1000afda
movzx eax, ax
cmp eax, dword [ebp + 0x10]
je 0x1000b078
add esi, 4
add edi, 4
cmp dword [esi], 0
jne 0x1000afa7
jmp 0x1000b078
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0xd
push 1
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.imagehlp.dll_ImageDirectoryEntryToDataEx]
mov edi, eax
cmp edi, esi
je 0x1000b0b7
jmp 0x1000b037
push dword [ebp + 0xc]
call sub.MSVCR80.dll_strlen
push eax
mov eax, dword [edi + 4]
push dword [ebp + 0xc]
add eax, ebx
push eax
call dword [sym.imp.MSVCR80.dll__strnicmp]
add esp, 0x10
test eax, eax
je 0x1000b03c
add edi, 0x20
cmp dword [edi + 4], esi
jne 0x1000b015
cmp dword [edi + 4], esi
je 0x1000b0b7
test byte [edi], 1
je 0x1000b0b7
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
add esi, ebx
add edi, ebx
jmp 0x1000b072
cmp dword [esi], 0
je 0x1000b0b7
push dword [ebp + 0x10]
add eax, ebx
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x1000b078
add edi, 4
add esi, 4
mov eax, dword [edi]
test eax, eax
jne 0x1000b052
mov eax, dword [esi]
test eax, eax
je 0x1000b0b7
mov ecx, dword [ebp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call edi
test eax, eax
je 0x1000b0b7
push dword [esi]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
mov dword [ebp - 0xc], 1
pop edi
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x1000b0c4
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.GlobalTSURLFWSM_9EA94A0B_E36A_4950_8203_F157A8440AF0
xor edi, edi
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
je 0x1000b0fb
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x1000b0f1
inc edi
jmp 0x1000b0fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, edi
pop edi
ret

Function at 0x1000bf8f
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10019490
call fcn.100125c0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp word [edx], 0x5a4d
jne 0x1000bff4
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x1000bff4
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x1000bff4
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x1000bff4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000bffd
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.10012605
ret
Function at 0x1000c2a9
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10019470
call fcn.100125c0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000c301
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x5a4d
jne 0x1000c2fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c2fa
cmp word [ecx + 0x14], 0
je 0x1000c2fa
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c303
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.10012605
ret

Function at 0x1000c34f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [0x1001dd98], edi
je 0x1000c365
mov eax, 0x10dd
jmp 0x1000c3bf
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x1001dd98
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x1000c35e
push esi
mov esi, dword [0x1001dd8c]
mov dword [0x1001dd94], edi
mov dword [0x1001dda8], edi
mov dword [0x1001dda4], edi
mov dword [0x1001dd9c], edi
mov dword [0x1001dda0], edi
jmp 0x1000c3b8
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1000c3a3
xor eax, eax
pop esi
pop edi
leave
ret

Function at 0x1000c3c2
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001dd98], eax
je 0x1000c3db
mov eax, 0x10dd
leave
ret
push ebx
push esi
mov esi, dword [0x1001dda8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1000c425
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1000c416
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x1000c416
call fcn.1000c288
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1000c3ea
mov dword [0x1001dda8], ebx
call fcn.1000c070
mov esi, dword [0x1001dda4]
cmp esi, ebx
je 0x1000c452
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1000c43a
pop edi
pop esi
mov dword [0x1001dda4], ebx
mov dword [0x1001dd98], ebx
xor eax, eax
pop ebx
leave
ret