joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045700
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x102eb7b8
jmp 0x10045730

Function at 0x100458f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1024f858
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.10091800
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.10091860
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 0x100437a0

Function at 0x10045d60
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.10045d00
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
pop esi
jne 0x10045d92
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1023f262
ret 8

Function at 0x10045da0
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 0x10045ddb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x10045dd7
mov esi, dword [esi + 0xc]
push esi
call edi
push eax
call fcn.1023f262
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1024fd3b
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.1023d947
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], 0x1025bec4
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10
Function at 0x1004f080
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10250a38
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 0x1004f1ab
mov edx, dword [0x1025e6e4]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x1004f0e3
lea eax, [esp + 0xc]
push eax
call fcn.1004c870
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.100836f0
mov byte [esp + 0x18], bl
lea ecx, [esp + 0xc]
jmp 0x1004f104
lea edx, [esp + 0xc]
push edx
call fcn.1004c900
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.100836f0
mov byte [esp + 0x18], bl
lea ecx, [esp + 0xc]
call fcn.10083560
mov esi, dword [esp + 0x20]
push ebx
push ebx
push 2
call fcn.1012ff40
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004f1c4
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.10084230
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x102f7658]
cmp eax, ebx
je 0x1004f17d
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
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 [0x102f7658], ebx
je 0x1004f1ea
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
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 0x100507b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10250c98
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.100832d0
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x100507e5
xor eax, eax
jmp 0x10050957
mov eax, dword [0x1025e6e4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x10050824
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.1004c870
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.100836f0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
jmp 0x10050848
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.1004c900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.100836f0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.10083560
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 0x1005096c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [0x102f7658]
test eax, eax
je 0x100508a5
push esi
push str.GetMailText_file_size:_lu_B
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
cmp esi, edi
je 0x100509b7
test esi, esi
je 0x100509b7
mov eax, esi
shr eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
call fcn.1023d8fc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10050995
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 [0x102f7658]
test ecx, ecx
je 0x10050927
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x28]
push ebp
call fcn.100837e0
push ebp
call fcn.1023d925
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 [0x102f7658]
test eax, eax
je 0x100509be
push str.MailText.dat
push str.GetMailText_read_file__s__fail
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
jmp 0x100509be
mov eax, dword [0x102f7658]
test eax, eax
je 0x100509b7
push str.GetMailText_new_memory_fail
push str.MailInfo
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.10083560
xor eax, eax
jmp 0x10050957
Function at 0x10050ae0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10250d5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x1025e6e4]
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.10082b60
lea ecx, [esp + 8]
mov byte [esp + 0x48], 2
call fcn.10084890
lea ecx, [esp + 0x54]
call fcn.10097720
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.10139ae0
push 0
push 0
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 4
call fcn.10139b40
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.10139d30
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.10098020
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.1009d7a0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.100836f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call fcn.10083560
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.10139b20
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 2
call fcn.10097880
lea ecx, [esp + 8]
mov byte [esp + 0x48], bl
call fcn.10083560
mov edx, dword [0x1025e6e4]
mov dword [esp + 0xc], edx
mov byte [esp + 0x48], 6
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.10050a50
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x102a8c4c
push eax
mov byte [esp + 0x58], 7
call fcn.100864e0
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 6
call fcn.10083560
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10082b60
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], bl
call fcn.10083560
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call fcn.10083560
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x10054220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x102513ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1025e6e4]
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.10088e80
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
push ecx
mov ecx, esi
call fcn.10053740
test eax, eax
je 0x100542a0
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.100544b0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.100836f0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.10083560
push 0x102a924c
lea ecx, [esp + 8]
call fcn.10086d70
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10082b60
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.10088e90
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.10083560
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x10054300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025142f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1025e6e4]
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.10088e80
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
push ecx
mov ecx, esi
call fcn.100537f0
test eax, eax
je 0x10054380
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.100544b0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.100836f0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.10083560
push 0x102a924c
lea ecx, [esp + 8]
call fcn.10086d70
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10082b60
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.10088e90
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.10083560
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x100543e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1025146f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1025e6e4]
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.10088e80
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
push ecx
mov ecx, esi
call fcn.100538a0
test eax, eax
je 0x10054460
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.100544b0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.100836f0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.10083560
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.10082b60
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.10088e90
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.10083560
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x100562c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10251598
push eax
mov eax, dword [0x102f426c]
mov dword fs:[0], esp
sub esp, 0x28
test eax, eax
je 0x100562e9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10056350
lea ecx, [esp + 4]
mov dword [0x102f426c], 1
call fcn.10068270
push ecx
mov dword [esp + 0x34], 0
mov ecx, esp
mov dword [esp + 4], esp
push str.safe_compress_force
call fcn.10082dc0
lea ecx, [esp + 8]
call fcn.10068460
cmp dword [esp + 0x24], 0xf0000001
jne 0x1005633f
lea ecx, [esp + 4]
call fcn.100688e0
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [0x102f4268], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.100683c0
mov eax, dword [0x102f4268]
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.10055310
mov ecx, dword [esp + 0x30]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x10057ae0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10057af1
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 0x10057b05
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 0x10057be4
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x10057be4
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x10057be4
test eax, eax
jne 0x10057be4
mov ecx, esi
call fcn.10057bf0
xor eax, eax
pop esi
ret
mov eax, 1
mov dword [esi + 0x30], eax
pop esi
ret
Function at 0x10059d40
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.1009aff0
test eax, eax
je 0x10059e06
push 0x41
push 0
push 1
push 0x102baa8c
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x10059d9c
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 0x10059ea0
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.1006b93e
add esp, 4
cmp eax, ebx
jb 0x10059de8
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.1006bf80
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 0x10059e76
lea edx, [esp + 0x14]
push edx
call fcn.1006b93e
add esp, 4
cmp eax, ebx
jb 0x10059e58
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.1006bf80
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 0x10059e88
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x1005a2e0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20c
test edx, edx
push ebp
push edi
je 0x1005a39a
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x1005a39a
mov ebp, dword [esp + 0x220]
test ebp, ebp
je 0x1005a39a
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.10067e70
lea ecx, [esp + 0x1c]
push ecx
call fcn.1006b93e
add esp, 0x14
test eax, eax
je 0x1005a39a
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 0x1005a38e
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
Function at 0x1005b3d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x1005b5a8
push esi
call fcn.1006b93e
add esp, 4
test eax, eax
je 0x1005b5a8
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.10058750
add esp, 0x1c
test eax, eax
je 0x1005b5a8
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x1005b5a8
test al, 1
je 0x1005b43c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x1005b581
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.1006bf80
lea edx, [esp + 0x474]
push 0x102a3f80
push edx
call fcn.1006bf56
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005b558
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x102ab560
push edx
call ebp
test eax, eax
je 0x1005b538
lea eax, [esp + 0x248]
push 0x102ab568
push eax
call ebp
test eax, eax
je 0x1005b538
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.1006bf80
lea edx, [esp + 0x1c]
push 0x102a3f88
push edx
call fcn.1006bf56
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.1006bf56
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.1005b3d0
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1005b4c1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x1005b5aa
cmp dword [esp + 0x674], ebp
je 0x1005b5aa
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x1005b5aa
cmp dword [esp + 0x674], ebp
je 0x1005b5aa
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret
Function at 0x1005bce0
Capabilities:
Get graphical window text

Disassembly:
call fcn.1009b040
test eax, eax
je 0x1005bcff
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x1005bd80
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1005bd80
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1023d8fc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005bd80
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x1005bd80
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.10067e00
add esp, 0x10
test eax, eax
je 0x1005bd80
push esi
call fcn.1006b93e
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret