joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402ee4
pop dword [ebp - 0x24]
mov eax, 0xe2472bfb
sub eax, 0xe206fd17
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x277b8036
add dword [ebp - 0x34], 0x26d6c515
mov dword [ebp - 0x30], 0x806288ff
sub dword [ebp - 0x30], 0x4e2f3cba
mov dword [ebp - 0x2c], 0xb6695461
add dword [ebp - 0x2c], 0x95e2efcd
mov dword [ebp - 0x28], 0x23b98395
sub dword [ebp - 0x28], 0x23b98395
lea eax, [ebp - 0x34]
push eax
mov eax, 0xecba6031
add eax, 0x138620d3
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xa7b52df9
sub dword [ebp - 0x34], 0x3342c4a3
mov dword [ebp - 0x30], 0xda4bf4c3
add dword [ebp - 0x30], 0x67206cb2
mov dword [ebp - 0x2c], 0xeae844ee
sub dword [ebp - 0x2c], 0x8778d882
mov dword [ebp - 0x28], 0x3ee3cb8b
sub dword [ebp - 0x28], 0x3ee3cb8b
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x36af907e
sub eax, 0x366f0f7e
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3523f
push 0
call eax
mov ecx, 0xbf9d102c
sub ecx, 0xbf9ccfc1
mov esi, eax
mov edx, 0x27375e7a
add edx, 0xd90f8586
add edx, dword [ebp - 0x24]
mov ebx, 0xca2b8f7d
sub dword [ebp - 0x18], edi
mov edi, dword [edx]
xor dword [ebp - 0x10], ebx
add edi, ebx
sub dword [ebp - 0x1c], eax
mov dword [esi], edi
xor dword [ebp - 0x20], edx
add esi, 0xc0720a2
sub esi, 0xc07209e
add edx, 0xc1576a0e
sub edx, 0xc1576a0a
loop 0x403000
add eax, 0x230443d0
sub eax, 0x23034f51
xor ebx, ebx
add ebx, eax
add eax, 0x8d003870
sub eax, 0x8d00386b
mov ecx, 0x2b1e21d2
sub ecx, 0x2ade21d2
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10005dd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xca
jne 0x10005dfd
call fcn.10009300
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10005df6
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10005e77
mov eax, dword [esi + 0x1a6]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10005e62
mov eax, dword [esi + 8]
test eax, eax
je 0x10005e1f
mov ecx, esi
call dword [eax]
mov edx, dword [esi + 0x1a6]
mov ecx, esi
call dword [edx]
test eax, eax
je 0x10005e5e
cmp eax, 2
je 0x10005e62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10005e14
cmp eax, 3
je 0x10005e43
cmp eax, 1
jne 0x10005e14
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x10005e14
mov edx, dword [esi + 0x132]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10005e14
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x8c]
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.10005ea0
pop esi
ret
cmp eax, 0xcc
je 0x10005e95
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
mov ecx, esi
call fcn.10005ea0
pop esi
ret

Function at 0x10008420
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 4], ebx
call fcn.100097e0
mov edx, 0x50
mov ecx, edi
mov dword [esp + 0x10], eax
call fcn.100097a0
mov esi, eax
cmp esi, ebx
jne 0x10008463
mov ecx, edi
call fcn.100097f0
mov eax, dword [edi]
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov dword [esi], fcn.10008550
mov dword [esi + 4], fcn.100086a0
mov dword [esi + 8], fcn.10008740
mov dword [esi + 0xc], fcn.100087f0
mov dword [esi + 0x10], 0x100088a0
mov dword [esi + 0x14], 0x10008910
mov dword [esi + 0x18], 0x10008980
mov dword [esi + 0x1c], 0x10008b00
mov dword [esi + 0x20], 0x10008cd0
mov dword [esi + 0x24], fcn.10008eb0
mov dword [esi + 0x28], 0x10008fa0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x100084be
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x1000853e
lea ecx, [esp + 0xf]
push ecx
lea edx, [esp + 0x14]
push edx
push str._ld_c
push eax
mov byte [esp + 0x1f], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x1000853e
mov al, byte [esp + 0xf]
cmp al, 0x6d
je 0x10008519
cmp al, 0x4d
jne 0x1000852b
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x1000852f
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10002704
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x100c], 0
jne 0x10002768
inc dword [0x10005050]
mov eax, dword [0x10005050]
or dword [esi + 0x1010], 2
push 0x40
push 0x1000
push 0x10
push 0
mov dword [esi + 0x1c98], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x100c], eax
mov ecx, dword [0x10005060]
mov dword [eax + 0xc], ecx
mov dword [0x10005060], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x10002ca3
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x100c]
pop esi
ret

