joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a3bb5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5a3bed
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005a1c30
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005a1c08
jmp 0x5a3bf9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5a53b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5a53f5
call fcn.005ab896
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5a53f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5a53ec
xor eax, eax
jmp 0x5a53fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005a5403
pop edi
pop esi
pop ebx
ret 4

Function at 0x5abdc6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5abdf4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5abe12
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005abd2c
jmp 0x5abe12
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5abe12
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005abd2c
test edi, edi
mov eax, edi
jne 0x5abdfc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x412ba5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412bec
call fcn.0040be7a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412bec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412c08
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041271f
mov esi, eax
test edi, edi
je 0x412c06
test ebx, ebx
je 0x412c06
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413a36
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x432250
call fcn.0042111f
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413a5b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x413aa1
lea ecx, [ebp - 0x10]
call fcn.00401771
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004043df
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040174d
mov eax, esi
call fcn.004211f7
ret 8

Function at 0x414b62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x414baa
call fcn.0040be7a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414baa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x414bed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x414bd6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x414bd6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x414bea
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x416036
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41605a
cmp dword [edi + 0x54], 0
jne 0x41605a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040be7a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00415ff7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420153
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443560]
jne 0x42015d
repz ret
jmp fcn.004233ef

Function at 0x42ce16
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004247af
and dword [ebp - 4], 0
cmp dword [0x447324], 0
mov ebx, eax
jne 0x42cec7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42cf78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438ec0
push edi
call esi
test eax, eax
je 0x42cf78
push eax
call fcn.0042473d
mov dword [esp], 0x438eb0
push edi
mov dword [0x447324], eax
call esi
push eax
call fcn.0042473d
mov dword [esp], 0x438e9c
push edi
mov dword [0x447328], eax
call esi
push eax
call fcn.0042473d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44732c], eax
call esi
push eax
call fcn.0042473d
pop ecx
mov dword [0x447334], eax
test eax, eax
je 0x42cec7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042473d
pop ecx
mov dword [0x447330], eax
mov eax, dword [0x447330]
cmp eax, ebx
je 0x42cf1f
cmp dword [0x447334], ebx
je 0x42cf1f
push eax
call fcn.004247b8
push dword [0x447334]
mov esi, eax
call fcn.004247b8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42cf1f
test edi, edi
je 0x42cf1f
call esi
test eax, eax
je 0x42cf16
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42cf16
test byte [ebp - 0xc], 1
jne 0x42cf1f
or dword [ebp + 0x10], 0x200000
jmp 0x42cf58
mov eax, dword [0x447328]
cmp eax, ebx
je 0x42cf58
push eax
call fcn.004247b8
pop ecx
test eax, eax
je 0x42cf58
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42cf58
mov eax, dword [0x44732c]
cmp eax, ebx
je 0x42cf58
push eax
call fcn.004247b8
pop ecx
test eax, eax
je 0x42cf58
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447324]
call fcn.004247b8
pop ecx
test eax, eax
je 0x42cf78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42cf7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
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.004064a7
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.00406ab5
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 0x40333f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403368
mov eax, dword [0x7a7dd8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c954], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031c0
test eax, eax
js 0x40343e
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406b17
test eax, eax
je 0x403439
push dword [ebp + 8]
add dword [0x40c954], 4
call fcn.004031c0
mov esi, eax
test esi, esi
js 0x403435
cmp dword [ebp + 0x10], edi
jne 0x403409
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x403435
mov ebx, 0x4000
mov edi, 0x793238
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406b17
test eax, eax
je 0x403439
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406bda
test eax, eax
je 0x403405
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c954], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x4033c1
jmp 0x403435
push 0xfffffffffffffffe
jmp 0x40343b
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403439
mov esi, dword [ebp - 4]
add dword [0x40c954], esi
mov eax, esi
jmp 0x40343c
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403461
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403489
mov eax, dword [0x40c968]
test eax, eax
je 0x403480
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c968], 0
leave
ret
cmp dword [0x40c968], 0
je 0x40349b
push 0
call fcn.004063de
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a7d80]
jbe 0x403505
cmp dword [0x7a6d78], 0
je 0x4034e0
test byte [0x7a7e74], 1
je 0x403505
call fcn.00403443
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405f18
leave
ret
push 0
push 0x4037c3
push 0
push 0x6f
push dword [0x7a6d74]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c968], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405ffc
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 0x406016
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x40636d
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 0x4063a7
test eax, eax
je 0x4063a7
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4063a9
mov ecx, 0x4082a8
jmp 0x4063ae
xor eax, eax
mov ecx, 0x4082aa
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 0x40640c
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 0x40642f
push dword [esp + 8]
push dword [esp + 8]
call fcn.004064d5
pop ecx
pop ecx
inc dword [0x7a7e50]
ret 8

Function at 0x4064d5
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a4ec0], 0x55004e
mov ebp, 0x7a4ec0
mov dword [0x7a4ec4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x40652b
push 1
push 0
push esi
call fcn.00406aea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x40660b
cmp eax, ebx
jg 0x40660b
push ebx
mov esi, 0x7a46c0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x40660b
cmp eax, ebx
jg 0x40660b
push esi
push ebp
push str._ls_ls_r_n
push 0x7a42c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a7d90]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00406077
push 4
push 0xc0000000
push esi
call fcn.00406aea
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40660b
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 0x406604
push esi
push edi
push ebx
call fcn.00406b17
test eax, eax
je 0x406604
push str._Rename__r_n
push edi
call fcn.00406d05
test eax, eax
jne 0x406610
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 0x7a42c0
lea eax, [ecx + edi]
push eax
call fcn.00406883
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.00406bda
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 0x40899c
add eax, 0xa
push eax
call fcn.00406d05
mov ecx, eax
test ecx, ecx
je 0x4065d5
lea edx, [edi + esi]
jmp 0x40662f
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406629
sub ecx, edi
inc ecx
jmp 0x4065d7
Function at 0x406754
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406d6c
mov edi, eax
cmp edi, 0xffffffff
je 0x406797
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406778
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40677e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406787
xor eax, eax
inc eax
jmp 0x406799
test byte [ebp + 0xc], 4
jne 0x406797
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a3ac0
push ebx
call fcn.00406ce9
push ebx
call fcn.00406d94
mov esi, eax
test esi, esi
je 0x40687c
push esi
call fcn.00406f0c
test byte [0x7a7d8c], 0x80
je 0x406840
movzx eax, word [esi]
test ax, ax
je 0x40687c
cmp eax, 0x5c
je 0x40687c
sub esi, ebx
sar esi, 1
jmp 0x40685a
call fcn.0040679e
test eax, eax
je 0x406854
test byte [eax], 0x10
je 0x40687c
push ebx
call fcn.00406edf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406846
call fcn.00406725
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40687c
xor eax, eax
inc eax
jmp 0x40687e
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4068a5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a3278], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a3278
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 0x4068e4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4068e8
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.00406807
mov dword [esp + 0x14], eax
test bl, 8
je 0x40692a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a7e48], eax
jmp 0x406aa9
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406947
test eax, eax
je 0x406a98
test bl, 2
je 0x406a61
push esi
push 0x7a32c0
call fcn.00406ce9
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40696a
push str..
push 0x7a32c0
call ebp
jmp 0x406970
push esi
call fcn.00406edf
xor eax, eax
cmp word [esi], ax
jne 0x406981
cmp word [0x7a32c0], 0x5c
jne 0x406989
push 0x4082a8
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 0x7a32c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406a4a
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4069d3
cmp word [esp + 0x4a], 0
je 0x406a2c
cmp word [esp + 0x4a], ax
jne 0x4069d3
cmp word [esp + 0x4c], 0
je 0x406a2c
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406ce9
test byte [esp + 0x1c], 0x10
je 0x4069fa
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406a2c
push ebx
push esi
call fcn.004068e8
jmp 0x406a2c
push edi
push esi
call fcn.00406754
test eax, eax
jne 0x406a24
test edi, edi
je 0x406a1c
push esi
push 0xfffffffffffffff1
call fcn.00405f18
xor eax, eax
push eax
push esi
call fcn.0040640c
jmp 0x406a2c
inc dword [0x7a7e48]
jmp 0x406a2c
push esi
push 0xfffffffffffffff2
call fcn.00405f18
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4069b5
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406aa8
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406a98
push esi
call fcn.0040679e
test eax, eax
je 0x406aa8
push esi
call fcn.00406725
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406754
test eax, eax
jne 0x406aa0
test edi, edi
je 0x406a98
push esi
push 0xfffffffffffffff1
call fcn.00405f18
xor eax, eax
push eax
push esi
call fcn.0040640c
jmp 0x406aa8
inc dword [0x7a7e48]
jmp 0x406aa8
push esi
push 0xffffffffffffffe5
call fcn.00405f18
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406aea
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 0x406b46
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.004064a7
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406bb8
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 0x406bb8
cmp dword [ebp + 0x18], 1
je 0x406bbd
cmp dword [ebp + 0x18], 2
je 0x406bbd
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406bc2
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 0x406c25
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 0x406c6f
test edi, edi
jne 0x406c32
mov word [esi], ax
jmp 0x406c71
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406d6c
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 0x406d8e
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 0x40700b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5914], 0
push esi
jne 0x407045
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 0x40701c
mov dword [ecx*4 + 0x7a5910], edx
inc ecx
cmp ecx, 0x100
jl 0x407017
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40706f
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7a5910]
inc esi
sub edx, 1
jne 0x407057
not ecx
mov eax, ecx
pop esi
ret 0xc