joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50bb5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x50bb64
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50bd82
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
call fcn.004dfacc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40c]
mov ecx, dword [eax + 0x28]
lea eax, [ebp - 8]
call fcn.004041b4
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
push ebp
push 0x50bd24
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50bd13
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x50bc15
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x50bd98
call fcn.004041b4
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x506a60]
call fcn.0040cc2c
call fcn.00403918
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x50bc4d
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, 0x50bdb4
call fcn.004041b4
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x506a60]
call fcn.0040cc2c
call fcn.00403918
mov eax, dword [ebp - 0xc]
mov ecx, 0xf4240
xor edx, edx
div ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
cmp eax, dword [ebp - 0xc]
jge 0x50bcf6
push 0x50bdd0
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004097a4
push dword [ebp - 0x28]
push 0x50be00
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404228
mov edx, dword [ebp - 0x24]
mov eax, dword [0x511c4c]
mov eax, dword [eax]
call fcn.004e0154
push 0x30
push 0x50be0c
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.004097a4
push dword [ebp - 0x30]
push 0x50be34
push 0x50be58
push 0x50be64
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00404228
mov eax, dword [ebp - 0x2c]
call fcn.0040432c
mov edx, eax
mov ecx, 0x50be9c
mov eax, dword [0x512208]
mov eax, dword [eax]
call fcn.00450dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50bd1a
cmp dword [ebp - 0x10], 0xffffffff
je 0x50bd12
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x50dbb8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x50dcc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x415], 0
jne 0x50dbfc
mov dword [ebp - 0x14], 0xffffffff
jmp 0x50dc9f
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x41c]
call fcn.00403f80
lea eax, [ebp - 0x5c]
mov edx, 0x44
call fcn.004081c4
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x6c]
mov edx, 0x10
call fcn.004081c4
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040432c
push eax
push 0
movzx eax, word [ebp - 0xa]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x50dc6e
call fcn.004619ac
mov dword [ebp - 0x14], 0x20
jmp 0x50dc76
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x20
jne 0x50dc9f
cmp byte [ebp + 8], 0
je 0x50dc8d
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50dcca
lea eax, [ebp - 0x18]
call fcn.00403ee8
lea eax, [ebp - 8]
call fcn.00403ee8
ret
Function at 0x402a3d
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 [0x7a1fb0]
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 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00405efb
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x7a1fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
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 [0x7a1fb0], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x40537f
Capabilities:
Create process on windows

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

Function at 0x405448
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040583c
mov edi, eax
cmp edi, 0xffffffff
je 0x405489
test byte [esp + 0x10], 1
push esi
je 0x40546b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405471
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40547a
xor eax, eax
inc eax
jmp 0x40548b
test byte [esp + 0x10], 4
jne 0x405489
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405490
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040574e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a1f88], eax
jmp 0x405659
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054e9
test eax, eax
je 0x405607
test bl, 2
je 0x405607
mov esi, 0x79f518
push edi
push esi
call fcn.00405bd0
cmp dword [ebp + 8], 0
je 0x405508
push 0x40937c
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40550e
push edi
call fcn.004056a7
cmp byte [edi], 0
jne 0x40551c
cmp byte [0x79f518], 0x5c
jne 0x405527
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055fd
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040568b
cmp byte [eax], 0
je 0x40556d
cmp byte [ebp - 0x1c], 0
je 0x40556d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405583
mov al, byte [esi + 1]
test al, al
je 0x4055dc
cmp al, 0x2e
jne 0x405583
cmp byte [esi + 2], 0
je 0x4055dc
push esi
push ebx
call fcn.00405bd0
test byte [ebp - 0x14c], 0x10
je 0x4055a8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055dc
push dword [ebp + 0xc]
push edi
call fcn.00405490
jmp 0x4055dc
push dword [ebp - 4]
push edi
call fcn.00405448
test eax, eax
jne 0x4055d4
cmp dword [ebp - 4], eax
je 0x4055cc
push edi
push 0xfffffffffffffff1
call fcn.00404eb9
push 0
push edi
call fcn.00405a84
jmp 0x4055dc
inc dword [0x7a1f88]
jmp 0x4055dc
push edi
push 0xfffffffffffffff2
call fcn.00404eb9
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40554b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405607
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405659
cmp dword [ebp - 0xc], esi
jne 0x40561b
inc dword [0x7a1f88]
jmp 0x405659
push edi
call fcn.00405ed4
test eax, eax
je 0x405659
push edi
call fcn.00405660
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405448
test eax, eax
jne 0x405651
cmp dword [ebp - 4], esi
je 0x405613
push edi
push 0xfffffffffffffff1
call fcn.00404eb9
push esi
push edi
call fcn.00405a84
jmp 0x405659
push edi
push 0xffffffffffffffe5
call fcn.00404eb9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40574e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x79f918
push esi
call fcn.00405bd0
push esi
call fcn.004056f9
mov edi, eax
test edi, edi
jne 0x40576f
xor eax, eax
jmp 0x4057c1
push edi
call fcn.00405e3b
test byte [0x7a1f18], 0x80
je 0x405788
mov al, byte [edi]
test al, al
je 0x40576b
cmp al, 0x5c
je 0x40576b
sub edi, esi
jmp 0x4057a0
call fcn.00405ed4
test eax, eax
je 0x40579a
test byte [eax], 0x10
je 0x40576b
push esi
call fcn.004056a7
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40578c
call fcn.00405660
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 0x40583c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405861
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 0x405890
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 [0x409384]
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058d5
test edi, edi
jne 0x40589b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058cf
Function at 0x405908
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x7a02a0
push 0x4093a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405957
push 1
push 0
push esi
call fcn.00405861
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a7e
cmp eax, ebx
jg 0x405a7e
mov esi, 0x7a06a0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a7e
cmp eax, ebx
jg 0x405a7e
push esi
push edi
push str._s_s_r_n
push 0x79fea0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a1f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bf2
push 4
push 0xc0000000
push esi
call fcn.00405861
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a7e
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 0x405a77
push edi
push esi
push ebp
call fcn.004058d9
test eax, eax
je 0x405a77
push str._Rename__r_n
push esi
call fcn.004057c6
test eax, eax
jne 0x405a0d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405a42
add eax, 0xa
push 0x409388
push eax
call fcn.004057c6
mov ebp, eax
test ebp, ebp
je 0x405a3e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405a2f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405a29
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405a44
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x79fea0
push eax
call fcn.0040581c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405ab7
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 0x405b28
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 0x405b17
cmp dword [ebp + 0x14], 1
je 0x405b19
cmp dword [ebp + 0x14], 2
je 0x405b19
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 0x405f6d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a0aa4], 0
push esi
jne 0x405fa4
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 0x405f7e
mov dword [ecx*4 + 0x7a0aa0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f79
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fd5
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 + 0x7a0aa0]
xor eax, esi
inc ecx
dec edx
jne 0x405fb7
pop edi
not eax
pop esi
ret 0xc
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, 0x1a2c
mov edi, eax
mov dword [ebp - 8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x4017a1
sub edx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
push ebx
mov edx, esi
shr edx, 8
mov dword [ebp - 4], edx
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and dl, bl
mov ebx, esi
mov ecx, eax
shr ecx, 8
and dl, cl
mov dword [ebp - 0x14], ecx
mov ecx, esi
shr ecx, 0x18
shr ebx, 0x10
and cl, bl
mov bl, byte [ebp - 4]
xor dl, cl
mov ecx, dword [ebp - 0x10]
xor dl, byte [ecx + edi]
mov ecx, dword [ebp - 8]
lea esi, [eax*4]
xor esi, eax
add esi, esi
and bl, cl
xor esi, eax
xor dl, bl
xor dl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x14]
shl esi, 0x14
or esi, dword [ebp - 4]
mov byte [edi], dl
inc edi
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov eax, ecx
jne 0x401734
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [eax], 0
mov edx, eax
je 0x4017cb
mov ecx, eax
lea esp, [esp]
xor byte [edx], 0xf
inc ecx
cmp byte [ecx], 0
mov edx, ecx
jne 0x4017c0
ret

Function at 0x4017d0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push str._ixnjSBfl__iSXfak_xSLzjaYjf_aS_za
lea eax, [ebp - 0x68]
push eax
xor edi, edi
call esi
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x401801
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4017f6
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp dword [ebp - 4], edi
je 0x401867
push 0x4042b4
lea eax, [ebp - 0x68]
push eax
call esi
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x40183b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401830
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 4]
push eax
push ebx
push 1
push 0
lea ecx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40185d
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 1
cmp dword [ebp + 8], esi
jle 0x4018da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x401894
cmp cl, 0x2f
jne 0x4018d3
mov cl, byte [eax + 1]
cmp cl, 0x69
je 0x4018b2
cmp cl, 0x70
jne 0x4018d3
add eax, 3
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [0x405024], eax
jmp 0x4018d3
cmp byte [eax + 3], 0
lea edx, [eax + 3]
mov eax, edx
je 0x4018cb
mov ecx, edx
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4018c0
push edx
push str.165.194.123.67
call ebx
inc esi
cmp esi, dword [ebp + 8]
jl 0x401885
pop ebx
pop esi
pop ebp
ret
Function at 0x401bb0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [str.__kzlAnbj]
mov edx, dword [0x404150]
push esi
push edi
mov ecx, 0xb
mov esi, str._I_XN_JSBfl__iSXfak_x_A_SLzjaYjf_aS
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40414c]
push 0x58
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x284]
push 0
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x288], edx
call fcn.00402af0
mov ecx, dword [str.LKYjf_a]
mov edx, dword [0x404158]
mov ax, word [0x40415c]
push 0x59
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ecx
mov cl, byte [0x40415e]
lea edx, [ebp - 0x221]
push 0
push edx
mov word [ebp - 0x224], ax
mov byte [ebp - 0x222], cl
call fcn.00402af0
push 0x190
lea eax, [ebp - 0x1c8]
push 0
push eax
call fcn.00402af0
mov ecx, dword [ebp + 0xc]
add esp, 0x24
push 0x40415f
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x38], 0
lea eax, [ebp - 0x38]
je 0x401c7b
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401c70
cmp byte [ebp + 8], 1
jne 0x401d3d
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d3d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [ebp - 0x290]
mov dword [ebp + 8], 2
cmp byte [esi], 0
mov ecx, esi
je 0x401cdb
mov eax, esi
lea ebx, [ebx]
xor byte [ecx], 0xf
inc eax
cmp byte [eax], 0
mov ecx, eax
jne 0x401cd0
push 0x100
lea ecx, [ebp - 0x390]
push 0
push ecx
mov dword [ebp - 8], 0x100
call fcn.00402af0
mov ecx, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x390]
push eax
push 0
push 0
push esi
push ecx
call edi
test eax, eax
jne 0x401d2a
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x390]
push edx
push eax
call ebx
mov ecx, dword [ebp + 0xc]
push 0x404160
push ecx
call ebx
add esi, 0x64
dec dword [ebp + 8]
jne 0x401cc1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401eb0
Capabilities:
Create directory
Create process on windows
Encode data using xor
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push 0x100
lea eax, [ebp - 0x270]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.L5S__hnbKnnSFafjlg
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x70], 0
lea eax, [ebp - 0x70]
je 0x401ef2
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401ee7
push esi
push edi
push 0
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x80
push 3
push 0
push 1
mov edi, eax
push 0x80000000
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40208b
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 9
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push edx
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x401fba
cmp edi, 0xb7
je 0x401fba
cmp edi, 3
jne 0x401feb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.L5S__hnb_IfcjSL_bb_a_IfcjSFafjlg
lea eax, [ebp - 0x70]
push eax
call esi
lea eax, [ebp - 0x70]
call fcn.004017b0
push 0
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.L5S__hnb_IfcjSL_bb_a_IfcjSFafjlgSFafjlg_jwj
lea edx, [ebp - 0x170]
push edx
call esi
lea eax, [ebp - 0x170]
call fcn.004017b0
jmp 0x401feb
push str.L5S__hnbKnnSFafjlgSFafjlg_jwj
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x170], 0
lea eax, [ebp - 0x170]
je 0x401feb
mov ecx, eax
lea ecx, [ecx]
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401fe0
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x270]
push str.__s___run
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40208a
mov edx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ebx, [ebp - 0x270]
call fcn.004017d0
test eax, eax
je 0x40208a
push 0
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret