joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41508d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41e048
call fcn.00410bc8
push 8
call fcn.00411b6c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x422910], esi
jne 0x4150c1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42290c], esi
mov al, byte [ebp + 0x10]
mov byte [0x422908], al
cmp dword [ebp + 0xc], edi
jne 0x41510b
cmp dword [0x423d48], edi
je 0x4150fb
mov eax, dword [0x423d44]
sub eax, 4
mov dword [0x423d44], eax
cmp eax, dword [0x423d48]
jb 0x4150fb
mov eax, dword [eax]
cmp eax, edi
je 0x4150dc
call eax
jmp 0x4150dc
push 0x421034
mov eax, 0x42102c
call fcn.0041500b
pop ecx
push 0x421040
mov eax, 0x421038
call fcn.0041500b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41513c
cmp dword [ebp + 0x10], edi
jne 0x41514a
mov dword [0x422910], esi
push dword [ebp + 8]
call fcn.00414fc9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x415149
push 8
call fcn.00411ab7
pop ecx
ret
call fcn.00410c03
ret

Function at 0x4152d5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [str._q_]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421b70]
je 0x41530c
inc eax
cmp eax, 0x13
jb 0x4152fd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421b70]
jne 0x41542f
mov eax, dword [0x422748]
cmp eax, 1
je 0x41540a
cmp eax, edx
jne 0x41533c
cmp dword [0x421784], 1
je 0x41540a
cmp ecx, 0xfc
je 0x41542f
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415372
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00414090
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00414000
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4153a6
mov eax, edi
push eax
call fcn.00414000
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41db44
push edi
call fcn.004102d0
add esp, 0x10
push edi
call fcn.00414000
push dword [esi + 0x421b74]
mov ebx, eax
call fcn.00414000
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040fae0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414090
push edi
push ebx
call fcn.004140a0
push 0x41db40
push ebx
call fcn.004140a0
push dword [esi + 0x421b74]
push ebx
call fcn.004140a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00415cc4
add esp, 0x2c
jmp 0x41542f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x421b74]
push dword [esi]
call fcn.00414000
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040f175
add ebp, 0x90
leave
ret
Function at 0x415cc4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422a24], ebx
push esi
push edi
jne 0x415d44
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415d7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e49c
push edi
call esi
test eax, eax
mov dword [0x422a24], eax
je 0x415d7f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x422a28], eax
call esi
cmp dword [0x4228d0], 2
mov dword [0x422a2c], eax
jne 0x415d44
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422a34], eax
je 0x415d44
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422a30], eax
mov eax, dword [0x422a30]
test eax, eax
je 0x415d89
call eax
test eax, eax
je 0x415d70
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422a34]
test eax, eax
je 0x415d70
test byte [ebp - 8], 1
jne 0x415d89
cmp dword [0x4228dc], 4
jb 0x415d83
or byte [ebp + 0x12], 0x20
jmp 0x415da8
xor eax, eax
jmp 0x415db8
or byte [ebp + 0x12], 4
jmp 0x415da8
mov eax, dword [0x422a28]
test eax, eax
je 0x415da8
call eax
mov ebx, eax
test ebx, ebx
je 0x415da8
mov eax, dword [0x422a2c]
test eax, eax
je 0x415da8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422a24]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415dbd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x415deb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x415df2
cmp ebx, dword [eax + 4]
jae 0x415df2
xor eax, eax
jmp 0x415fe2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415e03
xor eax, eax
inc eax
jmp 0x415fe1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415e19
cmp ecx, edx
jae 0x415f5e
cmp dword [eax + 4], 0
je 0x415e22
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x415e0a
cmp dword [ebp + 8], 0
je 0x415e44
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415f5e
cmp eax, esi
jae 0x415f5e
mov eax, dword [0x422a38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415e69
cmp dword [esi*4 + 0x422a40], edi
je 0x415f62
inc esi
cmp esi, eax
jl 0x415e57
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415fde
cmp dword [ebp - 8], 0x1000000
jne 0x415fde
test byte [ebp - 0xc], 0xcc
je 0x415ee7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415fde
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415fde
cmp word [eax + 0x18], 0x10b
jne 0x415fde
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415fde
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415ee7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415ee7
test byte [ecx + 0x27], 0x80
jne 0x415f5e
push 1
push 0x422a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415dfb
mov ecx, dword [0x422a38]
test ecx, ecx
mov edx, ecx
jle 0x415f1b
lea eax, [ecx*4 + 0x422a3c]
cmp dword [eax], edi
je 0x415f1b
dec edx
sub eax, 4
test edx, edx
jg 0x415f0f
test edx, edx
jne 0x415f4c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415f28
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415f40
lea eax, [edx*4 + 0x422a40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415f2e
cmp ecx, 0x10
jge 0x415f4c
inc ecx
mov dword [0x422a38], ecx
push 0
push 0x422a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415dfb
xor eax, eax
jmp 0x415fe1
test esi, esi
jle 0x415dfb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x422a80
call ebx
test eax, eax
jne 0x415dfb
cmp dword [esi*4 + 0x422a40], edi
je 0x415fb8
mov eax, dword [0x422a38]
lea esi, [eax - 1]
test esi, esi
jl 0x415fa6
cmp dword [esi*4 + 0x422a40], edi
je 0x415fa2
dec esi
jns 0x415f96
test esi, esi
jge 0x415fb6
cmp eax, 0x10
jge 0x415fb1
inc eax
mov dword [0x422a38], eax
lea esi, [eax - 1]
jmp 0x415fb8
je 0x415fd0
xor ecx, ecx
test esi, esi
jl 0x415fd0
lea eax, [ecx*4 + 0x422a40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415fbe
push 0
push 0x422a80
call ebx
jmp 0x415dfb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416501
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040fae0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41659c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4228d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41659c
cmp eax, 1
je 0x4165bd
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41659c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416569
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416598
xor eax, eax
inc eax
jmp 0x4165dc
cmp edi, eax
jae 0x4165a0
xor eax, eax
jmp 0x4165dc
cmp eax, esi
jae 0x4165a7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4228d0]
jmp 0x4165c0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416adc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [str._q_]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x416b18
xor eax, eax
jmp 0x416c82
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x423c40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x416b56
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00417aa2
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416bf0
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x416c53
jmp 0x416b7a
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x416bb5
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416ba6
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x416b86
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416c14
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x416c1d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x416b78
jmp 0x416c1d
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416c14
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x416c1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x416c7d
cmp dword [ebp - 0x68], eax
je 0x416c50
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x416c45
call fcn.0040fa23
mov dword [eax], 9
call fcn.0040fa2c
mov dword [eax], esi
jmp 0x416c78
push dword [ebp - 0x68]
call fcn.0040fa35
pop ecx
jmp 0x416c78
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416c65
cmp byte [edi], 0x1a
jne 0x416c65
xor eax, eax
jmp 0x416c80
call fcn.0040fa23
mov dword [eax], 0x1c
call fcn.0040fa2c
and dword [eax], 0
or eax, 0xffffffff
jmp 0x416c80
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0040f175
add ebp, 0x3a4
leave
ret
Function at 0x417ed9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4180af
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x423c40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4180af
test cl, 0x48
je 0x417f44
cmp byte [eax + 5], 0xa
je 0x417f44
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x417f7e
call fcn.0040fa23
mov dword [eax], 9
call fcn.0040fa2c
mov dword [eax], esi
jmp 0x417f8e
cmp eax, 0x6d
je 0x4180af
push eax
call fcn.0040fa35
pop ecx
or eax, 0xffffffff
jmp 0x4180b1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4180aa
test eax, eax
je 0x417fbd
cmp byte [ebx], 0xa
jne 0x417fbd
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x417fc6
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4180a4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x418094
cmp al, 0xd
je 0x417ff8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x418086
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x418012
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41800d
add dword [ebp + 0x10], 2
jmp 0x418066
mov dword [ebp + 0x10], eax
jmp 0x418082
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41803a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418082
cmp dword [ebp - 0xc], 0
je 0x418082
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41805b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x418066
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x418085
cmp ebx, dword [ebp + 0xc]
jne 0x41806b
cmp byte [ebp - 1], 0xa
jne 0x41806b
mov byte [ebx], 0xa
jmp 0x418085
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417aa2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418086
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x417fdc
jmp 0x4180a4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4180a4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4180b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40101a
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4be3a0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
call fcn.0041ce12
and dword [ebp - 4], 0
lea ecx, [esi + 0x37c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x380]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x384]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x388]
mov byte [ebp - 4], 3
call fcn.0041b6bc
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [esi], 0x4d4ef8
call sub.MFC42.DLL_CCmdTarget::EnableConnections
lea eax, [esi + 0xe4]
push str.TM2006
push eax
mov byte [esi + 0xc4], 2
call sub.MSVCRT.dll_strcpy
mov edi, 0x4d4eec
lea eax, [esi + 0x1fc]
push edi
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea ecx, [ebp - 0x10]
mov word [esi + 0xd8], 2
call sub.MFC42.DLL_CString::CString_3
mov eax, 0x104
lea ecx, [ebp - 0x10]
push eax
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::Left
mov byte [ebp - 4], 7
lea ebx, [esi + 0x370]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esi + 0x374]
call fcn.0041b68c
push str.TMShell.exe
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esi + 0x378]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.TM.exe
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040247b
test eax, eax
jne 0x4011bf
push 0xffffffffffffffff
push eax
push 0x6b
call sub.MFC42.DLL_AfxMessageBox_1
push 0
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, 0x516bf8
jmp 0x40100c
Function at 0x401ac7
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4be4e4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
pop edi
push edi
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x401b7b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
add eax, 0x12
mov dword [ebp - 0x20], eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x4d50b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041bc3b
add esp, 0x18
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x28], esi
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401bf0
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x4be4f0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
call fcn.00401b94
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x401c56
mov dword [ebp - 0x18], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x401c4f
cmp eax, 0xf4240
jbe 0x401c4f
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bf406
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00411160
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4d6fbc
call fcn.004113e0
push 0x4d5034
mov ecx, ebx
call fcn.0041b68c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x410de0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bf486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00411160
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4d7090
call fcn.004113e0
push 0x4d5034
mov ecx, ebx
call fcn.0041b68c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41baf4
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edi, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x10]
push 4
lea ecx, [ebp - 0x10]
sub edi, eax
pop ebx
mov eax, dword [edi + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x41bb27
push 0x10
xor eax, eax
pop ecx
mov edi, esi
mov ebx, esi
shr edi, 5
add edi, dword [ebp - 0xc]
sub eax, 0x61c88647
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edi, ebx
lea ebx, [eax + esi]
xor edi, ebx
add edx, edi
mov edi, edx
mov ebx, edx
shr edi, 5
add edi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp - 8]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add esi, edi
dec ecx
jne 0x41bb3f
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret

Function at 0x41bb96
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov esi, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edi, dword [ebp + 0xc]
mov edx, eax
lea eax, [ebp - 0x10]
push 4
lea ecx, [ebp - 0x10]
sub edi, eax
pop ebx
mov eax, dword [edi + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x41bbc9
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edi, esi
mov ebx, esi
shr edi, 5
add edi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp - 8]
xor edi, ebx
lea ebx, [eax + esi]
xor edi, ebx
sub edx, edi
mov edi, edx
mov ebx, edx
shr edi, 5
add edi, dword [ebp - 0xc]
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add eax, 0x61c88647
sub esi, edi
dec ecx
jne 0x41bbe4
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret