joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450ec4
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x14], ecx
push edi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451028
test eax, 0x10
je 0x451028
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x248
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x451028
push esi
push str._s
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x45101c
lea eax, [ebp - 0x238]
push eax
push esi
push 0x475198
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
test byte [ebp - 0x264], 0xa7
je 0x450ffb
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
lea eax, [esi*2 + 0x56]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp + 8]
push str.Telegram_s_s
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 0xb
add eax, esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edx, esi
push 2
push 0
push edi
call fcn.0045507c
add esp, 0xc
test esi, esi
je 0x450ff8
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x450f42
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4526b2
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x4526ce
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4526f2
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.00456430
movzx eax, word [ebx*8 + 0x474fd2]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x474fd0]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x474fd4]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x474fd6]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x452755
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x452760
cmp ebx, 8
jl 0x452760
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x4527c7
cmp eax, 0xffffffff
je 0x4527c7
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4527a2
mov ecx, esi
call fcn.00452990
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x4527aa
jmp 0x4527d7
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x452ad6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor edx, edx
mov ecx, edx
mov ebx, edx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x6af90]
lea edi, [esi + 0x6af84]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x452cc0
cmp eax, 3
jb 0x452b56
mov edx, dword [edi]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x452b8f
mov eax, dword [edi]
sub eax, ecx
cmp eax, 0x7efa
ja 0x452b8f
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x452b79
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.004527dc
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, dword [edi]
cmp ebx, 3
jb 0x452c46
sub ecx, dword [esi + 0x6af88]
lea eax, [ebx - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.00452109
pop ecx
mov ecx, dword [esi + 0x6af90]
sub ecx, ebx
mov dword [ebp - 8], eax
mov dword [esi + 0x6af90], ecx
cmp ebx, dword [esi + 0x6af98]
ja 0x452c1d
cmp ecx, 3
jb 0x452c1d
dec ebx
inc dword [edi]
mov edx, dword [edi]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x452bcd
jmp 0x452c62
add dword [edi], ebx
xor ebx, ebx
mov edx, dword [edi]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
jmp 0x452c66
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.00452109
dec dword [esi + 0x6af90]
pop ecx
mov dword [ebp - 8], eax
inc dword [edi]
mov edx, dword [edi]
cmp dword [ebp - 8], 0
je 0x452c9a
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x452c80
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x452c82
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.00451f1a
mov eax, dword [edi]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x452cad
mov ecx, esi
call fcn.00452990
mov eax, dword [esi + 0x6af90]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x452b07
xor edx, edx
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x452cd2
lea edx, [esi + 0x1af70]
add edx, ecx
mov eax, dword [edi]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.00451f1a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453916
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x453921
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4539dd
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
sub edi, 1
jne 0x453936
pop edi
test esi, esi
je 0x4539f9
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
inc edx
sub esi, 1
jne 0x4539e1
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x453a00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x474a90]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x474a90]
mov dword [esi + 8], ecx
pop esi
ret
Function at 0x453b85
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x453bad
mov eax, 0x200
jmp 0x453d67
mov ebx, dword [ebp - 0x48]
mov edi, 0x41000000
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
test bl, 2
cmove ecx, esi
mov edx, ecx
or edx, 4
test bl, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [ebp - 8], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
test bl, 0x20
cmove ecx, eax
mov eax, dword [ebp - 8]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x453c11
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
mov ebx, dword [ebp - 4]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x28
jbe 0x453cc0
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x453cc0
mov ecx, dword [ebp - 8]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x453cc0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
cmp eax, 0x5a4d
je 0x453cba
cmp eax, 0x454e
je 0x453cba
cmp eax, 0x454c
je 0x453cba
cmp eax, 0x4550
jne 0x453cc0
or edi, 0x400000
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x453cc9
mov dword [eax], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x453cd2
mov dword [eax], esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x453d3c
mov ecx, dword [ebp - 0x3c]
mov ebx, 0x19db1de
mov eax, dword [ebp - 0x38]
sub ecx, 0xd53e8000
push 0
mov edi, 0x989680
sbb eax, ebx
push edi
push eax
push ecx
call fcn.004688e0
mov ecx, dword [ebp - 0x34]
mov dword [esi], eax
sub ecx, 0xd53e8000
mov eax, dword [ebp - 0x30]
push 0
push edi
sbb eax, ebx
mov dword [esi + 4], edx
push eax
push ecx
call fcn.004688e0
mov ecx, dword [ebp - 0x44]
mov dword [esi + 8], eax
sub ecx, 0xd53e8000
mov eax, dword [ebp - 0x40]
push 0
push edi
sbb eax, ebx
mov dword [esi + 0xc], edx
push eax
push ecx
call fcn.004688e0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x453d65
push dword [ebp - 0x30]
lea edx, [ebp - 8]
push dword [ebp - 0x34]
lea ecx, [ebp - 4]
call fcn.00453b28
movzx eax, word [ebp - 8]
pop ecx
pop ecx
movzx ecx, word [ebp - 4]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453e58
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x453ecb
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x453e87
cmp dword [esi + 0x40], edi
jae 0x453e87
push ecx
call fcn.00455286
and dword [esi + 0x3c], 0
pop ecx
jmp 0x453e8b
test eax, eax
jne 0x453e9b
lea eax, [edi + edi]
push eax
call fcn.004552c9
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.00456eb0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x453ec8
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [eax + ebx]
call fcn.00453a43
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x453eaf
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x453efa
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x453ee6
mov dword [esi + 0x14], 0x30000
jmp 0x453f1c
push edi
add ecx, edx
push ebx
push ecx
call fcn.00456eb0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x453f1e
mov eax, dword [esi + 4]
test eax, eax
je 0x453f15
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x453f1e
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4542a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x84]
test eax, eax
je 0x4542fa
mov ecx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp ecx, esi
jae 0x454335
sub esi, ecx
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.00456eb0
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.00453916
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x454337
cmp dword [edi + 0x7c], 0
je 0x45432e
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454335
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00453916
pop ecx
jmp 0x4542f3
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x455adf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x455b1e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x455b1e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x455b1e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x455b1e
cmp dword [ecx + 0x74], 0xe
jbe 0x455b1e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x45cf2e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46d120
push 0x46d118
push str.FlsAlloc
push 0x1e
call fcn.0045cdef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45cf62
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2b4]
call esi
jmp 0x45cf68
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45cfac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46d130
push 0x46d128
push str.FlsGetValue
push 0x20
call fcn.0045cdef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45cfe3
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4615d8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x461675
push ebx
push esi
call fcn.004615a1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004614ea
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x461622
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x461674
push edi
push eax
call fcn.0045d6e1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x461642
call fcn.0045cc82
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x461673
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004614ea
add esp, 0x20
test eax, eax
jne 0x461661
push edi
call fcn.0045cc82
jmp 0x461669
push ebx
call fcn.0045cc82
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x461678
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x461689
pop esi
ret
push ebx
push edi
push esi
call fcn.004615a1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045d6e1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4616b1
push ebx
push esi
push edi
call fcn.00456eb0
add esp, 0xc
push 0
call fcn.0045cc82
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x461a75
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004616c6
Function at 0x4686a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4686cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4686cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x805f9c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805fa2
pop ebp
sub ebp, 6
sub ebp, 0x405f9c
jmp 0x806000
jmp 0x806009
mov eax, 0x405f9c
add eax, ebp
add eax, 0x93
mov ecx, 0x627
mov edx, 0x8c717fee
xor byte [eax], dl
inc eax
dec ecx
jne 0x806020
jmp 0x806033
test byte [esi - 0x1101117a], ch
out dx, al
xchg dh, ch
and al, dl
out dx, al
invalid
Function at 0x402bc0
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x404d20
call fcn.00402880
push 1
call fcn.00402d9b
pop ecx
test al, al
je 0x402ba8
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00402d69
mov byte [ebp - 0x24], al
mov eax, dword [0x4063f4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402ba8
test eax, eax
jne 0x402acc
mov dword [0x4063f4], ecx
push 0x404170
push 0x404164
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x402aaf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402b98
push 0x404160
push 0x404158
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4063f4], 2
jmp 0x402ad1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00402eef
pop ecx
call fcn.0040307c
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402b02
push esi
call fcn.00402e5b
pop ecx
test al, al
je 0x402b02
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x404154]
call esi
call fcn.00403082
mov esi, eax
cmp dword [esi], edi
je 0x402b20
push esi
call fcn.00402e5b
pop ecx
test al, al
je 0x402b20
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.004031a2
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004031d8
test al, al
je 0x402baf
test bl, bl
jne 0x402b4e
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00402f0c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402b98
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00403088
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00495000
jmp 0x402a42
Function at 0x405280
Capabilities:
Encode data using xor

