joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404035
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x404088
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x40445a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401885
push 0x424c68
lea ecx, [ebp - 0xc]
call fcn.00412e0c
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40454e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040180c
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00412e0c
test byte [ebp - 0x25c], 0x10
je 0x40450d
push 0x424c64
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404531
push 0x424c5c
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404531
lea ecx, [ebp - 0xc]
call fcn.0040a992
push eax
call fcn.0040445a
pop ecx
jmp 0x40452d
push 0
lea ecx, [ebp - 0xc]
call fcn.0040a992
push eax
call esi
test eax, eax
je 0x404584
lea ecx, [ebp - 0xc]
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404584
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044ab
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x42c2bc
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x404584
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x404584
lea ecx, [ebp - 0xc]
call fcn.00401251
xor eax, eax
inc eax
jmp 0x40458e
lea ecx, [ebp - 0xc]
call fcn.00401251
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404593
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x42c3f8], 0
je 0x4045aa
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4045c6
xor eax, eax
inc eax
jmp 0x4045f7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4045f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4045ec
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4045f7
xor eax, eax
jmp 0x4045f7
push esi
call fcn.0040445a
pop ecx
pop esi
leave
ret

Function at 0x404b7d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401245
push 2
mov ecx, esi
call fcn.00404ac5
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
push 0
mov ecx, esi
mov ebx, eax
call fcn.0040189a
test ebx, ebx
je 0x404bc4
inc ebx
push ebx
mov ecx, esi
call fcn.00404ac5
push eax
push ebx
call edi
mov ecx, esi
call fcn.00404aac
mov ecx, esi
call fcn.0040102e
and dword [ebp + 8], 0
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.00404ac5
push dword [ebp + 8]
add eax, edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404aac
mov ecx, esi
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404c15
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404bd5
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x404fc9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.00401885
push 0
lea ecx, [ebp - 0x18]
call fcn.00404ac5
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x405005
cmp eax, 0x2f
jne 0x405033
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x405033
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x405025
cmp eax, 0x5c
je 0x405025
dec esi
test esi, esi
jg 0x405012
test esi, esi
je 0x4050d6
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.004035c0
pop ecx
test eax, eax
je 0x405021
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40506a
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00404d12
pop ecx
pop ecx
test eax, eax
je 0x40506a
xor esi, esi
jmp 0x4050f9
push edi
call fcn.004035c0
pop ecx
test eax, eax
jne 0x4050c4
push edi
push 0xc
push 1
call fcn.0040a35a
add esp, 0xc
jmp 0x405063
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.0041cb30
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4050b6
jmp 0x4050b5
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x4050bc
cmp eax, 0x2f
je 0x4050bc
inc esi
cmp word [edi + esi*2], cx
jne 0x4050a7
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40506a
cmp esi, dword [ebp - 4]
jl 0x405084
lea ecx, [ebp - 0x18]
call fcn.00401251
xor eax, eax
inc eax
jmp 0x40511c
cmp dword [ebp - 4], 2
jne 0x405105
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x405105
cmp ax, 0x7a
ja 0x405105
cmp word [ebx + 2], 0x3a
jne 0x405105
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.00401251
mov eax, esi
jmp 0x40511c
push ebx
push 0xc
push 1
call fcn.0040a35a
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401251
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4056fb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edi, eax
call fcn.00401245
lea eax, [edi + 2]
push eax
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.00404ac5
inc edi
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404ac5
push eax
push dword [ebp + 0xc]
call esi
mov ecx, ebx
call fcn.00404aac
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x405c3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42c258], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040a81f
call fcn.00403dac
push 3
call fcn.00403e07
push 0x28
mov dword [0x42c280], eax
call fcn.00403e07
push 2
mov dword [0x42c27c], eax
call fcn.00403e07
push 5
mov dword [0x42c278], eax
call fcn.00403e07
push 0x15
mov dword [0x42c274], eax
call fcn.00403e07
push 0x16
mov dword [0x42c270], eax
call fcn.00403e07
push 0x17
mov dword [0x42c26c], eax
call fcn.00403e07
xor ebx, ebx
add esp, 0x1c
mov dword [0x42c268], eax
mov dword [0x42c260], ebx
mov dword [0x42c264], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x405d32
push edi
lea eax, [ebp - 0x5c]
push 0x4259d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040574d
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x42b3c4], edi
jne 0x405d2a
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x42b3c8]
call fcn.0040574d
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x405d0c
inc edi
cmp edi, 0x40
jl 0x405cd1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40630d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x42c3bc
push edi
mov ecx, esi
xor edi, edi
call fcn.0040ffb5
test eax, eax
jle 0x406378
push edi
mov ecx, esi
call fcn.0040aa98
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004028ff
lea eax, [ebp - 0xc]
push eax
call fcn.00405d74
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0040a992
push eax
push edi
mov ecx, esi
call fcn.0040aa98
mov ecx, eax
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xc]
call fcn.00401251
mov ecx, esi
inc edi
call fcn.0040ffb5
cmp edi, eax
jl 0x406327
pop edi
pop esi
leave
ret
Function at 0x406672
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
lea ecx, [ebp + 8]
call fcn.0040a992
cmp word [eax + 2], 0x3a
jne 0x40682b
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x40669e
cmp ecx, 0x2f
jne 0x40682b
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40682b
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404b7d
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x28]
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x406823
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401245
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401000
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00412e0c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412980
mov esi, 0x425af0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00412e0c
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00412e0c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412980
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00412e0c
push edi
lea ecx, [ebp - 0x1c]
call fcn.00412e0c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412980
push esi
lea ecx, [ebp - 0x1c]
call fcn.00412e0c
push ebx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040102e
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404c7b
add esp, 0xc
mov ecx, eax
call fcn.004042d4
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00401251
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x40680c
lea ecx, [ebp - 0x1c]
call fcn.0040102e
cmp dword [ebp - 8], eax
jne 0x40680c
push ebx
lea ecx, [ebp + 8]
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040a992
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40681b
lea ecx, [ebp - 0x28]
call fcn.0040a992
push eax
call fcn.00404593
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00401251
lea ecx, [ebp - 0x28]
call fcn.00401251
lea ecx, [ebp + 8]
call fcn.00401251
pop ebx
leave
ret
Function at 0x407a2b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041d46c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004079e2
add esp, 0x1c
leave
ret

Function at 0x407af3
Capabilities:
Create thread

Disassembly:
add ecx, 0x38
jmp 0x4095c0
push esi
mov esi, ecx
call fcn.00408078
test eax, eax
jne 0x4095de
push eax
push eax
push esi
push 0x40959c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x42c278]
mov ecx, esi
call fcn.0040102e
push eax
mov ecx, esi
call fcn.004083d5
push 0x2d
call fcn.00403e07
pop ecx
push eax
push 0x4b2
mov ecx, esi
call fcn.00408caa
pop esi
ret

Function at 0x407b8e
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, 0x42c2bc
mov ecx, esi
call fcn.0040a992
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add edi, 4
mov ecx, edi
call fcn.004034dc
test al, al
jne 0x407bce
push esi
push edi
call fcn.00407b0c
pop ecx
pop ecx
test al, al
je 0x407bce
mov ecx, edi
call fcn.0040a992
push eax
call fcn.00404593
pop ecx
mov ecx, edi
call fcn.00401da1
pop edi
mov al, 1
pop esi
ret
Function at 0x409ac7
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004083f1
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00408412
push 1
inc edi
push edi
mov ecx, esi
call fcn.00408412
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.0041c740
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push 0x408a56
push 0xfffffffffffffffc
push edi
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0040809f
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004097b0
mov ecx, esi
mov edi, eax
call fcn.004090d6
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a81f
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 0x40a827
mov dword [ecx*4 + 0x42f480], eax
inc ecx
cmp ecx, 0x100
jb 0x40a822
mov edx, 0x800
jmp 0x40a874
mov eax, dword [ecx*4 + 0x42f080]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42f480]
inc ecx
mov dword [ecx*4 + 0x42f47c], eax
cmp ecx, edx
jb 0x40a853
mov eax, 0x423260
mov esi, 0x423180
mov dword [0x42f464], eax
mov dword [0x431480], eax
mov dword [0x42f460], esi
call fcn.00410e05
test eax, eax
jne 0x40a8a1
mov dword [0x431480], esi
pop esi
ret

Function at 0x41104c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411072
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411072
xor al, al
jmp 0x411087
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x413e3d
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
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
test eax, eax
je 0x413e72
mov ebx, dword [edx]
mov dword [ecx + esi*4 + 0x10], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x413e64
cmp esi, edi
jae 0x413f53
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
mov dword [ebp - 8], eax
test edx, edx
jne 0x413eea
mov eax, edi
mov ebx, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x426408]
shl eax, 8
or eax, ebx
shl eax, 8
xor edi, edx
or edi, eax
jmp 0x413f3a
cmp dword [ebp + 8], 6
jbe 0x413f3a
cmp edx, 4
jne 0x413f3a
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, edi
mov dword [ecx + esi*4 + 0x10], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x413e85
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41499f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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
pop ebp
ret

Function at 0x414f49
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x42c558], al
inc eax
cmp eax, 0x100
jb 0x414f51
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + str.cw]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov dword [ecx*4 + 0x42d660], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx*4 + 0x42da60], ebx
mov ebx, ecx
movzx esi, byte [ebx + str.cw]
or edx, esi
or eax, esi
mov dword [ecx*4 + 0x42de60], edx
movzx edx, byte [ebx + 0x42c558]
shl eax, 8
or eax, esi
mov dword [ecx*4 + 0x42e260], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
xor eax, edx
mov esi, edx
xor esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx*4 + 0x42c658], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx*4 + 0x42ca58], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx*4 + 0x42ce58], ebx
mov dword [ecx*4 + 0x42d258], eax
jb 0x414f6d
mov dword [0x42e660], 0x414863
mov dword [0x42d65c], 0x4148bf
mov dword [0x42d658], 0x414943
call fcn.00410eda
pop edi
pop esi
pop ebx
test eax, eax
je 0x415118
mov dword [0x42e660], 0x423490
mov dword [0x42d65c], 0x423340
mov dword [0x42d658], 0x423500
leave
ret
Function at 0x4158ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x41590d
xor eax, eax
jmp 0x415a22
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x41592f
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x415934
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x415926
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x415a0b
cmp ecx, 2
jbe 0x41598b
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4159a9
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp - 4]
add dword [ebp - 4], 5
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
cmp dword [ebp + 0x18], 0
je 0x4159b6
add eax, edi
jmp 0x4159b8
shr esi, cl
test esi, esi
je 0x415951
cmp esi, 4
ja 0x4159a9
cmp esi, 3
je 0x4159a9
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x415951
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x41591e
sub eax, edi
test esi, esi
je 0x4159e9
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x4159e4
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x4159e2
add eax, edi
jmp 0x4159e4
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x41591e
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret

Function at 0x420dfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c110]
jne 0x420e07
repz ret
jmp fcn.00422de8
Function at 0x421acb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041f645
and dword [ebp - 0x14], 0
cmp dword [0x42f0dc], 0
mov dword [ebp - 0x18], eax
jne 0x421b7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421c26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x421c26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42f0dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42f0e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42f0e4], eax
call edi
push eax
call esi
mov dword [0x42f0ec], eax
test eax, eax
je 0x421b7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42f0e8], eax
mov eax, dword [0x42f0e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x421bd7
cmp dword [0x42f0ec], ecx
je 0x421bd7
push eax
call esi
push dword [0x42f0ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x421bd7
test ebx, ebx
je 0x421bd7
call edi
test eax, eax
je 0x421bce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421bce
test byte [ebp - 8], 1
jne 0x421bd7
or dword [ebp + 0x10], 0x200000
jmp 0x421c0a
mov eax, dword [0x42f0e0]
cmp eax, dword [ebp - 0x18]
je 0x421c0a
push eax
call esi
test eax, eax
je 0x421c0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421c0a
mov eax, dword [0x42f0e4]
cmp eax, dword [ebp - 0x18]
je 0x421c0a
push eax
call esi
test eax, eax
je 0x421c0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42f0dc]
call esi
test eax, eax
je 0x421c26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421c28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420dfd
leave
ret