joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079b1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x449edb
call fcn.00438a64
sub esp, 0x1c
mov eax, dword [0x463928]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407a87
push 4
pop edi
push edi
mov dword [ebp - 0x20], edi
call fcn.00439112
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov esi, str.WarnOnZoneCrossing
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407a40
cmp dword [ebp - 0x24], edi
jne 0x407a5c
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.00438a90
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x407a5c
xor eax, eax
inc eax
push edi
mov dword [0x463928], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
je 0x407a75
push edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
call fcn.0043910d
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4081e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x20]
sub eax, edi
push eax
lea eax, [esi + edi]
push eax
call fcn.00408096
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x40822c
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor al, byte [ecx + esi]
xor al, byte [ebp + 0x1c]
mov byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x408210
pop edi
pop esi
pop ebp
ret
Function at 0x40930d
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x4c0]
sub esp, 0x540
mov eax, dword [0x45e56c]
mov dword [ebp + 0x4bc], eax
push edi
jmp 0x409332
invalid
Function at 0x41409d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x45e56c]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00413fce
cmp eax, esi
jne 0x414125
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4140ee
lea eax, [ebp - 0x70]
push eax
call fcn.0041409d
cmp eax, esi
jne 0x414124
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x4140e1
call fcn.00413fb7
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00413fb7
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.004381fc
add ebp, 0x94
leave
ret 4
Function at 0x414535
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x414540
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4159f9
Capabilities:
Set current directory
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xc40]
sub esp, 0xd60
mov eax, dword [0x45e56c]
push ebx
push esi
push edi
mov dword [ebp + 0xc3c], eax
call fcn.00431724
call fcn.00408230
test al, al
jne 0x415a3e
push 0
push str.Fatal_Error
push str.Files_are_altered_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
jmp 0x416764
push 0x44c5be
push 0x4633b8
call fcn.004382b0
pop ecx
pop ecx
mov ebx, 0x104
push ebx
mov edi, 0x4637b8
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call fcn.00439b80
cmp eax, esi
pop ecx
pop ecx
jne 0x415a82
push esi
push str.Fatal_Error
push str.Invalid_access_rights_
jmp 0x415dd2
push edi
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x415a98
invalid
inc ecx
xchg esp, eax
test al, 0x3f
into
insd dword es:[edi], dx
mov edx, 0x59833c89
lodsd eax, dword [esi]
adc al, 0x9e
jbe 0x415e47
stosd dword es:[edi], eax
xchg ebx, eax
mov ecx, 0x21b9e3a2
mul dword [edi - 0x2467f0ae]
test al, 0x69
cmp byte [esi + ebp + 0x49], 0xd5
fld qword [ebp + 0xfc9a971]
cmp esi, esp
dec edi
mov dh, 0x50
rcl ah, 1
in eax, 0xc
pop edi
sub byte [esi + 0x51df35fc], bl
out dx, eax
sbb edi, dword [esi + 0x4552b6c6]
or edi, dword [edi - 0x50c8a290]
or dl, byte [ebx - 0x6c7cf1ad]
sbb bl, 0x44
sbb dl, byte [edi + 5]
mov ebx, 0x99ae3989
push edi
add eax, 0xae3989bb
cdq
aas
test cx, di
mov byte [edi - 0xd70df36], bh
inc ebx
pushal
call 0x4b6a6cbd
sbb byte [ecx - 0x15], 0x34
jle 0x415e51
lahf
lcall 0x89fc, 0xd40ed363
sar bl, 9
jns 0x415e25
ror dword [esi], cl
aam 0xfc
mov eax, eax
sti
or dword [ecx - 0x2c], edi
aam 0xe3
inc ecx
rol byte [eax - 0xc], 1
mov bl, 0xb7
int3
call fcn.00439e69
int3
Function at 0x4195ab
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
in al, dx
add dword [eax], eax
test eax, eax
pop ecx
jbe 0x419580
push dword [ebp + 0x10]
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0xc
push ebx
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004381c6
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.004381fc
leave
ret
push esi
jmp 0x4195b7
push ebp
jmp 0x41961a
sbb eax, 0xfbc3bfc4
fdivp st(5)
pop ebp
mov edx, 0xe86c59ee
push edx
inc esp
adc byte [esp + edx*8], bh
inc edi
insb byte es:[edi], dx
call 0x3c51da1a
aam 0x47
je 0x419566
loope 0x419613
jo 0x4195c2
mov esi, 0xad9a2231
jp 0x4195b1
and byte [0x64787a2a], ah
je 0x419600
sub ch, bl
push es
jmp 0x419628
mov ah, 7
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], cl
add byte [eax], al
add byte [ebp - 0x547af040], al
add byte [eax], al
add byte [ebp - 0x72af7fbb], cl
inc ebp
mov word [eax - 0x73], ss
inc ebp
lodsb al, byte [esi]

Function at 0x4196f6
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x45e56c]
push esi
mov dword [ebp + 0x7b4], eax
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
mov esi, ecx
push dword [esi + 0x100]
mov dword [ebp - 0x60], 0x800
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4197e8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4197df
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
inc eax
push edi
push eax
call fcn.00439112
pop ecx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push str.cdgfilename
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4197d7
cmp dword [ebp - 0x58], 1
jne 0x4197d7
push dword [esi + 0xfc]
call fcn.0043910d
and dword [esi + 0xfc], 0
push edi
call fcn.00438210
inc eax
push eax
call fcn.00439112
push edi
push eax
mov dword [esi + 0xfc], eax
call fcn.004382b0
add esp, 0x14
push edi
call fcn.0043910d
pop ecx
pop edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xfc]
mov ecx, dword [ebp + 0x7b4]
pop esi
call fcn.004381fc
add ebp, 0x7b8
leave
ret
Function at 0x41cb7a
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
test esi, esi
je 0x41cbad
push esi
call fcn.00438210
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x41cb9c
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x41cb93
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x41cbb2
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x45e56c]
mov dword [ebp - 4], eax
je 0x41cdce
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41cdcd
push dword [ebp + 0xc]
call fcn.00438210
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41cdcd
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00439b80
cmp eax, edi
pop ecx
pop ecx
je 0x41cc35
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.004382c0
pop ecx
pop ecx
push ebx
push esi
push edi
mov esi, 0x80
push esi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
jne 0x41cc93
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 4
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
je 0x41cdcb
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41ccd0
cmp eax, 0x19000
jbe 0x41ccd0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push 5
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, eax
jmp 0x41ccd6
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41cdcb
push 2
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x10], ebx
mov esi, dword [ebp - 0x510]
je 0x41cd0f
push dword [ebp + 0x10]
call fcn.00438210
cmp eax, esi
pop ecx
jle 0x41cd0f
push dword [ebp + 0x10]
call fcn.00438210
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.00439112
mov ebx, 0x44f3d8
mov esi, eax
push ebx
push esi
call fcn.004382b0
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x41cd36
push edi
call fcn.0041cb7a
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.00438498
lea eax, [ebp + 8]
push eax
call fcn.0043a953
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0043a938
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
push dword [ebp + 0xc]
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41cdad
push dword [ebp + 0x10]
call fcn.00438210
test eax, eax
pop ecx
jbe 0x41cdad
push dword [ebp + 0x10]
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0xc
push ebx
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004381c6
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.004381fc
leave
ret
Function at 0x41ecd7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x45e56c]
push edi
mov dword [ebp + 0xbc], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc8]
mov dword [ebp - 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41ee2e
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.0043829b
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00439910
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.Publisher
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x41ee25
cmp dword [ebp - 0x54], 1
jne 0x41ee25
push 0x44fb88
push ebx
call fcn.00439c79
test eax, eax
pop ecx
pop ecx
jne 0x41ee25
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00439910
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.GameID
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x41ee25
cmp dword [ebp - 0x54], 4
jne 0x41ee25
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.00438a90
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x41ee25
mov esi, dword [ebp + 0xd0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x50]
jne 0x41ee25
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
push 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 4
push edi
push str.BuildType
push dword [ebp + 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.004381c6
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.004381fc
add ebp, 0xc0
leave
ret
Function at 0x41f44b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x45e56c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp + 0xc8], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
mov ebx, 0x20019
push ebx
push esi
push dword [ebp + 0xd8]
mov dword [ebp - 0x5c], 0x104
push dword [ebp + 0xd4]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], esi
call edi
test eax, eax
jne 0x41f5ce
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41f5c5
mov eax, dword [ebp - 0x44]
inc eax
push eax
mov dword [ebp - 0x50], eax
call fcn.0043829b
push dword [ebp + 0xd8]
mov dword [ebp - 0x54], eax
call fcn.00438210
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.0043829b
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x60]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x41f59f
push dword [ebp - 0x54]
push dword [ebp + 0xd8]
push str._s_s
push dword [ebp - 0x4c]
call fcn.0043930c
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push dword [ebp - 0x4c]
push dword [ebp + 0xd4]
call edi
test eax, eax
jne 0x41f5a7
push dword [ebp - 0x4c]
push dword [ebp + 0xe0]
push dword [ebp - 0x48]
call fcn.0041ee42
add esp, 0xc
cmp eax, esi
je 0x41f594
mov edx, dword [ebp + 0xdc]
mov ecx, dword [edx]
cmp ecx, esi
jne 0x41f58c
mov dword [edx], eax
jmp 0x41f594
mov ecx, dword [ecx + 0x34]
cmp dword [ecx + 0x34], esi
jne 0x41f589
mov dword [ecx + 0x34], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f5a7
cmp eax, 0x103
je 0x41f5a7
nop
inc dword [ebp - 0x60]
cmp dword [ebp - 0x78], esi
je 0x41f50b
push dword [ebp - 0x4c]
call fcn.004381c6
push dword [ebp - 0x54]
call fcn.004381c6
pop ecx
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc8]
pop edi
pop esi
pop ebx
call fcn.004381fc
add ebp, 0xcc
leave
ret
Function at 0x420489
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x45e56c]
mov dword [ebp - 4], eax
je 0x4206a5
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4206a4
push dword [ebp + 0xc]
call fcn.00438210
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x4206a4
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00439b80
cmp eax, edi
pop ecx
pop ecx
je 0x42050c
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.004382c0
pop ecx
pop ecx
push ebx
push esi
push edi
mov esi, 0x80
push esi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
jne 0x42056a
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 4
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
je 0x4206a2
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4205a7
cmp eax, 0x19000
jbe 0x4205a7
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push 5
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, eax
jmp 0x4205ad
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x4206a2
push 2
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x10], ebx
mov esi, dword [ebp - 0x510]
je 0x4205e6
push dword [ebp + 0x10]
call fcn.00438210
cmp eax, esi
pop ecx
jle 0x4205e6
push dword [ebp + 0x10]
call fcn.00438210
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.00439112
mov ebx, 0x44f3d8
mov esi, eax
push ebx
push esi
call fcn.004382b0
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x42060d
push edi
call fcn.0041cb7a
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.00438498
lea eax, [ebp + 8]
push eax
call fcn.0043a953
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0043a938
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
push dword [ebp + 0xc]
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x420684
push dword [ebp + 0x10]
call fcn.00438210
test eax, eax
pop ecx
jbe 0x420684
push dword [ebp + 0x10]
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0xc
push ebx
push esi
call fcn.004382b0
push edi
call fcn.0041cb7a
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004381c6
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.004381fc
leave
ret
Function at 0x422737
Capabilities:
Delete file

Disassembly:
mov eax, 0x44a873
call fcn.00438a64
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xa054]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [esi], 0x44ff90
mov dword [ebp - 4], ebx
je 0x422766
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esi + 0x1c], ebx
je 0x4227ab
mov ecx, esi
call fcn.00421397
mov edi, eax
cmp edi, ebx
je 0x42278f
mov eax, dword [esi + 0x1c]
push dword [eax + 4]
push 0x455490
push edi
call fcn.00410cbd
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x42279f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x20], ebx
je 0x4227cf
push dword [esi + 0x2c]
push 0x455530
push dword [esi + 0x28]
call fcn.00410cbd
mov eax, dword [esi + 0x20]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4227dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4227e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x4227f5
call fcn.00420400
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x422803
push eax
call fcn.0043910d
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x422811
push eax
call fcn.0043910d
pop ecx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x42281f
push eax
call fcn.0043910d
pop ecx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x42282d
push eax
call fcn.0043910d
pop ecx
lea eax, [esi + 0x48]
cmp byte [eax], bl
je 0x42283b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret