joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5d32509e
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5a15545d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x36d44709
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x12d24fb0
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00404502
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00404502
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00404502
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00404502
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00404502
mov dword [0x41203c], eax
call fcn.00404502
test eax, eax
jge 0x402550
push 8
call fcn.00404502
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00404502
pop ecx
push 1
call fcn.00404502
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00404502
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00404502
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00404502
jmp 0x402495

Function at 0x404502
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x404511
pop dword [ebp - 0x18]
mov eax, 0x404511
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3a1c6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xa34c7aa0
add ecx, 0x5cb3d104
mov edi, eax
mov ebx, 0x9e7bb502
add ebx, 0x61c586c2
add ebx, dword [ebp - 0x18]
mov edx, 0x5c0629fc
add edx, 0xf0b1d2a6
xor dword [ebp - 8], 0x3bbabdce
mov esi, dword [ebx]
xor esi, edx
xor dword [ebp - 0xc], 0xdc09215c
mov dword [edi], esi
sub dword [ebp - 4], 0xc44e917
add edi, 0xd105490c
add edi, 0x2efab6f8
add ebx, 0xd2785956
sub ebx, 0xd2785952
loop 0x404566
add eax, 0x7832dfd4
add eax, 0x87ce418f
mov ebx, eax
add eax, 0xca3fd37d
sub eax, 0xca3fd378
mov ecx, 0x3e38e614
add ecx, 0xc20719ec
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40107e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x421278
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x421278], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4010b9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4016cc
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 0x401a42
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 0x401a5f
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x401b4e
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 0x401bbf
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 0x401bae
cmp dword [ebp + 0x14], 1
je 0x401bb0
cmp dword [ebp + 0x14], 2
je 0x401bb0
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 0x401da5
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 0x401dcf
add eax, dword [0x423cf8]
push edi
push edi
push eax
push dword [0x409014]
mov dword [0x41ae24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00404b6b
cmp eax, edi
jl 0x401ec8
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 0x401ec4
cmp dword [ebp - 4], esi
jne 0x401ec4
push dword [ebp + 8]
add dword [0x41ae24], esi
call fcn.00404b6b
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x401ec7
cmp dword [ebp + 0x10], edi
jne 0x401e93
cmp dword [ebp + 8], edi
jle 0x401ebf
mov esi, 0x41ae28
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x401e43
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 0x401ec4
cmp edi, dword [ebp - 4]
jne 0x401ec4
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 0x401e8f
cmp dword [ebp + 0x14], edi
jne 0x401e8f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ae24], eax
cmp dword [ebp + 8], 0
jg 0x401e36
jmp 0x401ebf
push 0xfffffffffffffffe
jmp 0x401ec6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x401e9e
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 0x401ec4
mov eax, dword [ebp - 4]
add dword [0x41ae24], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x401ec7
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x402702
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.00401d6f
mov esi, dword [esp + 0x18]
test eax, eax
je 0x402726
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40285f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4216c0], 0x4c554e
mov edi, 0x400
mov ebp, 0x4216c0
test esi, esi
je 0x40276a
push 1
push 0
push esi
call fcn.004016cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x402865
cmp eax, edi
jg 0x402865
push edi
mov esi, 0x422000
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x402865
cmp eax, edi
jg 0x402865
push esi
push ebp
push str._s_s_r_n
push 0x421ac0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423cac]
push dword [eax + 0x128]
push esi
call fcn.00401ece
push 4
push 0xc0000000
push esi
call fcn.004016cc
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x40285f
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 0x402858
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 0x402858
cmp edi, dword [esp + 0x18]
jne 0x402858
push str._Rename__r_n
push esi
call fcn.0040327a
test eax, eax
jne 0x40286c
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00401717
add edi, 0xa
mov eax, edi
push ebx
push 0x421ac0
add eax, esi
push eax
call fcn.00402142
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 [0x423d70]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4075fc
add eax, 0xa
push eax
call fcn.0040327a
test eax, eax
je 0x402823
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x402893
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x402888
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x402825

Function at 0x40298c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4212c0
push esi
call fcn.00401717
push esi
call fcn.00402cde
mov edi, eax
test edi, edi
jne 0x4029ad
xor eax, eax
jmp 0x402a05
push edi
call fcn.00402297
test byte [0x423d08], 0x80
je 0x4029c6
mov al, byte [edi]
test al, al
je 0x4029a9
cmp al, 0x5c
je 0x4029a9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4029e6
push esi
call fcn.00402bdf
test eax, eax
je 0x4029e0
test byte [eax], 0x10
je 0x402a0a
push esi
call fcn.004026d5
push esi
call ebx
cmp eax, edi
jg 0x4029d1
push esi
call fcn.00401cc6
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 0x402a04
Function at 0x402a14
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.0040298c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x402a49
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423d68], eax
jmp 0x402bda
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x402a64
test eax, eax
je 0x402b85
test cl, 2
je 0x402b85
push edi
push ebx
mov esi, 0x422400
push esi
call fcn.00401717
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x402a87
push str..
push esi
call edi
jmp 0x402a8d
push ebx
call fcn.004026d5
cmp byte [ebx], 0
jne 0x402a9b
cmp byte [0x422400], 0x5c
jne 0x402aa3
push 0x407260
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 0x402b7a
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00402970
cmp byte [eax], 0
je 0x402ae5
cmp byte [ebp - 0x18], 0
je 0x402ae5
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x402afb
mov al, byte [esi + 1]
test al, al
je 0x402b59
cmp al, 0x2e
jne 0x402afb
cmp byte [esi + 2], 0
je 0x402b59
push esi
push edi
call fcn.00401717
test byte [ebp - 0x148], 0x10
je 0x402b20
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x402b59
push dword [ebp + 0xc]
push ebx
call fcn.00402a14
jmp 0x402b59
push ebx
call fcn.00401a42
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402b51
test byte [ebp + 0xc], 4
je 0x402b49
push ebx
push 0xfffffffffffffff1
call fcn.00402c06
push 0
push ebx
call fcn.00402702
jmp 0x402b59
inc dword [0x423d68]
jmp 0x402b59
push ebx
push 0xfffffffffffffff2
call fcn.00402c06
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402ac7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x402b84
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402bd9
cmp dword [ebp - 8], esi
je 0x402bc9
push ebx
call fcn.00402bdf
test eax, eax
je 0x402bd9
push ebx
call fcn.00401cc6
push ebx
call fcn.00401a42
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402bd1
test byte [ebp + 0xc], 4
je 0x402bc9
push ebx
push 0xfffffffffffffff1
call fcn.00402c06
push esi
push ebx
call fcn.00402702
jmp 0x402bd9
inc dword [0x423d68]
jmp 0x402bd9
push ebx
push 0xffffffffffffffe5
call fcn.00402c06
pop esi
pop ebx
leave
ret 8
Function at 0x403209
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x422804], 0
jne 0x403247
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 0x40321d
mov dword [ecx*4 + 0x422800], eax
inc ecx
cmp ecx, 0x100
jl 0x403218
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x403274
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 + 0x422800]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x403255
not eax
pop ebp
ret 0xc

Function at 0x4032d0
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 0x403314
test edi, edi
jne 0x4032db
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40330e

Function at 0x403431
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 [0x423d90]
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 0x4034c6
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x403483
cmp dword [ebp + 0x10], ebx
jne 0x4034ba
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00403431
test eax, eax
jne 0x403495
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40346a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00401d6f
cmp eax, ebx
je 0x4034cd
push ebx
push dword [0x423d90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4034c6
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 [0x423d90], ebx
jne 0x4034c3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4034c3
jmp 0x4034c6
Function at 0x404b6b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ae24]
sub esi, dword [0x41ee30]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x423d00], eax
cmp esi, ebx
jle 0x404cc9
push dword [0x41ee2c]
call fcn.00403318
push ebx
push ebx
push dword [0x41ee30]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ae20], esi
mov dword [0x40ad94], ebx
mov ebp, 0x412e20
mov eax, dword [0x41ee28]
sub eax, dword [0x41ee2c]
mov edi, 0x4000
cmp eax, edi
jg 0x404be0
mov edi, eax
push edi
mov esi, 0x41ae28
push esi
call fcn.00401a10
test eax, eax
je 0x404cdb
add dword [0x41ee2c], edi
mov dword [0x412db0], esi
mov dword [0x412db4], edi
cmp dword [0x423cac], ebx
je 0x404c37
cmp dword [0x423d80], ebx
jne 0x404c37
mov eax, dword [0x41ae20]
sub eax, dword [0x41ae24]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ee30]
mov dword [0x40ad94], eax
call fcn.00401301
pop ecx
mov ecx, 0x412d98
mov dword [0x412db8], ebp
mov dword [0x412dbc], 0x8000
call fcn.0040612d
test eax, eax
js 0x404ce0
mov esi, dword [0x412db8]
sub esi, ebp
je 0x404c95
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 0x404ce5
cmp esi, dword [esp + 0x10]
jne 0x404ce5
add dword [0x41ee30], esi
cmp dword [0x412db4], ebx
jne 0x404c06
jmp 0x404ca1
cmp dword [0x412db4], ebx
jne 0x404ce0
cmp edi, ebx
je 0x404ce0
mov eax, dword [0x41ae24]
mov ecx, eax
sub ecx, dword [0x41ee30]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x404bca
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00401301
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x404cd3
push 0xfffffffffffffffd
pop eax
jmp 0x404cd3
push 0xfffffffffffffffe
jmp 0x404ce2
Function at 0x402480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp dword [ecx], ebx
je 0x4024c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.004024d0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4024bb
mov dword [esi], ebx
call fcn.00413e70
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00429b60
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x403f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x54c03c]
mov esi, ecx
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x38], 0
je 0x404030
cmp byte [esi + 0x3d], 0
je 0x404030
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
dec edi
push edi
call dword [eax + 0xc]
xor ebx, ebx
cmp eax, edi
je 0x404030
lea edi, [ebp - 0x28]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, edi
push ebx
push 8
call fcn.00404196
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
jmp 0x403fe6
mov esi, ebx
mov byte [ebx + 0x3d], 0
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
jbe 0x403fb7
mov eax, dword [ebp - 0x28]
sub edi, eax
je 0x403fce
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004e9192
add esp, 0x10
cmp edi, eax
jne 0x40401e
cmp byte [esi + 0x3d], 0
je 0x404025
test edi, edi
lea edi, [ebp - 0x28]
jne 0x403fe6
mov ecx, edi
push 0
push 8
call fcn.00404110
mov ecx, dword [esi + 0x38]
cmp dword [ebp - 0x14], 0xf
mov ebx, esi
mov eax, edi
jbe 0x403ff6
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, dword [ecx]
lea esi, [ebp - 0x2c]
add edx, eax
push esi
push edx
push eax
push dword [ebp - 0x34]
call dword [edi + 0x20]
mov cl, 1
test eax, eax
mov dword [ebp - 0x30], ecx
je 0x403fa2
cmp eax, 1
mov esi, ebx
je 0x403fa8
cmp eax, 3
je 0x404025
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
call fcn.00401b04
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret