joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
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
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x407013
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x455208], 2
jl 0x407054
movaps xmm0, xmmword [0x43c840]
movaps xmmword [0x44a030], xmm0
movaps xmm0, xmmword [0x43c830]
movaps xmmword [0x44a040], xmm0
movaps xmm0, xmmword [0x43c810]
movaps xmmword [0x44a050], xmm0
movaps xmm0, xmmword [0x43c820]
movaps xmmword [0x44a060], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040741d
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x43c7e8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x407062
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x408021
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40804b
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x44a070]
inc edi
sub esi, 1
jne 0x408033
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x408213
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x408272
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebp
call fcn.004089e5
xor edx, edx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor ebx, eax
inc edx
cmp edx, 0x20
jb 0x408257
mov dword [esi], ebx
xor ebx, ebx
cmp dword [edi], 3
jne 0x40829b
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebp
call fcn.004089e5
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00426c60
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425724
add esp, 0x28
ret 8
Function at 0x4089e5
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1e0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
cmp ebx, 0x40
jbe 0x408a91
lea eax, [esp + 0xf8]
push eax
call fcn.00415e96
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.00415edc
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00415d6b
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
push 0x20
pop ebx
test edi, edi
je 0x408aab
cmp byte [edx], 0
je 0x408aab
mov esi, edi
lea edi, [esp + 0x28]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x408b16
xor edx, edx
test ebx, ebx
je 0x408ad1
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408abc
cmp ebx, 0x40
jae 0x408af0
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.004271e0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00415e96
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00415edc
test edi, edi
je 0x408b27
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x408b27
push 0x1a
pop ecx
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
call fcn.00415edc
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00415d6b
mov edi, dword [esp + 0x14]
test edi, edi
je 0x408b73
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x408b73
mov esi, edi
lea edi, [esp + 0x90]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x408be2
test ebx, ebx
je 0x408b97
lea eax, [esp + 0x160]
sub ebp, eax
xor edx, edx
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408b82
cmp ebx, 0x40
jae 0x408bb6
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.004271e0
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00415e96
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415edc
test edi, edi
je 0x408bf6
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x408bf6
push 0x1a
pop ecx
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415edc
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00415d6b
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425724
add esp, 0x1d4
ret 0x24
Function at 0x408c39
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x408c88
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.00426c60
add esp, 0xc
cmp esi, 0x44
jae 0x408e5b
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x408e5b
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x408e5b
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.004089e5
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00426c60
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xec], eax
xor esi, esi
mov dword [esp + 0xf8], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x104], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0xec]
test edi, edi
je 0x408ddf
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.004089e5
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00426c60
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x408dc3
sub edi, 1
jne 0x408d73
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.00426c60
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x408d64
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.00415224
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.00415224
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.00415224
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.00415224
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425724
add esp, 0x19c
ret 0x20
call fcn.00425cd1
int3
Function at 0x40e968
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x439e92
call fcn.004257c8
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40e98a
mov al, 1
jmp 0x40eac6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40e9a8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40ea8f
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40e9ff
xor edi, edi
test esi, esi
je 0x40ea1f
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40e9cf
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x40ea17
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e9c0
jmp 0x40ea17
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x40eabf
cmp byte [ebx + 0x1e], 0
je 0x40eabf
cmp dword [ebx + 0x10], 0
jne 0x40eabf
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x44e0c8
push edi
call fcn.00409254
test al, al
je 0x40ea97
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40e9ab
cmp dword [ebp - 0x30], 0
jbe 0x40e9ab
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43c280]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43c280]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40e9ab
push 0x43c6c8
lea ecx, [ebp - 0x28]
call fcn.004014a7
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x44e0c8
call fcn.00409677
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00425777
ret 8
Function at 0x40ed3f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x439431
call fcn.004257c8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ed58
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40eddc
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004116bc
test al, al
je 0x40eda1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40ed98
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40eddc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40edd3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00425716
pop ecx
pop ecx
mov eax, edi
call fcn.00425777
ret 4

