joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006dbf
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Delete registry value
Encode data using xor
Query or enumerate registry value

Disassembly:
push 0x938
mov eax, 0x10011a99
call fcn.10010b50
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x938], ebx
mov dword [ebp - 4], ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x12f]
push ebx
push eax
mov byte [ebp - 0x931], bl
mov byte [ebp - 0x130], bl
call fcn.1000a2b0
mov byte [ebp - 0x1c], 0x53
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x66
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x77
mov byte [ebp - 0x17], 0x61
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x28], 0x41
mov byte [ebp - 0x27], 0x70
mov byte [ebp - 0x26], 0x70
mov byte [ebp - 0x25], 0x44
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x4c
mov byte [ebp - 0x20], 0x6f
mov byte [ebp - 0x1f], 0x77
mov byte [ebp - 0x1e], bl
call fcn.10001000
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push str._s_s_s
lea eax, [ebp - 0x130]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x24
lea eax, [ebp - 0x938]
push eax
lea eax, [ebp - 0x130]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x10006f71
push 0x7ff
lea eax, [ebp - 0x92f]
push ebx
push eax
mov dword [ebp - 0x944], 0x800
mov dword [ebp - 0x940], 1
mov byte [ebp - 0x930], bl
call fcn.1000a2b0
add esp, 0xc
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0x930]
push eax
lea eax, [ebp - 0x940]
push eax
push ebx
mov esi, str.typnc
push esi
push dword [ebp - 0x938]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10006f65
lea eax, [ebp - 0x930]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jle 0x10006f0f
xor byte [ebp + edi - 0x930], 0x5f
inc edi
cmp edi, eax
jl 0x10006f02
lea eax, [ebp - 0x930]
cmp dword [ebp - 0x93c], ebx
jne 0x10006f35
push 9
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jb 0x10006f5e
jmp 0x10006f42
push eax
push dword [ebp - 0x93c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push dword [ebp - 0x938]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call esi
push str.mwfffp
push dword [ebp - 0x938]
call esi
mov byte [ebp - 0x931], 1
push dword [ebp - 0x938]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x938], ebx
je 0x10006f89
push dword [ebp - 0x938]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x938], ebx
mov al, byte [ebp - 0x931]
call fcn.10010bd3
ret

Function at 0x10007324
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10019060]
jne 0x1000732e
repz ret
jmp fcn.10007fae
Function at 0x1000c705
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.100084ae
and dword [ebp - 4], 0
cmp dword [0x1001b6b4], 0
mov ebx, eax
jne 0x1000c7b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000c867
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000c867
push eax
call fcn.1000843c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001b6b4], eax
call esi
push eax
call fcn.1000843c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001b6b8], eax
call esi
push eax
call fcn.1000843c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001b6bc], eax
call esi
push eax
call fcn.1000843c
pop ecx
mov dword [0x1001b6c4], eax
test eax, eax
je 0x1000c7b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000843c
pop ecx
mov dword [0x1001b6c0], eax
mov eax, dword [0x1001b6c0]
cmp eax, ebx
je 0x1000c80e
cmp dword [0x1001b6c4], ebx
je 0x1000c80e
push eax
call fcn.100084b7
push dword [0x1001b6c4]
mov esi, eax
call fcn.100084b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000c80e
test edi, edi
je 0x1000c80e
call esi
test eax, eax
je 0x1000c805
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000c805
test byte [ebp - 0xc], 1
jne 0x1000c80e
or dword [ebp + 0x10], 0x200000
jmp 0x1000c847
mov eax, dword [0x1001b6b8]
cmp eax, ebx
je 0x1000c847
push eax
call fcn.100084b7
pop ecx
test eax, eax
je 0x1000c847
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c847
mov eax, dword [0x1001b6bc]
cmp eax, ebx
je 0x1000c847
push eax
call fcn.100084b7
pop ecx
test eax, eax
je 0x1000c847
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001b6b4]
call fcn.100084b7
pop ecx
test eax, eax
je 0x1000c867
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000c869
xor eax, eax
pop edi
pop esi
pop ebx
leave
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.0040642b
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.00406a39
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 [0x429598]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c94c], 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.00406a9b
test eax, eax
je 0x4033c1
push dword [ebp + 8]
add dword [0x40c94c], 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, 0x4149f0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406a9b
test eax, eax
je 0x4033c1
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406b5e
test eax, eax
je 0x40338d
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c94c], 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 [0x40c94c], 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 [0x40c960]
test eax, eax
je 0x403408
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c960], 0
leave
ret
cmp dword [0x40c960], 0
je 0x403423
push 0
call fcn.00406362
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429540]
jbe 0x40348d
cmp dword [0x428538], 0
je 0x403468
test byte [0x429634], 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.00405e9c
leave
ret
push 0
push 0x403747
push 0
push 0x6f
push dword [0x428534]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c960], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405f80
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 0x405f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x4062f1
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 0x40632b
test eax, eax
je 0x40632b
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x40632d
mov ecx, 0x4082a8
jmp 0x406332
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 0x406390
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 0x4063b3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406459
pop ecx
pop ecx
inc dword [0x429610]
ret 8

Function at 0x406459
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426678], 0x55004e
mov ebp, 0x426678
mov dword [0x42667c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x4064af
push 1
push 0
push esi
call fcn.00406a6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x40658f
cmp eax, ebx
jg 0x40658f
push ebx
mov esi, 0x425e78
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x40658f
cmp eax, ebx
jg 0x40658f
push esi
push ebp
push str._ls_ls_r_n
push 0x425a78
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429550]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405ffb
push 4
push 0xc0000000
push esi
call fcn.00406a6e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40658f
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 0x406588
push esi
push edi
push ebx
call fcn.00406a9b
test eax, eax
je 0x406588
push str._Rename__r_n
push edi
call fcn.00406c89
test eax, eax
jne 0x406594
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 0x425a78
lea eax, [ecx + edi]
push eax
call fcn.00406807
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.00406b5e
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.00406c89
mov ecx, eax
test ecx, ecx
je 0x406559
lea edx, [edi + esi]
jmp 0x4065b3
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x4065ad
sub ecx, edi
inc ecx
jmp 0x40655b
Function at 0x4066d8
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406cf0
mov edi, eax
cmp edi, 0xffffffff
je 0x40671b
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4066fc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406702
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40670b
xor eax, eax
inc eax
jmp 0x40671d
test byte [ebp + 0xc], 4
jne 0x40671b
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425278
push ebx
call fcn.00406c6d
push ebx
call fcn.00406d18
mov esi, eax
test esi, esi
je 0x406800
push esi
call fcn.00406e90
test byte [0x42954c], 0x80
je 0x4067c4
movzx eax, word [esi]
test ax, ax
je 0x406800
cmp eax, 0x5c
je 0x406800
sub esi, ebx
sar esi, 1
jmp 0x4067de
call fcn.00406722
test eax, eax
je 0x4067d8
test byte [eax], 0x10
je 0x406800
push ebx
call fcn.00406e63
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x4067ca
call fcn.004066a9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406800
xor eax, eax
inc eax
jmp 0x406802
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406829
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x424a30], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x424a30
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 0x406868
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40686c
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.0040678b
mov dword [esp + 0x14], eax
test bl, 8
je 0x4068ae
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429608], eax
jmp 0x406a2d
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x4068cb
test eax, eax
je 0x406a1c
test bl, 2
je 0x4069e5
push esi
push 0x424a78
call fcn.00406c6d
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4068ee
push str..
push 0x424a78
call ebp
jmp 0x4068f4
push esi
call fcn.00406e63
xor eax, eax
cmp word [esi], ax
jne 0x406905
cmp word [0x424a78], 0x5c
jne 0x40690d
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 0x424a78
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4069ce
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406957
cmp word [esp + 0x4a], 0
je 0x4069b0
cmp word [esp + 0x4a], ax
jne 0x406957
cmp word [esp + 0x4c], 0
je 0x4069b0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406c6d
test byte [esp + 0x1c], 0x10
je 0x40697e
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4069b0
push ebx
push esi
call fcn.0040686c
jmp 0x4069b0
push edi
push esi
call fcn.004066d8
test eax, eax
jne 0x4069a8
test edi, edi
je 0x4069a0
push esi
push 0xfffffffffffffff1
call fcn.00405e9c
xor eax, eax
push eax
push esi
call fcn.00406390
jmp 0x4069b0
inc dword [0x429608]
jmp 0x4069b0
push esi
push 0xfffffffffffffff2
call fcn.00405e9c
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406939
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406a2c
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406a1c
push esi
call fcn.00406722
test eax, eax
je 0x406a2c
push esi
call fcn.004066a9
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004066d8
test eax, eax
jne 0x406a24
test edi, edi
je 0x406a1c
push esi
push 0xfffffffffffffff1
call fcn.00405e9c
xor eax, eax
push eax
push esi
call fcn.00406390
jmp 0x406a2c
inc dword [0x429608]
jmp 0x406a2c
push esi
push 0xffffffffffffffe5
call fcn.00405e9c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406a6e
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 0x406aca
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.0040642b
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406b3c
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 0x406b3c
cmp dword [ebp + 0x18], 1
je 0x406b41
cmp dword [ebp + 0x18], 2
je 0x406b41
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406b46
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 0x406ba9
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 0x406bf3
test edi, edi
jne 0x406bb6
mov word [esi], ax
jmp 0x406bf5
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406cf0
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 0x406d12
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 0x406f8f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4270cc], 0
push esi
jne 0x406fc9
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 0x406fa0
mov dword [ecx*4 + 0x4270c8], edx
inc ecx
cmp ecx, 0x100
jl 0x406f9b
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406ff3
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4270c8]
inc esi
sub edx, 1
jne 0x406fdb
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a8
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046e9]
lea edx, [fcn.00401a2c]
sub eax, edx
push eax
push fcn.00401a2c
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401337
push edi
call fcn.00401883
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018d1
add esp, 0xc
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
or edi, edi
je 0x401328
mov esi, 0
jmp 0x40132e
lea esi, [0x4070e4]
push esi
call fcn.00401a2c
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4019a8
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindow
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret