joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40585a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406e67
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x40587f
test esi, esi
je 0x40587f
cmp word [esi], 0
je 0x40587f
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x40588a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x4058a4
cmp byte [ebp + 0x10], 0
je 0x4058a0
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057aa
xor eax, eax
jmp 0x4058bc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x4058b9
cmp eax, 3
je 0x4058b9
xor eax, eax
inc eax
jmp 0x4058bc
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x4064bf
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x4064f1
cmp dword [ebp - 8], ebx
jne 0x406532
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406532
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4064de
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4064de
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406572
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x412858
push eax
call dword [ecx]
test eax, eax
jl 0x406572
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406569
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x40ad1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x419f80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41a814], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40ad81
mov ecx, dword [0x418ecc]
call fcn.0040645e
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x4125aa
push 0
push 0xc2
push edi
call esi
mov byte [0x41a814], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x3c], eax
je 0x40add1
mov ecx, dword [ebp - 0x38]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0xa0
mov dword [ebp - 0x3c], 0x40000001
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40ae1b
mov eax, dword [ebp - 0x38]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x4125e0
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b702
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 0x420]
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
cmp byte [0x41a815], 0
jne 0x40b791
push 6
push dword [0x41409c]
lea eax, [ebp - 0x420]
push eax
call fcn.004073b4
push eax
call fcn.0040a596
test eax, eax
jne 0x40b791
push 0x41234c
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.0040a35d
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040a262
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret

Function at 0x40b850
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
mov dword [0x419f70], esi
cmp dword [0x419f80], ebx
je 0x40b87a
push 0x7d
call fcn.004098d0
push eax
push esi
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x419f80]
mov dword [0x419f6c], ebx
mov dword [0x419f68], esi
cmp eax, ebx
je 0x40b8ca
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41a824], ebx
jne 0x40b8c1
cmp byte [0x41a814], bl
jne 0x40b8c1
push ebx
push esi
push 0x111
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40b8c1
call fcn.0040a806
cmp dword [0x419f78], 2
jne 0x40b8bc
cmp byte [0x419f88], bl
pop esi
pop ebx
je 0x40b8d9
jmp fcn.0040b702
ret
Function at 0x40b908
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x419f90], bl
je 0x40b984
cmp byte [0x418ed0], bl
je 0x40b984
push esi
push 0x418ed0
lea esi, [ebp - 0x408]
call fcn.0040b8da
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_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x40b984
push dword [ebp + 8]
call fcn.0040a35d
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40b989
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x419f90], 0
je 0x40ba0b
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040b8da
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40ba0b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ba02
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040a450
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40bb63
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x419ede], 0
mov eax, dword [ebp + 0x10]
mov dword [0x419ee0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x419ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x419ed8], eax
je 0x40bb93
xor eax, eax
inc eax
jmp 0x40bbbc
cmp byte [0x419edf], 0
je 0x40bba1
push 2
pop eax
jmp 0x40bbbc
push dword [ebp + 0xc]
push 0x40ae70
push dword [0x419f80]
push str.REPLACEFILEDLG
push dword [0x414c74]
call esi
dec eax
je 0x40bc1d
dec eax
je 0x40bbfc
dec eax
je 0x40bc16
dec eax
jne 0x40bbef
push dword [ebp + 0xc]
push 0x40b16c
push dword [0x419f80]
push str.RENAMEDLG
push dword [0x414c74]
call esi
test eax, eax
je 0x40bb6d
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40bc2e
dec eax
je 0x40bc04
dec eax
jne 0x40bc2e
mov byte [0x419edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40bc2e
mov eax, dword [ebp + 8]
mov dword [0x419f78], 1
mov byte [eax], 0x43
jmp 0x40bc2e
mov byte [0x419ede], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40bd59
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.0040a35d
cmp eax, 0x3f6
jae 0x40bf6d
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.0040a262
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40bda1
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40bda4
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40bde9
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40bdc5
jmp 0x40bdb9
cmp byte [eax + esi], 0x22
je 0x40bdc1
inc eax
cmp byte [eax + esi], bl
jne 0x40bdb3
jmp 0x40bdc5
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40bddc
cmp byte [eax + esi + 1], 0x2f
je 0x40bddc
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40bdac
jmp 0x40bde9
add eax, esi
cmp byte [eax], 0x20
jne 0x40bde5
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40bdfd
cmp byte [0x41a392], bl
je 0x40bdfd
mov dword [ebp - 0x30], 0x41a392
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407669
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40be29
push str..inf
push eax
call fcn.0040a573
test eax, eax
jne 0x40be29
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.0040572e
mov byte [ebp - 1], al
cmp al, bl
je 0x40be51
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.004057e4
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40be90
cmp byte [ebp - 1], bl
jne 0x40be90
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.0040a450
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.0040a5bb
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.0040572e
test al, al
je 0x40bf6b
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40bec2
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40bf6b
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x419f88], bl
jne 0x40bed8
cmp byte [ebp + 8], bl
je 0x40bf0f
mov eax, dword [0x419f80]
cmp eax, ebx
je 0x40bef9
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40bef9
push ebx
push dword [0x419f80]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040b6c3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40bf2e
push str..exe
push dword [ebp - 8]
call fcn.0040a573
test eax, eax
je 0x40bf5c
cmp byte [0x419f88], bl
je 0x40bf42
cmp byte [ebp + 8], bl
jne 0x40bf42
push 0x1b58
jmp 0x40bf56
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [ebp - 1], bl
je 0x40bf6b
push 1
push dword [0x419f80]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40d37f
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41fdc0
call fcn.0040e4fc
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40d407
push esi
call fcn.0040b45e
cmp byte [0x419f91], bl
je 0x40d3fb
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40d3f2
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40d3eb
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40d407
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x419ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
call fcn.00406e67
test eax, eax
je 0x40d43e
push edi
push 0x4192d8
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x40d446
xor eax, eax
mov word [0x4192d8], ax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x414c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x414c78]
mov dword [0x4192d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4192d0], eax
call fcn.00411677
push esi
mov ecx, 0x414c88
call fcn.004098b9
lea ecx, [ebp - 0x40]
call fcn.0040643b
lea ecx, [ebp - 0x24]
call fcn.0040643b
push 0x64
call fcn.0040ac7a
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040ac7a
push ebx
push 0x40cc05
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x418ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x418ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x419f80], ebx
mov dword [0x418ec8], ebx
mov dword [0x418ecc], ebx
call fcn.00406451
lea ecx, [ebp - 0x40]
call fcn.00406451
lea ecx, [ebp - 8]
call fcn.004116ef
cmp byte [0x419f88], bl
je 0x40d507
call fcn.0040b702
push 0x80
push ebx
push 0x419ee8
call fcn.0040a262
cmp dword [0x41a824], ebx
jbe 0x40d52a
push dword [0x41a818]
call fcn.0040a1de
push dword [0x4192d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4192d0]
cmp eax, ebx
je 0x40d544
push eax
call esi
cmp dword [0x414c7c], ebx
jne 0x40d563
cmp dword [0x419f78], ebx
je 0x40d563
push 0xff
mov ecx, 0x414c7c
call fcn.0040321d
mov eax, dword [0x41a828]
mov dword [0x419f78], 2
cmp eax, ebx
je 0x40d57c
push eax
call fcn.0040b6c3
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x414c7c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40d8ee
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 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x23581c37
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data_1
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2fe51597
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d61
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
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 [0x423fb0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402f01
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f2e
mov ecx, dword [0x423f58]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4170a4], eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040302c
cmp eax, edi
jl 0x403025
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403022
cmp dword [ebp - 4], esi
jne 0x403022
push dword [ebp + 8]
add dword [0x4170a4], esi
call fcn.0040302c
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403025
cmp dword [ebp + 0x10], edi
jne 0x402ff1
cmp dword [ebp + 8], edi
jle 0x40301d
mov esi, 0x4130a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa1
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403022
cmp edi, dword [ebp - 4]
jne 0x403022
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fed
cmp dword [ebp + 0x14], edi
jne 0x402fed
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4170a4], eax
cmp dword [ebp + 8], 0
jg 0x402f94
jmp 0x40301d
push 0xfffffffffffffffe
jmp 0x403024
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402ffc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403022
mov eax, dword [ebp - 4]
add dword [0x4170a4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403025
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40302c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4170a4]
sub esi, dword [0x40b010]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f0c], eax
jle 0x403196
push dword [0x41f0b4]
call fcn.004031da
push ebx
push ebx
push dword [0x40b010]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f0b0], esi
mov dword [0x4170a0], ebx
mov ebp, 0x40b0a0
mov eax, dword [0x4170a8]
mov edi, 0x4000
sub eax, dword [0x41f0b4]
cmp eax, edi
jg 0x4030a1
mov edi, eax
mov esi, 0x4130a0
push edi
push esi
call fcn.004031a8
test eax, eax
je 0x403188
add dword [0x41f0b4], edi
mov dword [0x40b030], esi
mov dword [0x40b034], edi
cmp dword [0x423f10], ebx
je 0x4030f8
cmp dword [0x423fa0], ebx
jne 0x4030f8
mov eax, dword [0x41f0b0]
push ebx
sub eax, dword [0x4170a4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b010]
mov dword [0x4170a0], eax
call fcn.00402bc5
pop ecx
mov ecx, 0x40b018
mov dword [0x40b038], ebp
mov dword [0x40b03c], 0x8000
call fcn.00405e5b
test eax, eax
jl 0x403191
mov esi, dword [0x40b038]
sub esi, ebp
je 0x403152
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40318d
cmp esi, dword [esp + 0x10]
jne 0x40318d
add dword [0x40b010], esi
cmp dword [0x40b034], ebx
jne 0x4030c7
jmp 0x40315e
cmp dword [0x40b034], ebx
jne 0x403191
cmp edi, ebx
je 0x403191
mov eax, dword [0x4170a4]
mov ecx, eax
sub ecx, dword [0x40b010]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40308b
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403196
or eax, 0xffffffff
jmp 0x4031a0
push 0xfffffffffffffffe
jmp 0x403193
push 0xfffffffffffffffd
pop eax
jmp 0x4031a0
push 1
call fcn.00402bc5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4052a3
Capabilities:
Create process on windows

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405617
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40539c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f88], eax
jmp 0x405530
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4053ba
test eax, eax
je 0x4054db
test byte [ebp + 0xc], 2
je 0x4054db
mov esi, 0x421508
push edi
push esi
call fcn.00405a43
test ebx, ebx
je 0x4053d7
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053dd
push edi
call fcn.0040557d
cmp byte [edi], 0
jne 0x4053eb
cmp byte [0x421508], 0x5c
jne 0x4053f6
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4054d1
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405561
cmp byte [eax], 0
je 0x40543c
cmp byte [ebp - 0x18], 0
je 0x40543c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405452
mov al, byte [esi + 1]
test al, al
je 0x4054b0
cmp al, 0x2e
jne 0x405452
cmp byte [esi + 2], 0
je 0x4054b0
push esi
push ebx
call fcn.00405a43
test byte [ebp - 0x148], 0x10
je 0x405477
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054b0
push dword [ebp + 0xc]
push edi
call fcn.00405368
jmp 0x4054b0
push edi
call fcn.004056fb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054a8
test byte [ebp + 0xc], 4
je 0x4054a0
push edi
push 0xfffffffffffffff1
call fcn.00404de1
push 0
push edi
call fcn.00405791
jmp 0x4054b0
inc dword [0x423f88]
jmp 0x4054b0
push edi
push 0xfffffffffffffff2
call fcn.00404de1
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40541a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054db
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405530
cmp dword [ebp - 8], esi
jne 0x4054f0
inc dword [0x423f88]
jmp 0x405530
push edi
call fcn.00405d3a
test eax, eax
je 0x405530
push edi
call fcn.00405536
push edi
call fcn.004056fb
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405528
test byte [ebp + 0xc], 4
je 0x4054e8
push edi
push 0xfffffffffffffff1
call fcn.00404de1
push esi
push edi
call fcn.00405791
jmp 0x405530
push edi
push 0xffffffffffffffe5
call fcn.00404de1
pop edi
pop esi
leave
ret 8