Function at 0x40f00f
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x439431
call fcn.004257c8
mov esi, dword [ebp + 8]
push esi
call fcn.004113fc
movzx eax, ax
cmp eax, 0x2e
je 0x40f051
cmp eax, 0x20
je 0x40f051
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f03b
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40f0f0
jmp 0x40f055
xor edi, edi
mov ebx, edi
push esi
call fcn.0040ed2d
test al, al
jne 0x40f103
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.004116bc
test al, al
je 0x40f09d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f093
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f0dc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f0d3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00425716
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x40f103
cmp byte [ebp + 0xc], 0
je 0x40f0ff
push dword [ebp + 0x10]
push esi
call fcn.0040f5ab
xor eax, eax
jmp 0x40f11b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40f11b
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00425777
ret 0xc
Function at 0x40f5ab
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x439431
call fcn.004257c8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40f5c4
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40f651
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004116bc
test al, al
je 0x40f616
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f607
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f651
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f648
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00425716
pop ecx
pop ecx
mov al, bl
call fcn.00425777
ret 8
Function at 0x40f846
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x439fdf
call fcn.004257c8
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x40f945
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40f871
mov eax, dword [ebx]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f968
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push ebx
call fcn.004116bc
test al, al
je 0x40f8cc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f8bc
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f91d
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x40f914
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.00425716
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x40f968
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40f93b
cmp eax, 3
je 0x40f93b
cmp eax, 0x12
je 0x40f93b
mov al, 1
jmp 0x40f93d
xor al, al
mov byte [edi + 0x5c], al
jmp 0x40fa1f
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f968
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40f93d
push ebx
mov ecx, edi
call fcn.004025c3
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a7
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.004122bf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.00417c34
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.00417c34
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.00417c34
and dword [edi + 0x58], 0
mov eax, esi
call fcn.00425777
ret 0xc
Function at 0x41010c
Capabilities:
Hash data using crc32b

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x410143
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x410142
mov eax, esi
mov edx, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
sar edx, 0x1f
and eax, ecx
shr esi, 1
and edx, 0x4c11db7
add ecx, ecx
xor edi, eax
xor ecx, edx
jne 0x41011c
pop esi
mov eax, edi
pop edi
ret 8

Function at 0x4103e0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x449778]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44e0e0], 0
jne 0x410443
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x410433
jne 0x41042f
cmp dword [ebp - 0x74], 0x55f0
jb 0x41042f
call fcn.0041048b
test al, al
je 0x410433
xor al, al
jmp 0x410435
mov al, 1
mov byte [0x44e0e1], al
mov byte [0x44e0e0], 1
jmp 0x410448
mov al, byte [0x44e0e1]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00425724
add ebp, 0x98
leave
ret
Function at 0x4143e7
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x4520f8], cl
inc ecx
cmp ecx, 0x100
jl 0x4143f0
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x452df9], al
mov byte [ebp*4 + 0x452df8], al
mov byte [ebp*4 + 0x4529fb], al
mov byte [ebp*4 + 0x4529f8], al
mov byte [ebp*4 + 0x4525fb], al
mov byte [ebp*4 + 0x4525fa], al
mov byte [ebp*4 + 0x4521fa], al
mov byte [ebp*4 + 0x4521f9], al
call fcn.00414c6a
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x452dfb], al
mov byte [ebp*4 + 0x4529fa], al
mov byte [ebp*4 + 0x4525f9], al
mov byte [ebp*4 + 0x4521f8], al
call fcn.00414c6a
mov bl, byte [ebp + 0x4520f8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x452dfa], al
mov byte [ebp*4 + 0x4529f9], al
mov byte [ebp*4 + 0x4525f8], al
mov byte [ebp*4 + 0x4521fb], al
call fcn.00414c6a
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x453dfa], al
mov byte [ebp*4 + 0x4539f9], al
mov byte [ebp*4 + 0x4535f8], al
mov byte [ebp*4 + 0x4531fb], al
mov byte [edi*4 + 0x454dfa], al
mov byte [edi*4 + 0x4549f9], al
mov byte [edi*4 + 0x4545f8], al
mov byte [edi*4 + 0x4541fb], al
call fcn.00414c6a
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x453df8], al
mov byte [ebp*4 + 0x4539fb], al
mov byte [ebp*4 + 0x4535fa], al
mov byte [ebp*4 + 0x4531f9], al
mov byte [edi*4 + 0x454df8], al
mov byte [edi*4 + 0x4549fb], al
mov byte [edi*4 + 0x4545fa], al
mov byte [edi*4 + 0x4541f9], al
call fcn.00414c6a
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x453df9], al
mov byte [ebp*4 + 0x4539f8], al
mov byte [ebp*4 + 0x4535fb], al
mov byte [ebp*4 + 0x4531fa], al
mov byte [edi*4 + 0x454df9], al
mov byte [edi*4 + 0x4549f8], al
mov byte [edi*4 + 0x4545fb], al
mov byte [edi*4 + 0x4541fa], al
call fcn.00414c6a
mov byte [ebp*4 + 0x453dfb], al
mov byte [ebp*4 + 0x4539fa], al
mov byte [ebp*4 + 0x4535f9], al
mov byte [ebp*4 + 0x4531f8], al
inc ebp
mov byte [edi*4 + 0x454dfb], al
mov byte [edi*4 + 0x4549fa], al
mov byte [edi*4 + 0x4545f9], al
mov byte [edi*4 + 0x4541f8], al
cmp ebp, 0x100
jl 0x414406
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret