joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a31a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00408938
mov dword [ebp - 0x14], eax
cmp dword [0x411e6c], edi
jne 0x40a40b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40a398
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a4eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a4eb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a4eb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x411e6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x411e70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x411e74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411e7c], eax
test eax, eax
je 0x40a408
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411e78], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a430
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a423
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40a445
push 4
pop eax
jmp 0x40a4ed
cmp dword [ebp - 0x14], edi
je 0x40a445
push dword [0x411e6c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a42a
mov eax, dword [0x411e78]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a4a3
cmp dword [0x411e7c], esi
je 0x40a4a3
push eax
call ebx
push dword [0x411e7c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a4a3
test eax, eax
je 0x40a4a3
call ecx
test eax, eax
je 0x40a498
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a498
test byte [ebp - 8], 1
jne 0x40a4a3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40a4d3
mov eax, dword [0x411e70]
cmp eax, esi
je 0x40a4d0
push eax
call ebx
test eax, eax
je 0x40a4d0
call eax
mov edi, eax
test edi, edi
je 0x40a4d0
mov eax, dword [0x411e74]
cmp eax, esi
je 0x40a4d0
push eax
call ebx
test eax, eax
je 0x40a4d0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x411e6c]
call ebx
test eax, eax
je 0x40a4eb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40a4ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4fc
leave
ret
Function at 0x401434
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.004062b1
test eax, eax
jne 0x40153d
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x4014a9
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 0x401519
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014e4
test edi, edi
jne 0x401519
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.00401434
test eax, eax
jne 0x4014ee
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014bc
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004068d4
test eax, eax
jne 0x40152a
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40153d
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40153d
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 0x4032b4
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 0x4032dd
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.00403135
test eax, eax
js 0x4033bc
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406936
test eax, eax
jne 0x403309
push 0xfffffffffffffffd
pop eax
jmp 0x4033bc
add dword [0x40c92c], 4
push esi
push dword [ebp + 8]
call fcn.00403135
mov esi, eax
test esi, esi
jns 0x403324
jmp 0x4033bb
push ebx
cmp dword [ebp + 0x10], edi
jne 0x403387
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4033b8
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.00406936
test eax, eax
je 0x4033aa
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.004069fd
test eax, eax
je 0x403383
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 0x40333f
jmp 0x4033b8
push 0xfffffffffffffffe
jmp 0x4033ac
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
jne 0x4033af
push 0xfffffffffffffffd
pop eax
jmp 0x4033ba
mov esi, dword [ebp - 4]
add dword [0x40c92c], esi
mov eax, esi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033e1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403409
mov eax, dword [0x40c940]
test eax, eax
je 0x403400
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c940], 0
jmp 0x403485
cmp dword [0x40c940], 0
je 0x40341b
push 0
call fcn.004061e4
jmp 0x403485
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429d24]
jbe 0x403485
cmp dword [0x428d18], 0
je 0x403460
test byte [0x429e14], 1
je 0x403485
call fcn.004033c3
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.00405ccb
jmp 0x403485
push 0
push 0x403752
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]
mov esp, ebp
pop ebp
ret
Function at 0x405daf
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 0x405dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405dcf
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, 0x40884c
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], 0x40883c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e47
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405e41
xor eax, eax
jmp 0x405e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4
Function at 0x406173
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]
xor ecx, ecx
cmp eax, esi
pop esi
cmova eax, ecx
test eax, eax
je 0x4061ac
cmp word [ebp + eax*2 - 0x23e], 0x5c
mov ecx, 0x4082b0
jne 0x4061b1
mov ecx, 0x4082b2
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
lea eax, [ecx + eax*2]
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]
mov esp, ebp
pop ebp
ret 4

Function at 0x406214
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 0x406237
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062df
pop ecx
pop ecx
inc dword [0x429df0]
ret 8

Function at 0x4062df
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
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 0x406336
push 1
push 0
push esi
call fcn.00406909
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x40641a
cmp eax, ebx
jg 0x40641a
push ebx
mov esi, 0x426658
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x40641a
cmp eax, ebx
jg 0x40641a
push esi
push ebp
push str._ls_ls_r_n
push 0x426258
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429d34]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405e4d
push 4
push 0xc0000000
push esi
call fcn.00406909
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x40641a
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 0x406413
push esi
push edi
push ebx
call fcn.00406936
test eax, eax
je 0x406413
push str._Rename__r_n
push edi
call fcn.00406b2e
test eax, eax
jne 0x406420
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.0040669e
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.004069fd
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
pop ecx
ret
push 0x4089c0
add eax, 0xa
push eax
call fcn.00406b2e
mov ecx, eax
test ecx, ecx
je 0x4063e4
lea edx, [edi + esi]
lea eax, [edx + ebp]
cmp edx, ecx
jbe 0x406454
sub eax, edx
mov dword [esp + 0x1c], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x406446
mov ebx, dword [esp + 0x10]
sub ecx, edi
inc ecx
jmp 0x4063e6
Function at 0x406577
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406b81
mov edi, eax
cmp edi, 0xffffffff
je 0x4065ba
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4065a2
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4065aa
xor eax, eax
inc eax
jmp 0x4065bc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406599
test byte [ebp + 0xc], 4
jne 0x4065ba
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425a58
push ebx
call fcn.00406b12
push ebx
call fcn.00406ba9
mov esi, eax
test esi, esi
jne 0x406641
xor eax, eax
jmp 0x406699
push esi
call fcn.00406cd8
test byte [0x429d30], 0x80
je 0x40665d
movzx eax, word [esi]
test ax, ax
je 0x40663d
cmp eax, 0x5c
je 0x40663d
sub esi, ebx
sar esi, 1
jmp 0x406677
call fcn.004065c1
test eax, eax
je 0x406671
test byte [eax], 0x10
je 0x40663d
push ebx
call fcn.00406cab
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406663
call fcn.00406548
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x4066c0
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 0x4066ff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x406705
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.00406620
mov dword [esp + 0x14], eax
test bl, 8
je 0x406747
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429de8], eax
jmp 0x4068c8
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406764
test eax, eax
je 0x4068b7
test bl, 2
je 0x40687c
push esi
push 0x425258
call fcn.00406b12
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406787
push 0x408994
push 0x425258
call ebp
jmp 0x40678d
push esi
call fcn.00406cab
xor eax, eax
cmp word [esi], ax
jne 0x40679e
cmp word [0x425258], 0x5c
jne 0x4067a6
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 0x406867
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4067f0
cmp word [esp + 0x4a], 0
je 0x406849
cmp word [esp + 0x4a], ax
jne 0x4067f0
cmp word [esp + 0x4c], 0
je 0x406849
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b12
test byte [esp + 0x1c], 0x10
je 0x406817
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406849
push ebx
push esi
call fcn.00406705
jmp 0x406849
push edi
push esi
call fcn.00406577
test eax, eax
jne 0x406841
test edi, edi
je 0x406839
push esi
push 0xfffffffffffffff1
call fcn.00405ccb
xor eax, eax
push eax
push esi
call fcn.00406214
jmp 0x406849
inc dword [0x429de8]
jmp 0x406849
push esi
push 0xfffffffffffffff2
call fcn.00405ccb
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067d2
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068c7
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4068b7
push esi
call fcn.004065c1
test eax, eax
je 0x4068c7
push esi
call fcn.00406548
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406577
test eax, eax
jne 0x4068bf
test edi, edi
je 0x4068b7
push esi
push 0xfffffffffffffff1
call fcn.00405ccb
xor eax, eax
push eax
push esi
call fcn.00406214
jmp 0x4068c7
inc dword [0x429de8]
jmp 0x4068c7
push esi
push 0xffffffffffffffe5
call fcn.00405ccb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406909
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 0x406967
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.004062b1
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069d9
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 0x4069d9
cmp dword [ebp + 0x18], 1
je 0x4069de
cmp dword [ebp + 0x18], 2
je 0x4069de
xor eax, eax
mov word [edi], ax
pop edi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4069e5
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 0x406a4a
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 [0x4089a0]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x4089a4]
mov dword [ebp - 4], eax
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 0x406a96
test edi, edi
jne 0x406a57
mov word [esi], ax
jmp 0x406a98
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x406b81
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 0x406ba3
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 0x406dcd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4278ac], 0
push esi
jne 0x406e07
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 0x406dde
mov dword [ecx*4 + 0x4278a8], edx
inc ecx
cmp ecx, 0x100
jl 0x406dd9
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406e31
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 0x406e19
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x404635
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4069e0
call fcn.004054fb
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x404654
mov al, 1
jmp 0x40471d
test esi, esi
je 0x40471b
xor ebx, ebx
cmp word [esi], bx
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40471b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00405e0b
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x40470f
lea eax, [ebp - 0x28]
push eax
call fcn.00405e0b
pop ecx
test al, al
jne 0x40470f
cmp dword [ebp - 0x18], esi
jbe 0x40470f
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40470f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x40470f
push 0x407620
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401788
mov al, bl
jmp 0x40471d
xor al, al
call fcn.004054b6
ret