joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2981e5cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x2981e5db
pop dword [ebp - 0x38]
mov eax, 0x688fd68a
add eax, 0xc0f20f51
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xfe979176
add dword [ebp - 0x48], 0x4fbab3d5
mov dword [ebp - 0x44], 0xf952061b
sub dword [ebp - 0x44], 0xc71eb9d6
mov dword [ebp - 0x40], 0xfe0e9256
sub dword [ebp - 0x40], 0xb1c24e28
mov dword [ebp - 0x3c], 0xc11509b3
add dword [ebp - 0x3c], 0x3eeaf64d
lea eax, [ebp - 0x48]
push eax
mov eax, 0x5b96521
add eax, 0x23cc1b9f
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x4f38dead
sub dword [ebp - 0x48], 0xdac67557
mov dword [ebp - 0x44], 0x53018f3e
add dword [ebp - 0x44], 0xee6ad237
mov dword [ebp - 0x40], 0x8880e52f
add dword [ebp - 0x40], 0xdaee873d
mov dword [ebp - 0x3c], 0x4637e85
sub dword [ebp - 0x3c], 0x4637e85
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xce2b712c
add eax, 0x5b5a0f8c
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x49638
push 0
call eax
mov ecx, 0xe26ad161
sub ecx, 0xe26a83ac
xor ebx, ebx
add ebx, eax
mov edx, 0x4b990c74
sub edx, 0x220f9874
add edx, dword [ebp - 0x38]
mov edi, 0x90bfd5b5
add dword [ebp - 0x28], 0x54280945
mov esi, dword [edx]
add dword [ebp - 0x14], 0xda079549
xor esi, edi
add dword [ebp - 0x30], edi
mov dword [ebx], esi
mov dword [ebp - 4], 0x55a04c40
add ebx, 4
add edx, 0x5af9888a
sub edx, 0x5af98886
loop 0x2981e6f9
add eax, 0xe0b726d7
add eax, 0x1f4a02d0
xor ebx, ebx
add ebx, eax
add eax, 0x9b2071f7
sub eax, 0x9b2071f2
mov ecx, 0x29800000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401050
Capabilities:
Create directory
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0x108
mov al, byte [0x40a3b0]
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401095
push 0xffffffffffffffff
call fcn.0040323f
lea ecx, [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x409058
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004074c0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 8
test eax, eax
jne 0x401116
push 0
push str.C:TEMP
call ebp
mov edi, str.C:TEMP_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push eax
push 0
push 0x409040
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401134
push 0xffffffffffffffff
call fcn.0040323f
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x14]
push 0
push edx
call ebp
test eax, eax
jne 0x40115c
mov ecx, dword [esp + 0x10]
call fcn.00401b80
push 0xffffffffffffffff
call fcn.0040323f
mov edi, 0x409058
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
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
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4
Function at 0x4011c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
mov al, byte [0x40a3b0]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
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 ebp, dword [esp + 0x220]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012ac
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x118]
push ecx
push ebp
push str.EXTRACTOR____CreateDataFile__s__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x118]
push eax
jmp 0x4012b1
push str.could_not_write_file
lea ecx, [ebx + 4]
call fcn.00402920
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 0x10
Function at 0x4015c0
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4076cb
push eax
mov eax, 0x9f6c
mov dword fs:[0], esp
call fcn.00403830
mov dl, byte [0x40a3b0]
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], dl
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x21c]
stosb byte es:[edi], al
call fcn.00401c20
mov ecx, dword [esp + 0x9f88]
lea eax, [esp + 8]
push eax
xor ebx, ebx
push ecx
lea ecx, [esp + 0x224]
mov dword [esp + 0x9f84], ebx
call fcn.00401d70
cmp dword [esp + 8], 0xffffffff
jne 0x401651
push 0xffffffffffffffff
call fcn.0040323f
lea edx, [esp + 8]
lea ecx, [esp + 0x21c]
push edx
call fcn.00402160
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9f70]
cmp eax, ebx
jle 0x40179d
lea eax, [esp + 0x650]
push ebp
mov ebp, dword [esp + 0x9f88]
push esi
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x120]
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, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
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 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, str.extract.tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ebx
push ecx
lea ecx, [esp + 0x230]
call fcn.00401c60
lea edx, [esp + 0x120]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x22c]
call fcn.00402050
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x9f78]
inc ebx
add ecx, 0x188
cmp ebx, eax
mov dword [esp + 0x14], ecx
jl 0x401689
pop esi
pop ebp
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x21c]
mov dword [esp + 0x9f7c], 0xffffffff
call fcn.00401c50
mov ecx, dword [esp + 0x9f74]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x9f78
ret 8
Function at 0x4017e0
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4076eb
push eax
mov eax, 0x9f6c
mov dword fs:[0], esp
call fcn.00403830
mov dl, byte [0x40a3b0]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
mov byte [esp + 0x11c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x220]
stosb byte es:[edi], al
call fcn.00401c20
mov ecx, dword [esp + 0x9f8c]
lea eax, [esp + 0x14]
push eax
xor esi, esi
push ecx
lea ecx, [esp + 0x228]
mov dword [esp + 0x9f88], esi
call fcn.00401d70
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x401875
push eax
call fcn.0040323f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x9f74]
mov dword [esp + 0x10], esi
cmp eax, esi
jle 0x4019c6
lea edx, [esp + 0x654]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add ebx, 4
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x9f8c]
or ecx, 0xffffffff
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, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor edi, edi
call ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x120]
push ecx
push str.ASMBase____Attempting_to_Delete_File__s
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x120]
mov ecx, ebx
push eax
call fcn.00402920
test esi, esi
jne 0x40196e
cmp edi, 0x14
jge 0x40196a
push str.ASMBase____Delete_File_Failed.
mov ecx, ebx
call fcn.00402920
lea ecx, [esp + 0x1c]
push ecx
call ebp
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.ASMBase____Attempting_to_Delete_File.
mov ecx, ebx
call fcn.00402920
inc edi
test esi, esi
je 0x401932
jmp 0x40196e
test esi, esi
je 0x401993
lea edx, [esp + 0x1c]
lea eax, [esp + 0x120]
push edx
push str.ASMBase____Delete_File_Sucessful.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x120]
push ecx
jmp 0x401998
push str.ASMBase____Delete_File_Wait_Time_Exceeded.
mov ecx, ebx
call fcn.00402920
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x9f78]
inc eax
add edx, 0x188
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x4018a4
pop ebp
lea ecx, [esp + 0x220]
mov dword [esp + 0x9f80], 0xffffffff
call fcn.00401c50
mov ecx, dword [esp + 0x9f78]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x9f78
ret 8
Function at 0x401c60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00403830
push ebx
mov ebx, dword [esp + 0x101c]
push ebp
mov ebp, dword [esp + 0x101c]
xor eax, eax
push esi
cmp ebp, eax
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jle 0x401caf
lea esi, [ecx + 0x5b8]
mov edi, ebp
mov eax, dword [esi]
mov ecx, dword [ebx]
push 1
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esi, 0x188
dec edi
jne 0x401c96
mov edx, dword [esp + 0x1020]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ebp + ebp*2]
shl eax, 4
add eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx + eax*8 + 0x5b8]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
shr eax, 0xc
je 0x401d2d
mov esi, eax
mov ecx, dword [ebx]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x24]
push 0x1000
push eax
push ecx
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec esi
jne 0x401cf8
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx]
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
and esi, 0xfff
push 0
push ecx
lea edx, [esp + 0x24]
push esi
push edx
push eax
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x24]
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 0xc
Function at 0x402050
Capabilities:
Terminate process
Timestomp file

