joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6108712b
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x6108e958]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x6108e960]
test edx, edx
jne 0x61087179
test eax, eax
je 0x6108718c
mov edx, eax
mov dword [0x6108e958], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x6108718c
cmp ecx, ebx
jb 0x6108718c
cmp ecx, edi
jbe 0x61087267
mov edx, eax
test eax, eax
jmp 0x610871ae
test edx, edx
je 0x610871a9
mov eax, dword [edx + 8]
test eax, eax
je 0x610871a9
cmp eax, ebx
jb 0x610871a9
cmp eax, edi
jbe 0x61087267
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x6108e958], edx
jne 0x61087192
and esi, 0xffff0000
mov ecx, esi
cmp esi, ebx
jbe 0x6108730d
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6108730d
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x61087200
cmp dword [ebp - 0x30], eax
jae 0x61087212
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x610871c6
jmp 0x6108730d
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x6108e958], edx
test edx, edx
je 0x6108730d
mov eax, dword [0x6108e960]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x6108e960], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
sub esi, 1
jne 0x61087257
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x61087311
cmp esi, edi
ja 0x61087311
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x61087313
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x61087311
mov edx, dword [ebp - 0x14]
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x61087308
cmp edx, eax
jb 0x61087308
movzx ecx, si
test ecx, ecx
je 0x610872d3
sub eax, ecx
add esi, eax
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10000]
add ecx, edx
cmp eax, ecx
ja 0x61087308
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x6108e958], edx
test edx, edx
jne 0x61087233
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, edx
cmp esi, edi
jb 0x61087293
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x61087bcb
Capabilities:
Set thread local storage value

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
and eax, 0xffffffa9
add eax, 0x57
ret
Function at 0x61088243
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
push 0x54
xor esi, esi
lea eax, [ebp - 0x58]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
mov ebx, dword [ebx + 0x30]
lea edx, [ebp - 0x258]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x61088272
lea edi, [ebp - 0x258]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x6108828a
mov eax, dword [ebp - 4]
mov esi, str._fmt
push 4
pop edx
mov ecx, 0x120
mov dword [ebp - 0x4c], eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x44], eax
add eax, edx
mov dword [ebp - 0x34], ecx
xor ecx, ecx
push ecx
movsd dword es:[edi], dword [esi]
push ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x58]
push eax
movsw word es:[edi], word [esi]
push str.REGISTRYMACHINESOFTWARECrypto_ProCryptographyCurrentVersionDebug
mov esi, 0x4000000
mov dword [ebp - 0x50], ebx
push ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edx
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a4c
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 [0x447010]
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 0x402ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a9d
cmp dword [ebp + 0x10], ebx
jne 0x402ad4
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a4c
test eax, eax
jne 0x402aaf
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.0040605d
cmp eax, ebx
je 0x402ae7
push ebx
push dword [0x447010]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ae0
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
cmp dword [0x447010], ebx
jne 0x402add
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402add
jmp 0x402ae0
Function at 0x402f2e
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 0x402f5b
mov ecx, dword [0x446fb8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41fd04], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403059
cmp eax, edi
jl 0x403052
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 0x40304f
cmp dword [ebp - 4], esi
jne 0x40304f
push dword [ebp + 8]
add dword [0x41fd04], esi
call fcn.00403059
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403052
cmp dword [ebp + 0x10], edi
jne 0x40301e
cmp dword [ebp + 8], edi
jle 0x40304a
mov esi, 0x41bd00
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fce
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 0x40304f
cmp edi, dword [ebp - 4]
jne 0x40304f
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 0x40301a
cmp dword [ebp + 0x14], edi
jne 0x40301a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41fd04], eax
cmp dword [ebp + 8], 0
jg 0x402fc1
jmp 0x40304a
push 0xfffffffffffffffe
jmp 0x403051
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403029
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 0x40304f
mov eax, dword [ebp - 4]
add dword [0x41fd04], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403052
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403059
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41fd04]
sub esi, dword [0x413c70]
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 [0x446f6c], eax
jle 0x4031c3
push dword [0x427d14]
call fcn.00403207
push ebx
push ebx
push dword [0x413c70]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x427d10], esi
mov dword [0x41fd00], ebx
mov ebp, 0x413d00
mov eax, dword [0x41fd08]
mov edi, 0x4000
sub eax, dword [0x427d14]
cmp eax, edi
jg 0x4030ce
mov edi, eax
mov esi, 0x41bd00
push edi
push esi
call fcn.004031d5
test eax, eax
je 0x4031b5
add dword [0x427d14], edi
mov dword [0x413c90], esi
mov dword [0x413c94], edi
cmp dword [0x446f70], ebx
je 0x403125
cmp dword [0x447000], ebx
jne 0x403125
mov eax, dword [0x427d10]
push ebx
sub eax, dword [0x41fd04]
sub eax, dword [esp + 0x1c]
add eax, dword [0x413c70]
mov dword [0x41fd00], eax
call fcn.00402be9
pop ecx
mov ecx, 0x413c78
mov dword [0x413c98], ebp
mov dword [0x413c9c], 0x8000
call fcn.0040615a
test eax, eax
jl 0x4031be
mov esi, dword [0x413c98]
sub esi, ebp
je 0x40317f
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 0x4031ba
cmp esi, dword [esp + 0x10]
jne 0x4031ba
add dword [0x413c70], esi
cmp dword [0x413c94], ebx
jne 0x4030f4
jmp 0x40318b
cmp dword [0x413c94], ebx
jne 0x4031be
cmp edi, ebx
je 0x4031be
mov eax, dword [0x41fd04]
mov ecx, eax
sub ecx, dword [0x413c70]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030b8
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031c3
or eax, 0xffffffff
jmp 0x4031cd
push 0xfffffffffffffffe
jmp 0x4031c0
push 0xfffffffffffffffd
pop eax
jmp 0x4031cd
push 1
call fcn.00402be9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40547f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407310
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407300
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4054d0
xor eax, eax
jmp 0x4054f7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4054f7
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4054cc
call esi
pop esi
leave
ret 4

Function at 0x405531
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43e568], 0x44
push eax
xor eax, eax
push 0x43e568
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 0x40556c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4055f6
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.004058a5
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40562a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446fe8], eax
jmp 0x4057be
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405648
test eax, eax
je 0x405769
test byte [ebp + 0xc], 2
je 0x405769
mov esi, 0x439d68
push edi
push esi
call fcn.00405cd1
test ebx, ebx
je 0x405665
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40566b
push edi
call fcn.0040580b
cmp byte [edi], 0
jne 0x405679
cmp byte [0x439d68], 0x5c
jne 0x405684
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
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 0x40575f
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004057ef
cmp byte [eax], 0
je 0x4056ca
cmp byte [ebp - 0x18], 0
je 0x4056ca
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4056e0
mov al, byte [esi + 1]
test al, al
je 0x40573e
cmp al, 0x2e
jne 0x4056e0
cmp byte [esi + 2], 0
je 0x40573e
push esi
push ebx
call fcn.00405cd1
test byte [ebp - 0x148], 0x10
je 0x405705
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40573e
push dword [ebp + 0xc]
push edi
call fcn.004055f6
jmp 0x40573e
push edi
call fcn.00405989
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405736
test byte [ebp + 0xc], 4
je 0x40572e
push edi
push 0xfffffffffffffff1
call fcn.00404fbd
push 0
push edi
call fcn.00405a1f
jmp 0x40573e
inc dword [0x446fe8]
jmp 0x40573e
push edi
push 0xfffffffffffffff2
call fcn.00404fbd
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405769
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4057be
cmp dword [ebp - 8], esi
jne 0x40577e
inc dword [0x446fe8]
jmp 0x4057be
push edi
call fcn.00405fcc
test eax, eax
je 0x4057be
push edi
call fcn.004057c4
push edi
call fcn.00405989
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4057b6
test byte [ebp + 0xc], 4
je 0x405776
push edi
push 0xfffffffffffffff1
call fcn.00404fbd
push esi
push edi
call fcn.00405a1f
jmp 0x4057be
push edi
push 0xffffffffffffffe5
call fcn.00404fbd
pop edi
pop esi
leave
ret 8
Function at 0x4058a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bd68
push esi
call fcn.00405cd1
push esi
call fcn.00405858
mov edi, eax
test edi, edi
jne 0x4058c6
xor eax, eax
jmp 0x405918
push edi
call fcn.00405f33
test byte [0x446f78], 0x80
je 0x4058df
mov al, byte [edi]
test al, al
je 0x4058c2
cmp al, 0x5c
je 0x4058c2
sub edi, esi
jmp 0x4058f7
call fcn.00405fcc
test eax, eax
je 0x4058f1
test byte [eax], 0x10
je 0x4058c2
push esi
call fcn.0040580b
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058e3
call fcn.004057c4
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 0x405989
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 0x4059a5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4059a8
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 0x4059d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec 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 0x405a1b
test edi, edi
jne 0x4059e2
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a15
Function at 0x405a1f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.0040605d
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a43
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405b7c
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43e6f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43e6f0
je 0x405a87
push 1
push 0
push esi
call fcn.004059a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405b82
cmp eax, edi
jg 0x405b82
mov esi, 0x43e168
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405b82
cmp eax, edi
jg 0x405b82
push esi
push ebp
push str._s_s_r_n
push 0x43dd68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446f70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405cf3
push 4
push 0xc0000000
push esi
call fcn.004059a8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405b7c
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 0x405b75
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 0x405b75
cmp edi, dword [esp + 0x18]
jne 0x405b75
push str._Rename__r_n
push esi
call fcn.0040591d
test eax, eax
jne 0x405b89
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405cd1
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43dd68
push eax
call fcn.00405969
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 [0x446ff0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.0040591d
test eax, eax
je 0x405b40
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405bb0
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405ba5
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b42
Function at 0x405bb8
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 0x405c29
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
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 0x405c18
cmp dword [ebp + 0x14], 1
je 0x405c1a
cmp dword [ebp + 0x14], 2
je 0x405c1a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405ff3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406017
xor eax, eax
test eax, eax
je 0x406029
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406029
xor ecx, ecx
jmp 0x40602c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x4060cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43eaf4], 0
push esi
jne 0x406103
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 0x4060dd
mov dword [ecx*4 + 0x43eaf0], eax
inc ecx
cmp ecx, 0x100
jl 0x4060d8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406134
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 + 0x43eaf0]
xor eax, esi
inc ecx
dec edx
jne 0x406116
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x48d21c8d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x21a133f6
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10003057
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100509fa
call fcn.1004f6c8
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], edi
push 0x48
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.1001f06c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
and dword [ebp - 0x10], ebx
push eax
call fcn.10005672
mov byte [ebp - 4], 1
lea esi, [edi + 0x30]
mov dword [ebp - 0x10], esi
and dword [esi], ebx
push 0x1c
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.1001f06c
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.100057cb
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 4
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
and dword [ebp - 0x10], ebx
push eax
call fcn.1000536e
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.1000315a
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x10003270
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x1000328e
mov edx, dword [edi + 0xc]
lea eax, [edx + 1]
mov dword [edi + 0xc], eax
mov dword [ecx + 4], edx
xor ecx, ecx
mov dword [ebp + 0xc], edx
mov ebx, 0x811c9dc5
mov esi, ecx
movzx eax, byte [ebp + esi + 0xc]
xor eax, ebx
imul ebx, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x1000329a
mov esi, dword [edi + 0x28]
and esi, ebx
mov ebx, dword [edi + 0x1c]
mov eax, dword [ebx + esi*8 + 4]
cmp eax, dword [edi + 0x14]
je 0x100032d1
mov esi, dword [ebx + esi*8]
jmp 0x100032ca
cmp eax, esi
je 0x100032d1
mov eax, dword [eax + 4]
cmp edx, dword [eax + 8]
jne 0x100032c3
jmp 0x100032d3
mov eax, ecx
test eax, eax
cmove eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x14]
pop edi
pop esi
pop ebx
je 0x100032eb
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov cl, 1
mov al, cl
pop ebp
ret 8

Function at 0x100068a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov ebx, ecx
push eax
push 0x40
push 5
mov ebp, dword [ebx]
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x10]
call fcn.100080b0
mov esi, dword [ebx + 0xc]
mov edi, eax
sub esi, dword [ebx + 8]
push esi
push dword [ebx + 8]
push dword [ebx]
call fcn.10020840
push edi
push 5
pop edx
mov ecx, ebp
call fcn.10007a4a
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret