joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043300
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1025e7e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x2710
lea eax, [esi + 0x34]
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [eax], esi
mov dword [esi + 0x38], 0x1000a740
call fcn.10041280
lea eax, [esp + 4]
mov ecx, 0x102fb6b8
push eax
mov dword [esp + 0x4c], 0
call fcn.10042440
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x54], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x64], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x84], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
mov dword [esp + 0x48], 0xffffffff
call fcn.10041300
mov ecx, dword [esp + 0x40]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x10044200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025e930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov edi, ecx
push 0
push 0
push 0
lea ecx, [esp + 0x30]
call fcn.10041280
lea eax, [edi + 0x20]
push 1
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0
call fcn.1009ee90
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x5c], 1
lea ebp, [ecx + 0xc]
push ebp
call fcn.10039cb0
xor edx, edx
div dword [edi + 0xc]
mov eax, dword [edi + 8]
test eax, eax
je 0x1004428b
mov esi, dword [eax + edx*4]
test esi, esi
je 0x1004428b
lea edx, [esi + 8]
push ebp
push edx
call fcn.10039c90
add esp, 8
test eax, eax
jne 0x10044287
mov esi, dword [esi]
test esi, esi
jne 0x1004426e
jmp 0x100442ef
test esi, esi
jne 0x1004428f
xor esi, esi
jmp 0x100442ef
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x30]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x3c], ecx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x40], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x48], ecx
mov edx, dword [esi + 0x44]
mov dword [esp + 0x4c], edx
mov eax, dword [esi + 0x48]
mov dword [esp + 0x50], eax
mov esi, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], 0
call fcn.1009eef0
test esi, esi
je 0x1004431a
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 4]
call fcn.10042900
lea edx, [esp + 0x18]
mov ecx, edi
push edx
call fcn.10044050
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.10041300
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x10044340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025e953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, ecx
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 0xf8]
push 0x2710
push 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x40]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [eax], esi
mov dword [esi + 0x44], 0x1000a740
call fcn.10041280
lea edx, [esp + 4]
mov ecx, 0x102fb6b8
push edx
mov dword [esp + 0x88], 0
call fcn.10042440
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x68], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x70], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x74], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x80], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x88], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], eax
mov dword [esp + 0x84], 0xffffffff
call fcn.10041300
push 0xffffffffffffffff
lea eax, [esi + 0x94]
push 0xffffffffffffffff
push 0
push eax
push 2
push 0
lea ecx, [esp + 0x58]
mov dword [eax], esi
mov dword [esi + 0x98], 0x1000a750
call fcn.10041280
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 1
push ecx
mov ecx, 0x102fb6b8
call fcn.10042440
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esi + 0xb0], edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0xb4], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], edx
mov dword [esi + 0xc4], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esi + 0xc8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi + 0xcc], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x74]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0xd8], edx
mov edx, dword [esp + 0x78]
mov dword [esi + 0xe0], ecx
lea ecx, [esp + 0x40]
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe4], edx
mov dword [esp + 0x84], 0xffffffff
call fcn.10041300
mov ecx, dword [esp + 0x7c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x84
ret
Function at 0x10045190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1025e9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0xc8
lea eax, [esi + 0x44]
lea ecx, [esi + 0x3c]
push 0
push eax
mov dword [eax], ecx
push 0
push 1
lea ecx, [esp + 0x1c]
mov dword [esi + 0x40], esi
mov dword [esi + 0x48], 0x1000a740
call fcn.10041280
lea edx, [esp + 4]
mov ecx, 0x102fb6b8
push edx
mov dword [esp + 0x4c], 0
call fcn.10042440
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x74], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x78], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x80], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x8c], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
mov dword [esp + 0x48], 0xffffffff
call fcn.10041300
mov ecx, dword [esp + 0x40]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x10047100
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
xor ecx, ecx
xor edx, edx
push edi
mov dword [esi], 0x61707865
mov dword [esi + 4], 0x3320646e
mov dword [esi + 8], 0x79622d32
mov dword [esi + 0xc], 0x6b206574
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 7]
mov dl, byte [eax + 6]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 5]
mov dl, byte [eax + 4]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
lea edi, [esi + 0x10]
push edx
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push edi
call fcn.1007a040
mov eax, dword [esp + 0x5c]
add esp, 0x48
mov dword [esi + 0x34], eax
mov ecx, 1
lea edx, [eax + 0x12345678]
xor eax, 0x87654321
mov dword [esi + 0x38], edx
mov edx, dword [esi]
xor edx, eax
mov dword [esi + 0x30], ecx
mov dword [esi], edx
mov edx, dword [esi + 4]
xor edx, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
xor edx, eax
mov dword [esi + 8], edx
mov edx, dword [esi + 0xc]
xor edx, eax
mov dword [esi + 0xc], edx
mov edx, dword [edi]
mov dword [esi + 0x40], ecx
xor edx, eax
mov dword [esi + 0x44], 0
mov dword [edi], edx
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
xor edx, eax
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x1c]
xor edi, eax
xor edx, eax
mov dword [esi + 0x18], edi
mov edi, dword [esi + 0x20]
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x24]
xor edi, eax
xor edx, eax
mov dword [esi + 0x20], edi
mov edi, dword [esi + 0x28]
mov dword [esi + 0x24], edx
mov edx, dword [esi + 0x2c]
xor edi, eax
xor edx, eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edx
pop edi
pop esi
ret
Function at 0x10048f80
Capabilities:
Get file size

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
test edi, edi
je 0x10049042
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x10049042
push edi
call fcn.10049640
add esp, 4
test eax, eax
jne 0x10049042
push eax
push 0x20
push 7
push 0x100080
push edi
call fcn.10048bf0
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x10049042
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x28
push eax
push ebx
call fcn.10048de0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10049032
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc], edx
lea edx, [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x20], eax
push ebx
call dword [0x1030fe28]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x28
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret

Function at 0x1004c400
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x102fe0c0]
test eax, eax
jne 0x1004c45c
mov dword [0x102fe0c0], 1
call fcn.100a8590
test eax, eax
je 0x1004c44c
push 0
push 0x104
push 0x102fe0c4
call fcn.100af930
add esp, 0xc
test eax, eax
je 0x1004c45c
push str.SysWow64
push 0x102fe0c4
call fcn.1007952a
add esp, 8
mov eax, 0x102fe0c4
ret
push 0x104
push 0x102fe0c4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x102fe0c4
ret

Function at 0x1004c7c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x102ff32c]
test eax, eax
jne 0x1004c81c
mov dword [0x102ff32c], 1
call fcn.100a8590
test eax, eax
je 0x1004c80c
push 0
push 0x104
push 0x102ff330
call fcn.100afb20
add esp, 0xc
test eax, eax
je 0x1004c81c
push str.SysWow64
push 0x102ff330
call fcn.1007952a
add esp, 8
mov eax, 0x102ff330
ret
push 0x104
push 0x102ff330
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x102ff330
ret
Function at 0x1004f1b0
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x10300fd8
jmp 0x1004f1e0

Function at 0x1004f3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025ef68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.1009ee90
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x1c], 0
call dword [edx + 4]
mov edi, eax
lea ecx, [esp + 8]
mov dword [esi + 0x30], edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.1009eef0
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
add ecx, 0x30
jmp 0x1004d240

Function at 0x1004f810
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push 0
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.1004f7b0
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
pop esi
jne 0x1004f842
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1024e537
ret 8

Function at 0x1004f850
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x1004f88b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x1004f887
mov esi, dword [esi + 0xc]
push esi
call edi
push eax
call fcn.1024e537
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret

Function at 0x1004f920
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1025f44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [ebx + 0x4c], ebp
mov dword [ebx + 0x58], ebp
mov dword [ebx + 0x54], ebp
mov dword [ebx + 0x50], ebp
lea ecx, [ebx + 0x5c]
mov dword [esp + 0x4c], ebp
call fcn.1024cc1c
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x18]
mov ecx, 0xc
lea esi, [esp + 0x14]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
mov dword [eax], 0x2005354
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x2c], eax
add eax, 0x30
add ecx, 4
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [esp + 0x44]
pop edi
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x24], ebp
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x48], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
pop esi
mov dword [ebx], 0x1026c004
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10
Function at 0x10058b50
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x102601a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x10058c7b
mov edx, dword [0x1026e87c]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x10058bb3
lea eax, [esp + 0xc]
push eax
call fcn.100560d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.10090d80
mov byte [esp + 0x18], bl
lea ecx, [esp + 0xc]
jmp 0x10058bd4
lea edx, [esp + 0xc]
push edx
call fcn.10056160
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.10090d80
mov byte [esp + 0x18], bl
lea ecx, [esp + 0xc]
call fcn.10090bf0
mov esi, dword [esp + 0x20]
push ebx
push ebx
push 2
call fcn.101936b0
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10058c94
mov eax, dword [edi]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x24]
push ebx
mov eax, dword [eax - 8]
push ecx
mov ecx, edi
lea edx, [eax + eax]
push edx
push ebx
call fcn.100918c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x1030ceb0]
cmp eax, ebx
je 0x10058c4d
mov eax, dword [esp + 0x24]
push eax
push edi
push str.SaveMailText_after_write_file__bRet__d__dwWrite__lu_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp dword [0x1030ceb0], ebx
je 0x10058cba
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x1005b740
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x102605c8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.10090960
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x1005b775
xor eax, eax
jmp 0x1005b8e7
mov eax, dword [0x1026e87c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x1005b7b4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.100560d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.10090d80
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
jmp 0x1005b7d8
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.10056160
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.10090d80
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.10090bf0
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x1005b8fc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005b835
push esi
push str.GetMailText_file_size:_lu_B
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
cmp esi, edi
je 0x1005b947
test esi, esi
je 0x1005b947
mov eax, esi
shr eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
call fcn.1024cbd1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1005b925
lea ecx, [esi + 2]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x1030ceb0]
test ecx, ecx
je 0x1005b8b7
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
push eax
push str.GetMailText_after_read__bRead__d___dwRead__lu___text:_s
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 0x28]
push ebp
call fcn.10090e70
push ebp
call fcn.1024cbfa
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005b94e
push str.MailText.dat
push str.GetMailText_read_file__s__fail
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
jmp 0x1005b94e
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005b947
push str.GetMailText_new_memory_fail
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.10090bf0
xor eax, eax
jmp 0x1005b8e7
Function at 0x1005c600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1026077f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x1026e87c]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x54]
mov ebx, 1
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], ebx
call fcn.100901f0
lea ecx, [esp + 8]
mov byte [esp + 0x48], 2
call fcn.10091f20
lea ecx, [esp + 0x54]
call fcn.100a4db0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.1019d1d0
push 0
push 0
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 4
call fcn.1019d230
mov eax, dword [esp + 8]
lea edx, [esp + 0x54]
push edx
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.1019d420
xor edx, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
call fcn.100a56b0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x30], edx
call fcn.100aadd0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.10090d80
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call fcn.10090bf0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.1019d210
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 2
call fcn.100a4f10
lea ecx, [esp + 8]
mov byte [esp + 0x48], bl
call fcn.10090bf0
mov edx, dword [0x1026e87c]
mov dword [esp + 0xc], edx
mov byte [esp + 0x48], 6
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.1005c570
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x102ba7a8
push eax
mov byte [esp + 0x58], 7
call fcn.10093b70
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 6
call fcn.10090bf0
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.100901f0
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], bl
call fcn.10090bf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call fcn.10090bf0
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8