joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120b6
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5185c2
mov eax, dword fs:[0]
push eax
mov eax, 0x24a4
call fcn.004ade10
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2454], ecx
mov byte [ebp - 0x2441], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 0xc]
push 0x52fb9c
push 0x200
lea eax, [ebp - 0x410]
push eax
call fcn.004077b0
add esp, 0x10
push 0x2000
push 0
lea eax, [ebp - 0x2410]
push eax
call fcn.004b0090
add esp, 0xc
push str.qqffo.exe
lea ecx, [ebp - 0x2428]
call fcn.00409053
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x2428]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2440]
push eax
call fcn.00481988
add esp, 0x10
mov dword [ebp - 0x2448], eax
mov eax, dword [ebp - 0x2448]
mov dword [ebp - 0x244c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x244c]
call fcn.0040a5f1
push eax
push 0x52fbb8
push 0x1000
lea eax, [ebp - 0x2410]
push eax
call fcn.004077b0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2440]
call fcn.0040a62b
mov byte [ebp - 4], 3
mov byte [ebp - 4], 0
lea eax, [ebp - 0x2440]
mov dword [ebp - 0x2458], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x2428]
call fcn.0040a62b
mov dword [ebp - 4], 7
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2428]
mov dword [ebp - 0x245c], eax
mov dword [ebp - 4], 8
mov dword [ebp - 4], 9
or dword [ebp - 4], 0xffffffff
push 0x44
push 0
lea eax, [ebp - 0x24b0]
push eax
call fcn.004b0090
add esp, 0xc
mov dword [ebp - 0x24b0], 0x44
xor eax, eax
lea edi, [ebp - 0x246c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
call fcn.0040a5f1
mov dword [ebp - 0x2450], eax
lea eax, [ebp - 0x246c]
push eax
lea eax, [ebp - 0x24b0]
push eax
push dword [ebp - 0x2450]
push 0
push 0x20
push 1
push 0
push 0
lea eax, [ebp - 0x2410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4122a6
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2464]
mov dword [eax], ecx
mov byte [ebp - 0x2441], 1
jmp 0x4122b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov byte [ebp - 0x2441], 0
mov al, byte [ebp - 0x2441]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0x10
Function at 0x412dab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa10], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0090
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0xa0c]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 8]
push 0x400
lea eax, [ebp - 0xa0c]
push eax
push 0
push 0x52eef8
push 0x52ef00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push eax
mov ecx, dword [ebp - 0xa10]
call fcn.00413445
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0xa10]
call fcn.00412ee2
test eax, eax
jne 0x412eb9
and dword [ebp - 0xa18], 0
cmp dword [ebp + 0xc], 0
je 0x412eb7
cmp dword [ebp + 0x10], 0
jle 0x412eb7
lea eax, [ebp - 0x20c]
test eax, eax
je 0x412eb7
and dword [ebp - 0xa14], 0
lea eax, [ebp - 0x20c]
test eax, eax
je 0x412e8f
lea eax, [ebp - 0x20c]
push eax
call fcn.004cc4f3
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x412e8f
mov dword [ebp - 0xa14], 1
cmp dword [ebp - 0xa14], 0
je 0x412eb7
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004cc3b7
add esp, 0xc
mov dword [ebp - 0xa18], 1
jmp 0x412ed4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0xa10]
call fcn.00413281
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0xc

Function at 0x413053
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
push 0
lea eax, [ebp - 0x804]
push eax
call fcn.004b0090
add esp, 0xc
and dword [ebp - 0x808], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x810], eax
push dword [ebp - 0x808]
push 0
push dword [ebp - 0x810]
push 0x3ff
push 0x400
lea eax, [ebp - 0x804]
push eax
call fcn.00407770
push dword [eax + 4]
push dword [eax]
call fcn.004cc171
add esp, 0x20
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jge 0x4130de
or dword [ebp - 0x814], 0xffffffff
jmp 0x4130ea
mov eax, dword [ebp - 0x80c]
mov dword [ebp - 0x814], eax
and dword [ebp - 0x808], 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret
Function at 0x41310a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x52ef08
push str.Redirect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], 1
cmp dword [ebp - 0x210], 0
je 0x4131bb
mov eax, dword [ebp - 0x210]
movzx eax, word [eax]
test eax, eax
je 0x4131bb
mov eax, dword [ebp - 0x210]
movzx eax, word [eax]
cmp eax, 0x20
je 0x4131ab
mov eax, dword [ebp - 0x210]
movzx eax, word [eax]
cmp eax, 9
je 0x4131ab
and dword [ebp - 0x218], 0
jmp 0x4131bb
mov eax, dword [ebp - 0x210]
inc eax
inc eax
mov dword [ebp - 0x210], eax
jmp 0x413179
cmp dword [ebp - 0x218], 0
jne 0x413211
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.00412ee2
test eax, eax
je 0x4131f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x214]
call fcn.004128a4
jmp 0x41320f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.0041310a
jmp 0x413273
and dword [ebp - 0x220], 0
cmp dword [ebp + 0xc], 0
je 0x413273
cmp dword [ebp + 0x10], 0
jle 0x413273
cmp dword [ebp + 8], 0
je 0x413273
and dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x41324f
push dword [ebp + 8]
call fcn.004cc4f3
pop ecx
cmp eax, dword [ebp + 0x10]
jae 0x41324f
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x21c], 0
je 0x413273
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004cc3b7
add esp, 0xc
mov dword [ebp - 0x220], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0xc
Function at 0x413281
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xc2c], ecx
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x800
push 0
lea eax, [ebp - 0xc28]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 8]
push 0x400
lea eax, [ebp - 0xc28]
push eax
push 0x52ef28
push 0x52ef2c
push 0x52ef00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc28]
push eax
mov ecx, dword [ebp - 0xc2c]
call fcn.00413445
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x18]
cmp eax, 0x31
jne 0x413323
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc2c]
call fcn.004128a4
jmp 0x413436
push 0x208
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
push 0x52ef58
push str.DefaultValue
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004b0090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0xc2c]
call fcn.004129fd
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0xc2c]
call fcn.00412ee2
test eax, eax
je 0x4133c4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc2c]
call fcn.004128a4
jmp 0x413436
and dword [ebp - 0xc34], 0
cmp dword [ebp + 0x10], 0
je 0x413436
cmp dword [ebp + 0x14], 0
jle 0x413436
lea eax, [ebp - 0x220]
test eax, eax
je 0x413436
and dword [ebp - 0xc30], 0
lea eax, [ebp - 0x220]
test eax, eax
je 0x41340e
lea eax, [ebp - 0x220]
push eax
call fcn.004cc4f3
pop ecx
cmp eax, dword [ebp + 0x14]
jae 0x41340e
mov dword [ebp - 0xc30], 1
cmp dword [ebp - 0xc30], 0
je 0x413436
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004cc3b7
add esp, 0xc
mov dword [ebp - 0xc34], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0x10
Function at 0x416ecd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
and dword [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x416f9d
push dword [ebp + 8]
call fcn.004cc4f3
pop ecx
test eax, eax
jbe 0x416f9d
mov dword [ebp - 0x210], 1
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x218]
call fcn.00417572
cmp dword [ebp + 0xc], 0
jne 0x416f61
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x416f61
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0
je 0x416f8a
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004cc50e
pop ecx
pop ecx
test eax, eax
jne 0x416f8a
mov dword [ebp - 0x214], 1
jmp 0x416f91
and dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 8
Function at 0x41aba7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51963a
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
push str.configcommonconfig.ini
lea ecx, [ebp - 0x28]
call fcn.00409053
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00481988
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a62b
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 5
mov byte [ebp - 4], 6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040a5f1
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push 0
push 0x5311dc
push 0x5311f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.0040a62b
mov dword [ebp - 4], 8
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 9
mov dword [ebp - 4], 0xa
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad99f
leave
ret 4
Function at 0x41cc2d
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
and dword [ebp - 0x214], 0
cmp dword [ebp + 8], 0
je 0x41cce2
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
call fcn.00417572
push 1
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
call fcn.00416ecd
test eax, eax
je 0x41cce2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
and eax, 1
je 0x41cccf
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 4

Function at 0x41ddbc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x41dddd
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041e083
jmp 0x41de87
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41ddf8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
je 0x41ddf6
xor al, al
jmp 0x41de87
jmp 0x41de00
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041e083
movzx eax, al
test eax, eax
je 0x41de16
mov al, 1
jmp 0x41de87
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x41de2b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041e142
movzx eax, al
test eax, eax
je 0x41de52
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.0041e083
jmp 0x41de87
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 4]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 8]
jbe 0x41de6f
mov dword [ebp - 0x10], 1
jmp 0x41de73
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x41de85
mov al, 1
jmp 0x41de87
xor al, al
leave
ret 8
Function at 0x41df7d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 0x231], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
je 0x41e05b
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.004b0090
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41e048
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
jne 0x41e003
mov byte [ebp - 0x231], 1
jmp 0x41e048
push 0x531778
push dword [ebp + 0xc]
call fcn.004cf523
pop ecx
pop ecx
test eax, eax
je 0x41e032
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.004cf523
pop ecx
pop ecx
test eax, eax
jne 0x41e032
mov byte [ebp - 0x231], 1
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41dfef
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x238], 0xffffffff
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 8

Function at 0x41e083
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 0x231], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
je 0x41e12e
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.004b0090
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41e11b
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
jne 0x41e105
mov byte [ebp - 0x231], 1
jmp 0x41e11b
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41e0f1
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x238], 0xffffffff
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 4
Function at 0x41e142
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x638], ecx
mov byte [ebp - 0x61d], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
lea edi, [ebp - 0x634]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x64c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0
push 1
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x634], 0xc
and dword [ebp - 0x62c], 0
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x630], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 8]
push 0x531740
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004077b0
add esp, 0x10
push 0x410
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.004b0090
add esp, 0xc
push str.TenProtect3_Share_Data_
push 0x208
lea eax, [ebp - 0x61c]
push eax
call fcn.004cc3b7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x208
lea eax, [ebp - 0x61c]
push eax
call fcn.004cc2e2
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
je 0x41e2c8
push 0
push 0
push 0
push 4
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
je 0x41e2b5
mov eax, dword [ebp - 0x624]
cmp dword [eax], 0x245970a2
jne 0x41e2a2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x624]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov byte [ebp - 0x61d], 1
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [ebp - 0x624], 0
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x628], 0
mov al, byte [ebp - 0x61d]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 8
Function at 0x41e2dd
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x18], 0
jmp 0x41e317
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x41e335
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + ecx*4 - 0x14], eax
jmp 0x41e310
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
jmp 0x41e346
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x10
jge 0x41e3b8
mov eax, dword [ebp - 0x24]
sub eax, 0x61c88647
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
shl eax, 4
push 4
pop ecx
imul ecx, ecx, 0
add eax, dword [ebp + ecx - 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
shr ecx, 5
push 4
pop edx
shl edx, 0
add ecx, dword [ebp + edx - 0x14]
xor eax, ecx
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
shl eax, 4
push 4
pop ecx
shl ecx, 1
add eax, dword [ebp + ecx - 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 5
push 4
pop edx
imul edx, edx, 3
add ecx, dword [ebp + edx - 0x14]
xor eax, ecx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x41e33f
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret
Function at 0x41e3e1
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x18], 0
jmp 0x41e41b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x41e439
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + ecx*4 - 0x14], eax
jmp 0x41e414
mov dword [ebp - 0x24], 0xe3779b90
and dword [ebp - 0x18], 0
jmp 0x41e44d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x10
jge 0x41e4c3
mov eax, dword [ebp - 0x1c]
shl eax, 4
push 4
pop ecx
shl ecx, 1
add eax, dword [ebp + ecx - 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 5
push 4
pop edx
imul edx, edx, 3
add ecx, dword [ebp + edx - 0x14]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shl eax, 4
push 4
pop ecx
imul ecx, ecx, 0
add eax, dword [ebp + ecx - 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
shr ecx, 5
push 4
pop edx
shl edx, 0
add ecx, dword [ebp + edx - 0x14]
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x24]
add eax, 0x61c88647
mov dword [ebp - 0x24], eax
jmp 0x41e446
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret