joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b930
Capabilities:
Move file

Disassembly:
jmp 0x40e812
cmp dword [eax + 0x18], 8
jb 0x40e81d
mov eax, dword [eax + 4]
jmp 0x40e820
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40e82b
mov ecx, dword [ecx + 4]
jmp 0x40e82e
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40b935
Capabilities:
Delete directory

Disassembly:
jmp 0x40e83c
cmp dword [eax + 0x18], 8
jb 0x40e847
mov eax, dword [eax + 4]
jmp 0x40e84a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
ret

Function at 0x40b93a
Capabilities:
Create directory

Disassembly:
jmp 0x40e857
cmp dword [eax + 0x18], 8
jb 0x40e862
mov eax, dword [eax + 4]
jmp 0x40e865
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push 0x4c
mov eax, 0x442964
call fcn.004342a8
push 0x44749c
mov esi, ecx
call fcn.00432115
pop ecx
push eax
mov eax, esi
call fcn.0040bc2f
cmp eax, 0xffffffff
jne 0x40b99a
cmp dword [esi + 0x18], 8
jb 0x40b984
mov esi, dword [esi + 4]
jmp 0x40b987
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40b9bb
lea eax, [ebp - 0x58]
call fcn.0040dadd
and dword [ebp - 4], 0
push eax
push esi
call fcn.0040daa7
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x58]
call fcn.0040db0b
mov al, bl
call fcn.0043432b
ret

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

Disassembly:
push 0x20
mov eax, 0x4428a2
call fcn.004342a8
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403f4c
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040ca8b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40d131
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d153
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b5
mov al, bl
call fcn.0043432b
ret
xor bl, bl
jmp 0x40d13f

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

Disassembly:
push 0x20
mov eax, 0x4428a2
call fcn.004342a8
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403f4c
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040ca8b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40d18a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d1b0
test al, 0x10
jne 0x40d1b0
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b5
mov al, bl
call fcn.0043432b
ret
xor bl, bl
jmp 0x40d19c
Function at 0x40d1b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4428a2
call fcn.004342a8
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403f4c
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040ca8b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40d1e7
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d20d
test al, 0x10
je 0x40d20d
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b5
mov al, bl
call fcn.0043432b
ret
xor bl, bl
jmp 0x40d1f9

Function at 0x40d211
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40d21f
mov eax, dword [edi]
jmp 0x40d221
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [esi + 0x18], 8
jb 0x40d235
mov ecx, dword [edi]
jmp 0x40d237
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x18], 8
jb 0x40d247
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
neg eax
sbb eax, eax
inc eax
pop edi
ret
Function at 0x40d256
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44286c
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x456214]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x456214]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00403f4c
mov eax, esi
push 0x10
push eax
mov dword [esp + 0xc0], ebx
call fcn.0040ca8b
pop ecx
pop ecx
lea eax, [esp + 0x5c]
call fcn.0040dadd
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 1
call fcn.0040da15
push 0x4474e8
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xc4], 2
call fcn.00404619
add esp, 0xc
lea ecx, [esp + 0x5c]
mov edx, eax
push ecx
mov eax, esi
mov byte [esp + 0xbc], 3
call fcn.0040da45
xor edi, edi
push ebx
inc edi
push edi
lea esi, [esp + 0x48]
mov byte [esp + 0x27], al
mov byte [esp + 0xc0], 2
call fcn.004012b5
cmp byte [esp + 0x1f], bl
je 0x40d449
lea esi, [esp + 0x5c]
call fcn.0040db9c
test al, al
jne 0x40d433
mov eax, esi
call fcn.0040db89
test al, al
mov eax, esi
je 0x40d381
call fcn.0040db85
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004085ac
add esp, 0xc
push eax
mov byte [esp + 0xbc], 4
call fcn.0040d256
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40d3a6
call fcn.0040db85
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004085ac
add esp, 0xc
lea esi, [esp + 0x40]
call fcn.0040d211
movzx eax, al
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x40d428
lea esi, [esp + 0x5c]
call fcn.0040db9c
test al, al
jne 0x40d433
mov eax, esi
call fcn.0040db89
test al, al
mov eax, esi
je 0x40d3fb
call fcn.0040db85
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004085ac
add esp, 0xc
push eax
mov byte [esp + 0xbc], 5
call fcn.0040d256
pop ecx
mov byte [esp + 0xb8], 2
jmp 0x40d420
call fcn.0040db85
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004085ac
add esp, 0xc
lea esi, [esp + 0x40]
call fcn.0040d211
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
push ebx
push edi
lea esi, [esp + 0x48]
call fcn.004012b5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
call fcn.0040da4c
test al, al
jne 0x40d3b0
lea eax, [esp + 0x20]
call fcn.0040da9d
lea eax, [esp + 0x24]
push 0x20
push eax
call fcn.0040ca8b
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
pop ecx
pop ecx
jae 0x40d46f
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d482
add dword [esp + 0x14], edi
adc dword [esp + 0x18], ebx
lea edi, [esp + 0x20]
call fcn.0040da2d
lea eax, [esp + 0x5c]
call fcn.0040db0b
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.004012b5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004321f0
mov esp, ebp
pop ebp
ret
Function at 0x40dfa7
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40dfb4
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x40dfb0
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40def1
push ebx
push ebx
call fcn.004334ef
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40dfeb
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0040df34
xor al, al
jmp 0x40e00d
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40e00b
mov esi, dword [edi]
call fcn.0040df34
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret

Function at 0x40e72e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.004324e0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40e790
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401247
mov al, 1
jmp 0x40e792
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004321f0
leave
ret

Function at 0x40e7f3
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40e7fe
mov eax, dword [eax + 4]
jmp 0x40e801
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40e879
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40e891
mov eax, dword [edi]
jmp 0x40e893
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e8a5
mov al, 1
jmp 0x40e941
cmp dword [esi + 0x18], 8
jb 0x40e8af
mov eax, dword [edi]
jmp 0x40e8b1
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40e93f
cmp dword [esi + 0x18], 8
jb 0x40e8ca
mov eax, dword [edi]
jmp 0x40e8cc
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401221
push 0
lea eax, [ebp - 0x20]
call fcn.0040e7f3
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.004012b5
test bl, bl
pop ebx
jne 0x40e93f
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40e906
mov eax, dword [edi]
jmp 0x40e908
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e89e
cmp dword [esi + 0x18], 8
jb 0x40e91d
mov eax, dword [edi]
jmp 0x40e91f
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00401221
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040e7f3
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.004012b5
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40e95f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x45783c], ebx
push esi
mov esi, ecx
je 0x40e994
push 0xffffffffffffffff
push esi
mov eax, 0x457828
call fcn.00401313
mov al, 1
jmp 0x40ea30
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004324e0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40ea2e
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.004324e0
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40ea1e
cmp eax, ebx
je 0x40ea1e
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40ea24
lea eax, [ebp - 0x210]
call fcn.00401247
jmp 0x40e98d
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004321f0
leave
ret

Function at 0x40ea3e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.004324e0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40ea8c
mov edi, dword [edi + 4]
jmp 0x40ea8f
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40ea9a
mov ebx, dword [ebx + 4]
jmp 0x40ea9d
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40eac4
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401247
mov al, 1
jmp 0x40eac6
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004321f0
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40ebbf
mov eax, dword [eax + 4]
jmp 0x40ebc2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40ed5c
mov dword [ecx*4 + 0x45e520], eax
inc ecx
cmp ecx, 0x100
jb 0x40ed57
mov edx, 0x800
jmp 0x40eda9
mov eax, dword [ecx*4 + 0x45e120]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x45e520]
inc ecx
mov dword [ecx*4 + 0x45e51c], eax
cmp ecx, edx
jb 0x40ed88
mov dword [0x45acf4], 0x40ee29
call fcn.0040efb0
test eax, eax
pop esi
jne 0x40edcb
mov dword [0x45acf4], 0x40eebf
ret
Function at 0x41cb43
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41cb5a
add eax, eax
xor eax, 0x4c11db7
jmp 0x41cb5c
add eax, eax
dec edx
test edx, edx
jg 0x41cb4d
mov dword [ecx*4 + 0x45acf8], eax
inc ecx
cmp ecx, 0x100
jb 0x41cb45
ret
Function at 0x42a81c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.004324e0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x42a86f
xor al, al
jmp 0x42a8a8
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42a890
cmp dword [ebp - 0x80], edi
je 0x42a86b
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42a86b
lea eax, [ebp - 0x7c]
call fcn.00401247
cmp dword [ebp - 0x80], edi
je 0x42a8a6
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.004321f0
add ebp, 0x398
leave
ret

Function at 0x42a8bf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.004324e0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x42a922
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x42a926
Capabilities:
Query environment variable

Disassembly:
push 0x2c
mov eax, 0x441929
call fcn.004342a8
push 1
lea eax, [ebp - 0x30]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x25
call fcn.004040ca
cmp eax, 0xffffffff
mov eax, edi
jne 0x42a965
call fcn.00403f4c
mov eax, esi
jmp 0x42aa00
lea esi, [ebp - 0x2c]
call fcn.00403f4c
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
jb 0x42a97e
mov eax, dword [eax]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x42a993
mov eax, edi
jmp 0x42a9e9
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432110
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
pop ecx
jb 0x42a9b9
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x30]
push eax
call ebx
test eax, eax
jbe 0x42a9dd
cmp eax, esi
ja 0x42a9dd
mov ecx, dword [ebp - 0x30]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x2c]
call fcn.00401247
push dword [ebp - 0x30]
call fcn.004333c2
pop ecx
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
call fcn.00403f4c
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b5
mov eax, dword [ebp - 0x34]
call fcn.0043432b
ret

Function at 0x42b519
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42b527
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42b563
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42b541
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42b563
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040ca3f
pop ecx
pop esi
pop ebp
ret 0xc
Function at 0x42efca
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42f116
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42f006
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42f00b
inc esi
cmp esi, dword [ebp - 8]
jb 0x42effd
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42f0f7
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42f08a
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42f037
cmp cl, 0xff
jne 0x42f0b9
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42f0ca
movzx edi, byte [edx + 0x4487e0]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42f07a
cmp bl, 0xff
jne 0x42f0c7
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42f052
dec ecx
shl edx, cl
and edx, 7
je 0x42f024
movzx ecx, byte [edx + 0x4487e0]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4487d8], 0
mov cl, byte [ebx + 4]
je 0x42f0b6
test cl, cl
je 0x42f0b6
cmp cl, 0xff
jne 0x42f024
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42eff8
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42eff8
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x42f2cd
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x42f5b4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x45d0f8], al
inc eax
cmp eax, 0x100
jb 0x42f5bc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0xff
movzx ebx, byte [edi + str.cw]
mov eax, ebx
and al, 0x80
neg al
lea ecx, [ebx + ebx]
sbb eax, eax
and eax, 0x1b
xor eax, ecx
and eax, esi
mov ecx, eax
mov edx, ecx
xor edx, ebx
mov dword [ebp - 8], edx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, edi
shl eax, 2
mov dword [eax + 0x45b0f8], edx
mov edx, ebx
shl edx, 8
mov edi, edx
or edi, ebx
or edx, ecx
shl edi, 8
or edi, ecx
shl edx, 8
or edx, dword [ebp - 8]
shl edi, 8
or edi, dword [ebp - 8]
shl ecx, 8
or ecx, dword [ebp - 8]
shl edx, 8
shl ecx, 8
mov dword [eax + 0x45b4f8], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x45b8f8], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x45bcf8], ecx
movzx ecx, byte [edi + 0x45d0f8]
mov edx, ecx
and dl, 0x80
neg dl
lea ebx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
sbb edx, edx
and edx, 0x1b
xor edx, ebx
and edx, esi
mov ebx, edx
and bl, 0x80
neg bl
mov dword [ebp - 0x10], edx
sbb ebx, ebx
and ebx, 0x1b
add edx, edx
xor ebx, edx
and ebx, esi
mov edx, ebx
and bl, 0x80
neg bl
mov dword [ebp - 0x14], edx
sbb ebx, ebx
add edx, edx
and ebx, 0x1b
xor ebx, edx
and ebx, esi
mov edx, ebx
xor edx, ecx
mov dword [ebp - 8], edx
mov edx, ebx
xor edx, dword [ebp - 0x10]
xor edx, ecx
mov dword [ebp - 0xc], edx
shl edx, 8
mov ecx, ebx
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
or edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 0x45c0f8], edx
mov edx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, dword [ebp - 0xc]
mov dword [eax + 0x45c4f8], edx
mov edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl ecx, 8
or ecx, dword [ebp - 0xc]
shl edx, 8
or edx, dword [ebp - 0xc]
shl ecx, 8
or ecx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 4]
shl ecx, 8
or ecx, dword [ebp - 8]
inc edi
cmp edi, 0x100
mov dword [eax + 0x45c8f8], edx
mov dword [eax + 0x45ccf8], ecx
mov dword [ebp - 0x10], edi
jb 0x42f5de
mov dword [0x45e504], 0x430129
mov dword [0x45e50c], 0x430182
mov dword [0x45e508], 0x430205
call fcn.0040f06d
test eax, eax
pop edi
pop esi
pop ebx
je 0x42f78e
mov dword [0x45e504], 0x431367
mov dword [0x45e50c], 0x43136c
mov dword [0x45e508], 0x431371
leave
ret
Function at 0x42f790
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x42f7c7
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x42f7ba
cmp esi, edi
jae 0x42f897
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x42f837
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x457198]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x42f87f
cmp dword [ebp + 8], 6
jbe 0x42f87f
cmp edx, 4
jne 0x42f87f
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x42f7d9
pop edi
pop esi
pop ebx
leave
ret 4