joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x410414
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x410423
pop dword [ebp - 0x50]
mov eax, 0xbcb8d792
add eax, 0x43882c91
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x72da6226
sub dword [ebp - 0x60], 0x24881cdb
mov dword [ebp - 0x5c], 0xc0a1fe22
sub dword [ebp - 0x5c], 0x8e6eb1dd
mov dword [ebp - 0x58], 0xb6526fec
sub dword [ebp - 0x58], 0x6a062bbe
mov dword [ebp - 0x54], 0x76f91cf1
add dword [ebp - 0x54], 0x8906e30f
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x7cd3edad
add dword [ebp - 0x60], 0xf79e7ba9
mov dword [ebp - 0x5c], 0xcb09e296
sub dword [ebp - 0x5c], 0x899d8121
mov dword [ebp - 0x58], 0x3e922af0
add dword [ebp - 0x58], 0x24dd417c
mov dword [ebp - 0x54], 0xf0892443
add dword [ebp - 0x54], 0xf76dbbd
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xcbb06484
add eax, 0x3491cca0
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3d05a
push 0
call eax
mov ecx, 0xba3a2e04
add ecx, 0x45c6171d
xor edx, edx
add edx, eax
mov edi, 0x4c1a54c0
add edi, 0xb428ef40
add edi, dword [ebp - 0x50]
mov esi, 0x102de6ab
xor dword [ebp - 0x28], edx
mov ebx, dword [edi]
xor dword [ebp - 8], edx
add ebx, esi
xor dword [ebp - 0x18], eax
mov dword [edx], ebx
sub dword [ebp - 8], 0xb4e711fa
add edx, 4
add edi, 0x771252b2
add edi, 0x88edad52
loop 0x41053c
add eax, 0x10757
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3b87d976
add ecx, 0xc4b8268a
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401050
Capabilities:
Create process on windows

Disassembly:
call fcn.0040e520
test eax, eax
je 0x4010ce
mov eax, dword [0x42e4ac]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x7d0
push 0x42d720
push 0x17
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x34
push str.EXEpress_CX
push 0x42d720
push esi
call ebx
cmp eax, 6
jne 0x4010cc
push 1
push 0
push 0
push str.http:__www.webtech.co.jp_onlinesoft_exepress_
push 0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4010cc
mov ecx, dword [0x42e4ac]
push 0x7d0
push 0x42d720
push 2
push ecx
call edi
push 0x30
push str.EXEpress_CX
push 0x42d720
push esi
call ebx
pop edi
pop ebx
ret

Function at 0x401580
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov ecx, dword [0x42dfcc]
xor eax, eax
test ecx, ecx
mov dword [0x42def0], 1
je 0x401640
mov eax, dword [esp + 4]
push ebx
push ecx
push 0xfffffffffffffff8
push eax
mov dword [0x42dfc8], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x42dfcc]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x42dfcc]
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call ebx
test dword [0x432280], 0x800
je 0x40162f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x7d0
jae 0x40160a
mov edi, edi
mov edx, dword [0x42dfcc]
push edx
call fcn.00406910
add esp, 4
call esi
sub eax, edi
cmp eax, 0x7d0
jb 0x4015f0
mov eax, dword [0x42dfcc]
push 1
push 0
push eax
mov dword [0x42def0], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x42dfcc]
push ecx
call ebx
pop edi
pop esi
mov eax, 1
mov dword [0x42def0], 0
pop ebx
ret
mov dword [0x42def0], eax
ret

Function at 0x401af0
Capabilities:
Get disk information
Get file size

Disassembly:
sub esp, 0x114
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [esp + 0x14]
cmp al, 0x5c
jne 0x401b27
mov edi, 4
jmp 0x401b47
lea ecx, [esp + 8]
push ecx
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b84
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004121f9
add esp, 0x114
ret
push ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 3
je 0x401bb7
cmp edi, 6
je 0x401bb7
mov eax, 0x1e8480
cmp eax, ebx
jmp 0x401bbe
mov ecx, 0x989680
cmp ecx, ebx
mov ecx, dword [esp + 0x11c]
pop ebx
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.004121f9
add esp, 0x114
ret
Function at 0x401d60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x3ec], eax
mov eax, dword [esp + 0x3f8]
push esi
mov esi, dword [esp + 0x3f8]
push eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x426498
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x401dd5
mov dword [0x42e100], 8
mov ecx, dword [esp + 0x3ec]
xor ecx, esp
call fcn.004121f9
add esp, 0x3f0
ret

Function at 0x401df0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x3ec], eax
mov eax, dword [esp + 0x3f8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x3fc]
push esi
push edi
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], 0
call ebx
push 0x426498
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004126a5
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
push esi
call ebx
xor eax, eax
test edi, edi
jle 0x401e74
mov dl, byte [eax + esi]
not dl
mov byte [eax + esi], dl
add eax, 1
cmp eax, edi
jl 0x401e65
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jne 0x401e96
mov dword [0x42e100], 8
mov ecx, dword [esp + 0x3ec]
xor ecx, esp
call fcn.004121f9
add esp, 0x3f0
ret

Function at 0x401eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ebp + 0x10]
jecxz 0x401ed9
xor ebx, ebx
mov bl, al
mov al, ah
xor bl, byte [esi]
xor ah, ah
inc esi
xor ax, word [ebx*2 + section..data]
loop 0x401ec6
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404dc0
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov eax, dword [eax + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add eax, 0x5c6
push eax
call ebx
lea ecx, [esp + 8]
push ecx
call fcn.00404cb0
add esp, 4
test eax, eax
je 0x404ea5
push ebp
push esi
push edi
cmp byte [esp + 0x14], 0
je 0x404e8d
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea eax, [esp + 0x14]
sub eax, 1
add ebp, eax
xor edi, edi
cmp byte [ebp], 0x5c
jne 0x404e52
push 0x4264ec
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [edx + 0x14]
add eax, 0x5c6
push eax
call ebx
jmp 0x404e70
lea ecx, [esp + 0x14]
push ecx
call fcn.0040e500
add esp, 4
test eax, eax
je 0x404e8d
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x404e8d
push esi
call fcn.00406910
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0x40
jl 0x404e27
lea eax, [esp + 0x14]
push eax
call fcn.00404cb0
add esp, 4
test eax, eax
jne 0x404e08
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x10c
ret
Function at 0x406820
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40684b
xor eax, eax
pop edi
pop ecx
ret
push ebx
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
mov ebx, eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
pop edi
pop ecx
ret

Function at 0x407280
Capabilities:
Delete file
Set current directory

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x18], 1
jne 0x4073e2
push ebx
push ebp
push 0x42ebb6
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x24]
mov edx, dword [0x42e134]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.004032d0
mov ebx, dword [esp + 0x28]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4072e9
mov eax, dword [0x42e4ac]
push 0x7d0
push 0x42d720
push 0xa
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
push 0x42eb74
push 0x42d720
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xc]
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [0x432280], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x407322
mov esi, 0x64
lea ebx, [ebx]
push ebx
call fcn.00406910
add esp, 4
push 0x64
call edi
sub esi, 1
jne 0x407310
test ebp, ebp
je 0x4073de
test byte [0x432280], 8
je 0x4073de
push str..exe
push 0x42f0ca
call fcn.0040e7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4073de
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call ebp
cmp dword [esp + 0x28], 0x103
je 0x4073a1
test byte [0x432280], 0x10
je 0x4073b0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x42f0ca
call esi
cmp eax, 0xffffffff
jne 0x4073c3
push ebx
call fcn.00406910
add esp, 4
push 0x64
call edi
jmp 0x407364
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push 0x42f0ca
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x407ac0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
xor esi, esi
cmp byte [0x42efc6], 0
je 0x407b65
push ebp
push edi
push 0x105
lea eax, [esp + 0x10]
push eax
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e060
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
push 0x42efc6
call edi
lea edx, [esp + 0xc]
push edx
mov ebp, eax
call edi
cmp eax, ebp
jl 0x407b52
lea eax, [esp + 0xc]
push eax
call edi
push 0x42efc6
lea esi, [esp + eax + 0x10]
call edi
sub esi, eax
push 0x42efc6
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push esi
push 4
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.004121f9
add esp, 0x10c
ret
Function at 0x409070
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x6f8]
sub esp, 0x6f8
push 0xffffffffffffffff
push 0x425140
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x42c2e4]
xor eax, ebp
mov dword [ebp + 0x6f4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x700]
mov dword [ebp - 0x18], esi
mov eax, dword [0x42e134]
mov eax, dword [eax + 0x14]
add eax, 0x125a4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, edi
mov edx, dword [0x42e134]
mov eax, dword [edx + 0x14]
add eax, 0x125a4
cmp ecx, dword [eax + 8]
je 0x4092b5
lea eax, [ebp + 0x5f0]
push eax
push ecx
call fcn.0040d720
lea ecx, [ebp + 0x5f0]
push ecx
push 0x104
lea edx, [ebp + 0x4ec]
push edx
call fcn.004128b7
lea eax, [ebp + 0x4ec]
push eax
call fcn.0040e790
lea ecx, [ebp + 0x4ec]
push ecx
call fcn.0040e0a0
add esp, 0x1c
lea edx, [ebp + 0x3e8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp + 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp + 0x5f0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x1c], edi
lea edx, [ebp + 0x3e8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
je 0x409267
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409212
mov dword [ebp - 4], 0
call eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
jge 0x409251
jmp 0x4091be
push 0x7d0
push 0x42d720
push 0x28
mov eax, dword [0x42e4ac]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp + 0x5f0]
push ecx
push 0x42d720
lea edx, [ebp]
push edx
call fcn.00407de0
add esp, 0xc
push 0
push 0x42eb74
lea eax, [ebp]
push eax
push esi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [ebp - 0x14], 0x105
mov ecx, dword [ebp - 0x14]
jmp 0x4090d0
push 0x7d0
push 0x42d720
push 0x28
mov ecx, dword [0x42e4ac]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp + 0x5f0]
push edx
push 0x42d720
lea eax, [ebp]
push eax
call fcn.00407de0
add esp, 0xc
push 0
push 0x42eb74
lea ecx, [ebp]
push ecx
push esi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add dword [ebp - 0x14], 0x105
mov ecx, dword [ebp - 0x14]
jmp 0x4090d0
push 0x7d0
push 0x42d720
push 0x28
mov edx, dword [0x42e4ac]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp + 0x5f0]
push eax
push 0x42d720
lea ecx, [ebp]
push ecx
call fcn.00407de0
add esp, 0xc
push 0
push 0x42eb74
lea edx, [ebp]
push edx
push esi
call ebx
add dword [ebp - 0x14], 0x105
mov ecx, dword [ebp - 0x14]
jmp 0x4090d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6f4]
xor ecx, ebp
call fcn.004121f9
add ebp, 0x6f8
mov esp, ebp
pop ebp
ret
Function at 0x409a00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4251e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x42c2e4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x42feee], bl
je 0x409b36
call fcn.0040e520
test eax, eax
je 0x409b36
mov eax, 0x42feee
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409a63
sub eax, edx
push eax
push 0x42feee
lea ecx, [esp + 0x14]
call fcn.00402ef0
mov dword [esp + 0x34], ebx
push 7
push str._n_nURL
lea ecx, [esp + 0x14]
call fcn.00409570
mov eax, 0x42fff2
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409aa0
sub eax, edx
push eax
push 0x42fff2
lea ecx, [esp + 0x14]
call fcn.00409570
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x409ac9
lea eax, [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x34
push 0x42eb74
push eax
push edi
call esi
cmp eax, 6
jne 0x409b0a
push 1
push ebx
push ebx
push 0x42fff2
push ebx
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x409b0a
push 0x30
push 0x42eb74
push 2
call fcn.00401020
add esp, 4
push eax
push edi
call esi
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x409b26
mov eax, dword [esp + 0x10]
push eax
call fcn.0041228a
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004121f9
add esp, 0x2c
ret
Function at 0x40ccd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
mov esi, 1
push edx
mov dword [esp + 0x1c], esi
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cd09
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40cd2c
xor esi, esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40cd40
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40cd7b
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 4]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40cd9c
xor esi, esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x40cdb0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40cdeb
xor eax, eax
pop edi
add esp, 8
ret
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
add eax, 1
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x40ce17
xor edi, edi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 8
ret