Disassembly:
sub esp, 0x28
push ebp
push esi
push edi
mov ebp, ecx
push 0x3134
call fcn.0040394e
mov esi, eax
add esp, 4
test esi, esi
jne 0x402072
push 1
call fcn.0040323f
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call edi
mov ecx, dword [esp + 0x3c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov dword [esp + 0x30], eax
call edi
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
push edx
push esi
push 0x4025e0
push 0x402610
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x1000
mov dword [esp + 0x3c], 0x402610
mov dword [esp + 0x40], 0x4025e0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
call fcn.00402b50
add esp, 0x10
test eax, eax
je 0x402105
push 2
call fcn.0040323f
xor eax, eax
lea ecx, [esp + 0xc]
add ebp, 4
mov dword [esp + 0xc], eax
push ecx
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0xc]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
push esi
call fcn.00403207
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x28
ret 8

Function at 0x402160
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push 1
push 0
push 0xfffffffffffffffc
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call edi
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
mov ecx, dword [esi]
mov eax, 0xfffffffc
push 1
sub eax, edx
push 0
push eax
push ecx
call edi
pop edi
pop esi
add esp, 8
ret 4
Function at 0x402770
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4027b5
mov eax, dword [esp + 8]
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x4027d0
push 0
push 0
mov dword [esi + 0x1c], eax
call fcn.00403a1b
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x4027bc
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4027ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
pop esi
ret 4
push str.ASMBase____Error_Creating_Application_Thread
lea ecx, [esi + 4]
call fcn.00402920
push 0xffffffffffffffff
call fcn.0040323f
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
ret 4

Function at 0x4027e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40280e
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40280e
mov eax, dword [esi + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 1
pop esi
ret

Function at 0x402880
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, 5
mov esi, str.SoftwareClassLibrary
lea edi, [esp + 0x18]
mov eax, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x2c], 0
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop esi
test eax, eax
jne 0x40290b
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.ShowDebugMessages
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402900
mov eax, dword [esp]
add esp, 0x28
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x28
ret

Function at 0x402920
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x400
test eax, eax
je 0x402994
push ebx
push esi
push edi
mov edi, dword [esp + 0x410]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
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, 0x409378
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 eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
add esp, 0x400
ret 4
Function at 0x405455
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409ff0
cmp edx, dword [eax]
je 0x405477
add eax, 8
inc ecx
cmp eax, 0x40a080
jl 0x405468
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409ff0]
jne 0x4055a5
mov eax, dword [0x40a440]
cmp eax, 1
je 0x40557f
test eax, eax
jne 0x4054a8
cmp dword [0x409d04], 1
je 0x40557f
cmp edx, 0xfc
je 0x4055a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4054df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406d70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405522
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40850c
push edi
call fcn.00403410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406d70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406d80
lea eax, [ebp - 0xa0]
push 0x4084ec
push eax
call fcn.00406d80
push dword [esi + 0x409ff4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406d80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406edb
add esp, 0x2c
pop edi
jmp 0x4055a5
lea eax, [ebp + 8]
lea esi, [esi + 0x409ff4]
push 0
push eax
push dword [esi]
call fcn.00406e60
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]
pop esi
leave
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40596d
pop dword [ebp - 0x3c]
mov eax, 0xdd1bbb4e
sub eax, 0xdcdb61e1
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xeb0f600a
add dword [ebp - 0x4c], 0x6342e541
mov dword [ebp - 0x48], 0x5ed1ab49
sub dword [ebp - 0x48], 0x2c9e5f04
mov dword [ebp - 0x44], 0x8c811431
add dword [ebp - 0x44], 0xbfcb2ffd
mov dword [ebp - 0x40], 0xe27e584
add dword [ebp - 0x40], 0xf1d81a7c
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xd6fc69a4
sub dword [ebp - 0x4c], 0x628a004e
mov dword [ebp - 0x48], 0x7d452738
add dword [ebp - 0x48], 0xc4273a3d
mov dword [ebp - 0x44], 0x561cc915
add dword [ebp - 0x44], 0xd52a357
mov dword [ebp - 0x40], 0x8959b2ec
add dword [ebp - 0x40], 0x76a64d14
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xb6a01bc7
sub eax, 0xb65faac7
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x373a3
push 0
call eax
mov ecx, 0x4a0b
xor ebx, ebx
add ebx, eax
mov esi, 0x6a1c1f3
sub esi, 0x660c1f3
add esi, dword [ebp - 0x3c]
mov edx, 0xae8e94bb
sub dword [ebp - 8], 0x36bde2cb
mov edi, dword [esi]
add dword [ebp - 0x14], edi
xor edi, edx
sub dword [ebp - 0x10], 0x404a1a81
mov dword [ebx], edi
sub dword [ebp - 0x38], edx
add ebx, 4
add esi, 0x5afe46f1
add esi, 0xa501b913
loop 0x405a80
add eax, 0x11aff
mov ebx, eax
add eax, 5
mov ecx, 0x550b4be5
sub ecx, 0x54cb4be5
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x480f99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.0046712e
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x480fd1
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x480fb6
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret