joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509238
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x509270
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00507285
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050725d
jmp 0x50927c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50a926
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50a968
call fcn.00510737
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50a968
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50a95f
xor eax, eax
jmp 0x50a970
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050a976
pop edi
pop esi
pop ebx
ret 4

Function at 0x510c67
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x510c95
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x510cb3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00510bcd
jmp 0x510cb3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x510cb3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00510bcd
test edi, edi
mov eax, edi
jne 0x510c9d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e004]
jne 0x40100a
repz ret
jmp fcn.004019eb

Function at 0x406948
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040256b
and dword [ebp - 4], 0
cmp dword [0x470264], 0
mov ebx, eax
jne 0x4069f9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406aaa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406aaa
push eax
call fcn.004024f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x470264], eax
call esi
push eax
call fcn.004024f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470268], eax
call esi
push eax
call fcn.004024f9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47026c], eax
call esi
push eax
call fcn.004024f9
pop ecx
mov dword [0x470274], eax
test eax, eax
je 0x4069f9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024f9
pop ecx
mov dword [0x470270], eax
mov eax, dword [0x470270]
cmp eax, ebx
je 0x406a51
cmp dword [0x470274], ebx
je 0x406a51
push eax
call fcn.00402574
push dword [0x470274]
mov esi, eax
call fcn.00402574
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a51
test edi, edi
je 0x406a51
call esi
test eax, eax
je 0x406a48
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a48
test byte [ebp - 0xc], 1
jne 0x406a51
or dword [ebp + 0x10], 0x200000
jmp 0x406a8a
mov eax, dword [0x470268]
cmp eax, ebx
je 0x406a8a
push eax
call fcn.00402574
pop ecx
test eax, eax
je 0x406a8a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a8a
mov eax, dword [0x47026c]
cmp eax, ebx
je 0x406a8a
push eax
call fcn.00402574
pop ecx
test eax, eax
je 0x406a8a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470264]
call fcn.00402574
pop ecx
test eax, eax
je 0x406aaa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406aac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x469ffe
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x46e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ebx, ebx
jle 0x46a05b
and dword [ebp - 0x808], 0
lea ecx, [ebp - 0x808]
call fcn.00469ff6
mov al, byte [ebp - 0x808]
xor byte [edi + esi], al
cmp ebx, 0xf
jne 0x46a056
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, ebx
jl 0x46a018
pop esi
cmp ebx, 0x2d
jne 0x46a072
or dword [0x275839c], 0xffffffff
mov dword [0x2758398], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x43b65b
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
sub esi, 0x2b92f20
call fcn.0043b694
add esi, 0x394df6f5
add eax, 0xb9a06b13
xor dword [ebx], edx
sub eax, esi
or esi, esi
mov esi, esi
inc ebx
sub eax, eax
sub esi, eax
cmp ebx, edi
jne fcn.0043b65b
add esi, esi
ret
Function at 0x59001580
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x591abe08]
test eax, eax
jne 0x590015ed
mov dword [0x591abe08], 1
call fcn.590bb6c0
test eax, eax
push 0x104
push 0x591abe0c
je 0x590015e7
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x590015ed
push esi
push edi
mov edi, 0x59187324
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x591abe0c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 0x591abe0c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 0x591abe0c
ret
Function at 0x59002150
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5900217a
push str.winbrosqlite3_module_is_Loaded
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
mov eax, 1
pop esi
ret
push 0x5915e4c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x590021b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winbrosqlite3_module_load_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open16
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_prepare16_v2
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.sqlite3_bind_int64
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x30]
push str.sqlite3_bind_text16
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_step
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.sqlite3_column_int64
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x30]
push str.sqlite3_column_text16
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_column_blob
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.sqlite3_column_bytes
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x30]
push str.sqlite3_close
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_finalize
push eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x2c], eax
test ecx, ecx
pop edi
je 0x590022bc
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x590022bc
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x590022bc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x590022bc
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x590022bc
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x590022bc
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x590022bc
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x590022bc
test eax, eax
je 0x590022bc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x590022bc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x590022bc
push str.winbrosqlite3_module_load_successful
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
mov eax, 1
mov dword [esi + 0x34], eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_winbrosqlite3_function_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
mov ecx, esi
call fcn.590022f0
xor eax, eax
pop esi
ret
Function at 0x59005230
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5900528e
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5900526a
push esi
call fcn.5908992e
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x5900526c
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x590052a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x590052e7
mov ecx, dword [esp]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0xc

Function at 0x590052f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push 0x80000002
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x5900538a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x59005374
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.5913e1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x59005374
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x590053a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x59005404
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8
Function at 0x5900d9e0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5914b5c8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x5900da32
mov ebx, dword [esp + 0x20]
cmp ebx, edi
je 0x5900da32
push eax
lea ecx, [esp + 0x20]
call fcn.590a1b80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
cmp dword [eax - 8], edi
jne 0x5900da46
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.590a22e0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5900da82
mov eax, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x5900da79
mov edi, 1
jmp 0x5900da7b
mov dword [ebx], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.590a22e0
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x59010d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914b9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x591638c0]
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x18], eax
mov byte [esp + 0x58], 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 2
mov dword [esp + 0x10], eax
mov byte [esp + 0x58], 3
mov dword [esp + 0xc], eax
mov byte [esp + 0x58], 4
mov dword [esp + 8], eax
mov byte [esp + 0x58], 5
mov dword [esp + 4], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.590acfe0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 7
call fcn.590acfe0
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 8
call fcn.590b4e60
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x58], 9
lea eax, [esi + 0x14]
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.590ad5f0
lea edx, [esi + 0x10]
lea ecx, [esp + 0x60]
push edx
call fcn.590a6c60
push eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 0xa
call fcn.590ad5f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 9
call fcn.590a7660
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.590b50a0
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
push 4
push 0x5918a3c8
call fcn.590248c0
add esp, 0x30
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 8
call fcn.590b4e70
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 7
call fcn.590acff0
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.590acff0
lea ecx, [esp + 4]
mov byte [esp + 0x58], 5
call fcn.590a7660
lea ecx, [esp + 8]
mov byte [esp + 0x58], 4
call fcn.590a7660
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 3
call fcn.590a7660
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call fcn.590a7660
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.590a7660
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0
call fcn.590a7660
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.590a7660
mov ecx, dword [esp + 0x50]
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x5901c140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914d233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x591638c0]
mov dword [esp], eax
mov dword [eax + 0x1c], ecx
mov edx, dword [0x591638c0]
mov dword [esp + 0xc], 0
mov dword [eax + 0x20], edx
mov ecx, dword [0x591638c0]
mov byte [esp + 0xc], 1
mov dword [eax + 0x24], ecx
mov edx, dword [0x591638c0]
mov byte [esp + 0xc], 2
mov dword [eax + 0x28], edx
mov ecx, dword [0x591638c0]
mov byte [esp + 0xc], 3
mov dword [eax + 0x2c], ecx
mov edx, dword [0x591638c0]
mov byte [esp + 0xc], 4
mov dword [eax + 0x30], edx
mov ecx, dword [0x591638c0]
mov byte [esp + 0xc], 5
mov dword [eax + 0x34], ecx
mov edx, dword [0x591638c0]
mov byte [esp + 0xc], 6
mov dword [eax + 0x38], edx
mov ecx, dword [0x591638bc]
mov byte [esp + 0xc], 7
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5901c4d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914d2e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 0
test edi, edi
je 0x5901c68d
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5901c68d
push ebx
push ebp
push 0x591af1e0
lea ecx, [esp + 0x34]
call fcn.590a6ec0
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x24], 1
test ebp, ebp
je 0x5901c62a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5901c62a
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push ebp
push eax
push ecx
call fcn.5900f7b0
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x5901c62a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov esi, ecx
mov ecx, dword [esp + 0x34]
add esi, ebx
push edx
add esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
sub eax, ebx
sub eax, ecx
push eax
push esi
call fcn.5900f7b0
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x5901c626
push ebp
push esi
lea ecx, [esp + 0x1c]
call fcn.590a7110
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5901c5cb
push 0x59188548
lea ecx, [esp + 0x34]
call fcn.590a82b0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.590a8310
mov edi, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x24], 1
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x3c]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
add ebp, edx
mov edx, dword [esp + 0x34]
not ecx
dec ecx
add ecx, ebp
add ecx, ebx
add edx, ecx
sub eax, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], eax
call fcn.590a7660
mov ebp, dword [esp + 0x38]
jmp 0x5901c542
mov ebp, dword [esp + 0x38]
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5901c652
mov eax, dword [esp + 0x30]
push eax
push ebp
push str.GetEMailSpecialstrLoopW___S___s_
push str.MailLog
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x18
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.590a6c60
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 0
call fcn.590a7660
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov esi, dword [esp + 0x24]
push 0x591af1e0
mov ecx, esi
call fcn.590a6ec0
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x590299b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x591ae1c8]
push esi
mov esi, dword [esp + 8]
push edi
test eax, eax
je 0x590299d9
push esi
push str.CorrectAttachData__type:_08x_
push str.Combine
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
cmp esi, 0x3d0
jne 0x59029a83
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 4]
cmp esi, 1
jl 0x59029a83
dec esi
js 0x59029a83
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx]
cmp dword [eax + esi*4], 0x3d1
jne 0x59029a7e
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x59029a48
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 4]
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov edx, dword [ecx + 4]
push edx
push esi
push str.CorrectAttachData__remove__i_:__d____d__d__d__d_
push str.Combine
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x24
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
push 1
push esi
call fcn.590adbc0
push 1
push esi
mov ecx, edi
call fcn.590adbc0
push 1
push esi
mov ecx, ebp
call fcn.590b5180
push 1
push esi
mov ecx, ebx
call fcn.590b5180
dec esi
jns 0x59029a06
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x59056d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59155628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0x5915e930
lea edi, [esi + 0x1b8]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1d0]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x59056d5e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x59056d5e
mov ebp, dword [esp + 0x3c]
cmp ebp, 2
je 0x59056d83
cmp ebp, 1
je 0x59056d83
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
lea eax, [esi + 0xe8]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.590b5cc0
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x12c]
lea ecx, [esi + 0x128]
push edx
push eax
mov byte [esp + 0x34], 1
call fcn.590ac810
mov eax, dword [0x591638c0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x59056dd1
push eax
lea ecx, [esp + 0x10]
call fcn.590a78e0
mov eax, dword [esi + 0x14c]
lea ecx, [esi + 0x148]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.590ad5f0
mov eax, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
push ebp
push eax
call fcn.590b50a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.590a7660
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.590b5d20
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x59059630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59155a17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
call dword [0x591aa554]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
call fcn.590cca30
add esp, 8
mov dword [esp + 0x28], 1
call fcn.59001210
push eax
lea ecx, [esp + 8]
call fcn.590a19b0
push 0x59188468
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.590a2ef0
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.590a2f50
push 0x5919002c
lea ecx, [esp + 8]
call fcn.590a2ef0
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.590a18b0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 1
call fcn.590a22e0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.590a22e0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret