joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4787a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e6c
call fcn.00492d90
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4788fe
push 0
call fcn.00478910
test eax, eax
jne 0x4787d0
pop edi
pop esi
pop ebx
add esp, 0x8e6c
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4ac1d8]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004789b0
mov edi, dword [0x4b0940]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
lea ecx, [esp + 0x18]
mov dword [0x4b0940], edi
call fcn.004307b0
cmp byte [esp + 0x8e7c], 0
je 0x478818
mov byte [esp + 0xc41], 0
test edi, edi
je 0x478820
mov byte [esp + 0xc41], 1
mov eax, dword [0x4b093c]
mov dword [esp + 0xc50], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc58], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0xc58], edi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
push 0x478a50
call edi
mov eax, dword [esp + 0xc48]
test eax, eax
je 0x4788d1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x477750
mov dword [esp + 0x1c], 0
call edi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x47888f
mov ecx, dword [esp + 0xc48]
call fcn.004781f0
mov dword [esp + 0xc48], esi
jmp 0x478896
mov esi, dword [esp + 0xc48]
mov ecx, esi
call fcn.00476830
mov ecx, dword [esp + 0xc48]
call fcn.004781f0
mov eax, dword [0x4ac1d8]
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
jle 0x4788fe
mov edx, 1
call fcn.004027d0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x8e6c
ret 4
mov eax, dword [0x4b0940]
test eax, eax
je 0x4788fe
cmp eax, 1
mov dword [0x4b0940], 0
setg al
test al, al
je 0x4788fe
mov ecx, ebx
call fcn.004781f0
push 0
mov ecx, esi
call fcn.004787a0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x8e6c
ret 4
Function at 0x49057b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4abcb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048aa18
mov dword [ebp - 0x14], eax
cmp dword [0x4aeb34], esi
jne 0x49066e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4905fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49074e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49074e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49074e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4aeb34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4aeb38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4aeb3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4aeb44], eax
test eax, eax
je 0x49066b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4aeb40], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x490693
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x490686
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4906a8
push 4
pop eax
jmp 0x490750
cmp dword [ebp - 0x14], esi
je 0x4906a8
push dword [0x4aeb34]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49068d
mov eax, dword [0x4aeb40]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x490706
cmp dword [0x4aeb44], edi
je 0x490706
push eax
call ebx
push dword [0x4aeb44]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x490706
test eax, eax
je 0x490706
call ecx
test eax, eax
je 0x4906fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4906fb
test byte [ebp - 8], 1
jne 0x490706
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x490736
mov eax, dword [0x4aeb38]
cmp eax, edi
je 0x490733
push eax
call ebx
test eax, eax
je 0x490733
call eax
mov esi, eax
test esi, esi
je 0x490733
mov eax, dword [0x4aeb3c]
cmp eax, edi
je 0x490733
push eax
call ebx
test eax, eax
je 0x490733
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4aeb34]
call ebx
test eax, eax
je 0x49074e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x490750
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048cc63
mov esp, ebp
pop ebp
ret
Function at 0x401c29
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push esi
lea esi, [ebp - 0x78]
push 0x104
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
cmp byte [ebp - 0x78], al
je 0x401c6b
mov cl, byte [esi]
inc esi
cmp cl, 0x5c
jne 0x401c67
mov byte [esi], al
cmp byte [esi], al
jne 0x401c5d
push eax
push eax
lea ecx, [ebp - 0x80]
push ecx
push eax
lea ecx, [ebp - 0x7c]
push ecx
push eax
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.0040b00e
add ebp, 0x90
leave
ret

Function at 0x401ee9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x401f3a
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
call fcn.00401ec0
add eax, 8
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f32
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x41a308
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401f7a
mov eax, 0x80004005
pop esi
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x20006
push esi
push esi
push esi
call fcn.00401ec0
add eax, 8
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401f32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push esi
push 0x41a308
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401f37
Function at 0x40202e
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x970]
sub esp, 0x9f0
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x96c], eax
and dword [ebp - 0x7c], 0
and dword [ebp - 0x74], 0
push ebx
push esi
push edi
mov ebx, 0x3e8
push ebx
lea eax, [ebp + 0x480]
xor esi, esi
push eax
inc esi
push esi
mov dword [ebp - 0x78], ecx
call fcn.00401ee9
add esp, 0xc
test eax, eax
jge 0x402077
mov dword [ebp - 0x74], esi
push 0x104
lea eax, [ebp + 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp + 0x868]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402090
mov esi, 0x41a30c
movsw word es:[edi], word [esi]
call fcn.00401ec0
add eax, 8
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020a9
lea edi, [ebp + 0x868]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4020b9
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp + 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402120
push edi
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x98]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402114
mov dword [ebp - 0x7c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7c], edi
je 0x402140
cmp dword [ebp - 0x74], edi
jne 0x4021d8
lea eax, [ebp + 0x480]
mov ecx, dword [ebp - 0x78]
push eax
call fcn.00401e05
push 0xf
pop eax
jmp 0x4021db
cmp dword [ebp - 0x74], edi
je 0x40214d
lea eax, [ebp + 0x98]
jmp 0x40212f
mov ecx, dword [ebp - 0x80]
xor ebx, ebx
lea edi, [ebp + 0x480]
lea esi, [ebp + 0x98]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402169
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402170
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x70]
call fcn.00401bbb
mov esi, dword [ebp - 0x78]
lea eax, [ebp + 0x98]
push eax
mov ecx, esi
call fcn.00401e05
lea eax, [ebp + 0x480]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401e05
cmp byte [ebp - 0x50], 0
je 0x4021b1
cmp byte [esi + 0x20], 0
je 0x4021b1
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0x80004005
jmp 0x4021db
lea eax, [esi + 0xfc]
mov ecx, dword [eax]
cmp dword [ebp + 0x8c], ecx
mov byte [esi + 0x20], 0
jae 0x4021cb
mov ecx, dword [ebp + 0x8c]
mov dword [eax], ecx
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xf
jmp 0x4021db
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x96c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b00e
add ebp, 0x970
leave
ret
Function at 0x4021f3
Capabilities:
Get common file path
Timestomp file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push ebx
push edi
lea eax, [ebp - 0x74]
xor edi, edi
push eax
mov ebx, ecx
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp dword [ebx + 0xfc], edi
je 0x402242
mov ecx, ebx
call fcn.00401d5e
test eax, eax
je 0x40224b
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0xfc], eax
cmp dword [ebx + 0x104], edi
jne 0x402276
lea eax, [ebp - 0x54]
push eax
call fcn.00402ff2
test eax, eax
pop ecx
jge 0x40226b
mov eax, 0x80004005
jmp 0x4023aa
call fcn.00401c29
mov dword [ebx + 0x104], eax
mov ax, word [ebp + reloc.uxtheme.dll_GetThemePartSize]
push esi
mov esi, dword [ebp + 0x5b0]
cmp esi, edi
mov word [ebx + reloc.uxtheme.dll_GetThemePartSize], ax
mov al, byte [ebp + 0x5ac]
mov byte [ebx + 0x20], al
je 0x40229f
lea edi, [ebx + 0x21]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0xb0]
push eax
mov ecx, ebx
call fcn.00401d7a
mov dword [ebp - 0x5c], eax
push 0x104
lea eax, [ebp + 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp + 0x498]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4022c9
mov esi, 0x41a30c
movsw word es:[edi], word [esi]
call fcn.00401ec0
add eax, 8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022e2
lea edi, [ebp + 0x498]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4022f2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push 2
push 2
push edi
push 2
push 0x40000000
lea eax, [ebp + 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jne 0x402335
mov dword [ebp - 0x58], 1
jmp 0x402380
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x5c]
lea eax, [ebp + 0xb0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402356
mov dword [ebp - 0x58], 1
dec word [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
inc word [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5c]
lea eax, [ebp + 0xb0]
push eax
push edi
call fcn.00401ee9
add esp, 0xc
test eax, eax
pop esi
jge 0x4023a1
cmp dword [ebp - 0x58], edi
jne 0x402261
mov ecx, ebx
call fcn.00401e7c
xor eax, eax
mov ecx, dword [ebp + 0x59c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b00e
add ebp, 0x5a0
leave
ret 0xc
Function at 0x402508
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0040b020
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - CoUninitialize], 0x3c
mov dword [ebp - 0x38], 0x500
mov dword [ebp - 0x30], 0x41a310
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
leave
ret

Function at 0x40256a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0040b020
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - CoUninitialize], 0x3c
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x30], 0x41a310
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
leave
ret

Function at 0x4025c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x374]
sub esp, 0x3f4
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x370], eax
xor eax, eax
cmp dword [ebp + 0x380], eax
push esi
mov esi, dword [ebp + 0x37c]
setne al
lea ecx, [ebp - 0x7c]
push ecx
push 0x20019
push 0
push 0x41a330
mov dword [ebp - 0x80], 0x3e8
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402623
mov eax, 0x80004005
jmp 0x402667
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x41a328
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40261c
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00401a11
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040195a
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x370]
xor ecx, ebp
pop esi
call fcn.0040b00e
add ebp, 0x374
leave
ret
Function at 0x40267d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
setne bl
lea eax, [ebp - 0x3ec]
push eax
add ebx, 0x80000001
call fcn.0040169b
mov edi, eax
lea eax, [ebp - 0x3ec]
push edi
push eax
call fcn.00401a32
pop ecx
pop ecx
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x3f0]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x41a330
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402716
push edi
lea eax, [ebp - 0x3ec]
push eax
push 3
push esi
push 0x41a328
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40271b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b00e
leave
ret

Function at 0x402b82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
xor eax, eax
push eax
push eax
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x402bcf
push 0x41a400
lea eax, [ebp - 0x108]
push eax
push 0x41a3e0
push esi
call fcn.0040b11c
add esp, 0x10
xor eax, eax
jmp 0x402bd4
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b00e
leave
ret

Function at 0x402be1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x41a42c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x402c36
push 0x41a400
push 0x41a418
lea eax, [ebp - 0x108]
push eax
push 0x41a40c
push esi
call fcn.0040b11c
add esp, 0x14
xor eax, eax
jmp 0x402c3b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b00e
leave
ret

Function at 0x402e99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x374]
sub esp, 0x3f4
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x370], eax
push esi
mov esi, dword [ebp + 0x37c]
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push 0x41a688
push 0x80000002
mov dword [ebp - 0x80], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402ee8
mov eax, 0x80004005
jmp 0x402f2c
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x41a328
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ee1
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00401a11
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040195a
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x370]
xor ecx, ebp
pop esi
call fcn.0040b00e
add ebp, 0x374
leave
ret
Function at 0x4034f6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403518
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push edi
call esi
test eax, eax
je 0x403535
xor eax, eax
jmp 0x40357f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403531
cmp eax, 3
jne 0x40357a
lea eax, [ebp - 0x108]
push eax
call fcn.00401a53
lea eax, [ebp - 0x108]
push eax
call fcn.004034f6
test eax, eax
pop ecx
pop ecx
jl 0x40357a
push 0
push edi
call esi
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x40357f
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b00e
leave
ret

Function at 0x40358d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
mov ebx, dword [ebp + 0x98]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035b6
sub eax, edx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov edx, ebx
sub ecx, ebx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4035c9
mov eax, dword [ebp - 0x7c]
cmp eax, 3
jbe 0x4035f9
push 4
mov edi, 0x41a758
lea esi, [ebx + eax - 3]
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4035f9
mov dword [ebp - 0x80], ebx
lea ebx, [ebp - 0x78]
mov byte [ebp + eax - 0x7b], dl
jmp 0x403610
lea eax, [ebp - 0x78]
mov edi, eax
mov dword [ebp - 0x80], eax
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403602
mov esi, 0x41a758
movsd dword es:[edi], dword [esi]
push 0x41a754
push dword [ebp - 0x80]
call fcn.004052d0
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x403668
push 0x41a750
push ebx
call fcn.0040b9e6
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
je 0x403668
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.004052f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
push dword [ebp - 0x7c]
je 0x403685
push ebx
lea eax, [ebp - 0x78]
push 1
push eax
call fcn.0040b895
add esp, 0x10
cmp eax, ebx
je 0x40363e
mov eax, 0x80004005
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b00e
add ebp, 0x90
leave
ret
call fcn.0040b6ff
test eax, eax
pop ecx
jne 0x403668
push edi
call fcn.00404fd0
test eax, eax
pop ecx
jne 0x403668
push dword [ebp - 0x80]
call fcn.00419766
pop ecx
xor eax, eax
jmp 0x40366d
Function at 0x403777
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1b0]
push ebx
mov ebx, dword [ebp + 0x1ac]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1b4]
push esi
push edi
mov edi, dword [ebp + 0x1a8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1b8]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x70]
push eax
push 0x41e568
push 1
push 0
push 0x41e588
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x403858
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
push 0x41e578
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40384f
push 0x104
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x7c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x19c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b00e
add ebp, 0x1a0
leave
ret

Function at 0x403872
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x422108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x108]
push 0x41a3e8
push eax
call fcn.0040b11c
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40392c
cmp byte [ebp - 0x21c], 0x2e
je 0x4038f0
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push 0x41a3e0
push eax
call fcn.0040b11c
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403930
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4038ba
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b00e
leave
ret
xor eax, eax
jmp 0x40391e
mov eax, 0x80004005
jmp 0x40391e