joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0a40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa0000]
push edi
jmp 0x4d0a5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d0a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d0a50
mov eax, 1
add ebx, ebx
jne 0x4d0a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d0a84
jne 0x4d0aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d0aa3
dec eax
add ebx, ebx
jne 0x4d0a90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d0a68
add ebx, ebx
jne 0x4d0a9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d0af5
xor ecx, ecx
sub eax, 3
jb 0x4d0abb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d0b2a
sar eax, 1
mov ebp, eax
jmp 0x4d0ac6
add ebx, ebx
jne 0x4d0ac6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d0a94
inc ecx
add ebx, ebx
jne 0x4d0ad4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d0a94
add ebx, ebx
jne 0x4d0ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d0ad6
jne 0x4d0af2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d0ad6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d0b14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d0b06
jmp 0x4d0a56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d0b14
add edi, ecx
jmp 0x4d0a56
pop esi
mov edi, esi
mov ecx, 0x3729
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d0b32
cmp byte [edi], 0x17
jne 0x4d0b32
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 al, bl
loop 0x4d0b37
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4d0ba6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd135c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd1424]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d0b64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd1428]
or eax, eax
je 0x4d0ba0
mov dword [ebx], eax
add ebx, 4
jmp 0x4d0b81
call dword [esi + 0xd1438]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4d0bd7
cmp al, 0xef
ja 0x4d0bca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4d0bac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4d0bb9
mov ebp, dword [esi + 0xd142c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d0c0b
sub esp, 0xffffff80
jmp 0x48c604
Function at 0x4041b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x4041fe
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x4041cd
jmp 0x4041fe
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4041ee
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x404261
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.TestTypeTraits.exe_gMozillaPoisonSize]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x404299
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x1c]
jb 0x4042c3
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x1c]
jb 0x4042c3
test edi, edi
je 0x404290
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x404290
test edi, edi
je 0x4042cb
mov eax, edi
jmp 0x404292
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x404292
int3

Function at 0x4042fa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
mov dword [sym.TestTypeTraits.exe_gMozillaPoisonSize], eax
call fcn.00404261
mov ecx, dword [sym.TestTypeTraits.exe_gMozillaPoisonSize]
mov dword [sym.TestTypeTraits.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x404330
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestTypeTraits.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
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.004063e0
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.004069ee
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 0x4032c7
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 0x4032f0
mov eax, dword [0x429d78]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c92c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403148
test eax, eax
js 0x4033c6
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406a50
test eax, eax
je 0x4033c1
push dword [ebp + 8]
add dword [0x40c92c], 4
call fcn.00403148
mov esi, eax
test esi, esi
js 0x4033bd
cmp dword [ebp + 0x10], edi
jne 0x403391
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4033bd
mov ebx, 0x4000
mov edi, 0x4149d0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406a50
test eax, eax
je 0x4033c1
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406b13
test eax, eax
je 0x40338d
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c92c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403349
jmp 0x4033bd
push 0xfffffffffffffffe
jmp 0x4033c3
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 0x4033c1
mov esi, dword [ebp - 4]
add dword [0x40c92c], esi
mov eax, esi
jmp 0x4033c4
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x4033e9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403411
mov eax, dword [0x40c940]
test eax, eax
je 0x403408
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c940], 0
leave
ret
cmp dword [0x40c940], 0
je 0x403423
push 0
call fcn.00406317
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429d20]
jbe 0x40348d
cmp dword [0x428d18], 0
je 0x403468
test byte [0x429e14], 1
je 0x40348d
call fcn.004033cb
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.00405e42
leave
ret
push 0
push 0x403747
push 0
push 0x6f
push dword [0x428d14]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c940], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405f26
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 0x405f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405f46
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, 0x408780
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], 0x408770
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405fbe
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405fb8
xor eax, eax
jmp 0x405fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x4062a6
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 0x4062e0
test eax, eax
je 0x4062e0
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4062e2
mov ecx, 0x4082b0
jmp 0x4062e7
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 0x406345
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 0x406368
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040640e
pop ecx
pop ecx
inc dword [0x429df0]
ret 8

Function at 0x40640e
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426e58], 0x55004e
mov ebp, 0x426e58
mov dword [0x426e5c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406464
push 1
push 0
push esi
call fcn.00406a23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406544
cmp eax, ebx
jg 0x406544
push ebx
mov esi, 0x426658
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406544
cmp eax, ebx
jg 0x406544
push esi
push ebp
push str._ls_ls_r_n
push 0x426258
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429d30]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405fc2
push 4
push 0xc0000000
push esi
call fcn.00406a23
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406544
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 0x40653d
push esi
push edi
push ebx
call fcn.00406a50
test eax, eax
je 0x40653d
push str._Rename__r_n
push edi
call fcn.00406c3e
test eax, eax
jne 0x406549
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 0x426258
lea eax, [ecx + edi]
push eax
call fcn.004067bc
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.00406b13
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 0x4089a4
add eax, 0xa
push eax
call fcn.00406c3e
mov ecx, eax
test ecx, ecx
je 0x40650e
lea edx, [edi + esi]
jmp 0x406568
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406562
sub ecx, edi
inc ecx
jmp 0x406510
Function at 0x40668d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406ca5
mov edi, eax
cmp edi, 0xffffffff
je 0x4066d0
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4066b1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4066b7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4066c0
xor eax, eax
inc eax
jmp 0x4066d2
test byte [ebp + 0xc], 4
jne 0x4066d0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425a58
push ebx
call fcn.00406c22
push ebx
call fcn.00406ccd
mov esi, eax
test esi, esi
je 0x4067b5
push esi
call fcn.00406e45
test byte [0x429d2c], 0x80
je 0x406779
movzx eax, word [esi]
test ax, ax
je 0x4067b5
cmp eax, 0x5c
je 0x4067b5
sub esi, ebx
sar esi, 1
jmp 0x406793
call fcn.004066d7
test eax, eax
je 0x40678d
test byte [eax], 0x10
je 0x4067b5
push ebx
call fcn.00406e18
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40677f
call fcn.0040665e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4067b5
xor eax, eax
inc eax
jmp 0x4067b7
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4067de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x425210], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x425210
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 0x40681d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406821
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.00406740
mov dword [esp + 0x14], eax
test bl, 8
je 0x406863
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429de8], eax
jmp 0x4069e2
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406880
test eax, eax
je 0x4069d1
test bl, 2
je 0x40699a
push esi
push 0x425258
call fcn.00406c22
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4068a3
push str..
push 0x425258
call ebp
jmp 0x4068a9
push esi
call fcn.00406e18
xor eax, eax
cmp word [esi], ax
jne 0x4068ba
cmp word [0x425258], 0x5c
jne 0x4068c2
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 0x425258
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406983
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40690c
cmp word [esp + 0x4a], 0
je 0x406965
cmp word [esp + 0x4a], ax
jne 0x40690c
cmp word [esp + 0x4c], 0
je 0x406965
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406c22
test byte [esp + 0x1c], 0x10
je 0x406933
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406965
push ebx
push esi
call fcn.00406821
jmp 0x406965
push edi
push esi
call fcn.0040668d
test eax, eax
jne 0x40695d
test edi, edi
je 0x406955
push esi
push 0xfffffffffffffff1
call fcn.00405e42
xor eax, eax
push eax
push esi
call fcn.00406345
jmp 0x406965
inc dword [0x429de8]
jmp 0x406965
push esi
push 0xfffffffffffffff2
call fcn.00405e42
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4068ee
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4069e1
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4069d1
push esi
call fcn.004066d7
test eax, eax
je 0x4069e1
push esi
call fcn.0040665e
mov eax, edi
or eax, 1
push eax
push esi
call fcn.0040668d
test eax, eax
jne 0x4069d9
test edi, edi
je 0x4069d1
push esi
push 0xfffffffffffffff1
call fcn.00405e42
xor eax, eax
push eax
push esi
call fcn.00406345
jmp 0x4069e1
inc dword [0x429de8]
jmp 0x4069e1
push esi
push 0xffffffffffffffe5
call fcn.00405e42
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406a23
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 0x406a7f
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.004063e0
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406af1
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 0x406af1
cmp dword [ebp + 0x18], 1
je 0x406af6
cmp dword [ebp + 0x18], 2
je 0x406af6
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406afb
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 0x406b5e
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 0x406ba8
test edi, edi
jne 0x406b6b
mov word [esi], ax
jmp 0x406baa
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406ca5
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 0x406cc7
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 0x406f44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4278ac], 0
push esi
jne 0x406f7e
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 0x406f55
mov dword [ecx*4 + 0x4278a8], edx
inc ecx
cmp ecx, 0x100
jl 0x406f50
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406fa8
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4278a8]
inc esi
sub edx, 1
jne 0x406f90
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x401336
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4034c0
call fcn.00401978
push 1
call fcn.004014d6
pop ecx
test al, al
jne 0x4011df
push 7
call fcn.00401743
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004014a1
mov byte [ebp - 0x24], al
mov eax, dword [0x40433c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4011d8
test eax, eax
jne 0x401249
mov dword [0x40433c], ecx
push 0x403110
push 0x4030fc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40122c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401330
push 0x4030f8
push 0x4030f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40433c], 2
jmp 0x40124e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00401633
pop ecx
call fcn.00401737
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40127e
push esi
call fcn.004015a6
pop ecx
test al, al
je 0x40127e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00401972
call esi
call fcn.0040173d
mov esi, eax
cmp dword [esi], edi
je 0x40129c
push esi
call fcn.004015a6
pop ecx
test al, al
je 0x40129c
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00401858
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0040188b
test al, al
jne 0x4012d5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00401650
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401330
call fcn.004019be
ret
call fcn.00401050
jmp 0x4011c0

Function at 0x42e002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219