joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12995e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x12995fe
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x12995f2
cmp dword [edi + 0x7c], ebx
je 0x129960d
call fcn.012999c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.01299350
add esp, 0xc
test eax, eax
je 0x1299634
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.012a57ec
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1299672
push 0x4000
call fcn.012a57ec
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x129967f
push esi
call fcn.012a5d47
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x12996c7
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.012984a0
test eax, eax
jne 0x12996c7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x12996ee
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x12996f4
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x1299731
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x1299731
call fcn.01298190
add ebp, 1
jne 0x1299720
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x410f21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455534]
jne 0x410f2b
repz ret
jmp fcn.0041479c

Function at 0x41b679
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00414e27
and dword [ebp - 4], 0
cmp dword [0x4577e0], 0
mov ebx, eax
jne 0x41b72a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41b7db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41b7db
push eax
call fcn.00414db5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4577e0], eax
call esi
push eax
call fcn.00414db5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4577e4], eax
call esi
push eax
call fcn.00414db5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4577e8], eax
call esi
push eax
call fcn.00414db5
pop ecx
mov dword [0x4577f0], eax
test eax, eax
je 0x41b72a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414db5
pop ecx
mov dword [0x4577ec], eax
mov eax, dword [0x4577ec]
cmp eax, ebx
je 0x41b782
cmp dword [0x4577f0], ebx
je 0x41b782
push eax
call fcn.00414e30
push dword [0x4577f0]
mov esi, eax
call fcn.00414e30
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41b782
test edi, edi
je 0x41b782
call esi
test eax, eax
je 0x41b779
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b779
test byte [ebp - 0xc], 1
jne 0x41b782
or dword [ebp + 0x10], 0x200000
jmp 0x41b7bb
mov eax, dword [0x4577e4]
cmp eax, ebx
je 0x41b7bb
push eax
call fcn.00414e30
pop ecx
test eax, eax
je 0x41b7bb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41b7bb
mov eax, dword [0x4577e8]
cmp eax, ebx
je 0x41b7bb
push eax
call fcn.00414e30
pop ecx
test eax, eax
je 0x41b7bb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4577e0]
call fcn.00414e30
pop ecx
test eax, eax
je 0x41b7db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b7dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423206
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
push edi
xor ecx, ecx
push 2
lea eax, [eax + eax + 2]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410cae
cmp dword [esi + 0x18], 8
mov edi, eax
mov eax, dword [esi + 0x14]
pop ecx
jb 0x42323b
mov esi, dword [esi + 4]
jmp 0x42323e
add esi, 4
lea eax, [eax + eax + 2]
push eax
push esi
push edi
call fcn.00413300
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push edi
push 0x422c29
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp byte [ebp + 8], bl
jne 0x423271
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x423296
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 2
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42343e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x423455
mov eax, dword [edi]
jmp 0x423457
mov eax, edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
test eax, eax
je 0x4234c5
push ebx
push eax
call fcn.00410cae
cmp dword [esi + 0x18], 8
pop ecx
mov ebx, eax
jb 0x423478
mov edi, dword [edi]
push ebx
push dword [ebp - 8]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4234bb
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x446970
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4234bb
cmp dword [ebp - 4], 0x34
jne 0x4234bb
mov eax, dword [ebp - 0xc]
movzx esi, word [eax + 0xa]
push ebx
call fcn.00410f30
mov ax, si
jmp 0x4234c3
push ebx
call fcn.00410f30
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x4235b1
mov eax, dword [eax + 4]
jmp 0x4235b4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x4235d1
mov eax, dword [eax + 4]
jmp 0x4235d4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4235e8
test al, 0x10
je 0x4235e8
xor eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x4235f6
mov eax, dword [eax + 4]
jmp 0x4235f9
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42360d
test al, 0x10
jne 0x42360d
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x423610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x423624
mov eax, dword [eax + 4]
jmp 0x423627
add eax, 4
lea ecx, [ebp - 4]
push ecx
push 0x101
xor ebx, ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x423647
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x14], ebx
je 0x42367c
cmp dword [esi + 0x18], 8
jb 0x423657
mov esi, dword [esi + 4]
jmp 0x42365a
add esi, 4
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42367c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x423643
mov bl, 1
jmp 0x42366f

Function at 0x423680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x18], 8
jb 0x42368f
mov eax, dword [eax + 4]
jmp 0x423692
add eax, 4
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x20106
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4236b6
xor al, al
pop ebx
leave
ret
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x18], 8
lea ecx, [eax + eax + 2]
jb 0x4236ce
mov eax, dword [esi + 4]
jmp 0x4236d1
lea eax, [esi + 4]
push ecx
push dword [ebp + 0xc]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4236f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x4236b3
mov bl, 1
jmp 0x4236e6

Function at 0x4236f7
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x423705
mov eax, dword [esi]
jmp 0x423707
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x42371b
mov esi, dword [esi]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret

Function at 0x4238ce
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x457cf8], esi
jne 0x423918
push 0x457aa4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
push 0x400
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push esi
push esi
push 0x42379b
push esi
push esi
mov dword [0x457aa0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x457cf8], 1
pop esi
ret

Function at 0x423aca
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x5000
mov esi, ecx
mov edi, edx
call fcn.00410cae
cmp dword [edi + 0x18], 8
pop ecx
mov ebx, eax
jb 0x423af1
mov edi, dword [edi + 4]
jmp 0x423af4
add edi, 4
push 0x2800
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
call fcn.00401916
push ebx
call fcn.00410f30
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425784
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push 0x28
mov eax, 0x43e4fc
call fcn.00412746
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor edi, edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x4257c8
push 8
push 1
push edi
push edi
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x4257c8
push 0x446bf0
mov ecx, ebx
call fcn.004018b3
jmp 0x42582d
push 0x10
call fcn.00410cae
pop ecx
mov esi, eax
push esi
push 0x10
push dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4257f8
push esi
call fcn.00410f30
pop ecx
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4257ba
push 0x10
push esi
lea esi, [ebp - 0x2c]
call fcn.00404f07
push dword [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.00410f30
pop ecx
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
push eax
mov ecx, ebx
call fcn.00401424
push edi
push 1
mov ecx, esi
call fcn.0040173a
mov eax, ebx
call fcn.004127c9
ret
Function at 0x425b69
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x40
mov eax, 0x43e55c
call fcn.00412746
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push 1
push edi
mov dword [ebp - 0x40], eax
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
mov ebx, ecx
call esi
test eax, eax
jne 0x425bb9
push 8
push 1
push edi
push edi
lea eax, [ebp - 0x44]
push eax
call esi
test eax, eax
jne 0x425bb9
mov ecx, dword [ebp - 0x40]
push 0x446bf0
call fcn.004018b3
jmp 0x425c66
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x425bdd
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x425ba7
mov eax, dword [ebx + 0x14]
push 0x10
pop esi
cmp dword [ebx + 0x18], esi
jb 0x425bed
mov ebx, dword [ebx + 4]
jmp 0x425bf0
add ebx, 4
push edi
push eax
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x425c0b
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x425bd1
push edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x48]
test eax, eax
je 0x425c03
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x4c], esi
jne 0x425ba7
push esi
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x3c]
call fcn.00404f07
mov ecx, dword [ebp - 0x40]
mov edx, esi
mov dword [ebp - 4], edi
call fcn.00423b15
push edi
push 1
mov ecx, esi
call fcn.0040173a
mov eax, dword [ebp - 0x40]
call fcn.004127c9
ret

Function at 0x425cfc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
push esi
push esi
push 1
push esi
call edi
push esi
push 1
push 1
push esi
mov dword [0x457ba8], eax
call edi
push esi
push esi
push esi
mov dword [0x457bac], eax
mov eax, dword [ebp + 0xc]
push 0x4254d1
mov dword [0x457bb4], eax
mov eax, dword [ebp + 0x10]
push esi
push esi
mov dword [0x457bb8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
cmp eax, esi
pop esi
jne 0x425d57
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebp
ret
Function at 0x425fd5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e926
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x455534]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax + 0x18], 8
mov dword [esp + 0x24], ebx
jb 0x426015
mov eax, dword [eax + 4]
jmp 0x426018
add eax, 4
lea ecx, [esp + 0x10]
push ecx
push 0x109
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42603e
push dword [ebp + 8]
call fcn.00405232
jmp 0x42614d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x426073
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x426031
mov eax, dword [esp + 0x1c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410cae
pop ecx
push dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00406d70
mov dword [esp + 0x68], ebx
xor edi, edi
cmp dword [esp + 0x14], ebx
jbe 0x426119
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
inc eax
push ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x426163
push dword [esp + 0x20]
lea eax, [esp + 0x44]
push dword [esp + 0x1c]
call fcn.004043a0
mov dword [esp + 0x24], eax
push edi
lea esi, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call fcn.00406e79
push eax
mov eax, dword [esp + 0x28]
call fcn.00401938
push ebx
push 1
lea esi, [esp + 0x48]
mov byte [esp + 0x70], bl
call fcn.0040115a
inc edi
cmp edi, dword [esp + 0x14]
jb 0x4260ab
push dword [esp + 0x18]
call fcn.00410f30
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x28]
push eax
push dword [ebp + 8]
call fcn.00406dce
lea esi, [esp + 0x28]
call fcn.00402892
push dword [esp + 0x28]
call fcn.00410f30
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x18]
call fcn.00410f30
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.00405232
jmp 0x42613a
Function at 0x428340
Capabilities:
Access peb ldr_data

Disassembly:
push 0x40
mov eax, 0x43fe56
call fcn.00412746
mov eax, dword fs:[0x30]
mov edx, dword [eax + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
jmp 0x428369
cmp ecx, edx
je 0x428378
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x428363
xor al, al
call fcn.004127c9
ret
mov edi, dword [eax + 0x28]
test edi, edi
je 0x428370
push edi
lea esi, [ebp - 0x48]
call fcn.00401916
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x42840d
lea eax, [ebp - 0x2c]
push eax
call fcn.004280ba
cmp byte [ebp + 8], 0
pop ecx
je 0x4283e3
mov eax, esi
push eax
call fcn.00401ac2
cmp eax, 0xffffffff
jne 0x4283be
xor eax, eax
jmp 0x4283bf
inc eax
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
jae 0x428401
sub ecx, eax
lea edi, [edi + eax*2]
push 0x5f
pop eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x428401
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4283ef
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push edi
call fcn.00413300
add esp, 0xc
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040115a
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
mov al, 1
jmp 0x428372
Function at 0x428713
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x14], 0
push edi
mov edi, ecx
jne 0x428779
mov ebx, dword [ebp + 8]
mov eax, edi
call fcn.00423391
test al, al
je 0x42873b
mov al, 1
jmp 0x428890
mov ecx, ebx
call fcn.00428420
cmp dword [ebx + 0x18], 8
jb 0x42874d
mov ecx, dword [ebx + 4]
jmp 0x428750
lea ecx, [ebx + 4]
cmp dword [edi + 0x18], 8
jb 0x42875b
mov eax, dword [edi + 4]
jmp 0x42875e
lea eax, [edi + 4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x428784
mov eax, ebx
call fcn.004235eb
test al, al
je 0x428784
jmp 0x428734
mov ecx, dword [ebp + 8]
call fcn.00428420
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 8
jb 0x42878f
mov ebx, dword [ebx + 4]
jmp 0x428792
add ebx, 4
push 0x80
push 2
push 0
push 0x40000000
push ebx
call fcn.00422d23
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x42888e
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4287f7
and dword [ebp - 8], 0
cmp dword [esi + 0x18], 0x10
jb 0x4287cd
mov eax, dword [esi + 4]
jmp 0x4287d0
lea eax, [esi + 4]
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4287eb
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 8]
je 0x4287f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42888e
cmp dword [edi + 0x18], 8
jb 0x428802
mov eax, dword [edi + 4]
jmp 0x428805
lea eax, [edi + 4]
push 0x8000080
push 3
push 1
push 0x80000000
push eax
call fcn.00422d23
add esp, 0x14
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4287eb
mov esi, 0x2800
push esi
call fcn.00410cae
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
mov edi, eax
jmp 0x428862
xor eax, eax
cmp dword [ebp - 4], eax
je 0x428895
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428877
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jne 0x428877
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x42883a
push edi
call fcn.00410f30
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push edi
call fcn.00410f30
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
call fcn.004235eb
jmp 0x428890