joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1103d8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp + 8]
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
jne 0x1103d8d1
movzx edx, ax
mov dword [edi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1103d90a
cmp dword [ebp + 0xc], 0xa
jne 0x1103d9dd
mov edx, dword [ebp + 8]
push 0x111f85d0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1103d9dd
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1103d9dd
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1103d9dd
mov ebx, dword [ebp + 0xc]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 8], eax
test eax, eax
je 0x1103d9dd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1103d9cc
push ebx
push esi
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [edi + 8]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
xor esi, esi
push esi
push ecx
mov dword [ebp + 0xc], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1103d9c2
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.1103d7e0
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [edi + 4]
cmp eax, esi
je 0x1103d9c2
mov ecx, dword [eax + 8]
mov dword [eax + 8], esi
cmp ecx, esi
jne 0x1103d9b0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x1103d9bf
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 4], esi
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 8], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x1103dc60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1126dd70], 0xffffffff
push esi
push edi
mov esi, ecx
jne 0x1103dcd0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1103dcc4
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x4a
call edi
cmp dword [ebp - 4], 0
je 0x1103dcc4
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x200a
call edi
cmp dword [ebp - 8], 2
jne 0x1103dcd0
mov edx, dword [ebp + 8]
mov dword [0x1126dd70], 0
pop edi
mov dword [esi + 4], edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [0x1126dd70], 1
jmp 0x1103dcd9
cmp dword [0x1126dd70], 1
jne 0x1103dd12
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
lea eax, [ebp + 8]
push eax
push ecx
call sub.gdiplus.dll_GdipGetTextRenderingHint
test eax, eax
je 0x1103dcef
mov dword [edi + 4], eax
mov edx, dword [ebp + 8]
mov dword [esi], edx
mov eax, dword [edi]
push 4
push eax
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x1103dd05
mov dword [edi + 4], eax
mov dword [esi + 4], edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
pop edi
mov dword [esi + 4], ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1103e390
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x1127a7cc], eax
jne 0x1103e3d0
push 0x1127a7cc
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, dword [0x1127a7cc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret 4

Function at 0x1103e450
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x1127a7d0], eax
jne 0x1103e491
push 0x1127a7d0
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 4
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, dword [0x1127a7d0]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret 4

Function at 0x1103e9f0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1103ea85
push edi
push 0x64
push eax
push esi
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0x4e
mov dword [esi + 0x10], closesocket
call edi
push 0x4f
mov dword [esi], eax
call edi
cmp dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x60], 1
jne 0x1103ea3d
push 0
call edi
mov dword [esi], eax
cmp dword [esi + 4], 0
jne 0x1103ea4a
push 1
call edi
mov dword [esi + 4], eax
push 1
push 0
push 0
push 0x111fb618
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
push esi
push 0x1103e850
test edi, edi
je 0x1103ea7b
push edi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esi + 0x14]
pop edi
pop esi
ret
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 0x14]
pop edi
pop esi
ret
Function at 0x11044140
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111db6be
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
call fcn.1113a880
push 0x20
call fcn.111709c0
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x110441bc
mov edx, dword [esi]
mov eax, dword [edx + 0x15c]
push 1
push 1
push 0x21
push 0x10
mov ecx, esi
call eax
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x15c]
push 0x10
mov ecx, esi
call eax
push eax
mov ecx, edi
call fcn.1103f1a0
jmp 0x110441be
xor eax, eax
or edi, 0xffffffff
push 0xb8
mov dword [ebp - 4], edi
mov dword [esi + 0xac], eax
call fcn.111709c0
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x110441ee
mov ecx, eax
call fcn.11043770
jmp 0x110441f0
xor eax, eax
mov dword [esi + 0xa8], eax
mov dword [eax + 0xb0], 2
mov ecx, dword [esi + 0xc]
push 0x4c6
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x258]
push 0
push 0x1a4
push 0x471
push 0
call eax
mov eax, dword [esi + 0xac]
mov eax, dword [eax]
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x198]
call eax
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0
push 0
push 0x1037
call eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
or eax, 0x20
push eax
mov eax, dword [edx + 0x20]
push 0
push 0x1036
call eax
push eax
call edi
lea ecx, [ebp - 0x44]
call fcn.110486a0
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0
push str.explorer
mov dword [ebp - 4], 2
call eax
push eax
lea ecx, [ebp - 0x44]
call fcn.11048790
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x308]
push 0
push 0
push 1
call eax
lea ecx, [ebp - 0xcc]
call fcn.1102fb70
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
lea eax, [ebp - 0xcc]
push eax
push 0x11043f30
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0xcc]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x11044317
push eax
call esi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x11044321
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x11048460
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111db84b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 2
push 6
mov dword [ebp - 0x23c], eax
call fcn.111bb9f0
add esp, 0xc
test eax, eax
je 0x1104867d
call fcn.110483b0
test al, al
je 0x1104867d
push 0
push str.IPTip_Main_Window
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x11048670
lea ecx, [ebp - 0x228]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x228]
push eax
push ecx
push edx
push str.OpenKbd_keyrect_L_d__T_d__R_d__B_d_
call fcn.111bd7b0
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
add esp, 0x14
push 0xfffffffffffffff0
push esi
call ebx
push 0xffffffffffffffec
push esi
mov edi, eax
call ebx
test edi, 0x10000000
je 0x1104852e
test edi, 0x8000000
je 0x1104867d
xor eax, eax
push 0x104
lea ecx, [ebp - 0x238]
mov word [ebp - 0x218], ax
call fcn.1113c0e0
lea ecx, [ebp - 0x238]
push ecx
push 0x11247f3c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsTabTip.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call fcn.11143cd0
mov edx, dword [ebp - 0x238]
mov eax, dword [edx]
add esp, 0x10
lea ecx, [ebp - 0x238]
call eax
test al, al
jne 0x11048597
push 0x266
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x22c]
cmp word [ecx], 0
je 0x110485c3
push 0x104
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x238]
call fcn.1102f630
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x110485e7
xor eax, eax
jmp 0x110485d0
movzx ecx, word [eax + str.c:program_filescommon_filesmicrosoft_sharedink_tabtip.exe]
mov word [ebp + eax - 0x218], cx
add eax, 2
test cx, cx
jne 0x110485d0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1104863a
cmp dword [ebp + 0xc], 0x104
jge 0x1104860e
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
jmp 0x1104867d
lea ecx, [ebp - 0x218]
push ecx
push 0x111fd358
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov al, 1
jmp 0x1104867f
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [ebp - 0x238]
setg bl
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov al, bl
jmp 0x1104867f
push str.OpenKbd._No_touch_kbd_n
call fcn.111bd7b0
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x110495a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x11049619
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x110495f0
sub eax, ebx
jmp 0x110495f2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x110495e1
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x1104960f
sub eax, ebx
jmp 0x11049611
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x11049600
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x11049673
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, esi
add edx, dword [edi + 0x38]
mov esi, eax
push edx
call fcn.11049330
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x1104965f
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x11049673
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x110495a5
pop esi
pop ebx
ret

Function at 0x1104c0e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x1104d4d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 1
push 3
push 0
push 1
push closesocket
push edi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1104d524
push edi
call fcn.11146ae0
add esp, 4
test eax, eax
jne 0x1104d52e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push 0x30
push 0x83a
push eax
call edx
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov dword [ebp + 8], 0
cmp eax, 3
jne 0x1104d597
push str.PCIImage.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x1104d573
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push 0x30
push 0x83b
push eax
call edx
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push str.DecompressPNGToBitmap
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1104d561
push edi
call eax
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x1104d561
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 4]
push edx
push 1
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1104d655
mov esi, dword [ebp - 8]
add esi, 0x30
mov ecx, esi
call fcn.1113be40
mov eax, dword [ebp - 4]
push esi
push 0x11247b9c
push 0
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
je 0x1104d660
cmp dword [ebp + 8], 0
je 0x1104d640
call fcn.11146c80
mov ecx, dword [ebp + 8]
push 1
mov edi, eax
push edi
push ecx
mov ecx, esi
call fcn.1113be70
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
jne 0x1104d660
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
push 0x30
push 0x8bc
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0xc
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1104d676
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x11050640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dbae6
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x4bc], eax
call fcn.1104ee90
mov edi, eax
mov dword [ebp - 0x4c4], edi
push edi
mov dword [ebp - 4], 0
call fcn.1104eed0
add esp, 4
test edi, edi
je 0x11050859
cmp word [edi], 0
je 0x11050859
push 0x64
lea ecx, [ebp - 0x528]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x4b8]
xor ecx, ecx
push 3
mov dword [ebp - 0x528], 0x58
mov dword [ebp - 0x4e4], 0x1104edd0
mov dword [ebp - 0x524], edx
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], 0x100
mov word [ebp - 0x4b8], cx
mov dword [ebp - 0x4f4], 0xe88826
call fcn.111bb510
push 0x1393
mov dword [ebp - 0x4fc], eax
call fcn.111bccb0
lea edx, [ebp - 0xb0]
add esp, 0x14
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x11050722
lea edx, [ebp - 0xb0]
mov eax, edx
push 0x7c
push eax
mov dword [ebp - 0x51c], edx
call fcn.110e46e0
add esp, 8
test eax, eax
je 0x11050767
mov edi, edi
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x7c
push eax
call fcn.110e46e0
add esp, 8
test eax, eax
jne 0x11050750
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x4ec], 0x11202fc4
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [ebp - 0x4c0]
push eax
call edx
test eax, eax
je 0x11050859
mov ecx, dword [ebp - 0x4bc]
mov ecx, dword [ecx + 0x48]
xor eax, eax
mov word [ebp - 0x2b8], ax
test ecx, ecx
je 0x110507c8
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
push 0x208
lea eax, [ebp - 0x2b8]
push eax
push str.ChatPath
push 0x112187c0
call edx
cmp word [ebp - 0x2b8], 0
jne 0x110507e7
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
cmp word [ebp - 0x2b8], 0
je 0x110507f3
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x4fc], ecx
lea edx, [ebp - 0x528]
push edx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x11050848
lea eax, [ebp - 0x4b8]
push 0x11202fa8
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
add esp, 8
test eax, eax
je 0x11050848
push eax
lea ecx, [ebp - 0x550]
call fcn.1102f660
push edi
lea ecx, [ebp - 0x550]
mov byte [ebp - 4], 1
call fcn.1113b340
lea ecx, [ebp - 0x550]
mov byte [ebp - 4], 0
call fcn.1102f6a0
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4c0]
mov edx, dword [edx + 0x48]
push eax
call edx
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x11050880
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
call fcn.1104ee90
mov ebx, eax
test ebx, ebx
je 0x1105090a
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11050892
sub eax, edx
sar eax, 1
push esi
mov esi, eax
test esi, esi
jle 0x11050909
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x11050909
lea edi, [esi + esi + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x11050903
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebx
ret
Function at 0x11054b20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp eax, 0x400
je 0x11054b3b
cmp eax, 0x300
jne 0x11054c2f
mov eax, dword [ebp + 8]
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, 0x80
sub edi, eax
mov dword [ebp + 0xc], eax
cmp edi, 9
ja 0x11054ba3
cmp dword [esi + 0xc], 0
jne 0x11054b73
push 0xc3
push str.e:_nsmsrc_nsm14101410fctl32_nsmdlg.h
push 0x111f761c
call fcn.11067750
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x13ab
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0x1392
push 0x13ab
push esi
call fcn.111365d0
add esp, 0x10
jmp 0x11054bda
cmp dword [esi + 0xc], 0
jne 0x11054bc0
push 0xc3
push str.e:_nsmsrc_nsm14101410fctl32_nsmdlg.h
push 0x111f761c
call fcn.11067750
add esp, 0xc
mov edx, dword [esi + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x13ab
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 0x80
jle 0x11054bf3
cmp dword [esi + 0x108], 1
jne 0x11054bf3
mov ecx, esi
call fcn.11054930
cmp dword [esi + 0xc], 0
mov edi, dword [esi + 0x114]
jne 0x11054c16
push 0xbd
push str.e:_nsmsrc_nsm14101410fctl32_nsmdlg.h
push 0x111f761c
call fcn.11067750
add esp, 0xc
mov eax, dword [esi + 0xc]
push edi
push eax
call ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
setg cl
push ecx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x11056850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111db8c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.111d7c10
xor eax, eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov byte [esi + 0x78], al
mov dword [esi + 0x30], 1
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.NSMChatPane.0
mov dword [esi + 0x88], eax
mov edx, dword [eax + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.111d7c60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8