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

Disassembly:
cmp dword [0x42c2c4], 0
push esi
jne 0x405d86
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 0x405d60
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d5b
mov esi, dword [esp + 0x10]
test esi, esi
mov eax, dword [esp + 8]
not eax
jbe 0x405db2
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
dec esi
jne 0x405d98
not eax
pop esi
ret 0xc
Function at 0x401459
Capabilities:
Copy file
Create directory
Create shortcut via ishelllink
Delete file
Delete registry value
Get file version info
Query or enumerate registry key
Query or enumerate registry value
Read file on windows
Set current directory
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x423e88]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, eax
mov edi, edx
shl esi, 0xa
mov ecx, section..ndata
mov dword [ebp - 4], ebx
shl edi, 0xa
add esi, ecx
add edi, ecx
lea ecx, [ebp - 0x24]
mov dword [0x409b60], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffffe
cmp ecx, 0x41
ja case.0x4014ae.65
jmp dword [ecx*4 + 0x4028e3]

Function at 0x402a7c
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
mov eax, dword [0x423f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405f8e
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x423f30], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x443259
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Get file version info
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x423e88]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, eax
mov edi, edx
shl esi, 0xa
mov ecx, section..ndata
mov dword [ebp - 4], ebx
shl edi, 0xa
add esi, ecx
add edi, ecx
lea ecx, [ebp - 0x24]
mov dword [0x409b60], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffffe
cmp ecx, 0x41
ja case.default.0x4432ae
jmp dword [ecx*4 + 0x4028e3]
mov eax, dword [ebp - 4]
add dword [0x423f08], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44487c
Capabilities:
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
mov eax, dword [0x423f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4448f7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4448fe
cmp dword [ebp + 0x10], ebx
jne 0x4448eb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.0044487c
test eax, eax
jne 0x4448fe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x4448be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00447d8e
cmp eax, ebx
je 0x444923
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4448f7
cmp dword [0x423f30], ebx
jne 0x4448f4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4448f4
jmp 0x4448f7
Function at 0x444d6a
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 0x444d97
mov ecx, dword [0x423ed8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41703c], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00444e95
cmp eax, edi
jl 0x444e8e
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 [0x409018]
call ebx
test eax, eax
je 0x444e8b
cmp dword [ebp - 4], esi
jne 0x444e8b
push dword [ebp + 8]
add dword [0x41703c], esi
call fcn.00444e95
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x444e8e
cmp dword [ebp + 0x10], edi
jne 0x444e5a
cmp dword [ebp + 8], edi
jle 0x444e86
mov esi, 0x413038
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x444e0a
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x444e8b
cmp edi, dword [ebp - 4]
jne 0x444e8b
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 0x444e56
cmp dword [ebp + 0x14], edi
jne 0x444e56
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41703c], eax
cmp dword [ebp + 8], 0
jg 0x444dfd
jmp 0x444e86
push 0xfffffffffffffffe
jmp 0x444e8d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x444e65
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x444e8b
mov eax, dword [ebp - 4]
add dword [0x41703c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x444e8e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x444e95
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41703c]
sub esi, dword [0x40afa8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423e8c], eax
jle 0x444ffd
push dword [0x41f04c]
call fcn.00445046
push ebx
push ebx
push dword [0x40afa8]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f048], esi
mov dword [0x417038], ebx
mov ebp, 0x40b038
mov eax, dword [0x417040]
mov edi, 0x4000
sub eax, dword [0x41f04c]
cmp eax, edi
jg 0x444f0a
mov edi, eax
mov esi, 0x413038
push edi
push esi
call fcn.00445014
test eax, eax
je 0x444fe5
add dword [0x41f04c], edi
mov dword [0x40afc8], esi
mov dword [0x40afcc], edi
cmp dword [0x423e90], ebx
je 0x444f61
cmp dword [0x423f20], ebx
jne 0x444f61
mov eax, dword [0x41f048]
push ebx
sub eax, dword [0x41703c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afa8]
mov dword [0x417038], eax
call fcn.00444a25
pop ecx
mov ecx, 0x40afb0
mov dword [0x40afd0], ebp
mov dword [0x40afd4], 0x8000
call fcn.00447e9c
test eax, eax
jl 0x44500f
mov esi, dword [0x40afd0]
sub esi, ebp
je 0x444fbf
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x444fea
cmp esi, dword [esp + 0x10]
jne 0x444fea
add dword [0x40afa8], esi
cmp dword [0x40afcc], ebx
jne 0x444f30
jmp 0x444fcb
cmp dword [0x40afcc], ebx
jne 0x44500f
cmp edi, ebx
je 0x44500f
mov eax, dword [0x41703c]
mov ecx, eax
sub ecx, dword [0x40afa8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x444fee
jmp 0x444ef4
or eax, 0xffffffff
jmp 0x445007
push 0xfffffffffffffffe
jmp 0x445011
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00444a25
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x445007
Function at 0x447277
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422490], 0x44
push eax
xor eax, eax
push 0x422490
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4472b2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x447358
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0044760e
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x44738c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f08], eax
jmp 0x447525
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4473aa
test eax, eax
je 0x4474d0
test byte [ebp + 0xc], 2
je 0x4474d0
mov esi, 0x421490
push edi
push esi
call fcn.00447a42
test ebx, ebx
je 0x4473c7
push str..
push esi
call fcn.00447a65
jmp 0x4473cd
push edi
call fcn.00447572
cmp byte [edi], 0
jne 0x4473db
cmp byte [0x421490], 0x5c
jne 0x4473e6
push 0x409010
push edi
call fcn.00447a65
push edi
call fcn.00447a58
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4474c6
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00447556
cmp byte [eax], 0
je 0x44742c
cmp byte [ebp - 0x18], 0
je 0x44742c
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x447447
cmp byte [esi + 1], 0
je 0x4474a5
cmp al, al
jne 0x447447
cmp byte [esi + 1], al
jne 0x447447
cmp byte [esi + 2], 0
je 0x4474a5
push esi
push ebx
call fcn.00447a42
test byte [ebp - 0x148], 0x10
je 0x44746c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4474a5
push dword [ebp + 0xc]
push edi
call fcn.00447358
jmp 0x4474a5
push edi
call fcn.004476f8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44749d
test byte [ebp + 0xc], 4
je 0x447495
push edi
push 0xfffffffffffffff1
call fcn.00446dab
push 0
push edi
call fcn.0044778f
jmp 0x4474a5
inc dword [0x423f08]
jmp 0x4474a5
push edi
push 0xfffffffffffffff2
call fcn.00446dab
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44740a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4474d0
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x447525
cmp dword [ebp - 8], esi
jne 0x4474e5
inc dword [0x423f08]
jmp 0x447525
push edi
call fcn.00447d67
test eax, eax
je 0x447525
push edi
call fcn.0044752b
push edi
call fcn.004476f8
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x44751d
test byte [ebp + 0xc], 4
je 0x4474dd
push edi
push 0xfffffffffffffff1
call fcn.00446dab
push esi
push edi
call fcn.0044778f
jmp 0x447525
push edi
push 0xffffffffffffffe5
call fcn.00446dab
pop edi
pop esi
leave
ret 8
Function at 0x44760e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421890
push esi
call fcn.00447a42
push esi
call fcn.004475bf
mov edi, eax
test edi, edi
jne 0x44762f
xor eax, eax
jmp 0x447681
push edi
call fcn.00447cce
test byte [0x423e98], 0x80
je 0x447648
mov al, byte [edi]
test al, al
je 0x44762b
cmp al, 0x5c
je 0x44762b
sub edi, esi
push esi
call fcn.00447a58
cmp eax, edi
push esi
jle 0x44766b
call fcn.00447d67
test eax, eax
je 0x447663
test byte [eax], 0x10
je 0x44762b
push esi
call fcn.00447572
jmp 0x44764a
call fcn.0044752b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4476f8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x447714
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x447717
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x447746
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x44778b
mov eax, edi
dec edi
test eax, eax
jne 0x447751
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x447785
Function at 0x44778f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00447d8e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4477b3
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4478ec
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422618], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422618
je 0x4477f7
push 1
push 0
push esi
call fcn.00447717
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4478f2
cmp eax, edi
jg 0x4478f2
mov esi, 0x422090
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4478f2
cmp eax, edi
jg 0x4478f2
push esi
push ebp
push str._s_s_r_n
push 0x421c90
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00447a76
push 4
push 0xc0000000
push esi
call fcn.00447717
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4478ec
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4478e5
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4478e5
cmp edi, dword [esp + 0x18]
jne 0x4478e5
push str._Rename__r_n
push esi
call fcn.00447686
test eax, eax
jne 0x4478f9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00447a42
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c90
push eax
call fcn.004476d2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.00447686
test eax, eax
je 0x4478b0
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x447920
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x447915
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4478b2
Function at 0x447928
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447999
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x447988
cmp dword [ebp + 0x14], 1
je 0x44798a
cmp dword [ebp + 0x14], 2
je 0x44798a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x447e04
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x447e3e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x447e1a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x447e15
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x447e73
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x447e56
pop edi
pop esi
not eax
ret 0xc

Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret

Function at 0x408925
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov edx, dword [esp]
add esp, 4
mov ecx, 0x6d04d9d2
call fcn.00408956
and edi, ecx
sub edi, 0x52c83483
xor dword [eax], edx
add eax, 1
cmp eax, esi
jne fcn.00408925
mov edi, edi
ret
Function at 0x489ea0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x50cd9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0050119b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x489f22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004fe9fd
mov eax, dword [eax]
push 0x585278
push eax
call fcn.004de654
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00501426
test bl, bl
je 0x489f22
push 0x585278
lea ecx, [esp + 0xc]
call fcn.005017b6
push 0x588e08
lea ecx, [esp + 0xc]
call fcn.005017b6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x489f5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00501426
jmp 0x48a029
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x489fe2
lea edx, [esp + 0x7c]
push 0x588e04
push edx
call fcn.004de654
add esp, 8
test eax, eax
je 0x489fe2
lea eax, [esp + 0x7c]
push 0x588e00
push eax
call fcn.004de654
add esp, 8
test eax, eax
je 0x489fe2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x489f72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00501426
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x48b280
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x48b2e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc