joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405040
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
mov esi, dword [ebp + 8]
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.00401cd0
push 0x423c40
lea ecx, [ebp - 0xc]
call fcn.00415f10
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040dd70
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405137
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea esp, [esp]
push esi
lea ecx, [ebp - 0xc]
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401c20
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00415f10
test byte [ebp - 0x25c], 0x10
je 0x4050f2
push 0x423c3c
lea edx, [ebp - 0x230]
push edx
call edi
test eax, eax
je 0x40511a
push 0x423c34
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x40511a
lea ecx, [ebp - 0xc]
call fcn.0040dd70
push eax
call fcn.00405040
add esp, 4
jmp 0x405116
push 0
lea ecx, [ebp - 0xc]
call fcn.0040dd70
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405174
lea ecx, [ebp - 0xc]
call fcn.0040dd70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405174
lea ecx, [ebp - 0x25c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405090
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x42a25c
call fcn.0040dd70
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405174
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405174
lea ecx, [ebp - 0xc]
call fcn.00401cc0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
call fcn.00401cc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405190
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x42a398], 0
je 0x4051ab
mov eax, 1
mov esp, ebp
pop ebp
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 0x4051cc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4051fc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4051f5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00405040
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405820
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.00401420
push 2
mov ecx, esi
call fcn.00405740
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call ebx
push 0
mov ecx, esi
mov edi, eax
call fcn.00401cf0
test edi, edi
je 0x405867
inc edi
push edi
mov ecx, esi
call fcn.00405740
push eax
push edi
call ebx
mov ecx, esi
call fcn.00405720
mov ecx, esi
call fcn.0040c490
mov ebx, eax
xor edi, edi
lea eax, [ebx + 0xf]
push eax
mov ecx, esi
call fcn.00405740
mov ecx, dword [ebp + 0xc]
push edi
push ecx
lea edx, [eax + ebx*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00405720
mov ecx, esi
call fcn.0040dd70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058b2
inc edi
cmp edi, 0xfff
jl 0x405872
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x405cd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00401cd0
push 0
lea ecx, [ebp - 0x18]
call fcn.00405740
mov edi, eax
movzx eax, word [esi + ebx*2 - 2]
cmp eax, 0x5c
je 0x405d0c
cmp eax, 0x2f
jne 0x405d17
xor eax, eax
mov word [edi + ebx*2 - 2], ax
dec ebx
mov dword [ebp - 4], ebx
push edi
mov esi, ebx
call fcn.00403f60
add esp, 4
test eax, eax
jne 0x405d5e
test esi, esi
jle 0x405d45
lea ebx, [ebx]
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x405d43
cmp eax, 0x5c
je 0x405d43
dec esi
test esi, esi
jg 0x405d30
test esi, esi
je 0x405e12
xor ecx, ecx
push edi
mov word [edi + esi*2], cx
call fcn.00403f60
add esp, 4
test eax, eax
je 0x405d26
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x405d88
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004059d0
add esp, 8
test eax, eax
jne 0x405e55
push edi
call fcn.00403f60
add esp, 4
test eax, eax
jne 0x405d9b
push edi
jmp 0x405e49
cmp esi, ebx
jge 0x405e34
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
sub ecx, esi
inc ecx
push ecx
lea eax, [edx + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.0041b1d0
add esp, 0xc
cmp word [ebx], 0
je 0x405dc4
inc esi
cmp word [edi + esi*2], 0
je 0x405de6
jmp 0x405dd0
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x405de6
cmp eax, 0x2f
je 0x405de6
inc esi
cmp word [edi + esi*2], 0
jne 0x405dd0
xor ecx, ecx
push edi
mov word [edi + esi*2], cx
call fcn.00403f60
add esp, 4
test eax, eax
je 0x405d95
cmp esi, dword [ebp - 4]
jl 0x405da3
lea ecx, [ebp - 0x18]
call fcn.00401cc0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
cmp ebx, 2
jne 0x405e48
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x405e48
cmp ax, 0x7a
ja 0x405e48
cmp word [ecx + 2], 0x3a
jne 0x405e48
lea ecx, [ebp - 0x18]
call fcn.00401cc0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push 0xc
push 1
call fcn.0040bb20
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401cc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, eax
call fcn.00401420
lea ebx, [edi + 2]
push ebx
mov ecx, esi
call fcn.00405740
inc edi
push edi
push ebx
mov ecx, esi
call fcn.00405740
mov edx, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, esi
call fcn.00405720
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406c20
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 [0x42a1f8], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040c080
call fcn.004048f0
push 3
call fcn.00404950
push 0x28
mov dword [0x42a220], eax
call fcn.00404950
push 2
mov dword [0x42a21c], eax
call fcn.00404950
push 5
mov dword [0x42a218], eax
call fcn.00404950
push 0x15
mov dword [0x42a214], eax
call fcn.00404950
push 0x16
mov dword [0x42a210], eax
call fcn.00404950
push 0x17
mov dword [0x42a20c], eax
call fcn.00404950
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
xor edi, edi
mov dword [0x42a208], eax
mov dword [0x42a200], edi
mov dword [0x42a204], edi
lea ecx, [ecx]
push 0
push edi
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406d28
push edi
lea ecx, [ebp - 0x5c]
push 0x424978
push ecx
call ebx
push 1
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00406560
add esp, 0x18
xor esi, esi
lea esp, [esp]
cmp dword [esi + 0x4293c4], edi
jne 0x406d20
mov edx, dword [esi + 0x4293c8]
push 0
lea ecx, [ebp - 0x268]
push ecx
push edx
call fcn.00406560
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x406d00
inc edi
cmp edi, 0x40
jl 0x406cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0041bb0c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00408ad0
add esp, 0x1c
mov esp, ebp
pop ebp
ret

Function at 0x408c60
Capabilities:
Create thread

Disassembly:
add ecx, 0x38
jmp 0x40ab60
push esi
mov esi, ecx
call fcn.00409300
test eax, eax
jne 0x40ab7e
push eax
push eax
push esi
push 0x40ab30
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
mov eax, dword [0x42a218]
push eax
mov ecx, esi
call fcn.0040c490
push eax
mov ecx, esi
call fcn.00409730
push 0x2d
call fcn.00404950
add esp, 4
push eax
push 0x4b2
mov ecx, esi
call fcn.0040a0f0
pop esi
ret

Function at 0x408d20
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x42a25c
call fcn.0040dd70
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esi, 4
mov ecx, esi
call fcn.0040fb80
test al, al
jne 0x408d64
push 0x42a25c
push esi
call fcn.00408c90
add esp, 8
test al, al
je 0x408d64
mov ecx, esi
call fcn.0040dd70
push eax
call fcn.00405190
add esp, 4
mov ecx, esi
call fcn.004022d0
mov al, 1
pop esi
ret
Function at 0x40b190
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
push 0x4b6
mov esi, ecx
call fcn.00409750
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push 1
add ecx, 2
mov dword [esi + 0x58], ecx
push 0x4b6
mov ecx, esi
call fcn.00409780
push 1
push 0x4b7
mov ecx, esi
call fcn.00409780
push 0x2b0
lea edx, [ebp - 0x2c0]
push 0
push edx
mov dword [ebp - 0x2c4], 0
call fcn.0041ade0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push 0
lea edx, [ebp - 0x4d0]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push 0x409e30
push 0xfffffffffffffffc
push 0x4b7
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00409330
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040ade0
mov ecx, esi
mov edi, eax
call fcn.0040a5c0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x42d300], ecx
inc edx
cmp edx, 0x100
jb 0x40c082
cmp edx, 0x800
jae 0x40c159
lea esp, [esp]
mov eax, dword [edx*4 + 0x42cf00]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x42d300]
inc edx
mov dword [edx*4 + 0x42d2fc], eax
cmp edx, 0x800
jb 0x40c130
mov eax, 0x4218c0
mov dword [0x42d2fc], eax
mov dword [0x42f300], eax
mov dword [0x42d2f8], 0x4217e0
call fcn.00413850
test eax, eax
jne 0x40c185
mov dword [0x42f300], 0x4217e0
ret

Function at 0x413b30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx]
push esi
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413b5c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor edx, edx
add edx, esi
adc ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.00413c10
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x413e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [0x429604]
cmp eax, edx
jbe 0x413e32
mov eax, edx
mov ecx, dword [ecx]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00413c10
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [edx], ecx
pop ebp
ret 0xc

Function at 0x413ed0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.00413c10
add esp, 4
ret

Function at 0x417160
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
lea ebx, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
test eax, eax
je 0x417195
mov edi, dword [edx]
mov dword [ecx + esi*4 + 0x10], edi
inc esi
add edx, 4
cmp esi, eax
jb 0x417187
cmp esi, ebx
jae 0x417282
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]
test edx, edx
jne 0x417211
movzx eax, byte [eax + 0x425300]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edx, 8
or edx, ebx
mov ebx, edi
shr ebx, 0x10
shr edi, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebx
mov ebx, dword [ebp - 8]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x417268
cmp dword [ebp + 8], 6
jbe 0x417268
cmp edx, 4
jne 0x417268
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
or eax, edx
shl eax, 8
or edi, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4 + 0x10], edx
inc esi
add eax, 4
mov dword [ebp - 4], eax
cmp esi, ebx
jb 0x4171a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417ea0
Capabilities:
Hash data using sha256

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

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

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
jmp 0x418590
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x42a4f8], al
inc eax
cmp eax, 0x100
jb 0x418590
push ebx
push esi
push edi
xor esi, esi
lea ebx, [ebx]
movzx ecx, byte [esi + str.cw]
mov edx, ecx
and dl, 0x80
movzx eax, dl
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [ecx + ecx]
xor eax, edx
and eax, 0xff
mov edi, eax
xor edi, ecx
mov edx, edi
shl edx, 8
or edx, ecx
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x42b600], edx
mov edx, ecx
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, ecx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl eax, 8
or eax, ecx
shl edx, 8
or edx, edi
shl eax, 8
or eax, ecx
shl ebx, 8
or ebx, edi
shl edx, 8
or edx, ecx
mov dword [esi*4 + 0x42c200], eax
mov dword [esi*4 + 0x42ba00], ebx
movzx ebx, byte [esi + 0x42a4f8]
mov eax, ebx
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
mov dword [esi*4 + 0x42be00], edx
and eax, 0x1b
lea ecx, [ebx + ebx]
xor eax, ecx
and eax, 0xff
mov edx, eax
and dl, 0x80
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, 0x1b
lea edx, [eax + eax]
xor ecx, edx
and ecx, 0xff
mov edx, ecx
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
mov dword [ebp - 4], edi
and edx, 0x1b
lea edi, [ecx + ecx]
xor edx, edi
and edx, 0xff
mov edi, edx
xor edi, ebx
mov dword [ebp - 4], edi
mov edi, edx
xor edx, ecx
xor edi, eax
mov ecx, edx
xor edi, ebx
xor ecx, ebx
xor eax, edx
mov edx, dword [ebp - 4]
mov ebx, edi
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [esi*4 + 0x42a5f8], ebx
mov ebx, ecx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [esi*4 + 0x42a9f8], 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, ecx
shl ebx, 8
shl eax, 8
or ebx, ecx
or eax, edx
mov dword [esi*4 + 0x42adf8], ebx
mov dword [esi*4 + 0x42b1f8], eax
inc esi
cmp esi, 0x100
jb 0x4185b0
mov dword [0x42c600], 0x417d20
mov dword [0x42b5fc], 0x417d80
mov dword [0x42b5f8], 0x417e10
call fcn.00413950
pop edi
pop esi
pop ebx
test eax, eax
je 0x418750
mov dword [0x42c600], 0x421af0
mov dword [0x42b5fc], 0x4219a0
mov dword [0x42b5f8], 0x421b60
mov esp, ebp
pop ebp
ret

Function at 0x41f46d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a0b0]
jne 0x41f477
repz ret
jmp fcn.00421458
Function at 0x42013b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a0b0]
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.0041dcb5
and dword [ebp - 0x14], 0
cmp dword [0x42cf74], 0
mov dword [ebp - 0x18], eax
jne 0x4201ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420296
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x420296
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cf74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cf78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cf7c], eax
call edi
push eax
call esi
mov dword [0x42cf84], eax
test eax, eax
je 0x4201ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cf80], eax
mov eax, dword [0x42cf80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x420247
cmp dword [0x42cf84], ecx
je 0x420247
push eax
call esi
push dword [0x42cf84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420247
test ebx, ebx
je 0x420247
call edi
test eax, eax
je 0x42023e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42023e
test byte [ebp - 8], 1
jne 0x420247
or dword [ebp + 0x10], 0x200000
jmp 0x42027a
mov eax, dword [0x42cf78]
cmp eax, dword [ebp - 0x18]
je 0x42027a
push eax
call esi
test eax, eax
je 0x42027a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42027a
mov eax, dword [0x42cf7c]
cmp eax, dword [ebp - 0x18]
je 0x42027a
push eax
call esi
test eax, eax
je 0x42027a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cf74]
call esi
test eax, eax
je 0x420296
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420298
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f46d
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0xb2c6120
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
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
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7ec77f81
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x4075b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x40ac84
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40aca9
mov dword [0x41318c], eax
add esp, 0xfffffff8
push 0x40ac48
push eax
call fcn.0040f4bc
jmp 0x40acae
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40acc4
mov dword [0x41231c], 0x40ada8
jmp 0x40acce
mov dword [0x41231c], 0x40ad5c
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx