joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a90
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x401a90
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401ae7
xor ecx, ecx
xor edx, edx
jmp 0x401ac9
cmp ax, 0x5c
jne 0x401b50
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401ae7
cmp ax, 9
je 0x401ad5
cmp ax, 0x20
jne 0x401ab0
test ecx, ecx
je 0x401b3b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x401ac9
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x401b70
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401080
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x401b38
cmp ax, 0x20
je 0x401b38
jmp 0x401ae7
cmp ax, 0x22
jne 0x401ad9
and edx, 1
jne 0x401ad9
xor ecx, 1
jmp 0x401abd
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x401b00
Function at 0x100100b7
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x1005827c
call fcn.10025a34
cmp byte [0x10093bd8], 0
push dword [0x10093bd4]
je 0x100100da
call dword [sym.imp.kernel32.dll_FlsGetValue]
jmp 0x100100e0
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10010128
push 0x14
call fcn.10042aec
mov esi, eax
pop ecx
test esi, esi
je 0x10010130
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
push 8
pop ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.10002cc8
mov dword [esi], eax
push esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov ecx, dword [esi]
mov dword [ecx], esi
mov ecx, 0x10093bd4
call fcn.10042aec
mov eax, esi
call fcn.10025a05
ret
call fcn.10042aec
int3

Function at 0x10042aec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10042afb
pop dword [ebp - 0x3c]
mov eax, 0x8e549e34
sub eax, 0x7e507339
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4d2cd
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xe4be5fd6
sub ecx, 0xe4be1e5b
mov esi, eax
mov edi, 0x1009f200
add edi, dword [ebp - 0x3c]
mov ebx, 0x5f89682f
sub ebx, 0x15aaac
sub dword [ebp - 0x24], esi
mov edx, dword [edi]
xor dword [ebp - 0x30], 0x8e7dfc61
add edx, ebx
xor dword [ebp - 0x30], 0x729dce93
mov dword [esi], edx
add dword [ebp - 0x28], esi
add esi, 0xcc806f6c
add esi, 0x337f9098
add edi, 0x39e1bd96
sub edi, 0x39e1bd92
loop 0x10042b4f
add eax, 0x1ad5fe4c
add eax, 0xe52afa73
xor ebx, ebx
add ebx, eax
add eax, 0x61efc37b
add eax, 0x9e103c8a
mov ecx, 0xfea843bc
add ecx, 0x1157bc44
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x421b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421b98
mov eax, 1
add ebx, ebx
jne 0x421bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421bb0
jne 0x421bcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421bb0
xor ecx, ecx
sub eax, 3
jb 0x421be0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421c52
mov ebp, eax
add ebx, ebx
jne 0x421beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c1c
inc ecx
add ebx, ebx
jne 0x421c08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421bfd
jne 0x421c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421bfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c2d
jmp 0x421b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421c3c
add edi, ecx
jmp 0x421b9e
pop esi
mov edi, esi
mov ecx, 0x83f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421c5a
cmp byte [edi], 0xd
jne 0x421c5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421c5f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421cd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2293c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x229f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421c8c
mov ecx, edi
jns 0x421cbb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229f4]
or eax, eax
je 0x421cd1
mov dword [ebx], eax
add ebx, 4
jmp 0x421ca9
call dword [esi + 0x229f8]
popal
jmp section.UPX0
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push esi
push edi
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
add byte [edx], ch
push 0
push 0
push 0
push 1
push 0x4c6480
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 1
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test edi, edi
je 0x417c80
mov edx, dword [0x4c5ab0]
push 0x4c579c
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalKimoto_IDE_Plus
push 0
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
pop edi
mov dword [0x4c5aac], eax
pop esi
add esp, 0x14
ret

Function at 0x47c52d
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
ja 0x47c585
fcmovnu st(0), st(7)
fisttp dword [esi - 0x31d38427]
into
aas
fadd qword [esi - 0x11d74db5]
invalid
imul esi, ecx, 0xa1d17984
mov ah, 0x5d
sub al, 0xb
rcl dword [0xb8558164], 0x78
aad 0x86
mov ss, word [esi]
pushfd
adc eax, 0xf89436e4
sbb eax, 0x3d53aeac
dec ebp
inc eax
shr byte [esi + 0x7a7734a7], cl
in al, dx
wait
wait
adc al, 0xb2
pushal
mov ah, 1
mov word [ecx], ss
invalid
Function at 0x498be1
Capabilities:
Encode data using xor

Disassembly:
and al, 0xbc
adc byte [eax + eax*4 + 0x4e4594d0], 0xce
push eax
imul byte [ebx]
mov esp, 0x4ff96e3e
sub bh, byte cs:[eax - 0x3a]
inc eax
cwde
adc ah, byte [eax + 0x32]
aam 0x8c
or byte [ebx + ebx*2], cl
add byte [ebp + 0x1c], dh
pop esi
mov dword [edi + eax - 0x6dbf6b96], eax
inc ebp
pushfd
insb byte es:[edi], dx
invalid
xchg edx, eax
cmpsb byte [esi], byte es:[edi]
loope 0x498c1a
dec esi
dec ebp
jp 0x498b96
popfd
fild word [eax]
mov ch, byte [edi + 0x63d6e46a]
call 0x54de2009
jmp 0x30fa2529
cdq
mov al, 0x30
xor bh, byte [edi - 0x5694120]
sbb dword [0x277e60a0], eax
or ebp, ebx
mov ah, 0xb7
call 0xbdd83f2b
in al, 0xf4
dec ebp
invalid
or byte [ecx], bl
lodsb al, byte [esi]
xor byte [ecx + 0x1831aa68], 0xf9
mov byte [ecx], cl
lds ecx, fs:[edi - 0x7af3cf4b]
movsd dword es:[edi], dword [esi]
or byte [ecx - 0x6ef76ed8], dl
sub dword [esi], edi
dec esp
dec ebp
xor byte [eax*4 + 0x289108a5], cl
xchg ecx, eax
or byte [ecx + 0x4d4c3e29], dl
pop edx
xchg edi, eax
add eax, 0xd80dcde5
sbb byte [ecx + 0x662625e6], al
in eax, 0x53
scasd eax, dword es:[edi]
cmp eax, dword [ecx + 0x11]
fisubr word [esp + ebp + 0x445e577e]
rcr byte [esi - 0x4c], 1
jp 0x498c2b
jle 0x498bfa
jl 0x498c7b
mov ch, 0x85
xchg ebp, eax
adc al, 0xad
mov byte [ebp - 0x76b4c12c], bl
lodsb al, byte [esi]
sbb eax, 0xd0898988
lodsb al, byte [esi]
jb 0x498c67
test byte [eax - 0x2920238e], 0xdc
aad 0xb5
shl dword [esi], 1
daa
shl dword [edi + 8], 0xd7
mov esp, 0x257637
mov word [eax], es
add esi, ebp
dec ecx
fsubr dword [ecx - 0x49f75fb4]
adc esp, dword [ecx + ecx + 0x60]
lea ecx, [ecx - 0x26537673]
xor cl, al
dec eax
wait
invalid
Function at 0x4ba3ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2368
cmp edx, dword [eax]
je 0x4ba40f
add eax, 8
inc ecx
cmp eax, 0x4c23f8
jl 0x4ba400
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2368]
jne 0x4ba53d
mov eax, dword [0x4c6cfc]
cmp eax, 1
je 0x4ba517
test eax, eax
jne 0x4ba440
cmp dword [0x4c2294], 1
je 0x4ba517
cmp edx, 0xfc
je 0x4ba53d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba477
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004badd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba4ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf8fc
push edi
call fcn.004bd130
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004badd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bade0
lea eax, [ebp - 0xa0]
push 0x4bf8dc
push eax
call fcn.004bade0
push dword [esi + 0x4c236c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bade0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd0a4
add esp, 0x2c
pop edi
jmp 0x4ba53d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c236c]
push 0
push eax
push dword [esi]
call fcn.004bb260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x402540
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x40374f]
call dword [sym.imp.pdh.dll_PdhCloseQuery]
mov eax, 2
add eax, 8
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x40256e
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x4019a5], eax
ret
Function at 0x4031f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403223
mov ecx, dword [0x434f98]
push esi
add eax, ecx
push esi
push eax
mov dword [0x422a34], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403300
cmp eax, esi
jl 0x4032fa
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405f83
test eax, eax
je 0x4032ea
push dword [ebp + 8]
add dword [0x422a34], 4
call fcn.00403300
mov ebx, eax
cmp ebx, esi
jl 0x4032f8
cmp dword [ebp + 0x10], esi
jne 0x4032c6
cmp dword [ebp + 8], esi
jle 0x4032f8
mov esi, 0x41ea30
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403288
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405f83
test eax, eax
je 0x4032ea
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405fb2
test eax, eax
je 0x4032c2
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x422a34], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403277
jmp 0x4032f8
push 0xfffffffffffffffe
jmp 0x4032ec
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032d1
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032ef
push 0xfffffffffffffffd
pop eax
jmp 0x4032fa
mov ebx, dword [ebp - 4]
add dword [0x422a34], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405941
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
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], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405992
xor eax, eax
jmp 0x4059b9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4059b9
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40598e
call esi
pop esi
leave
ret 4

Function at 0x4059f3
Capabilities:
Create process on windows

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

Function at 0x405a36
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405edb
mov edi, eax
cmp edi, 0xffffffff
je 0x405b15
test byte [esp + 0x10], 1
push esi
je 0x405af7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405afd
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b06
xor eax, eax
inc eax
jmp 0x405b17
test byte [esp + 0x10], 4
jne 0x405b15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b1c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405de7
test bl, 8
mov dword [ebp - 8], eax
je 0x405b5b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fc8], eax
jmp 0x405cd8
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b75
test eax, eax
je 0x405c86
test bl, 2
je 0x405c86
mov esi, 0x42f290
push edi
push esi
call fcn.0040640a
cmp dword [ebp + 8], 0
je 0x405b94
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405b9a
push edi
call fcn.00405d2b
cmp word [edi], 0
jne 0x405baa
cmp word [0x42f290], 0x5c
jne 0x405bb5
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c7b
cmp word [ebp - 0x22c], 0x2e
jne 0x405bff
cmp word [ebp - 0x22a], 0
je 0x405c5e
cmp word [ebp - 0x22a], 0x2e
jne 0x405bff
cmp word [ebp - 0x228], 0
je 0x405c5e
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040640a
test byte [ebp - 0x258], 0x10
je 0x405c2a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c5e
push dword [ebp + 0xc]
push edi
call fcn.00405b1c
jmp 0x405c5e
push dword [ebp - 4]
push edi
call fcn.00405ad4
test eax, eax
jne 0x405c56
cmp dword [ebp - 4], eax
je 0x405c4e
push edi
push 0xfffffffffffffff1
call fcn.00405472
push 0
push edi
call fcn.004061d0
jmp 0x405c5e
inc dword [0x434fc8]
jmp 0x405c5e
push edi
push 0xfffffffffffffff2
call fcn.00405472
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bd7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c86
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cd8
cmp dword [ebp - 8], esi
jne 0x405c9a
inc dword [0x434fc8]
jmp 0x405cd8
push edi
call fcn.0040674d
test eax, eax
je 0x405cd8
push edi
call fcn.00405cdf
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405ad4
test eax, eax
jne 0x405cd0
cmp dword [ebp - 4], esi
je 0x405c92
push edi
push 0xfffffffffffffff1
call fcn.00405472
push esi
push edi
call fcn.004061d0
jmp 0x405cd8
push edi
push 0xffffffffffffffe5
call fcn.00405472
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405de7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa90
push esi
call fcn.0040640a
push esi
call fcn.00405d8a
mov edi, eax
test edi, edi
jne 0x405e08
xor eax, eax
jmp 0x405e60
push edi
call fcn.0040669e
test byte [0x434f3c], 0x80
je 0x405e25
mov ax, word [edi]
test ax, ax
je 0x405e04
cmp ax, 0x5c
je 0x405e04
sub edi, esi
sar edi, 1
jmp 0x405e3f
call fcn.0040674d
test eax, eax
je 0x405e39
test byte [eax], 0x10
je 0x405e04
push esi
call fcn.00405d2b
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e2b
call fcn.00405cdf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x405f00
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405f2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], 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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f7f
test edi, edi
jne 0x405f3c
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f79
Function at 0x406056
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430928], 0x55004e
mov dword [0x43092c], 0x4c
mov edi, 0x400
mov ebp, 0x430928
je 0x4060ac
push 1
push 0
push esi
call fcn.00405f00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061cb
cmp eax, edi
jg 0x4061cb
mov esi, 0x431128
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061cb
cmp eax, edi
jg 0x4061cb
push esi
push ebp
push str._ls_ls_r_n
push 0x430528
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f34]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040642c
push 4
push 0xc0000000
push esi
call fcn.00405f00
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061cb
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 0x4061c4
push edi
push esi
push ebp
call fcn.00405f83
test eax, eax
je 0x4061c4
push str._Rename__r_n
push esi
call fcn.00405e65
test eax, eax
jne 0x406162
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406197
add eax, 0xa
push 0x40a590
push eax
call fcn.00405e65
mov ebp, eax
test ebp, ebp
je 0x406193
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406184
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40617e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406199
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430528
push eax
call fcn.00405ebb
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405fb2
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
ret

Function at 0x4061d0
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4061f3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406056
pop ecx
pop ecx
inc dword [0x434fd0]
ret 8
Function at 0x4062d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406277
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406348
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406348
cmp dword [ebp + 0xc], 1
je 0x40634c
cmp dword [ebp + 0xc], 2
je 0x40634c
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406774
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406798
xor eax, eax
test eax, eax
je 0x4067ab
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067ab
xor ecx, ecx
jmp 0x4067ae
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43192c], 0
push esi
jne 0x40690e
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 0x4068e8
mov dword [ecx*4 + 0x431928], eax
inc ecx
cmp ecx, 0x100
jl 0x4068e3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40693f
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 + 0x431928]
xor eax, esi
inc ecx
dec edx
jne 0x406921
pop edi
not eax
pop esi
ret 0xc