joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x43c56b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x43c56b
lcall 0x5de5, 0x8b10c483
jmp loc.00dcba68
Function at 0x401dcf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4094cc], 0
push esi
jne 0x401e06
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401de0
mov dword [ecx*4 + 0x4094c8], eax
inc ecx
cmp ecx, 0x100
jl 0x401ddb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401e37
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4094c8]
xor eax, esi
inc ecx
dec edx
jne 0x401e19
pop edi
not eax
pop esi
ret 0xc
Function at 0x40379a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40380c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4037e5
cmp dword [ebp + 0x10], ebx
jne 0x403813
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.0040379a
test eax, eax
jne 0x4037f7
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4037cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x40380c
Function at 0x403c24
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403c51
mov ecx, dword [0x799e90]
push edi
add eax, ecx
push edi
push eax
mov dword [0x795624], eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403d4f
cmp eax, edi
jl 0x403d48
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409094]
call ebx
test eax, eax
je 0x403d45
cmp dword [ebp - 4], esi
jne 0x403d45
push dword [ebp + 8]
add dword [0x795624], esi
call fcn.00403d4f
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403d48
cmp dword [ebp + 0x10], edi
jne 0x403d14
cmp dword [ebp + 8], edi
jle 0x403d40
mov esi, 0x7915e0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403cc4
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409094]
call ebx
test eax, eax
je 0x403d45
cmp edi, dword [ebp - 4]
jne 0x403d45
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403d10
cmp dword [ebp + 0x14], edi
jne 0x403d10
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x795624], eax
cmp dword [ebp + 8], 0
jg 0x403cb7
jmp 0x403d40
push 0xfffffffffffffffe
jmp 0x403d47
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403d1f
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409094]
call ebx
test eax, eax
je 0x403d45
mov eax, dword [ebp - 4]
add dword [0x795624], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403d48
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403d4f
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x795624]
mov ebx, eax
sub esi, dword [0x40ad14]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x403f30
push dword [0x795834]
call fcn.00403f6e
push edi
push edi
push dword [0x40ad14]
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x795830], esi
mov dword [0x795620], edi
mov eax, dword [0x795628]
mov ebp, 0x4000
sub eax, dword [0x795834]
cmp eax, ebp
jg 0x403dc3
mov ebp, eax
mov esi, 0x7915e0
push ebp
push esi
call fcn.00403f3c
test eax, eax
je 0x403f12
add dword [0x795834], ebp
mov dword [0x40ad18], esi
mov dword [0x40ad1c], ebp
cmp dword [0x799e44], edi
je 0x403e75
cmp dword [0x799ebc], edi
jne 0x403e75
cmp dword [esp + 0x10], edi
je 0x403e42
mov eax, dword [0x795830]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x795624]
sub eax, dword [esp + 0x38]
add eax, dword [0x40ad14]
mov dword [0x795620], eax
jmp 0x403e30
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x403e25
jmp 0x403e75
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403e75
mov eax, dword [0x799e40]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x40387e
push edi
push 0x6f
push dword [0x798de8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40ad18
mov dword [0x40ad20], 0x7895e0
mov dword [0x40ad24], 0x8000
call section..text
test eax, eax
jl 0x403f1b
mov esi, dword [0x40ad20]
mov eax, 0x7895e0
sub esi, eax
je 0x403edc
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403f17
cmp esi, dword [esp + 0x14]
jne 0x403f17
add dword [0x40ad14], esi
cmp dword [0x40ad1c], edi
jne 0x403de9
jmp 0x403ee8
cmp dword [0x40ad1c], edi
jne 0x403f1b
cmp ebp, edi
je 0x403f1b
mov eax, dword [0x795624]
mov ecx, eax
sub ecx, dword [0x40ad14]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x403dad
push edi
push edi
push eax
push dword [0x409094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403f20
or eax, 0xffffffff
jmp 0x403f32
push 0xfffffffffffffffe
jmp 0x403f1d
push 0xfffffffffffffffd
pop eax
jmp 0x403f32
cmp dword [esp + 0x10], edi
je 0x403f30
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x404575
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x7a0000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x7a0000
je 0x404594
push ebx
call fcn.004067d3
jmp 0x40459a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x799e84]
test esi, esi
je 0x4045e4
mov ecx, dword [0x799e44]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x799e80]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x4045d2
test esi, esi
jne 0x4045bc
jmp 0x4045e4
mov edx, dword [ecx + 2]
mov dword [0x799614], edx
lea edx, [ecx + 6]
mov dword [0x799610], edx
cmp dword [0x799610], 0
jne 0x4045ff
cmp di, 0xffff
jne 0x4045fb
mov edi, 0x3ff
jmp 0x40459c
xor edi, edi
jmp 0x40459c
movzx eax, word [ecx]
push eax
push ebx
call fcn.004067ba
push 0xfffffffffffffffe
push 0x799640
call fcn.0040686a
push eax
push dword [0x797058]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406295
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x10
pop ecx
xor eax, eax
push dword [ebp + 0xc]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x44], 0x44
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
je 0x4062c2
test al, 0x10
jne 0x4062c5
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x44]
push 0x7989d8
push eax
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4062f5
push dword [0x7989dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x7989d8]
leave
ret 8

Function at 0x40632a
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406440
test eax, eax
je 0x406390
test byte [ebp + 0xc], 1
push esi
je 0x406373
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x406390
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406390
test byte [ebp + 0xc], 2
je 0x406390
inc dword [0x799eb0]
push eax
push esi
call fcn.004065a6
pop esi
leave
ret 8

Function at 0x40655a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40931c]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add dl, 0x61
mov byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4065a2
test edi, edi
jne 0x406565
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40659c
Function at 0x4065a6
Capabilities:
Get common file path
Get file size

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebp, dword [esp + 0x1c]
je 0x4065e8
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4065e8
push 5
push ebp
push dword [esp + 0x20]
call eax
test eax, eax
mov dword [esp + 0x10], eax
jne 0x406717
mov eax, dword [0x409348]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test ebp, ebp
mov dword [0x7989e8], eax
mov esi, 0x400
mov ebx, 0x7989e8
je 0x40661c
push 1
push 0
push ebp
call fcn.0040653e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push ebp
call edi
push esi
mov esi, 0x7985d8
push esi
push dword [esp + 0x20]
call edi
push esi
push ebx
push str._s_s_r_n
push 0x7981d8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406717
xor edi, edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebx + 0xa]
push eax
push edi
push 4
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4066ff
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4066f3
push str._Rename__r_n
push edi
call fcn.004064c6
test eax, eax
jne 0x406723
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebx
add eax, edi
push 0x7981d8
push eax
call fcn.0040651a
push edi
add esi, ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x10], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
add eax, 0xa
push 0x409320
push eax
call fcn.004064c6
test eax, eax
je 0x4066d2
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x40674c
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x40673f
sub eax, edi
jmp 0x4066d4
Function at 0x406750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4067b4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4067a3
cmp dword [ebp + 0x14], 1
je 0x4067a5
cmp dword [ebp + 0x14], 2
je 0x4067a5
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40686a
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jge 0x406883
mov ecx, dword [0x799610]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x799e78]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x798e00
lea ebp, [eax + ecx]
cmp esi, edi
jb 0x4068af
cmp esi, 0x799600
jae 0x4068af
and dword [esp + 0x14], 0
jmp 0x406a55
mov esi, edi
jmp 0x406a55
mov edx, esi
mov ecx, 0x400
sub edx, edi
cmp edx, ecx
jge 0x406a60
movzx eax, al
inc ebp
cmp eax, 0xff
jne 0x4068de
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406a55
cmp eax, 0xfd
jne 0x406a34
mov di, word [ebp]
and edi, 0xfff
dec edi
inc ebp
inc ebp
cmp edi, 0x1c
je 0x4069e4
jle 0x4069d7
cmp edi, 0x21
jle 0x40693f
cmp edi, 0x22
je 0x4069c9
cmp edi, 0x23
je 0x406932
cmp edi, 0x24
jne 0x4069d7
push dword [0x799e40]
push esi
call fcn.004067ba
jmp 0x406a1f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x406a1f
mov eax, dword [edi*4 + 0x409250]
push eax
push 0x4092df
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_lstrcpyA
xor ebx, ebx
cmp edi, 0x21
setne bl
and ebx, dword [0x799ea4]
test ebx, ebx
mov byte [0x4092a9], 0x5c
mov eax, str.Common
jne 0x406977
mov eax, dword [esp + 0x18]
push esi
push eax
xor eax, eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
test ebx, ebx
setne al
add eax, 0x80000001
push eax
call fcn.00406750
cmp byte [esi], 0
jne 0x4069a8
test ebx, ebx
je 0x40699d
xor ebx, ebx
jmp 0x406963
push 0x7a0400
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp edi, 0x21
jne 0x406a10
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4069c9
test al, 0x10
jne 0x406a1f
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x406a10
mov eax, edi
shl eax, 0xa
add eax, section..ndata
push eax
jmp 0x406a0a
and byte [0x4092a9], 0
push esi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call fcn.00406750
cmp byte [esi], 0
jne 0x406a1f
push str.C:Program_Files
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp edi, 0x14
jle 0x406a25
cmp edi, 0x25
jge 0x406a25
cmp edi, 0x1a
je 0x406a25
push esi
call fcn.00406a85
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
mov edi, 0x798e00
jmp 0x406a55
cmp eax, 0xfe
jne 0x406a52
movsx eax, word [ebp]
inc ebp
push eax
push esi
inc ebp
call fcn.0040686a
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jmp 0x406a55
mov byte [esi], al
inc esi
mov al, byte [ebp]
test al, al
jne 0x4068b6
and byte [esi], 0
cmp dword [esp + 0x14], 0
je 0x406a7c
push 0x400
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x406a7e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10007082
pop dword [ebp - 0x34]
mov eax, 0xf7056fdd
add eax, 0x18fb00a5
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3b105
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x5023
mov edi, eax
mov esi, 0x7ab7744f
sub esi, 0x6ab5ee4f
add esi, dword [ebp - 0x34]
mov ebx, 0x731f5ca3
mov dword [ebp - 0xc], 0xa92ee4ff
mov edx, dword [esi]
add dword [ebp - 0x20], ecx
xor edx, ebx
mov dword [ebp - 0x20], 0xedad695
mov dword [edi], edx
add edi, 4
add esi, 4
loop 0x100070d0
add eax, 0x9fd0ce81
sub eax, 0x9fcf9b22
xor ebx, ebx
add ebx, eax
add eax, 0x723bbe8a
add eax, 0x8dc4417b
mov ecx, 0xcfa61822
add ecx, 0x4059e7de
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1007e51c
Capabilities:
Encode data using xor

Disassembly:
call 0x1007e495
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1007e4c5
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1007e4e1
xor edx, 0
jmp 0x1007e4ec
xor edx, edx
jmp 0x1007e503
jmp 0x1007e50f
xor eax, eax
push 0x8427d7c0
call 0x1007e51c
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1007e558
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1007e531
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1007e56f
add eax, 0
jno 0x1007e574
add esi, 0
ret 0x10

Function at 0x1007f2dd
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1007f2ff
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1007f4a1
cmp edi, dword [ebp + 0x10]
jb 0x1007f4a1
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1007edc9
inc edi
jmp 0x1007f388
jmp 0x1007f395
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1007edc9
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1007edc9
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1007f3e9
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1007f3cd
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1007f417
add dword [eax], 0x39
jle 0x1007f3f3
sub al, 0xf5
mov ch, al
call fcn.1007f42c
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10