Function at 0x40ce30
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push ecx
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40ce70
mov eax, dword [esp + 8]
mov ecx, dword [esp]
push esi
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
test esi, esi
setne al
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x40dc50
Capabilities:
Delete file

Disassembly:
sub esp, 0x520
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [esp + 0x524]
mov ecx, dword [esp + 0x528]
push ebx
mov ebx, dword [esp + 0x530]
push ebp
mov ebp, dword [esp + 0x53c]
push esi
mov esi, dword [esp + 0x53c]
push edi
mov edi, dword [esp + 0x548]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.0040ef00
test eax, eax
je 0x40ddb5
test dword [0x432280], 0x40000
je 0x40ddb5
lea edx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x14]
mov ecx, 0x19
call fcn.0040ce30
add esp, 4
test eax, eax
jne 0x40dcf5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x11c]
push eax
xor ecx, ecx
call fcn.0040ce30
add esp, 4
test eax, eax
jne 0x40dcf5
xor eax, eax
jmp 0x40ddef
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x120]
mov edx, ecx
push ecx
push edx
mov edx, ebp
mov ecx, esi
call fcn.0040d860
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40ddb1
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004128b7
lea edx, [esp + 0x24]
push edx
call fcn.0040e060
push ebx
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.0041291c
push str..lnk
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.0041291c
push 0
lea edx, [esp + 0x454]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0040e990
add esp, 0x34
test eax, eax
je 0x40ddb1
lea ecx, [esp + 0x324]
push ecx
push edi
call fcn.0040d720
add esp, 8
lea edx, [esp + 0x324]
push edx
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ddb1
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
jmp 0x40ddef
lea edx, [esp + 0x220]
push edx
mov edx, dword [esp + 0x14]
xor ecx, ecx
call fcn.0040ce30
add esp, 4
test eax, eax
je 0x40dcee
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x224]
mov ecx, eax
push eax
push ecx
mov edx, ebp
mov ecx, esi
call fcn.0040d860
add esp, 0xc
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004121f9
add esp, 0x520
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea ecx, [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004121f9
add esp, 0x108
ret

Function at 0x40e500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e51a
test al, 0x10
jne 0x40e51a
mov eax, 1
ret
xor eax, eax
ret