joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103d26a
Capabilities:
Get session user name

Disassembly:
mov eax, 0x10733bd
call fcn.01071e78
sub esp, 0x218
mov eax, dword [0x1080bec]
and word [ebp - 0x218], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push edi
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x21c]
stosw word es:[edi], ax
mov dword [ebp - 0x224], 0x104
call sub.MFC42u.dll_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString_4
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push 0x17ab
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0x10
push 0x1389
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::LoadStringW
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01070ac3
leave
ret 8

Function at 0x103dd1c
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
mov eax, dword [edi + 0x44]
push 0x4d5
push dword [eax + 0x770]
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 9
jne 0x103dd96
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x103dd8c
cmp dword [ebp - 4], 1
jne 0x103dd75
push ebx
push ebx
push 0x4d4
mov eax, dword [edi + 0x44]
push dword [eax + 0x770]
call esi
jmp 0x103de02
xor ebx, ebx
inc ebx
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x50]
push ebx
push dword [eax + 0x770]
call fcn.010386b5
jmp 0x103de02
cmp dword [ebp - 4], ebx
jne 0x103dd78
push ebx
push 1
jmp 0x103dd60
cmp eax, 0x28
jne 0x103ddac
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x103de06
push ebx
push 0x28
jmp 0x103ddc0
cmp eax, 0x26
jne 0x103ddd0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x103de06
push ebx
push 0x26
mov eax, dword [edi + 0x44]
push 0x100
push dword [eax + 0x71c]
jmp 0x103dd6e
cmp eax, 0x2d
jne 0x103dded
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x103de06
push ebx
push ebx
push 0x301
jmp 0x103dd65
cmp eax, 0xd
jne 0x103de06
mov eax, dword [edi + 0x44]
test byte [eax + 1], 2
je 0x103de06
mov ecx, edi
call fcn.0103d8aa
xor eax, eax
jmp 0x103de09
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10417f5
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1041822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10418cb
push esi
push 0x14
push 0x10045c0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x1041843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10418b5
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1041865
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov dword [ebp - 4], eax
jne 0x10418b5
mov dword [ebp - 4], edi
jmp 0x10418b5
push ebx
mov dword [ebp - 8], edi
mov esi, 0x1f4
mov ebx, 0x3a98
jmp 0x1041877
xor edi, edi
push 6
mov dword [ebp - 0x2c], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 4
je 0x10418a6
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 8], esi
cmp dword [ebp - 8], ebx
jb 0x1041875
cmp dword [ebp - 8], ebx
pop ebx
jb 0x10418b3
mov dword [ebp - 4], 0x41d
xor edi, edi
cmp dword [ebp - 0xc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x10418c5
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x10418d6
Capabilities:
Get file attributes
Persist via run registry key
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1080bec]
push ebx
push esi
mov ebx, 0x10042d0
xor esi, esi
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
call fcn.01046e26
call fcn.01047098
lea eax, [ebp - 0x214]
push eax
push 1
push esi
push 0x1004610
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10419ed
push edi
mov word [ebp - 0x210], si
mov ecx, 0x82
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x10045f8
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x208
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0xf003f
push esi
push 0x10045e8
push esi
push ebx
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10419ec
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push 0x10045c8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor eax, eax
pop ebx
call fcn.01070ac3
leave
ret

Function at 0x10439d3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 0x4ac], ebx
push edi
mov dword [ebp - 4], ebx
je 0x1043a2e
push 0x800
lea eax, [esi + 0x11d8]
push eax
mov eax, dword [esi + 8]
push 1
push 0x1004948
push dword [eax + 0x10]
lea edi, [esi + 0x11dc]
call dword [sym.imp.USER32.dll_DrawTextW]
add dword [edi], eax
mov edi, dword [edi]
mov eax, dword [esi + 0x11e4]
sub eax, edi
cmp eax, dword [esi + 0x11f8]
jg 0x1043a93
cmp dword [esi + 0x700], ebx
jne 0x1043a93
jmp 0x1043a8b
lea edi, [esi + 0x58]
push 0x1004940
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push ebx
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push edi
push dword [esi + 0x4e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi + 0x6e8]
inc dword [eax]
cmp dword [esi + 0x700], ebx
mov eax, dword [eax]
jne 0x1043a93
cmp dword [esi + 0x54], ebx
je 0x1043a93
mov ecx, dword [esi + 0x4b0]
cmp ecx, ebx
jne 0x1043a86
cmp eax, 0x38
jg 0x1043a8b
cmp ecx, ebx
je 0x1043a93
cmp eax, 0x36
jle 0x1043a93
mov ecx, esi
push ebx
call fcn.0104446e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104446e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov esi, ecx
push edi
mov dword [ebp - 4], ebx
mov dword [esi + 0x700], 1
je 0x10444ae
cmp dword [esi + 0x4ac], ebx
jne 0x10444ae
push 0x39
pop eax
sub eax, dword [esi + 0x6e8]
cmp eax, ebx
jle 0x10444ae
mov edi, eax
mov ecx, esi
call fcn.010439d3
dec edi
jne 0x10444a4
lea eax, [esi + 0x6f8]
inc dword [eax]
mov eax, dword [eax]
push eax
push 0x1674
lea edi, [esi + 0x9be]
call fcn.0106bcca
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push edi
mov ecx, esi
call fcn.0104427b
cmp dword [esi + 0x4ac], ebx
mov dword [esi + 0x700], ebx
je 0x1044509
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x1044501
mov dword [esi + 0x11bc], ebx
mov dword [esi + 0x11dc], ebx
jmp 0x1044537
lea edi, [esi + 0x58]
push 0x10049d8
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push ebx
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push edi
push dword [esi + 0x4e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 8], ebx
mov dword [esi + 0x6e8], ebx
jne 0x1044557
lea eax, [esi + 0xbbc]
push eax
lea eax, [esi + 0x7c0]
push eax
mov ecx, esi
call fcn.010442fc
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1044563
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esi + 0x4ac], edi
mov dword [ebp - 4], edi
je 0x10445a8
push 0x800
lea eax, [esi + 0x11d8]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push dword [ebp + 8]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_DrawTextW]
add dword [esi + 0x11dc], eax
jmp 0x10445c9
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push edi
lea ecx, [ebp - 4]
push ecx
shl eax, 1
push eax
push dword [ebp + 8]
push dword [esi + 0x4e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0x4ac], edi
jne 0x10445da
mov ecx, esi
call fcn.010439d3
jmp 0x10445fe
mov eax, dword [esi + 0x11e4]
sub eax, dword [esi + 0x11dc]
cmp eax, dword [esi + 0x11f8]
jg 0x10445fe
cmp dword [esi + 0x700], edi
jne 0x10445fe
push edi
mov ecx, esi
call fcn.0104446e
pop edi
pop esi
leave
ret 4
Function at 0x104616c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0x4c
push edi
je 0x104618b
push 0x37
push 0x1046100
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ebx, 0x5fb
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esi + 0x264], 1
jne 0x10461a7
push 5
jmp 0x10461a9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0
push dword [esi + 0x270]
push 0xda
push dword [ebp + 8]
call edi
push 0
push dword [esi + 0x274]
push 0xdb
push dword [ebp + 8]
call edi
push dword [esi + 0x26c]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
Function at 0x1046b32
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp word [esi + 4], bx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jbe 0x1046ba2
lea eax, [ebp + 8]
push eax
push edi
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1046b90
mov eax, dword [ebp + 8]
cmp byte [eax], bl
jne 0x1046ba2
push dword [ebp + 0x10]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1046b85
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 4]
je 0x1046b9b
movzx eax, word [esi + 4]
inc edi
cmp edi, eax
jb 0x1046b4f
jmp 0x1046ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1046ba2
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10

Function at 0x10482d3
Capabilities:
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x1005220
mov esi, ecx
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov edi, eax
test edi, edi
je 0x1048400
push edi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1048400
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x1048400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
test ebx, ebx
je 0x10483ff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x10483ff
mov eax, dword [esi + 0x9170]
mov eax, dword [eax + 4]
test eax, eax
je 0x104834f
push eax
call sub.NMAPI.dll_GetFrameTimeStamp
jmp 0x1048353
xor eax, eax
xor edx, edx
push edx
push eax
push ebx
push edi
call sub.NMAPI.dll_CreateFrame
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10483f6
mov eax, dword [esi + 0x9170]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
call fcn.0102bb00
mov ebx, eax
test ebx, ebx
je 0x1048381
mov eax, dword [ebx + 0x20]
mov ecx, dword [esi + 0x9170]
push dword [ecx + 0x10]
mov edi, dword [sym.imp.USER32.dll_EnumChildWindows]
push 0x10599f4
push eax
call edi
push dword [ebp - 8]
call sub.NMAPI.dll_GetFrameNumber
push eax
push dword [ebp - 0xc]
mov eax, dword [esi + 0x9170]
push dword [eax + 0x10]
call sub.NMAPI.dll_InsertFrame
test ebx, ebx
jne 0x10483ba
xor eax, eax
jmp 0x10483bd
mov eax, dword [ebx + 0x20]
mov ecx, dword [esi + 0x9170]
push dword [ecx + 0x10]
push 0x1059a3c
push eax
call edi
test ebx, ebx
je 0x10483d5
mov ebx, dword [ebx + 0x20]
mov eax, dword [esi + 0x9170]
push dword [eax + 0x10]
push 0x1059a18
push ebx
call edi
mov eax, dword [esi + 0x54]
push 0
push 0x74
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1048409
Capabilities:
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.NMAPI.dll_LockFrame
test eax, eax
mov dword [ebp - 4], eax
je 0x10484b7
push edi
push esi
call sub.NMAPI.dll_GetFrameLength
mov edi, eax
test edi, edi
je 0x10484b6
push 0x1005220
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
mov dword [ebp - 8], eax
jne 0x1048450
push esi
call sub.NMAPI.dll_UnlockFrame
jmp 0x10484b6
push ebx
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1048472
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
push ebx
jne 0x1048475
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
jmp 0x10484b0
mov esi, dword [ebp - 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call sub.NMAPI.dll_UnlockFrame
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x10484b5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call sub.NMAPI.dll_UnlockFrame
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x1049b41
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x9170]
push edi
push dword [eax + 0x10]
call sub.NMAPI.dll_GetCaptureInstanceData
mov edi, eax
test edi, edi
je 0x1049ba5
test byte [edi + 0x14], 1
je 0x1049b77
mov esi, dword [esi + 0x20]
push 0x158f
call fcn.0106bcca
push eax
push esi
call fcn.0106bdb1
jmp 0x1049ba5
push ebx
push dword [esi + 0x20]
mov ebx, dword [esi + 0x91bc]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1049ba4
mov ecx, esi
call fcn.010482d3
or byte [edi + 0x14], 2
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
mov ecx, esi
call fcn.01047cc6
pop ebx
pop edi
pop esi
ret

Function at 0x1049b43
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x9170]
push edi
push dword [eax + 0x10]
call sub.NMAPI.dll_GetCaptureInstanceData
mov edi, eax
test edi, edi
je 0x1049ba5
test byte [edi + 0x14], 1
je 0x1049b77
mov esi, dword [esi + 0x20]
push 0x158f
call fcn.0106bcca
push eax
push esi
call fcn.0106bdb1
jmp 0x1049ba5
push ebx
push dword [esi + 0x20]
mov ebx, dword [esi + 0x91bc]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1049ba4
mov ecx, esi
call fcn.010482d3
or byte [edi + 0x14], 2
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
mov ecx, esi
call fcn.01047cc6
pop ebx
pop edi
pop esi
ret
Function at 0x104d8f8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1080bec]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [ebp + 8]
push 0x407
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x808], edi
call esi
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp + 0xc]
dec eax
je 0x104d963
dec eax
je 0x104d955
sub eax, 0xc5
jne 0x104dbaf
push 0x406
push 1
push 0x10856e0
push edi
call fcn.0106cac6
jmp 0x104dbaf
push 0
push edi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x104dbaf
cmp dword [0x108126c], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x104db12
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x97
push dword [ebp - 0x808]
call esi
push eax
call ebx
push 0
push 0
push 0x147
push dword [ebp - 0x80c]
call edi
push 0
push eax
push 0x150
push dword [ebp - 0x80c]
call edi
push eax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x804]
push eax
push dword [0x1081270]
call fcn.0106c175
test eax, eax
jne 0x104db12
mov edi, dword [ebp - 0x80c]
cmp edi, 4
ja 0x104da4b
cmp edi, 3
jae 0x104da83
mov eax, edi
sub eax, 0
je 0x104da83
dec eax
je 0x104da29
dec eax
jne 0x104dad9
push 0x13dc
call fcn.0106bcca
push eax
push 2
call fcn.0106c804
push eax
push 2
call fcn.0106c804
push eax
push 0x13db
jmp 0x104dac3
push 0x13da
call fcn.0106bcca
push eax
push 1
call fcn.0106c804
push eax
push 1
call fcn.0106c804
push eax
push 0x13d9
jmp 0x104dac3
cmp edi, 9
je 0x104daa3
cmp edi, 0xa
jbe 0x104dad9
cmp edi, 0xc
jbe 0x104da83
cmp edi, 0xd
jne 0x104dad9
push 0x8001
call fcn.0106bcca
push eax
push edi
call fcn.0106c804
push eax
push edi
call fcn.0106c804
push eax
push 0x8000
jmp 0x104dac3
push 0x13d8
call fcn.0106bcca
push eax
push edi
call fcn.0106c804
push eax
push edi
call fcn.0106c804
push eax
push 0x13d7
jmp 0x104dac3
push 0x13ec
call fcn.0106bcca
push eax
push 9
call fcn.0106c804
push eax
push 9
call fcn.0106c804
push eax
push 0x13eb
call fcn.0106bcca
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x10
push 0x1389
call fcn.0106bcca
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x97
push dword [ebp - 0x808]
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x104dbae
push 0x20
push dword [0x1081274]
push 0x96
push dword [ebp - 0x808]
call esi
push eax
call ebx
test eax, eax
jne 0x104db59
push 0x30
push 0x1389
call fcn.0106bcca
push eax
push 0x13de
call fcn.0106bcca
push eax
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x96
jmp 0x104dafe
push 0x80
push dword [0x1081278]
push 0x9c
push dword [ebp - 0x808]
call esi
push eax
call ebx
push 0
push 0
push 0xf2
push 0x87
push dword [ebp - 0x808]
call esi
push eax
call edi
test eax, eax
mov eax, dword [0x108127c]
je 0x104db9c
or byte [eax + 1], 1
jmp 0x104dba0
and byte [eax + 1], 0xfe
push 1
push dword [ebp - 0x808]
call dword [sym.imp.USER32.dll_EndDialog]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01070ac3
leave
ret 0x10
Function at 0x104df56
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x1080bec]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
push eax
mov dword [ebp - 0x274], 0xfeff
call sub.NMAPI.dll_EnumAddresses
mov ebx, eax
test ebx, ebx
je 0x104e096
push 0x100596c
push edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x26c], edi
je 0x104e096
push edi
push 1
lea eax, [ebp - 0x274]
push 2
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test esi, esi
jne 0x104dfcd
mov esi, 0x1002860
push edi
mov edi, dword [sym.imp.msvcrt.dll_fputws]
push esi
call edi
push dword [ebp - 0x26c]
push 0x1004940
call edi
xor eax, eax
add esp, 0x10
cmp dword [ebx], eax
mov dword [ebp - 0x270], eax
jbe 0x104e082
mov esi, dword [ebx + eax*4 + 4]
push 0
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.0106d586
mov eax, dword [esi]
cmp eax, 6
je 0x104e06d
cmp eax, 7
je 0x104e06d
mov ecx, dword [esi + 0x56]
push dword [esi + 0x5a]
add esi, 0x16
test ecx, ecx
push esi
je 0x104e03e
lea edx, [ebp - 0x68]
push edx
push ecx
push eax
lea eax, [ebp - 0x268]
push 0x1005944
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x104e058
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x268]
push 0x1005928
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x104e082
inc dword [ebp - 0x270]
movzx eax, word [ebp - 0x270]
cmp eax, dword [ebx]
jb 0x104dff7
push dword [ebp - 0x26c]
call dword [sym.imp.msvcrt.dll_fclose]
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x104e098
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 0xc
Function at 0x104e2e8
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x1080bec]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x62c], eax
xor eax, eax
xor ebx, ebx
mov ecx, 0x82
lea edi, [ebp - 0x210]
push 0x13cc
mov word [ebp - 0x214], bx
rep stosd dword es:[edi], eax
call fcn.0106bcca
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov word [ebp + eax*2 - 0x20e], 0x2a
inc eax
inc eax
mov word [ebp + eax*2 - 0x210], 0x2e
inc eax
mov word [ebp + eax*2 - 0x210], 0x61
lea eax, [eax + eax + 2]
mov word [ebp + eax - 0x210], 0x64
mov word [ebp + eax - 0x20e], 0x72
mov edi, 0x1002088
lea eax, [ebp - 0x41c]
push edi
push eax
call esi
lea eax, [ebp - 0x628]
push edi
push eax
call esi
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x680], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x41c]
add esp, 0x1c
mov dword [ebp - 0x668], eax
mov eax, 0x104
lea ecx, [ebp - 0x628]
push 0x13d4
mov dword [ebp - 0x684], 0x58
mov dword [ebp - 0x674], ebx
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x664], eax
mov dword [ebp - 0x658], 0x10850b8
mov dword [ebp - 0x660], ecx
mov dword [ebp - 0x65c], eax
call fcn.0106bcca
push 0x13d5
mov dword [ebp - 0x654], eax
call fcn.0106bcca
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x640], 0x1060670
mov dword [ebp - 0x650], 0x80036
jmp 0x104e4ff
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x104e474
lea eax, [ebp - 0x41c]
push eax
push 0x10850b8
call esi
lea eax, [ebp - 0x41c]
sub edi, eax
pop ecx
sar edi, 1
pop ecx
mov word [edi*2 + 0x10850ba], bx
push ebx
push dword [ebp - 0x668]
push dword [0x1081268]
call fcn.0104df56
test eax, eax
jne 0x104e51d
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x1c
push dword [ebp - 0x668]
jne 0x104e4c5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x668]
push 0x13d6
call fcn.0106bcca
push eax
push 0x70
push dword [ebp - 0x62c]
call fcn.0106c859
jmp 0x104e4ff
push 0x13ea
call fcn.0106bcca
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push 0x1389
call fcn.0106bcca
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x684]
push eax
push ebx
call fcn.010511dd
test eax, eax
jne 0x104e43b
jmp 0x104e529
push ebx
push dword [0x1081268]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 0x10