joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437139
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4371a0
call esi
cmp eax, 0x3f0
jne 0x437193
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x43719c
push 1
jmp 0x4371bf
cmp eax, ebx
je 0x4371be
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4371be
call esi
cmp eax, 0x7a
je 0x4371ce
push ebx
push dword [ebp - 4]
call fcn.0043712a
pop ecx
pop ecx
jmp 0x4372c5
push dword [ebp - 8]
call fcn.0043ba8f
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x437214
push ebx
push dword [ebp - 4]
call fcn.0043712a
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x43720c
push esi
call fcn.0043ad89
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x4372c5
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x43725e
push ebx
push dword [ebp - 4]
call fcn.0043712a
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x437259
push esi
call fcn.0043ad89
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x4372c5
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x43729d
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43728a
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x43726d
jmp 0x43729d
cmp byte [ebp + 0xc], bl
je 0x437299
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x43729d
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0043712a
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x4372c2
push esi
call fcn.0043ad89
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4379d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.004135da
xor ebx, ebx
cmp eax, 1
jne 0x437a72
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x47a154
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x437a5f
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x47a148
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x437a36
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push 0x47a138
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x437a5f
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x437a72
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x437a72
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437681
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x438197
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x4381cf
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x4381db
mov eax, dword [esi + 0x5c]
jmp 0x438224
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x438222
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x438200
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x4381e4
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4388e5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x464cf3
call fcn.0043b5c0
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00438b8e
test al, 0x10
pop ecx
je 0x438a67
push 1
lea eax, [ebp + 8]
pop ebx
push 0x479580
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00438b15
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], bl
push ecx
mov ecx, eax
call fcn.004058df
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0040127e
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x438a0e
test ebx, ebx
je 0x438a03
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x47a1c0
push eax
call ebx
test eax, eax
je 0x4389ee
lea eax, [ebp - 0x1bc]
push 0x47a1bc
push eax
call ebx
test eax, eax
je 0x4389ee
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x467578
mov dword [ebp - 0x20], 0x467570
call fcn.00405529
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.00438a9c
add esp, 0xc
call fcn.004388e5
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040127e
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
jmp 0x438968
test esi, esi
je 0x438a0e
push edi
call esi
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004058df
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x438a3d
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00413a39
lea eax, [ebp - 0x60]
push 0x46c698
push eax
call fcn.0043bd2a
cmp dword [ebp - 0x10], 0xffffffff
je 0x438a4c
test esi, esi
je 0x438a4c
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040127e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.004058df
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x438a4c
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00413a39
lea eax, [ebp - 0xa8]
push 0x46c698
push eax
call fcn.0043bd2a

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.004058df
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x438bc3
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00413a39
lea eax, [ebp - 0x48]
push 0x46c698
push eax
call fcn.0043bd2a
leave
ret
Function at 0x439c3e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x439c90
push eax
call fcn.0043ba8f
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x439c90
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x476c60
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x439c94
xor al, al
jmp 0x439cf5
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47a27c
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x439cf3
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0043ba8f
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x439cf3
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x439ce1
mov al, 1
pop ebx
leave
ret 4
Function at 0x450710
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x7c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, 0xa
push 0x50
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x28]
test al, al
je 0x4508b8
push 0x47d8e4
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x48]
push esi
push eax
push 0x47d75c
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x4508b8
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x8c], eax
call ebp
push 0x450650
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push 0x47d74c
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropA]
push ebp
push 0x47d738
push esi
call dword [sym.imp.USER32.dll_SetPropA]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x45088d
mov edx, dword [esp + 0x7c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 2
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.004508c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x459b10
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x466828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x459b7e
lea ecx, [esp + 0x14]
call fcn.0041ace1
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x459bb1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00459cf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00419551
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.0041ace1
xor al, al
jmp 0x459cc4
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x459bdf
cmp eax, ebx
je 0x459bd9
cmp edi, ebx
je 0x459bd9
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x459c16
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x459c0e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x459c0e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x459c0e
cmp edi, ebx
je 0x459c0e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x459c61
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x459c43
cmp eax, ebx
je 0x459c3d
cmp ebp, ebx
je 0x459c3d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x459c6e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x459c5a
cmp edi, ebx
je 0x459c5a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x459c6a
cmp edi, ebx
je 0x459c6a
push eax
call edi
xor al, al
jmp 0x459cc4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.004598a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x459c9f
cmp ebp, ebx
je 0x459c9f
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x459cb2
cmp edi, ebx
je 0x459cb2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x459cc2
cmp edi, ebx
je 0x459cc2
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x45a250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 2
mov dword [esi + 0x20], eax
and eax, 0xffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x45a291
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45a2a3
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.0045a2d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x45ce60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x47d7e8
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45ceea
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x47d7d4
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45cedf
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x45ced7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x45ceea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x45d2e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x466975
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
mov dword [esp + 4], 0x4675b0
test eax, eax
mov dword [esp + 0x24], 0x4675a8
jne 0x45d315
mov eax, 0x47d8e0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x78]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040b3c8
lea edx, [esp + 0x3c]
mov dword [esp + 0x70], 0
push edx
call fcn.0045cf30
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, eax
mov byte [esp + 0x88], 1
call fcn.0040bc78
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x78], edi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x5c]
neg eax
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, ecx
mov byte [esp + 0x70], 5
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x50]
and ecx, eax
call fcn.004055db
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov byte [esp + 0x74], 4
call fcn.0040b642
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ebp, eax
lea esi, [eax + eax + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov eax, dword [esp + 0x28]
jae 0x45d3f9
test eax, eax
jne 0x45d417
push eax
call fcn.0043ad89
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [esp + 0x34], esi
call fcn.0043ba8f
add esp, 8
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040c282
lea edx, [esp + 0x10]
push 0
mov eax, dword [esp + 0x2c]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x45d44c
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45d44c
push edi
call eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
mov dword [esi], eax
lea esi, [esp + 0x14]
neg esi
sbb esi, esi
lea eax, [esp + 0x28]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0043ad89
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
call edi
lea esi, [esp + 0x14]
lea eax, [esp + 0x18]
neg esi
sbb esi, esi
xor ebx, ebx
and esi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x45d4ba
mov cl, byte [eax - 1]
test cl, cl
je 0x45d4b4
cmp cl, 0xff
je 0x45d4b4
dec cl
mov byte [eax - 1], cl
jmp 0x45d4ba
add eax, 0xfffffffe
push eax
call edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x60]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x45da76
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.0045dc0a
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x45dbd1
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0045dc48
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x45dbc7
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x45dbbe
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x45db94
jg 0x45db38
cmp ebx, edi
jbe 0x45db94
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x45db61
call fcn.0043dc00
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0045dbe0
jmp 0x45db79
call fcn.0043dc00
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0045dbf5
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x45db38
jg 0x45db94
cmp esi, ebx
jb 0x45db38
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45dbb2
mov eax, dword [esi + 4]
cmp eax, edi
je 0x45dbb2
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.0043ad89
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x45dc0a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.0043ba8f
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x45dc42
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x45dc27
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x480f99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.0046712e
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x480fd1
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x480fb6
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx