joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401142
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
je 0x401183
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x40124c
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x4012ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
jbe 0x4012ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4012ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
lea eax, [ebx + 1]
push eax
call fcn.00402dc8
cmp byte [ebp + 0x14], 0
pop ecx
mov dword [ebp - 4], eax
je 0x4012d8
cmp ebx, edi
jbe 0x4012f6
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 0x14], ecx
lea esi, [edi + eax]
mov eax, dword [ebp + 0x14]
push edi
mov al, byte [eax + esi]
push eax
call fcn.00401129
xor al, byte [ebp + 0x18]
inc edi
pop ecx
cmp edi, ebx
mov byte [esi], al
mov eax, dword [ebp - 4]
pop ecx
jb 0x4012b7
jmp 0x4012f6
cmp ebx, edi
jbe 0x4012f6
mov ecx, dword [ebp + 8]
mov esi, eax
sub ecx, eax
mov dword [ebp + 0x14], ebx
mov edi, ebx
mov dl, byte [esi + ecx]
xor dl, byte [ebp + 0x18]
mov byte [esi], dl
inc esi
dec dword [ebp + 0x14]
jne 0x4012e8
and byte [edi + eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d48
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, 0x400
push eax
push 0x40dda8
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x40d988
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40d584
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
mov esi, 0x40cd48
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov esi, 0x40d184
push esi
call fcn.00402af0
push esi
call fcn.004029f0
add esp, 0xc
add eax, esi
cmp eax, esi
jb 0x401db4
cmp byte [eax], 0x5c
je 0x401db4
dec eax
jmp 0x401da8
inc eax
cmp eax, esi
pop esi
jb 0x401dbd
and byte [eax], 0
leave
ret

Function at 0x4070f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b228
cmp edx, dword [eax]
je 0x40711b
add eax, 8
inc ecx
cmp eax, 0x40b2b8
jl 0x40710c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b228]
jne 0x407249
mov eax, dword [0x40e9c4]
cmp eax, 1
je 0x407223
test eax, eax
jne 0x40714c
cmp dword [0x40b154], 1
je 0x407223
cmp edx, 0xfc
je 0x407249
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407183
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004029f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004029f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095cc
push edi
call fcn.00408000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402b00
lea eax, [ebp - 0xa0]
push 0x4095ac
push eax
call fcn.00402b00
push dword [esi + 0x40b22c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402b00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407f6e
add esp, 0x2c
pop edi
jmp 0x407249
lea eax, [ebp + 8]
lea esi, [esi + 0x40b22c]
push 0
push eax
push dword [esi]
call fcn.004029f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x429270]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406183
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x429270]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x429270], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x402fa2
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fc2
mov dword [ebp - 8], GetSystemMetrics
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fd1
mov ebx, 0x40fe60
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe6
mov ecx, dword [0x429218]
add ecx, eax
push ecx
call fcn.004031b4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040319e
test eax, eax
je 0x403149
test byte [ebp + 0x17], 0x80
je 0x403132
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40bdd0
mov dword [ebp - 0xc], eax
call fcn.0040629f
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403194
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403036
mov esi, dword [ebp + 0x14]
mov edi, 0x40be60
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
sub dword [ebp + 0x14], esi
mov dword [0x40bde8], edi
mov dword [0x40bdec], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdd0
mov dword [0x40bdf0], ebx
mov dword [0x40bdf4], eax
call fcn.004062bf
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40312a
mov esi, dword [0x40bdf0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429274], 1
mov edi, eax
je 0x4030de
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4030a5
cmp dword [ebp + 0x14], 0
jne 0x4030de
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004050c1
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40311f
cmp dword [ebp + 0x10], eax
jne 0x403107
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312e
cmp dword [ebp - 0x14], esi
jne 0x40312e
add dword [ebp - 4], esi
jmp 0x403113
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40bdf0]
cmp dword [ebp - 0x10], 1
jne 0x403059
jmp 0x403194
cmp dword [ebp + 0x14], eax
jg 0x403029
jmp 0x403194
push 0xfffffffffffffffc
jmp 0x40314b
push 0xfffffffffffffffe
jmp 0x40314b
test edi, edi
je 0x403189
cmp dword [ebp + 0x14], esi
jge 0x40313e
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040319e
test eax, eax
jne 0x403191
push 0xfffffffffffffffd
pop eax
jmp 0x403197
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403159
mov esi, dword [ebp + 0x14]
mov edi, 0x40be60
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312e
cmp esi, dword [ebp + 0x10]
jne 0x40312e
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40314e
jmp 0x403194
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256b8], 0x44
push eax
xor eax, eax
push 0x4256b8
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4055cf
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405659
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a60
mov edi, eax
cmp edi, 0xffffffff
je 0x40569a
test byte [esp + 0x10], 1
push esi
je 0x40567c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405682
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40568b
xor eax, eax
inc eax
jmp 0x40569c
test byte [esp + 0x10], 4
jne 0x40569a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4056a1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040596c
test bl, 8
mov dword [ebp - 8], eax
je 0x4056e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429248], eax
jmp 0x40585d
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056fa
test eax, eax
je 0x40580b
test bl, 2
je 0x40580b
mov esi, 0x4246b8
push edi
push esi
call fcn.00405e19
cmp dword [ebp + 8], 0
je 0x405719
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40571f
push edi
call fcn.004058b0
cmp word [edi], 0
jne 0x40572f
cmp word [0x4246b8], 0x5c
jne 0x40573a
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405800
cmp word [ebp - 0x22c], 0x2e
jne 0x405784
cmp word [ebp - 0x22a], 0
je 0x4057e3
cmp word [ebp - 0x22a], 0x2e
jne 0x405784
cmp word [ebp - 0x228], 0
je 0x4057e3
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405e19
test byte [ebp - 0x258], 0x10
je 0x4057af
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4057e3
push dword [ebp + 0xc]
push edi
call fcn.004056a1
jmp 0x4057e3
push dword [ebp - 4]
push edi
call fcn.00405659
test eax, eax
jne 0x4057db
cmp dword [ebp - 4], eax
je 0x4057d3
push edi
push 0xfffffffffffffff1
call fcn.004050c1
push 0
push edi
call fcn.00405cb3
jmp 0x4057e3
inc dword [0x429248]
jmp 0x4057e3
push edi
push 0xfffffffffffffff2
call fcn.004050c1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40575c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40580b
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40585d
cmp dword [ebp - 8], esi
jne 0x40581f
inc dword [0x429248]
jmp 0x40585d
push edi
call fcn.0040615c
test eax, eax
je 0x40585d
push edi
call fcn.00405864
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405659
test eax, eax
jne 0x405855
cmp dword [ebp - 4], esi
je 0x405817
push edi
push 0xfffffffffffffff1
call fcn.004050c1
push esi
push edi
call fcn.00405cb3
jmp 0x40585d
push edi
push 0xffffffffffffffe5
call fcn.004050c1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40596c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424eb8
push esi
call fcn.00405e19
push esi
call fcn.0040590f
mov edi, eax
test edi, edi
jne 0x40598d
xor eax, eax
jmp 0x4059e5
push edi
call fcn.004060ad
test byte [0x4291d8], 0x80
je 0x4059aa
mov ax, word [edi]
test ax, ax
je 0x405989
cmp ax, 0x5c
je 0x405989
sub edi, esi
sar edi, 1
jmp 0x4059c4
call fcn.0040615c
test eax, eax
je 0x4059be
test byte [eax], 0x10
je 0x405989
push esi
call fcn.004058b0
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4059b0
call fcn.00405864
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a7f
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405a85
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ab4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409528]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40952c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405b04
test edi, edi
jne 0x405ac1
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405afe
Function at 0x405b37
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d50
push 0x40954c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405b86
push 1
push 0
push esi
call fcn.00405a85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405cad
cmp eax, edi
jg 0x405cad
mov esi, 0x426550
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405cad
cmp eax, edi
jg 0x405cad
push esi
push ebx
push str._ls_ls_r_n
push 0x425950
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405e3b
push 4
push 0xc0000000
push esi
call fcn.00405a85
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405cad
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405ca6
push edi
push esi
push ebp
call fcn.00405b08
test eax, eax
je 0x405ca6
push str._Rename__r_n
push esi
call fcn.004059ea
test eax, eax
jne 0x405c3c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405c71
add eax, 0xa
push 0x409530
push eax
call fcn.004059ea
mov ebp, eax
test ebp, ebp
je 0x405c6d
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405c5e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405c58
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405c73
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425950
push eax
call fcn.00405a40
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405ce6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d5a
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d47
cmp dword [ebp + 0x14], 1
je 0x405d4a
cmp dword [ebp + 0x14], 2
je 0x405d4a
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406231
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d54], 0
push esi
jne 0x406268
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406242
mov dword [ecx*4 + 0x426d50], eax
inc ecx
cmp ecx, 0x100
jl 0x40623d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406299
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d50]
xor eax, esi
inc ecx
dec edx
jne 0x40627b
pop edi
not eax
pop esi
ret 0xc
Function at 0x401ac7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x401afb
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412770
add esp, 0xc
jmp 0x401b0e
push dword [esi + 0x1c]
lea eax, [ebp - 0xc]
push 8
push 1
push eax
call fcn.004131eb
add esp, 0x10
movzx ecx, byte [ebp - 8]
movzx eax, byte [ebp - 7]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 8], 0
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0xc]
push 0x4331a8
push eax
mov dword [edi], ecx
call fcn.004134b0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.004126e7
mov esp, ebp
pop ebp
ret 4

Function at 0x401bf3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x401c09
cmp eax, ecx
jne 0x401c24
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.004131eb
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x401c3c
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 1
mov eax, dword [edi + 0x440]
je 0x401cf9
cmp eax, dword [edi + 0x438]
jae 0x401cc3
push ebx
mov ebx, 0x10000
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 0x45c]
mov edx, dword [edi + 0x454]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], ebx
jne 0x401cab
push dword [edi + 0x20]
push ebx
push 1
push dword [edi + 0x454]
call fcn.0041375f
add esp, 0x10
and dword [edi + 0x45c], 0
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
inc dword [edi + 8]
cmp eax, dword [edi + 0x438]
jb 0x401c5e
pop ebx
and dword [edi + 0x43c], 0
pop edi
pop esi
ret
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 8]
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
cmp eax, dword [edi + 0x438]
jb 0x401ccd
jmp 0x401cc3
Function at 0x4021be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40223d
push 0
push str.SCRIPT
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x40223d
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40223d
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40223d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40223d
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40249b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe4]
call fcn.00411637
push dword [ebp + 0x10]
lea ecx, [ebp - 0xe4]
call fcn.0041177c
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4024e9
push ecx
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00411750
xor byte [edi + esi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4024d3
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004126e7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402b2b
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xd], 0
je 0x402b40
mov dword [esi + 0x10], 8
xor al, al
jmp 0x402b91
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x402b82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b79
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402b70
call fcn.00402c17
test eax, eax
je 0x402b89
mov dword [edi + 8], eax
jmp 0x402b89
mov dword [esi + 0x10], 7
jmp 0x402b89
mov dword [esi + 0x10], 6
jmp 0x402b89
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
sete al
pop edi
pop esi
pop ecx
ret

Function at 0x402b95
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x402ba9
mov dword [esi + 0x10], 8
xor al, al
pop esi
ret
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x402c05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402bfc
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402bf3
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x402be4
mov ecx, 0x8664
cmp ax, cx
jne 0x402bf3
push dword [edi + 0x58]
mov ecx, esi
call fcn.00402c93
mov dword [edi + 0x58], eax
jmp 0x402c0c
mov dword [esi + 0x10], 7
jmp 0x402c0c
mov dword [esi + 0x10], 6
jmp 0x402c0c
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
pop edi
sete al
pop esi
ret