joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e554
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e5f1
push ebx
push esi
call fcn.0041e51d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d1a2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e59e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5f0
push edi
push eax
call fcn.004181bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e5be
call fcn.004171cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5ef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d1a2
add esp, 0x20
test eax, eax
jne 0x41e5dd
push edi
call fcn.004171cb
jmp 0x41e5e5
push ebx
call fcn.004171cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425d8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425d8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x930330
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x930336
pop ebp
sub ebp, 6
sub ebp, 0x530330
jmp 0x930394
jmp 0x93039d
mov eax, 0x530330
add eax, ebp
add eax, 0x93
mov ecx, 0x627
mov edx, 0x6897e891
xor byte [eax], dl
inc eax
dec ecx
jne 0x9303b4
jmp 0x9303c7
sti
sar ecx, 1
xchg ecx, eax
adc dword [ecx + 0x5d91f991], 0x611091bd
sahf
push cs
out dx, al
adc byte gs:[ecx - 0x62], ah
push cs
out dx, al
mov byte gs:[0x46ec151], al
jmp 0xc224dcb9
Function at 0x5f31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005f3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005f3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005f3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005f3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5f3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5f3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x60587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5f3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5f3c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
mov eax, dword [0x447d10]
mov dword [esp + 0x128], eax
mov al, byte [0x449d54]
test al, al
jne 0x4090da
lea eax, [esp]
push eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409031
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x409043
lea eax, [esp + 0x24]
push 0x4398b8
push eax
call fcn.00416f3f
add esp, 8
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409053
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00403ef0
push 8
push str.TUVIE6_
lea ecx, [esp + 0x10]
call fcn.00408870
push 0x16
push 0x439894
lea ecx, [esp + 0x10]
call fcn.00408870
push 1
push 0x439890
lea ecx, [esp + 0x10]
call fcn.00408870
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4090aa
lea eax, [esp + 0xc]
push 0x410
push eax
push 0x449388
call fcn.004171a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov byte [0x449d54], 1
jb 0x4090da
mov eax, dword [esp + 0xc]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, 0x449388
call fcn.004164ae
add esp, 0x12c
ret

Function at 0x40c553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c57a
xor eax, eax
jmp 0x40c5ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40c59e
cmp esi, eax
jae 0x40c576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c590
cmp esi, eax
jae 0x40c576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x59001580
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x591aa358]
test eax, eax
jne 0x590015ed
mov dword [0x591aa358], 1
call fcn.590ba2a0
test eax, eax
push 0x104
push 0x591aa35c
je 0x590015e7
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x590015ed
push esi
push edi
mov edi, 0x59186324
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, 0x591aa35c
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, 0x591aa35c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 0x591aa35c
ret
Function at 0x59002060
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5900208a
push str.winbrosqlite3_module_is_Loaded
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x10
mov eax, 1
pop esi
ret
push 0x5915d4c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x590020c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winbrosqlite3_module_load_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
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 0x590021cc
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x590021cc
test eax, eax
je 0x590021cc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x590021cc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x590021cc
push str.winbrosqlite3_module_load_successful
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
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 0x591ac6ac
call fcn.59083dc0
add esp, 0x14
mov ecx, esi
call fcn.59002200
xor eax, eax
pop esi
ret
Function at 0x59005140
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 0x5900519e
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5900517a
push esi
call fcn.5908850e
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x5900517c
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 0x590051b0
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 0x590051f7
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 0x59005200
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 0x5900529a
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 0x59005284
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.5913d2d0
mov esi, eax
add esp, 4
test esi, esi
je 0x59005284
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 0x590052b0
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 0x59005314
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 0x5900db60
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5914a708
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x5900dbb2
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x5900dbb2
push eax
lea ecx, [esp + 0x20]
call fcn.590a0760
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
jne 0x5900dbc6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.590a0ec0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5900dbfe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x5900dbf5
mov ebx, 1
jmp 0x5900dbf7
mov dword [edi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.590a0ec0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x59011010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914ab68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x59162880]
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.590abbc0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 7
call fcn.590abbc0
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 8
call fcn.590b3a40
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.590ac1d0
lea edx, [esi + 0x10]
lea ecx, [esp + 0x60]
push edx
call fcn.590a5840
push eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 0xa
call fcn.590ac1d0
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 9
call fcn.590a6240
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.590b3c80
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 0x591893b0
call fcn.59024d80
add esp, 0x30
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 8
call fcn.590b3a50
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 7
call fcn.590abbd0
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.590abbd0
lea ecx, [esp + 4]
mov byte [esp + 0x58], 5
call fcn.590a6240
lea ecx, [esp + 8]
mov byte [esp + 0x58], 4
call fcn.590a6240
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 3
call fcn.590a6240
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call fcn.590a6240
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.590a6240
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.590a6240
mov ecx, dword [esp + 0x50]
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x5901acf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914bfa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x59162880]
mov dword [esp], eax
mov dword [eax + 0x1c], ecx
mov edx, dword [0x59162880]
mov dword [esp + 0xc], 0
mov dword [eax + 0x20], edx
mov ecx, dword [0x59162880]
mov byte [esp + 0xc], 1
mov dword [eax + 0x24], ecx
mov edx, dword [0x59162880]
mov byte [esp + 0xc], 2
mov dword [eax + 0x28], edx
mov ecx, dword [0x59162880]
mov byte [esp + 0xc], 3
mov dword [eax + 0x2c], ecx
mov edx, dword [0x59162880]
mov byte [esp + 0xc], 4
mov dword [eax + 0x30], edx
mov ecx, dword [0x59162880]
mov byte [esp + 0xc], 5
mov dword [eax + 0x34], ecx
mov edx, dword [0x59162880]
mov byte [esp + 0xc], 6
mov dword [eax + 0x38], edx
mov ecx, dword [0x5916287c]
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 0x5901c900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5914c477
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 0x5901cabd
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5901cabd
push ebx
push ebp
push 0x591ad730
lea ecx, [esp + 0x34]
call fcn.590a5aa0
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x24], 1
test ebp, ebp
je 0x5901ca5a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5901ca5a
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.5900f930
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x5901ca5a
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.5900f930
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x5901ca56
push ebp
push esi
lea ecx, [esp + 0x1c]
call fcn.590a5cf0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5901c9fb
push 0x59187530
lea ecx, [esp + 0x34]
call fcn.590a6e90
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.590a6ef0
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.590a6240
mov ebp, dword [esp + 0x38]
jmp 0x5901c972
mov ebp, dword [esp + 0x38]
mov eax, dword [0x591ac718]
test eax, eax
je 0x5901ca82
mov eax, dword [esp + 0x30]
push eax
push ebp
push str.GetEMailSpecialstrLoopW___S___s_
push str.MailLog
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x18
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.590a5840
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 0
call fcn.590a6240
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 0x591ad730
mov ecx, esi
call fcn.590a5aa0
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 0x59029f00
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x591ac718]
push esi
mov esi, dword [esp + 8]
push edi
test eax, eax
je 0x59029f29
push esi
push str.CorrectAttachData__type:_08x_
push str.Combine
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x14
cmp esi, 0x3d0
jne 0x59029fd3
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 4]
cmp esi, 1
jl 0x59029fd3
dec esi
js 0x59029fd3
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 0x59029fce
mov eax, dword [0x591ac718]
test eax, eax
je 0x59029f98
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 0x591ac6ac
call fcn.59083dc0
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.590ac7a0
push 1
push esi
mov ecx, edi
call fcn.590ac7a0
push 1
push esi
mov ecx, ebp
call fcn.590b3d60
push 1
push esi
mov ecx, ebx
call fcn.590b3d60
dec esi
jns 0x59029f56
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x59057710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x591548d8
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], 0x5915d930
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 0x5905776e
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5905776e
mov ebp, dword [esp + 0x3c]
cmp ebp, 2
je 0x59057793
cmp ebp, 1
je 0x59057793
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.590b48a0
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.590ab3f0
mov eax, dword [0x59162880]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x590577e1
push eax
lea ecx, [esp + 0x10]
call fcn.590a64c0
mov eax, dword [esi + 0x14c]
lea ecx, [esi + 0x148]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.590ac1d0
mov eax, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
push ebp
push eax
call fcn.590b3c80
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.590a6240
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.590b4900
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