joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x208
mov al, byte [0x4bfab8]
push ebx
push esi
push edi
mov byte [esp + 0x114], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x115]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xd
mov esi, str.softwareMicrosoftwindowsCurrentVersion_app_Paths_
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x32
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x1c]
push 0
push ecx
push reloc.t40shapi.dll_Ordinal_2
mov dword [esp + 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40896b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
lea eax, [esp + 0x114]
push edx
push eax
push 0
push 0
push 0x4bfab8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40898a
mov esi, dword [esp + 0x218]
push 0x4bfab8
mov ecx, esi
call fcn.0046e7c1
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov esi, dword [esp + 0x218]
mov eax, dword [0x4bb604]
lea ecx, [esp + 0x114]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.0046e8dc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x4089c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
mov al, byte [0x4bfab8]
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0xff
push ecx
push 0x20019
stosw word es:[edi], ax
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.t40shapi.dll_Ordinal_2
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408a40
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.Version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x408a5e
mov esi, dword [esp + 0x114]
push 0x4bfab8
mov ecx, esi
call fcn.0046e7c1
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret
mov esi, dword [esp + 0x114]
mov eax, dword [0x4bb604]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.0046e8dc
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x409cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
lea ecx, [esp + 0xc]
call fcn.0046d670
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x30], 0
call fcn.00409b90
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
jle 0x409d5c
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
lea edx, [ecx + ebx*4]
push eax
push edx
call fcn.00409c70
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp esi, eax
jg 0x409d51
mov eax, dword [edi + 8]
dec eax
test eax, eax
jl 0x409d3c
mov ecx, dword [edi + 4]
lea ecx, [ecx + eax*4]
cmp esi, dword [ecx]
jae 0x409d3c
dec eax
sub ecx, 4
test eax, eax
jge 0x409d30
inc eax
push 1
push esi
push eax
mov ecx, edi
call fcn.0046ddcb
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jle 0x409d22
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x409cfc
pop edi
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0046d6a3
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40bdf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x204
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push 0x1ff
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x2f
je 0x40be69
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x40be69
mov edi, 0x4b0f9c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Hilite.txt
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x218]
mov ecx, esi
call fcn.0046e7c1
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x204
ret

Function at 0x40d930
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [esp + 0x94]
xor ebx, ebx
xor esi, esi
mov byte [0x4bfc50], bl
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 0xc], ecx
jle 0x40da09
push ebp
xor ebp, ebp
mov ecx, dword [0x4bfc48]
test ecx, ecx
je 0x40d9ab
call fcn.00407c90
test eax, eax
jne 0x40d9e4
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x4b178c
push edx
call fcn.00458446
mov ecx, dword [0x4bfc48]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call fcn.00407bb0
mov eax, ebp
mov ecx, dword [0x4bfc48]
cdq
idiv dword [edi + 8]
push eax
call fcn.00407be0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa0]
mov eax, dword [ecx + esi*4]
mov ecx, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0040da30
add ebx, eax
mov eax, dword [edi + 8]
inc esi
add ebp, 0x64
cmp esi, eax
jl 0x40d95c
mov al, byte [0x4bfc50]
pop ebp
test al, al
je 0x40da09
push 5
push 0
push 0x4bfc50
push str.notepad
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test ebx, ebx
mov byte [0x4bfc50], 0
jle 0x40da1d
mov ecx, dword [esp + 0xc]
call fcn.0040ce70
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x84
ret 0x10
Function at 0x4135c0
Capabilities:
Copy file

Disassembly:
sub esp, 0x4e4
mov al, byte [0x4bfab8]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov byte [esp + 0xf4], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xf5]
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x4fc]
lea ecx, [esp + 0x84]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x500]
push ecx
xor esi, esi
push edi
push ebp
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.0040fb90
test al, al
jne 0x41361e
push 0x4bfab8
jmp 0x41371b
cmp word [esp + 0xd6], 0
jbe 0x413713
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
push esi
push edi
push ebp
call fcn.0040fbc0
test al, al
je 0x41366e
mov ecx, dword [esp + 0x78]
mov eax, 1
cmp ecx, eax
je 0x413653
cmp dword [esp + 0x7c], eax
jne 0x41366e
cmp word [esp + 0xd4], 0x35
jne 0x413684
mov eax, dword [esp + 0x504]
cmp eax, 0xffffffff
je 0x413684
cmp eax, esi
je 0x413684
mov eax, dword [esp + 0xd6]
inc esi
and eax, 0xffff
cmp esi, eax
jl 0x41362d
jmp 0x413713
lea ecx, [esp + 0xf4]
push 0x3ff
push ecx
push esi
push edi
push ebp
mov ecx, ebx
call fcn.00410fc0
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x413713
cmp dword [esp + 0x7c], 1
jne 0x413713
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x413713
push 0
lea edx, [esp + 0x48]
push 1
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, 0x4bfe38
call fcn.0041bc10
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xf8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0046e753
lea ecx, [esp + 0xf4]
push ecx
mov esi, dword [esp + 0x4fc]
mov ecx, esi
call fcn.0046e7c1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4e4
ret 0x10
Function at 0x413d90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x4bb604]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 1
push ecx
mov ecx, 0x4bfe38
call fcn.0041b910
push str._trsmin.ini
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call fcn.0046eb2f
mov dl, byte [0x4bfab8]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
mov ebp, dword [esp + 0x130]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0xff
push ecx
push 0x4bfab8
push ebp
push str.filepath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov bl, 0x5c
mov dl, 0x2f
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1b], bl
je 0x413e5d
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1b], dl
jne 0x413e71
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x1b], al
jmp 0x413e35
mov al, byte [esp + 0x1c]
test al, al
jne 0x413ef6
or ecx, 0xffffffff
mov edi, 0x4bfe54
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b0f9c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0046e7c1
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 1
call fcn.0046e753
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], 0
call fcn.0046e753
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4148b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48b27b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov al, byte [0x4bfab8]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x40], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov ebx, dword [esp + 0x150]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.0046e7c1
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0
call fcn.0046ec87
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor dl, dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x158]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, byte [eax]
xor esi, esi
inc ecx
mov dword [esp + 0x28], ecx
movsx ecx, byte [eax + 1]
inc ecx
movsx ebp, byte [eax + 3]
mov dword [esp + 0x24], ecx
movsx ecx, byte [eax + 2]
inc ecx
inc ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
movsx ecx, byte [eax + 4]
movsx edi, byte [eax + 6]
inc ecx
mov dword [esp + 0x1c], ecx
movsx ecx, byte [eax + 5]
movsx eax, byte [eax + 7]
inc ecx
inc edi
inc eax
cmp byte [esp + 0x40], dl
mov dword [esp + 0x38], edi
je 0x414a4c
lea edi, [eax + eax*8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
lea edi, [eax + edi*2]
lea eax, [eax + edi*4]
mov dword [esp + 0x20], eax
lea eax, [ecx + ecx*2]
shl eax, 5
add eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4149b1
mov ebp, dword [esp + 0x2c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
mov edi, ebx
not ecx
dec ecx
movsx edx, dl
movsx eax, byte [ecx + eax - 1]
imul eax, ebp
mov dword [esp + 0x34], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x34]
imul ecx, dword [esp + 0x24]
imul ecx, esi
movsx edi, byte [esp + esi + 0x40]
imul edi, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov ebp, ecx
imul ebp, esi
add edi, ebp
mov ebp, dword [esp + 0x3c]
sub edi, ebp
mov ebp, dword [esp + 0x20]
add edi, ebp
mov ebp, dword [esp + 0x14]
imul edi, dword [esp + 0x28]
add eax, edi
mov edi, edx
imul edi, edx
imul edi, dword [esp + 0x30]
add eax, edi
xor edx, edx
mov edi, 0x1a
div edi
add ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
add dl, 0x61
mov byte [esp + esi + 0x40], dl
mov al, byte [esp + esi + 0x41]
inc esi
dec ebp
test al, al
mov dword [esp + 0x14], ebp
jne 0x4149ad
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x148], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0046e753
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x414ab0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48b29b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov al, byte [0x4bfab8]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x40], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov ebx, dword [esp + 0x150]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.0046e7c1
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0
call fcn.0046ec87
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor dl, dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x158]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, byte [eax]
xor esi, esi
inc ecx
mov dword [esp + 0x28], ecx
movsx ecx, byte [eax + 1]
inc ecx
movsx ebp, byte [eax + 3]
mov dword [esp + 0x24], ecx
movsx ecx, byte [eax + 2]
inc ecx
inc ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
movsx ecx, byte [eax + 4]
movsx edi, byte [eax + 6]
inc ecx
mov dword [esp + 0x1c], ecx
movsx ecx, byte [eax + 5]
movsx eax, byte [eax + 7]
inc ecx
inc edi
inc eax
cmp byte [esp + 0x40], dl
mov dword [esp + 0x38], edi
je 0x414c4c
lea edi, [eax + eax*4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
lea eax, [eax + edi*2]
shl eax, 3
mov dword [esp + 0x20], eax
lea eax, [ecx + ecx*2]
shl eax, 5
add eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x414bb1
mov ebp, dword [esp + 0x2c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
mov edi, ebx
not ecx
dec ecx
movsx edx, dl
movsx eax, byte [ecx + eax - 1]
imul eax, ebp
mov dword [esp + 0x34], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x34]
imul ecx, dword [esp + 0x24]
imul ecx, esi
movsx edi, byte [esp + esi + 0x40]
imul edi, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov ebp, ecx
imul ebp, esi
add edi, ebp
mov ebp, dword [esp + 0x3c]
sub edi, ebp
mov ebp, dword [esp + 0x20]
add edi, ebp
mov ebp, dword [esp + 0x14]
imul edi, dword [esp + 0x28]
add eax, edi
mov edi, edx
imul edi, edx
imul edi, dword [esp + 0x30]
add eax, edi
xor edx, edx
mov edi, 0x1a
div edi
add ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
add dl, 0x61
mov byte [esp + esi + 0x40], dl
mov al, byte [esp + esi + 0x41]
inc esi
dec ebp
test al, al
mov dword [esp + 0x14], ebp
jne 0x414bad
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x148], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0046e753
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x414cb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48b2bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov al, byte [0x4bfab8]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x40], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x41]
mov ebx, dword [esp + 0x150]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.0046e7c1
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0
call fcn.0046ec87
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor dl, dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x158]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, byte [eax]
xor esi, esi
inc ecx
mov dword [esp + 0x28], ecx
movsx ecx, byte [eax + 1]
inc ecx
movsx ebp, byte [eax + 3]
mov dword [esp + 0x24], ecx
movsx ecx, byte [eax + 2]
inc ecx
inc ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
movsx ecx, byte [eax + 4]
movsx edi, byte [eax + 6]
inc ecx
mov dword [esp + 0x1c], ecx
movsx ecx, byte [eax + 5]
movsx eax, byte [eax + 7]
inc ecx
inc edi
inc eax
cmp byte [esp + 0x40], dl
mov dword [esp + 0x38], edi
je 0x414e4d
mov edi, eax
mov dword [esp + 0x18], 0
shl edi, 5
add edi, eax
mov dword [esp + 0x14], ebx
lea eax, [edi + edi*2]
mov dword [esp + 0x20], eax
lea eax, [ecx + ecx*2]
shl eax, 5
add eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x414db2
mov ebp, dword [esp + 0x2c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
mov edi, ebx
not ecx
dec ecx
movsx edx, dl
movsx eax, byte [ecx + eax - 1]
imul eax, ebp
mov dword [esp + 0x34], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x34]
imul ecx, dword [esp + 0x24]
imul ecx, esi
movsx edi, byte [esp + esi + 0x40]
imul edi, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov ebp, ecx
imul ebp, esi
add edi, ebp
mov ebp, dword [esp + 0x3c]
sub edi, ebp
mov ebp, dword [esp + 0x20]
add edi, ebp
mov ebp, dword [esp + 0x14]
imul edi, dword [esp + 0x28]
add eax, edi
mov edi, edx
imul edi, edx
imul edi, dword [esp + 0x30]
add eax, edi
xor edx, edx
mov edi, 0x1a
div edi
add ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
add dl, 0x61
mov byte [esp + esi + 0x40], dl
mov al, byte [esp + esi + 0x41]
inc esi
dec ebp
test al, al
mov dword [esp + 0x14], ebp
jne 0x414dae
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x148], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0046e753
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x41be40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b9b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebp
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0x10], 0
call fcn.0041b910
mov ebp, 1
push str._trsmin.ini
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], ebp
call fcn.0046eb2f
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0xff
push edx
push str.trscd
push str.appname
push str.install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
test al, al
jne 0x41bedd
push edi
mov edi, 0x4b2504
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
cmp dword [esp + 0x124], ebp
jne 0x41beff
mov esi, dword [esp + 0x120]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0046e7c1
mov dword [esp + 0xc], ebp
jmp 0x41bf3d
push 0x4b24fc
mov ecx, 0x4c0650
call fcn.0046b786
test eax, eax
jge 0x41bf26
mov edx, dword [0x4c0650]
push 0x4b22a0
push edx
call fcn.00458301
add esp, 8
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0046e7c1
mov dword [esp + 0xc], ebp
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call fcn.0046e753
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret 8

Function at 0x41bf70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b9e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
lea eax, [esp]
mov dword [esp + 4], 0
push eax
call fcn.0041b910
push str._trsmin.ini
lea ecx, [esp + 4]
mov dword [esp + 0x114], 1
call fcn.0046eb2f
cmp dword [esp + 0x11c], 1
jg 0x41bfdb
mov ecx, dword [esp]
lea edx, [esp + 8]
push ecx
push 0xff
push edx
push str.trscd
push str.appkey
jmp 0x41bff4
mov eax, dword [esp]
lea ecx, [esp + 8]
push eax
push 0xff
push ecx
push str.trscd
push str.appkey2
push str.install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
push esi
test al, al
jne 0x41c030
push edi
mov edi, str.trscd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0046e7c1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x114], 0
call fcn.0046e753
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x41d920
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48bd2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x68]
mov dword [esp + 0x10], 9
call fcn.0046e753
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 8
call fcn.0046e753
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 7
call fcn.0046e753
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 6
call fcn.0046e753
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 5
call fcn.0046e753
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 4
call fcn.0046e753
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call fcn.0046e753
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.0046e753
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 1
call fcn.0046e753
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.0046e753
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0046e753
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret