joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10048bd0
Capabilities:
Get file size

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [esp + 0x38]
test edi, edi
je 0x10048c92
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x10048c92
push edi
call fcn.10049290
add esp, 4
test eax, eax
jne 0x10048c92
push eax
push 0x20
push 7
push 0x100080
push edi
call fcn.10048840
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x10048c92
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.10048a30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10048c82
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 [0x1030d9e8]
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 0x1004c050
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x102fbc80]
test eax, eax
jne 0x1004c0ac
mov dword [0x102fbc80], 1
call fcn.100a6630
test eax, eax
je 0x1004c09c
push 0
push 0x104
push 0x102fbc84
call fcn.100ad9d0
add esp, 0xc
test eax, eax
je 0x1004c0ac
push str.SysWow64
push 0x102fbc84
call fcn.100775ca
add esp, 8
mov eax, 0x102fbc84
ret
push 0x104
push 0x102fbc84
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x102fbc84
ret

Function at 0x1004c410
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x102fceec]
test eax, eax
jne 0x1004c46c
mov dword [0x102fceec], 1
call fcn.100a6630
test eax, eax
je 0x1004c45c
push 0
push 0x104
push 0x102fcef0
call fcn.100adbc0
add esp, 0xc
test eax, eax
je 0x1004c46c
push str.SysWow64
push 0x102fcef0
call fcn.100775ca
add esp, 8
mov eax, 0x102fcef0
ret
push 0x104
push 0x102fcef0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x102fcef0
ret
Function at 0x1004ee00
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x102feb98
jmp 0x1004ee30

Function at 0x1004eff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025cfe8
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.1009cf30
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.1009cf90
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 0x1004ce90

Function at 0x1004f460
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.1004f400
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
pop esi
jne 0x1004f492
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1024c5d7
ret 8

Function at 0x1004f4a0
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 0x1004f4db
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x1004f4d7
mov esi, dword [esi + 0xc]
push esi
call edi
push eax
call fcn.1024c5d7
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1025d4cb
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.1024acbc
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], 0x1026a004
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10
Function at 0x10058640
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1025e1d8
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 0x1005876b
mov edx, dword [0x1026c87c]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x100586a3
lea eax, [esp + 0xc]
push eax
call fcn.10055cd0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.1008ee20
mov byte [esp + 0x18], bl
lea ecx, [esp + 0xc]
jmp 0x100586c4
lea edx, [esp + 0xc]
push edx
call fcn.10055d60
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.1008ee20
mov byte [esp + 0x18], bl
lea ecx, [esp + 0xc]
call fcn.1008ec90
mov esi, dword [esp + 0x20]
push ebx
push ebx
push 2
call fcn.10191750
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10058784
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.1008f960
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x1030aa70]
cmp eax, ebx
je 0x1005873d
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 0x1030a1dc
call fcn.100a4680
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
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 [0x1030aa70], ebx
je 0x100587aa
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
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 0x1005acf0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025e5b8
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.1008ea00
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x1005ad25
xor eax, eax
jmp 0x1005ae97
mov eax, dword [0x1026c87c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x1005ad64
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10055cd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.1008ee20
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
jmp 0x1005ad88
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.10055d60
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.1008ee20
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.1008ec90
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 0x1005aeac
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1005ade5
push esi
push str.GetMailText_file_size:_lu_B
push str.MailInfo
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
cmp esi, edi
je 0x1005aef7
test esi, esi
je 0x1005aef7
mov eax, esi
shr eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
call fcn.1024ac71
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1005aed5
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 [0x1030aa70]
test ecx, ecx
je 0x1005ae67
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 0x1030a1dc
call fcn.100a4680
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x28]
push ebp
call fcn.1008ef10
push ebp
call fcn.1024ac9a
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 [0x1030aa70]
test eax, eax
je 0x1005aefe
push str.MailText.dat
push str.GetMailText_read_file__s__fail
push str.MailInfo
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
jmp 0x1005aefe
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1005aef7
push str.GetMailText_new_memory_fail
push str.MailInfo
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.1008ec90
xor eax, eax
jmp 0x1005ae97
Function at 0x1005b020
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1025e67f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x1026c87c]
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.1008e290
lea ecx, [esp + 8]
mov byte [esp + 0x48], 2
call fcn.1008ffc0
lea ecx, [esp + 0x54]
call fcn.100a2e50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.1019b270
push 0
push 0
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 4
call fcn.1019b2d0
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.1019b4c0
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.100a3750
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.100a8e70
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.1008ee20
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call fcn.1008ec90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.1019b2b0
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 2
call fcn.100a2fb0
lea ecx, [esp + 8]
mov byte [esp + 0x48], bl
call fcn.1008ec90
mov edx, dword [0x1026c87c]
mov dword [esp + 0xc], edx
mov byte [esp + 0x48], 6
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.1005af90
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x102b8718
push eax
mov byte [esp + 0x58], 7
call fcn.10091c10
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 6
call fcn.1008ec90
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], bl
call fcn.1008ec90
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call fcn.1008ec90
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x1005e7f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025ed3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1026c87c]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.100945b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
push ecx
mov ecx, esi
call fcn.1005dd10
test eax, eax
je 0x1005e870
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.1005ea80
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.1008ee20
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.1008ec90
push 0x102b8d18
lea ecx, [esp + 8]
call fcn.100924a0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.100945c0
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.1008ec90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x1005e8d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025ed7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1026c87c]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.100945b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
push ecx
mov ecx, esi
call fcn.1005ddc0
test eax, eax
je 0x1005e950
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.1005ea80
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.1008ee20
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.1008ec90
push 0x102b8d18
lea ecx, [esp + 8]
call fcn.100924a0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.100945c0
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.1008ec90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x1005e9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025edbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1026c87c]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.100945b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
push ecx
mov ecx, esi
call fcn.1005de70
test eax, eax
je 0x1005ea30
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.1005ea80
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.1008ee20
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.1008ec90
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.100945c0
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.1008ec90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x10060890
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025eee8
push eax
mov eax, dword [0x1030764c]
mov dword fs:[0], esp
sub esp, 0x28
test eax, eax
je 0x100608b9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10060920
lea ecx, [esp + 4]
mov dword [0x1030764c], 1
call fcn.100738d0
push ecx
mov dword [esp + 0x34], 0
mov ecx, esp
mov dword [esp + 4], esp
push str.safe_compress_force
call fcn.1008e4f0
lea ecx, [esp + 8]
call fcn.10073ac0
cmp dword [esp + 0x24], 0xf0000001
jne 0x1006090f
lea ecx, [esp + 4]
call fcn.10073f50
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [0x10307648], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.10073a20
mov eax, dword [0x10307648]
lea edx, [esp + 0x38]
neg eax
sbb eax, eax
push edx
and eax, 4
mov dword [esp + 0x3c], 0
add eax, 2
push eax
call fcn.1005f8e0
mov ecx, dword [esp + 0x30]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x100625c0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100625d1
mov eax, 1
pop esi
ret
push str.DtSSLFrame32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x100625e5
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Initialize
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x2c]
push str.Finalize
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.SetHostBlockList
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x2c]
push str.RegisterCallback
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x2c]
push str.UnregisterCallback
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.SendDataFromMemory
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x2c]
push str.SendDataFromFileW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x2c]
push str.CloseSSLLinkFromID
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.SetCanBeClosed
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x2c]
push str.CheckDbgCfg
push edx
mov dword [esi + 0x24], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x28], eax
test ecx, ecx
pop edi
jne 0x100626c4
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x100626c4
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x100626c4
test eax, eax
jne 0x100626c4
mov ecx, esi
call fcn.100626d0
xor eax, eax
pop esi
ret
mov eax, 1
mov dword [esi + 0x30], eax
pop esi
ret
Function at 0x10064820
Capabilities:
Get session user name

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.100a66c0
test eax, eax
je 0x100648e6
push 0x41
push 0
push 1
push 0x102cc0a8
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x1006487c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x10064980
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.10076fb2
add esp, 4
cmp eax, ebx
jb 0x100648c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.100775f4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x10064956
lea edx, [esp + 0x14]
push edx
call fcn.10076fb2
add esp, 4
cmp eax, ebx
jb 0x10064938
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.100775f4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x10064968
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x10064dc0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20c
test edx, edx
push ebp
push edi
je 0x10064e7a
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x10064e7a
mov ebp, dword [esp + 0x220]
test ebp, ebp
je 0x10064e7a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push edx
call fcn.100734d0
lea ecx, [esp + 0x1c]
push ecx
call fcn.10076fb2
add esp, 0x14
test eax, eax
je 0x10064e7a
xor edi, edi
push esi
push edi
push edi
push 2
push edi
push edi
lea edx, [esp + 0x24]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10064e6e
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push edi
push eax
push ebp
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
pop ebp
add esp, 0x20c
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x20c
ret