Function at 0x100029df
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [esp + 8], 1
mov dword [0x10005048], eax
jne 0x10002a2f
push 0x1000504c
push 0x40
push 4
push 0x1000505c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x1000505c], 0xc2
mov dword [0x1000504c], eax
mov dword [0x10005054], eax
mov dword [0x10005068], eax
mov dword [0x10005058], eax
mov dword [0x10005050], eax
mov dword [0x10005060], eax
mov byte [0x1000505e], al
xor eax, eax
inc eax
ret 0xc
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004062c3
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004068d1
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x797220
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x403190
mov eax, dword [0x7a85b8]
add eax, ecx
push eax
call fcn.00403131
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40a010]
call fcn.00406933
test eax, eax
je 0x403357
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x4032f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40c980], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov byte [0x40c968], 0xb
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x4032f1
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x793220
call fcn.0040311b
test eax, eax
je 0x403357
sub dword [esp + 0x10], ebp
mov dword [0x40c95c], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x40c958], 0x793220
push 0x40c958
mov dword [0x40c960], ebp
mov dword [0x40c964], ebx
call fcn.00406e93
mov dword [esp + 0x28], eax
test eax, eax
js 0x4032f5
mov eax, dword [0x40c960]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7a8654], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4032aa
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x40326e
test ecx, ecx
jne 0x4032aa
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00405d13
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4032e9
test edi, edi
jne 0x4032ce
push eax
push ebp
push dword [esp + 0xbc]
call fcn.004069f6
test eax, eax
je 0x40333c
mov eax, dword [esp + 0x18]
jmp 0x4032da
mov ebp, dword [0x40c960]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 4
jne 0x40321b
jmp 0x4032f1
test ecx, ecx
jg 0x4031e6
mov eax, esi
jmp 0x40335a
push 0xfffffffffffffffc
jmp 0x403359
test edi, edi
jne 0x403340
test eax, eax
jle 0x4032f1
mov ebp, 0x793220
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.0040311b
test eax, eax
je 0x403357
push edi
push ebp
push dword [esp + 0xbc]
call fcn.004069f6
test eax, eax
je 0x40333c
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x403306
jmp 0x4032f1
push 0xfffffffffffffffe
jmp 0x403359
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.0040311b
test eax, eax
jne 0x4032f1
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403367
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x403386
mov eax, dword [0x40c950]
test eax, eax
je 0x40337e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c950], 0
ret
cmp dword [0x40c950], 0
je 0x403397
push 0
call fcn.004061fa
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a8560]
jbe 0x4033ca
push 0
push 0x40362d
push 0
push 0x6f
push dword [0x7a7554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c950], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405df7
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405e17
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408760
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408750
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e8f
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405e89
xor eax, eax
jmp 0x405e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x406189
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4061c3
test eax, eax
je 0x4061c3
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4061c5
mov ecx, 0x4082b0
jmp 0x4061ca
xor eax, eax
mov ecx, 0x4082b2
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, 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 0x406228
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 0x40624b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062f1
pop ecx
pop ecx
inc dword [0x7a8630]
ret 8

Function at 0x4062f1
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a56a8], 0x55004e
mov ebp, 0x7a56a8
mov dword [0x7a56ac], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406347
push 1
push 0
push esi
call fcn.00406906
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406427
cmp eax, ebx
jg 0x406427
push ebx
mov esi, 0x7a4ea8
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406427
cmp eax, ebx
jg 0x406427
push esi
push ebp
push str._ls_ls_r_n
push 0x7a4aa8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a8570]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405e93
push 4
push 0xc0000000
push esi
call fcn.00406906
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406427
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406420
push esi
push edi
push ebx
call fcn.00406933
test eax, eax
je 0x406420
push str._Rename__r_n
push edi
call fcn.00406b21
test eax, eax
jne 0x40642c
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a4aa8
lea eax, [ecx + edi]
push eax
call fcn.0040669f
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004069f6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408984
add eax, 0xa
push eax
call fcn.00406b21
mov ecx, eax
test ecx, ecx
je 0x4063f1
lea edx, [edi + esi]
jmp 0x40644b
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406445
sub ecx, edi
inc ecx
jmp 0x4063f3
Function at 0x406570
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406b88
mov edi, eax
cmp edi, 0xffffffff
je 0x4065b3
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406594
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40659a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4065a3
xor eax, eax
inc eax
jmp 0x4065b5
test byte [ebp + 0xc], 4
jne 0x4065b3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a42a8
push ebx
call fcn.00406b05
push ebx
call fcn.00406bb0
mov esi, eax
test esi, esi
je 0x406698
push esi
call fcn.00406d28
test byte [0x7a856c], 0x80
je 0x40665c
movzx eax, word [esi]
test ax, ax
je 0x406698
cmp eax, 0x5c
je 0x406698
sub esi, ebx
sar esi, 1
jmp 0x406676
call fcn.004065ba
test eax, eax
je 0x406670
test byte [eax], 0x10
je 0x406698
push ebx
call fcn.00406cfb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406662
call fcn.00406541
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406698
xor eax, eax
inc eax
jmp 0x40669a
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4066c1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a3a60], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a3a60
xor eax, eax
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 0x406700
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406704
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406623
mov dword [esp + 0x14], eax
test bl, 8
je 0x406746
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8628], eax
jmp 0x4068c5
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406763
test eax, eax
je 0x4068b4
test bl, 2
je 0x40687d
push esi
push 0x7a3aa8
call fcn.00406b05
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406786
push str..
push 0x7a3aa8
call ebp
jmp 0x40678c
push esi
call fcn.00406cfb
xor eax, eax
cmp word [esi], ax
jne 0x40679d
cmp word [0x7a3aa8], 0x5c
jne 0x4067a5
push 0x4082b0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x7a3aa8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406866
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4067ef
cmp word [esp + 0x4a], 0
je 0x406848
cmp word [esp + 0x4a], ax
jne 0x4067ef
cmp word [esp + 0x4c], 0
je 0x406848
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b05
test byte [esp + 0x1c], 0x10
je 0x406816
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406848
push ebx
push esi
call fcn.00406704
jmp 0x406848
push edi
push esi
call fcn.00406570
test eax, eax
jne 0x406840
test edi, edi
je 0x406838
push esi
push 0xfffffffffffffff1
call fcn.00405d13
xor eax, eax
push eax
push esi
call fcn.00406228
jmp 0x406848
inc dword [0x7a8628]
jmp 0x406848
push esi
push 0xfffffffffffffff2
call fcn.00405d13
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067d1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068c4
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4068b4
push esi
call fcn.004065ba
test eax, eax
je 0x4068c4
push esi
call fcn.00406541
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406570
test eax, eax
jne 0x4068bc
test edi, edi
je 0x4068b4
push esi
push 0xfffffffffffffff1
call fcn.00405d13
xor eax, eax
push eax
push esi
call fcn.00406228
jmp 0x4068c4
inc dword [0x7a8628]
jmp 0x4068c4
push esi
push 0xffffffffffffffe5
call fcn.00405d13
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406962
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c3
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069d4
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x4069d4
cmp dword [ebp + 0x18], 1
je 0x4069d9
cmp dword [ebp + 0x18], 2
je 0x4069d9
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4069de
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 0x406a41
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
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406a8b
test edi, edi
jne 0x406a4e
mov word [esi], ax
jmp 0x406a8d
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406b88
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 0x406baa
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x7a60fc], 0
push esi
jne 0x406e61
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e38
mov dword [ecx*4 + 0x7a60f8], edx
inc ecx
cmp ecx, 0x100
jl 0x406e33
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406e8b
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7a60f8]
inc esi
sub edx, 1
jne 0x406e73
not ecx
mov eax, ecx
pop esi
ret 0xc