joyce8/EMBER2024-capa huggingface dataset:
Function at 0x624210
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x624243
push 0x2e
push edi
call fcn.0062bd10
add esp, 8
test eax, eax
je 0x624241
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x625c10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x70a4c4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x625c3d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x625c87
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x625c8d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x625ceb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x625cb0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x625d17
mov eax, dword [esi + 4]
push 1
push 0x6734ac
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6734ad
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x625cf0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x64675c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006465d2

Function at 0x649260
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00648db3
Function at 0x4011c8
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov edx, dword [0x435a80]
mov ebp, esp
push esi
push ebx
mov ecx, dword [ebp + 8]
imul eax, ecx, 0x818
mov ebx, dword [eax + edx + 8]
test bl, 2
je 0x401226
inc ecx
xor esi, esi
imul eax, ecx, 0x818
and ebx, 1
lea edx, [edx + eax + 8]
jmp 0x40121e
mov eax, dword [edx]
test al, 2
je 0x401200
inc esi
jmp 0x401217
test al, 4
je 0x40120c
dec esi
cmp esi, 0xffffffff
jne 0x401217
jmp 0x401226
test al, 0x10
jne 0x401217
jmp 0x46cbb4
inc ecx
add edx, 0x818
cmp ecx, dword [0x435a84]
jb 0x4011f7
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4013bc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
test eax, eax
mov ebp, esp
jne fcn.004013cd
mov eax, dword [0x435a0c]
jmp loc.0046ee0a

Function at 0x4013c8
Capabilities:
Packed with generic packer

Disassembly:
push ebp
test eax, eax
mov ebp, esp
jne fcn.004013cd
mov eax, dword [0x435a0c]
jmp loc.0046ee0a

Function at 0x4013e8
Capabilities:
Packed with generic packer

Disassembly:
push ebp
cdq
mov ebp, esp
push esi
push ebx
mov ebx, eax
mov eax, edx
xor eax, ebx
sub eax, edx
push edx
mov ecx, eax
push edx
and ecx, 0xf
mov edx, dword [0x40f870]
sar eax, 4
push dword [edx + ecx*4]
shl eax, 0xb
add eax, 0x40d070
push eax
call fcn.00406b8a
test ebx, ebx
mov esi, eax
pop ecx
pop eax
jns 0x40142b
sub esp, 0xc
push esi
call fcn.00406995
add esp, 0xc
jmp loc.0046e4cc

Function at 0x4014bf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x228
mov esi, eax
lea eax, [ebp - 0x10]
mov ebx, edx
push eax
mov eax, dword [0x435a38]
or eax, 8
mov dword [ebp - 0x220], ecx
push eax
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExW
add esp, 0xc
test eax, eax
jne 0x40158a
jmp 0x401528
cmp dword [ebp - 0x220], 0
je 0x401516
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
add esp, 0xc
jmp 0x40158a
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, edi
call fcn.004014bf
test eax, eax
jne 0x401542
jmp 0x40152e
lea edi, [ebp - 0x21a]
push 0x105
push edi
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyW
test eax, eax
je 0x4014f8
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push 3
call fcn.00406846
add esp, 0xc
test eax, eax
je 0x401569
push 0
push dword [0x435a38]
push ebx
push esi
call eax
jmp 0x40158a
mov eax, 1
cmp dword [0x435a38], 0
jne 0x40158a
push edi
push edi
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyW
test eax, eax
pop ebx
setne al
pop esi
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401592
Capabilities:
Move file
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ec
mov eax, dword [0x40b688]
jmp loc.0046d2e9

Function at 0x403358
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp loc.0046f45b
Function at 0x403373
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
jne 0x4033a1
mov dword [ebp - 0xac], 0x413880
mov dword [ebp - 0xa8], 0x8000
jmp fcn.004033b0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xa8], ebx
jmp loc.0046c7f9

Function at 0x403681
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
push ebx
mov ebx, dword [0x40b688]
add eax, 0x3e8
add ebx, 0xd800
push 0x400
mov dword [0x435ab8], eax
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push 3
push 0x80000000
push ebx
call fcn.004070a0
mov edx, 0x40b15e
mov dword [ebp - 0x30], eax
mov dword [0x40a010], eax
pop ecx
inc eax
jmp loc.0046f7e9

Function at 0x4039c4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40a010]
cmp eax, 0xffffffff
je 0x4039ea
sub esp, 0xc
push eax
call sub.KERNEL32.dll_CloseHandle
mov dword [0x40a010], 0xffffffff
add esp, 0xc
jmp loc.0046deca

Function at 0x403a5d
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Set current directory
Set environment variable
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2f8
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
add esp, 0xc
call sub.KERNEL32.dll_GetVersion
cmp ax, 6
je 0x403a9f
sub esp, 0xc
push 0
jmp loc.0046e30c
mov ebx, str.UXTHEME
jmp 0x403abc
sub esp, 0xc
push ebx
call fcn.004067db
push ebx
call sub.KERNEL32.dll_lstrlenA
add esp, 0xc
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x403aa6
sub esp, 0xc
push 9
call fcn.00406846
push 7
call fcn.00406846
add esp, 0xc
mov dword [0x435af8], eax
call sub.COMCTL32.DLL_InitCommonControls
sub esp, 0xc
push 0
call sub.OLE32.dll_OleInitialize
mov dword [0x435a48], eax
lea eax, [ebp - 0x2c4]
push 0
push 0x2b4
push eax
push 0
push 0x40b360
call sub.SHELL32.DLL_SHGetFileInfoW
sub esp, 0xc
push str.NSIS_Error
push 0x435b28
call fcn.00406aea
add esp, 0x18
call sub.KERNEL32.dll_GetCommandLineW
mov edx, dword [0x40b688]
add edx, 0xa000
push ecx
mov dword [ebp - 0x2dc], edx
push ecx
push eax
push edx
call fcn.00406aea
push edi
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x435b18], eax
mov eax, dword [0x40b688]
add esp, 0xc
cmp word [eax + 0xa000], 0x22
je 0x403b69
mov edx, dword [ebp - 0x2dc]
mov eax, 0x20
jmp 0x403b7a
mov edx, dword [0x40b688]
jmp loc.0046eabc
movzx eax, ax
push esi
push esi
push eax
push edx
call fcn.004068eb
push ebx
push eax
call sub.USER32.dll_CharNextW
mov dword [ebp - 0x2e8], 0
add esp, 0xc
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2e0], eax
jmp 0x403d26

Function at 0x4043f4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [0x436b88]
test edx, edx
je fcn.0040440f
push 0
push 0
push eax
push edx
jmp loc.0046c665
Function at 0x404455
Capabilities:
Packed with generic packer

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 8
cmp eax, 0x78
push 0
push eax
push 0x408
jmp loc.0046fddd

Function at 0x4044cb
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov esi, dword [ebp + 8]
push 0
push 9
push 0x110a
push esi
call sub.USER32.dll_SendMessageW
cmp dword [ebp + 0xc], 0
je 0x404524
jmp loc.0046cdd5
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 4
push 0
push 0x113e
push esi
call sub.USER32.dll_SendMessageW
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x4045e3
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push eax
push dword [0x431d28]
jmp loc.0046e460

Function at 0x404624
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov edi, dword [0x435a84]
mov esi, dword [0x435a80]
mov ebx, dword [0x435a48]
push 0
call sub.OLE32.dll_OleInitialize
or ebx, eax
add esp, 0xc
xor eax, eax
mov dword [0x435a48], ebx
call fcn.004043f4
jmp 0x404681
test byte [esi + 8], 1
je 0x40467b
push ebx
push ebx
push dword [ebp + 8]
push dword [esi + 0xc]
call fcn.00401592
pop edx
test eax, eax
pop ecx
je 0x40467b
inc dword [0x435a14]
jmp 0x404687
jmp 0x46c7d1
dec edi
cmp edi, 0xffffffff
jne 0x40465a
mov eax, 0x404
call fcn.004043f4
call sub.OLE32.dll_OleUninitialize
mov eax, dword [0x435a14]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x406285
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov esi, dword [0x435a68]
push 2
call fcn.00406846
add esp, 0xc
test eax, eax
je 0x4062bc
call eax
push ebx
movzx eax, ax
push ebx
push eax
mov eax, dword [0x40b688]
add eax, 0xc000
push eax
call fcn.004067be
jmp 0x40632f
mov ebx, dword [0x40b688]
sub esp, 0xc
add ebx, 0xc000
mov word [ebx], 0x30
mov word [ebx + 2], 0x78
mov word [ebx + 4], 0
push 0
push 0x42fce8
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
call fcn.00406b04
add esp, 0xc
cmp word [0x42fce8], 0
jne 0x406322
sub esp, 0xc
push 0
push 0x42fce8
push 0x40b61c
push str..DEFAULTControl_PanelInternational
jmp 0x46d5ae
push ecx
push ecx
jmp 0x46fce5
pop eax
pop edx
call fcn.004061a0
sub esp, 0xc
mov eax, dword [0x435ac8]
mov edi, dword [0x40b688]
and eax, 0x20
add edi, 0xa800
mov dword [0x435a08], eax
mov dword [0x435a24], 0x10000
push edi
call fcn.00406fde
add esp, 0xc
test eax, eax
jne 0x406432
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x406432
sub esp, 0xc
mov eax, dword [0x435a90]
push 0
push 0x436bc8
mov edx, dword [esi + 0x4c]
lea edx, [eax + edx*2]
lea eax, [eax + ecx*2]
push edx
push eax
push dword [esi + 0x44]
call fcn.00406b04
add esp, 0xc
cmp word [0x436bc8], 0
je 0x406432
mov ebx, 0x436bc8
cmp word [0x436bc8], 0x22
jne 0x4063d4
push eax
push eax
push 0x22
push 0x436bca
call fcn.004068eb
mov ebx, 0x436bca
mov word [eax], 0
pop ecx
pop eax
sub esp, 0xc
push ebx
call fcn.00406a69
add esp, 0xc
lea eax, [ebx + eax*2 - 8]
cmp eax, ebx
jbe 0x40641c
push edx
push edx
push str..exe
push eax
call sub.KERNEL32.dll_lstrcmpiW
pop edx
test eax, eax
pop ecx
jne 0x40641c
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
add esp, 0xc
cmp eax, 0xffffffff
je 0x406410
test al, 0x10
jne 0x40641c
sub esp, 0xc
push ebx
call fcn.00406a72
add esp, 0xc
sub esp, 0xc
push ebx
call fcn.00406aac
sub esp, 0xc
push eax
push edi
call fcn.00406aea
add esp, 0x18
sub esp, 0xc
push edi
call fcn.00406fde
add esp, 0xc
test eax, eax
jne 0x406452
push ecx
push ecx
push dword [esi + 0x118]
push edi
call fcn.00406b8a
pop eax
pop edx
push eax
push eax
push 0x8040
push 0
push 0
push 1
push 0x67
push dword [0x435b18]
call sub.USER32.dll_LoadImageW
mov dword [0x436b68], eax
mov edx, eax
pop edi
pop eax
cmp dword [esi + 0x50], 0xffffffff
je 0x406508
sub esp, 0xc
mov eax, dword [0x435b18]
jmp 0x46eafd
sub esp, 0xc
push 0
call fcn.0040331b
add esp, 0xc
test eax, eax
jne 0x406613
jmp 0x46c1ff
mov ebx, 2
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40665d
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
jmp fcn.00406672
Function at 0x4067db
Capabilities:
Get common file path
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24c
lea ebx, [ebp - 0x240]
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov edx, eax
pop eax
cmp edx, 0x104
pop ecx
jbe 0x406806
xor edx, edx
jmp 0x406814
test edx, edx
je 0x406814
xor eax, eax
cmp word [ebx + edx*2 - 2], 0x5c
jne 0x406819
jmp 0x46fcad
push dword [ebp + 8]
add eax, eax
add eax, 0x40b62c
push eax
lea eax, [ebx + edx*2]
push 0x40b630
push eax
call sub.USER32.dll_wsprintfW
add esp, 0xc
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExW
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x406846
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, dword [ebp + 8]
sub esp, 0xc
mov ebx, dword [esi*8 + 0x40a018]
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
test eax, eax
jne 0x406877
sub esp, 0xc
push ebx
call fcn.004067db
xor edx, edx
add esp, 0xc
test eax, eax
je 0x40688a
push edx
push edx
push dword [esi*8 + 0x40a01c]
push eax
call sub.KERNEL32.dll_GetProcAddress
pop ebx
mov edx, eax
pop esi
jmp 0x46d160

Function at 0x406895
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 5
call fcn.00406846
xor edx, edx
add esp, 0xc
test eax, eax
je fcn.004068b4
call eax
xor edx, edx
jmp loc.0046c3dd

Function at 0x4068b8
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
jmp loc.0046f39a

Function at 0x406b04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov word [ebx], 0
push edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExW
add esp, 0xc
test eax, eax
jne 0x406b83
push eax
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x800
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExW
pop edx
test eax, eax
pop ecx
jne 0x406b67
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x406b6c
mov word [ebx], 0
mov word [ebx + 0x7fe], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14

Function at 0x406b8a
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov edx, dword [ebp + 0xc]
mov ecx, dword [0x435a90]
test edx, edx
jns 0x406baf
not edx
mov eax, dword [0x436bb8]
mov eax, dword [eax + edx*4]
lea edx, [eax + eax]
jmp 0x406bb1
add edx, edx
mov dword [ebp - 0x40], 0x436bc8
cmp dword [ebp + 8], 0x436bc8
jb 0x406bdf
mov eax, dword [ebp + 8]
sub eax, 0x436bc8
sar eax, 1
cmp eax, 0x7ff
ja 0x406bdf
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [ebp - 0x40], eax
add ecx, edx
mov dword [ebp - 0x44], ecx
jmp 0x46c8ff
Function at 0x406e7e
Capabilities:
Packed with generic packer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push eax
push ebx
jmp loc.0046ce51

Function at 0x406eb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
jmp loc.0046f33f

Function at 0x406f75
Capabilities:
Get common file path
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0x64
mov esi, dword [ebp + 8]
jmp 0x406fc5
mov edx, dword [0x40b658]
mov eax, dword [0x40b654]
jmp loc.0046d5e6
dec edi
cmp edi, 0xffffffff
jne 0x406f88
mov word [esi], 0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x406fde
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
push dword [ebp + 8]
push 0x4333c8
call fcn.00406aea
push ebx
push 0x4333c8
call fcn.0040691a
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x407097
sub esp, 0xc
push eax
call fcn.00406995
add esp, 0xc
cmp byte [0x435ac8], 0
jns 0x40702d
mov ax, word [ebx]
test ax, ax
je 0x407097
cmp ax, 0x5c
je 0x407097
sub ebx, 0x4333c8
sar ebx, 1
jmp 0x407060
sub esp, 0xc
push 0x4333c8
call fcn.004068b8
add esp, 0xc
test eax, eax
je 0x407050
test byte [eax], 0x10
je 0x407097
sub esp, 0xc
push 0x4333c8
call fcn.00406a72
add esp, 0xc
sub esp, 0xc
push 0x4333c8
call fcn.00406a69
add esp, 0xc
cmp eax, ebx
jg 0x407037
sub esp, 0xc
push 0x4333c8
call fcn.00406aac
push 0x4333c8
call sub.KERNEL32.dll_GetFileAttributesW
add esp, 0xc
inc eax
setne al
movzx eax, al
jmp 0x407099
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
pop edx
xor edx, edx
cmp eax, 0xffffffff
pop ecx
setne dl
neg edx
and edx, eax
push 0
push edx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x4070d8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.dll_GetFileAttributesW
add esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
je 0x407103
push eax
push eax
mov eax, ebx
and eax, 0xfffffffe
push eax
push esi
call sub.KERNEL32.dll_SetFileAttributesW
pop esi
pop eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
Function at 0x407174
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
push 0x40b65c
push 0x431fc8
call sub.KERNEL32.dll_lstrcpyW
test ebx, ebx
pop esi
pop edi
je 0x4071d0
push ecx
push 1
push 0
push ebx
call fcn.004070a0
push edx
push edx
push eax
call sub.KERNEL32.dll_CloseHandle
push eax
push eax
push 0x400
push 0x431fc8
push ebx
call sub.KERNEL32.dll_GetShortPathNameW
add esp, 0x14
test eax, eax
je 0x407332
jmp loc.0046f523
push eax
push 0x400
push 0x4327c8
push dword [ebp + 8]
call sub.KERNEL32.dll_GetShortPathNameW
pop edi
test eax, eax
je 0x407332
cmp eax, 0x400
jg 0x407332
push 0x4327c8
push 0x431fc8
push str._ls_ls_r_n
jmp loc.0046da34
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40733a
Capabilities:
Move file
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push ecx
jmp loc.0046eb43

Function at 0x40736f
Capabilities:
Delete directory
Delete file
Packed with generic packer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
call fcn.004070d8
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4073cc
test edi, 1
je 0x4073a1
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x4073aa
sub esp, 0xc
push ebx
jmp 0x46d006
add esp, 0xc
test eax, eax
jne 0x4073c5
and edi, 4
jne 0x4073cc
push edi
push edi
push esi
push ebx
call sub.KERNEL32.dll_SetFileAttributesW
xor eax, eax
pop ebx
pop esi
jmp 0x4073ce
mov eax, 1
jmp 0x4073ce
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x4073d8
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x278
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.00406fde
add esp, 0xc
mov dword [ebp - 0x260], eax
test edi, 8
je 0x407427
sub esp, 0xc
mov ebx, dword [0x435a10]
push esi
call sub.KERNEL32.dll_DeleteFileW
add esp, 0xc
test eax, eax
sete al
jmp loc.0046f641
jmp loc.0046e865

Function at 0x4076c0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
jmp loc.0046ca16

Function at 0x4076e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x4343c8], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x4343c8
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessW
pop edx
xor edx, edx
pop ecx
test eax, eax
je 0x407734
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, edx
leave
ret 4

Function at 0x40773a
Capabilities:
Create directory
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateDirectoryW
pop edx
xor edx, edx
pop ecx
test eax, eax
jne 0x407759
jmp loc.0046cd59
mov eax, edx
leave
ret 4
Function at 0x40775f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x28
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], 1
mov byte [ebp - 0x27], 0
mov word [ebp - 0x26], 4
mov dword [ebp - 0x24], 0x40b69c
mov dword [ebp - 0x20], 0x40b69c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x40b68c
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0
push esi
call sub.KERNEL32.dll_CreateDirectoryW
pop edx
xor edx, edx
pop ecx
test eax, eax
jne 0x4077e3
jmp loc.0046c187
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x43441c], 0
push ebx
mov esi, dword [ebp + 0x10]
jne 0x40782d
xor ebx, ebx
mov edx, ebx
xor ecx, ecx
mov eax, edx
inc ecx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
cmp ecx, 8
jne 0x407807
mov dword [ebx*4 + 0x434418], edx
inc ebx
cmp ebx, 0x100
jne 0x407803
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
not edx
jmp 0x407849
mov al, byte [ecx - 1]
xor eax, edx
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x434418]
dec esi
inc ecx
cmp esi, 0xffffffff
jne 0x407837
not edx
mov eax, edx
pop ebx
pop esi
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x23d42728
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x7b1d6af4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219