Disassembly:
push 0x405334
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
pushal
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov ebx, 0x93ecd7ec
xor al, 0xfa
inc ebp
stosb byte es:[edi], al
adc eax, edi
pop esi
pushal
jg 0x40529c
mov al, byte [pe_dos_header]
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x7774697a
jp 0x405336
push 0x67
jbe 0x40533b
add byte [esi], dh
jge 0x4052ed
xor ch, byte [esi]
cmp dword [eax], esi
cmp dword [ebx], esi
xor al, 0x30
xor dh, byte [ebx]
cmp byte [ebx + esi], dh
cmp dword [edx], esi
cmp byte [0x36353334], dh
xor eax, 0x34353634
add byte ss:[edi + ebp*2 + 0x6c], ah
xor ch, byte gs:[esi]
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
adc byte [eax + eax*2], al
add bh, bh
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], dl
test byte [eax], al
add byte [eax], al
add byte [eax], al
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax - 0x5a], bh
inc edx
add byte [ebp + edx*2 + 0x40], dl
add byte [edi], bh
invalid
Function at 0x402bff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a310]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c93
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402c50
cmp dword [ebp + 0x10], ebx
jne 0x402c87
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402bff
test eax, eax
jne 0x402c62
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402c37
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406559
cmp eax, ebx
je 0x402c9a
push ebx
push dword [0x42a310]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
jmp 0x45d320